User information processing method, system, storage medium and electronic device

By determining the user category and sending modification authorization credentials, the problem of registered users in the region being unable to modify user information outside the region is solved, enabling cross-regional user information modification and improving user experience.

CN115695554BActive Publication Date: 2025-01-21BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211096066.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2025-01-21
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

Users registered in different regions cannot modify user information after logging in outside the region, resulting in poor user data usage experience.

Method used

By judging the user category of the user, if it is a registered user outside the area, it is determined whether there is a modification authorization certificate stored, and if so, it is sent to the storage node outside the area to obtain the permission to modify the user information.

Benefits of technology

It realizes the modification of user information for cross-regional users and improves the experience of using user data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695554B_ABST
    Figure CN115695554B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a user information processing method, system, storage medium and electronic device. The method includes: obtaining a user information modification request of a user located in a first area; determining the user category of the user; if the user category is a registered user outside the first area, determining whether the user's modification authorization certificate is stored in the first storage node; the first storage node is a user information storage node in the first area; if the modification authorization certificate is stored, the modification authorization certificate is sent to the second storage node to obtain the authority to modify the user's user information in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request; the second storage node is a user information storage node outside the first area. The present invention can realize the modification of user information of users across regions, and improve the user experience of user data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a user information processing method, system, storage medium and electronic device. Background Art

[0002] Currently, when a user registered in a region logs in from outside the region, the user information of different regions is stored in different storage nodes. The user information stored in the storage nodes within the region is not stored in the storage nodes outside the region. As a result, if the user cannot modify the user information, it will affect the user data usage experience. Therefore, it is very necessary to realize the modification of user information of users across regions. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a user information processing method, system, storage medium and electronic device. The specific technical solution is as follows:

[0004] The present invention provides a user information processing method, comprising:

[0005] Obtaining a user information modification request from a user located in the first area;

[0006] Determine a user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area;

[0007] If the user category is a registered user outside the first area, determining whether the modification authorization certificate of the user is stored in the first storage node; wherein the first storage node is a user information storage node in the first area;

[0008] If the modification authorization certificate is stored, the modification authorization certificate is sent to the second storage node to obtain the authority to modify the user information of the user in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein, the second storage node is a user information storage node outside the first area.

[0009] Optionally, also include:

[0010] Sending information of the first target type in the modified user information to the first storage node;

[0011] Sending the information of the second target type in the modified user information to the second storage node;

[0012] The first target type and the second target type are different.

[0013] Optionally, also include:

[0014] querying user information corresponding to the first target type from the first storage node based on the modification authorization credential,

[0015] and / or,

[0016] Based on the modification authorization credential, user information corresponding to the second target type is queried from the second storage node.

[0017] Optionally, also include:

[0018] If the user category is a registered user in the first area, modifying the user information based on the user information modification request to obtain modified user information;

[0019] The modified user information is sent to the first storage node for storage.

[0020] Optionally, after sending the modified user information to the first storage node for storage, the method further includes:

[0021] Synchronously storing the modified user information stored in the first storage node to a third storage node; wherein the third storage node is a storage node for user information corresponding to the area where the user is located, and the area where the user is located is a partial area of ​​the first area;

[0022] In response to the target information search request, if the target information of the user is not found in the third storage node, the target information is searched in the first storage node.

[0023] Optionally, also include:

[0024] If the modification authorization credential is not stored, sending an authorization authentication request;

[0025] In the case of generating a confirmation authorization instruction based on the authorization authentication request, generating the user's modification authorization certificate; wherein the confirmation authorization instruction is an authorization instruction generated after the user confirms to modify the user information of the user in the second storage node within the first area.

[0026] Optionally, the method for determining the user category of the user includes:

[0027] Obtaining user information of the user based on the user identifier of the user;

[0028] If a first out-of-region identifier is parsed from the user information, determining that the user category of the user is a registered user outside the first region;

[0029] If the first out-of-region identifier is not parsed from the user information, the user category of the user is a registered user in the first region;

[0030] The first out-of-area identifier indicates that the user information is stored in the second storage node.

[0031] The present invention also provides a user information processing system, comprising:

[0032] a modification request obtaining module, configured to obtain a user information modification request from a user located in the first area;

[0033] A user category determination module is configured to determine a user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area;

[0034] a modification authorization credential determination module, configured to determine whether the modification authorization credential of the user is stored in a first storage node if the user category is a registered user outside the first area; wherein the first storage node is a user information storage node in the first area;

[0035] The first information modification module is configured to send the modification authorization certificate to the second storage node to obtain the authority to modify the user information of the user in the second storage node if the modification authorization certificate is stored, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

[0036] The present invention also provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the above-mentioned user information processing method is implemented.

[0037] The present invention also provides an electronic device, comprising:

[0038] At least one processor, and at least one memory and bus connected to the processor;

[0039] The processor and the memory communicate with each other via the bus; the processor is used to call program instructions in the memory to execute the above-mentioned user information processing method.

[0040] A user information processing method, system, storage medium and electronic device provided by an embodiment of the present invention obtain a user information modification request of a user located in a first area; determine the user category of the user; the user category is a registered user outside the first area or a registered user in the first area; if the user category is a registered user outside the first area, determine whether a modification authorization certificate of the user is stored; if a modification authorization certificate is stored, send the modification authorization certificate to a second storage node to obtain permission to modify the user's user information in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request. The present invention can realize the modification of user information of users across regions, and improve the user experience of user data.

[0041] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flow chart of a user information processing method provided by an embodiment of the present invention;

[0044] Figure 2 A flow chart of another user information processing method provided by an embodiment of the present invention;

[0045] Figure 3 A structural diagram of a user information processing system provided by an embodiment of the present invention;

[0046] Figure 4 Another structural diagram of a user information processing system provided by an embodiment of the present invention;

[0047] Figure 5 A schematic diagram of a user information processing system framework provided by an embodiment of the present invention;

[0048] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] The present invention provides a user information processing method, such as Figure 1 As shown, the method includes:

[0051] Step 101: Obtain a user information modification request from a user in a first area.

[0052] The user information modification request may be a request to modify user information, and the user information may be user information stored in a storage node when the user registers or uses the user. The user information may be the user's nickname, avatar, email address, password, mobile phone number, age, gender, and other information. When the user registers, the user may be registered in the first area or outside the first area, and the user information may be stored in a storage node in the first area or in a storage node outside the first area; wherein the user information storage node in the first area may be a first storage node, and the user information storage node outside the first area may be a second storage node. For example, if the user registers in the first area, the user information of the user may be stored in a storage node in the first area, that is, the user information of the user is stored in the first storage node; if the user registers outside the first area, the user information of the user may be stored in a storage node outside the first area, that is, the user information of the user is stored in the second storage node.

[0053] In view of the problem that the user information is currently stored in a storage node outside the first area and the user is located in the first area and cannot modify the user information, the present invention can enable the user located in the first area to initiate a user information modification request when the user information is stored in a storage node within the first area or when the user information is stored in a storage node outside the first area. In other words, the user information processing method provided by the present invention can enable the user registered in the area to modify the user information after logging in outside the area, thereby realizing the user information modification of users across areas.

[0054] Step 102: Determine the user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area.

[0055] After obtaining the user information modification request, the user category of the user may be determined based on the user information carried in the user information modification request, that is, whether the user is a registered user outside the first area or a registered user within the first area.

[0056] For a user located in the first area whose user information modification request is made, if the user is a registered user outside the first area, the user information of the user can be stored in a storage node outside the first area, and the user information modification request is a user information modification request for a cross-area user. If the user is a registered user within the first area, the user information of the user can be stored in a storage node within the first area, and the user information modification request is a user information modification request for a local area user. The present invention can distinguish whether the type of the user information modification request of the user is a user information modification request for a cross-area user or a user information modification request for a local area user by determining whether the user category of the user is a registered user outside the first area or a registered user within the first area, and different methods can be used to modify the user information for different types of user information requests.

[0057] As an optional implementation, the method for determining the user category of a user may include:

[0058] The user identification of the user, such as the user ID, is obtained from the user information modification request. The user identification is stored corresponding to the user information. After obtaining the user identification, the user information of the user can be obtained. Since the user is located in the first area, it is possible to first search whether there is user information matching the user information stored in the storage node in the first area based on the user information. If matching user information is found in the storage node in the first area, the user type of the user is a registered user in the first area; if matching user information is not found in the storage node in the first area, user information matching the user information is searched in the storage node outside the first area. If matching user information is found in the storage node outside the first area, the user type of the user is a registered user outside the first area.

[0059] As another optional implementation, the method for determining the user category of the user may include:

[0060] The user information of the user is obtained based on the user identifier of the user; if the first out-of-area identifier is parsed from the user information, the user category of the user is determined to be a registered user outside the first area; if the first out-of-area identifier is not parsed from the user information, the user category of the user is a registered user within the first area; wherein the first out-of-area identifier indicates that the user information is stored in a storage node outside the first area, that is, the user information is stored in a second storage node.

[0061] In this implementation, the user identifier of the user can be obtained from the user information modification request, and the user information of the user can be obtained based on the corresponding storage relationship between the user identifier and the user information. If the first out-of-region identifier is stored in the user information, the user category of the user can be a registered user outside the first region. Optionally, the method for generating the first out-of-region identifier can be: when the first out-of-region identifier is not stored in the user information, if the user information can find user information matching the user information in the storage node outside the first region, then the first out-of-region identifier is generated.

[0062] Step 103: If the user category is a registered user outside the first area, determine whether the user's modification authorization certificate is stored in the first storage node. The first storage node is a user information storage node in the first area.

[0063] If the user is a registered user outside the first area, and the user is located in the first area, the user information modification request obtained for the user is a user modification request of a cross-area user. Since the user is a registered user outside the first area, the user information can be stored in a storage node outside the first area during registration. If the user information stored in the storage node outside the first area is modified in the first area, it is necessary to determine whether the user's modification authorization certificate is stored. The modification authorization certificate is a certificate for the user to authorize the modification of user information across regions. If the modification authorization certificate is stored, the user can modify the user information across regions. If the modification authorization certificate is not stored, the user cannot modify the user information across regions.

[0064] Optionally, if no modification authorization certificate is stored, an authorization authentication request is sent; and when a confirmation authorization instruction is generated based on the authorization authentication request, a modification authorization certificate of the user is generated. The confirmation authorization instruction is an authorization instruction generated after the user confirms to modify the user information of the user in the second storage node in the first area.

[0065] After obtaining the user information modification request, if the user category is a registered user outside the first area, it can be determined whether the user has authorized the cross-region modification of user information based on whether the modification authorization certificate is stored. If the modification authorization certificate is not stored, the user has not authorized the cross-region modification of user information. Then, a dialog box for authorization can be popped up to prompt the user whether to authorize the cross-region modification of user information. If the user clicks the authorization option in the dialog box to indicate that the user agrees to the authorization, the confirmation authorization instruction can be generated. In the case of generating a confirmation authorization instruction based on the authorization authentication request, a modification authorization certificate for the user is generated.

[0066] Step 104: If a modification authorization credential is stored, the modification authorization credential is sent to the second storage node to obtain permission to modify the user information of the user in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

[0067] Before modifying the user information, if the user is a registered user outside the first area, it is necessary to first determine whether there is a modification authorization certificate for the user. After determining that the modification authorization certificate for the user is stored, the modification authorization certificate is sent to the second storage node to obtain the authority to modify the user's user information in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request. The present invention can realize the modification of user information of users across regions by determining whether the modification authorization certificate is stored, thereby improving the user experience of user data.

[0068] As an optional implementation, after the user information is modified based on the user information modification request, the information of the first target type in the modified user information can be sent to the first storage node; and the information of the second target type in the modified user information can be sent to the second storage node; wherein the first target type and the second target type are different.

[0069] User information can be of multiple types, and different types of user information can be stored in different storage nodes. Based on this, the present invention can store user information in different storage nodes according to the type of user information. If the type of the modified user information is the first target type, the modified user information can be sent to the first storage node, and the first storage node can be a storage node within the first area. If the type of the modified user information is the second target type, the modified user information can be sent to the second storage node, and the second storage node can be a storage node outside the first area. The first target type and the second target type are different. The first target type can be one or more, and the second target type can also be one or more. Optionally, the first target type can be one or more of the user's nickname and avatar, and the second target type can be one or more of the user's mobile phone number, email address, password, age, and gender. By distinguishing storage nodes for storing user information, different user information of the user can be stored in multiple storage nodes, which can solve the problem of secure storage of user information.

[0070] In an optional embodiment, if the user category is a registered user outside the first area, user information corresponding to the first target type is queried from the first storage node based on the modified authorization credentials, and / or user information corresponding to the second target type is queried from the second storage node based on the modified authorization credentials.

[0071] When displaying user information to the user, if the user is a registered user outside the first area, the user information is stored in different storage nodes by type. At this time, based on the user's modified authorization credentials, if the user queries the user information of the first target type, since the user information of the first target type is stored in the first storage node, the user information corresponding to the first target type can be queried from the first storage node based on the modified authorization credentials. If the user queries the user information of the second target type, since the user information of the second target type is stored in the second storage node, the user information corresponding to the second target type can be queried from the second storage node based on the modified authorization credentials. Of course, if the user needs to display the user information of the first target type and the user information of the second target type, the user information corresponding to the first target type can be queried from the first storage node based on the modified authorization credentials, and the user information corresponding to the second target type can be queried from the second storage node based on the modified credentials.

[0072] With regard to the current problem that user information cannot be modified due to isolated storage of data in different areas, for example, if a user is located in a first area, and the user's name, mobile phone number, email address, etc. are stored in a second storage node outside the first area, and the user cannot obtain the user's mobile phone number and other information through the first storage node in the first area, the present invention can obtain the authority to modify the user information of the user in the second storage node when the user has the modification authorization certificate, thereby enabling the modification of the user information and improving the user data usage experience.

[0073] The present invention also provides a user information processing method, such as Figure 2 As shown, the method includes:

[0074] Step 201: Obtain a user information modification request from a user in a first area.

[0075] Step 201 is similar to step 101 and will not be described again.

[0076] Step 202: Determine the user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area.

[0077] Step 202 is similar to step 102 and will not be described again.

[0078] Step 203: If the user category is a registered user outside the first area, determine whether the user's modification authorization certificate is stored in the first storage node. The first storage node is a user information storage node in the first area.

[0079] Step 203 is similar to step 103 and will not be described again.

[0080] Step 204: If a modification authorization credential is stored, the modification authorization credential is sent to the second storage node to obtain permission to modify the user information of the user in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

[0081] Step 204 is similar to step 104 and will not be described again.

[0082] Step 205: If the user category is a registered user in the first area, the user information is modified based on the user information modification request to obtain modified user information; and the modified user information is sent to the first storage node for storage.

[0083] Step 206: Synchronously store the modified user information stored in the first storage node to the third storage node; wherein the third storage node is a storage node for the user information corresponding to the area where the user is located, and the area where the user is located is a partial area of ​​the first area.

[0084] If the user is located in the first region and is a registered user in the first region, the user information modification of the user is not a cross-region user information modification. At this time, it is not necessary to determine whether the user has the modification authorization certificate, and the user information can be modified directly based on the user information modification request, and the modified user information can be sent to the first storage node for storage.

[0085] If the modified user information is stored in the third storage node, the modified user information stored in the first storage node can be synchronously stored in the third storage node. The third storage node is a storage node for user information corresponding to the area where the user is located, and the area where the user is located is part of the first area.

[0086] Optionally, the method for determining that the modified user information is stored in the third storage node may be: based on the pre-stored correspondence between the region and the storage node, determining that the storage node corresponding to the first region is the third storage node. Since the modified user information will be directly stored in the first storage node instead of directly stored in the third storage node, after the first storage node stores the modified user information, the modified user information may be sent to the third storage node for storage.

[0087] When storing the modified user information in the third storage node, the following two methods can be used for storage:

[0088] Method 1: Based on the type of the modified user information, information to be synchronized of this type is obtained from the first storage node, and the information to be synchronized is synchronized to the third storage node.

[0089] Method 2: Send a database synchronization request to the first storage node; wherein the database synchronization request carries the database identifier of the first storage node and the identifier of the data table where the information to be synchronized is located; obtain the information to be synchronized sent by the first storage node, and then synchronize the information to be synchronized to the third storage node; wherein the information to be synchronized is the information that the first storage node locates and obtains the target database based on the database identifier of the first storage node, and finds from the target database based on the identifier of the data table.

[0090] Optionally, when the first storage node stores the modified user information, a database corresponding to the type of the modified user information may be determined according to the type of the modified user information, and the modified user information may be stored in the corresponding database.

[0091] Step 207: In response to the target information search request, if the user's target information is not found in the third storage node, the target information is searched in the first storage node.

[0092] The user's target information is stored in the first storage node, and then the first storage node sends the user's target information to the third storage node. When the data of the first storage node and the third storage node are not synchronized, the user's target information may not be stored in the third storage node. At this time, the user cannot find the target information from the third storage node. Since the target information is stored in the first storage node, the target information can be found in the first storage node. For example, the target information is modified user information, and the modified user information is stored in the first storage node. In the case of data synchronization failure between the first storage node and the third storage node, the modified user information may not be stored in the third storage node. If the target information the user is looking for is the modified user information, the modified user information cannot be found in the third storage node. In order to avoid the user not being able to find the data and reducing the user's data usage experience, the modified user information can be found in the first storage node when the user's target information is not found in the third storage node.

[0093] The present invention obtains a user information modification request from a user located in a first area, determines the user category of the user, and if the user category is a registered user outside the first area, determines whether a modification authorization certificate for the user is stored; if the modification authorization certificate is stored, the user information is modified based on the user information modification request, and if the user category is a registered user within the first area, the user information is modified based on the user information modification request to obtain the modified user information, thereby realizing user information modification for users within the area and across areas, and improving the user experience of user data.

[0094] The user information processing method provided by the present invention can be applied to the scenario where the user is overseas and uses an overseas APP to modify user information. It is divided into scenario 1 and scenario 2 according to whether the user is a domestic user or an overseas user. Among them, the overseas area corresponds to the inside of the first area, and the domestic area corresponds to the outside of the first area; the user information storage node of the overseas area is the first storage node, and the user information storage node of the domestic area is the second storage node; overseas users correspond to registered users in the first area, and domestic users correspond to registered users outside the first area; if there is an outside-first-area mark in the user information, the user is identified as a domestic user; if there is no outside-first-area mark in the user information, the user is an overseas user.

[0095] Scenario 1 is that a domestic user uses an overseas APP to modify user information in an overseas area. A user information modification request from an overseas user is obtained, and the user category of the user is determined to be a registered user outside the first area, that is, the user is a domestic user. When the user is a domestic user, it is determined whether the user's modification authorization certificate is stored in the user information storage node in the overseas area. If there is a modification authorization certificate, the certificate is sent and the permission to modify the user's user information in the user information storage node in the domestic area is obtained, so that the user information of the user stored in the user information storage node in the domestic area can be modified based on the user information modification request.

[0096] If the modified user information is the user's nickname and avatar information, the type of this information is the first target type, and this information can be sent to the user information storage node in the overseas area, that is, the information of the first target type is sent to the first storage node.

[0097] If the modified user information is the user's mobile phone number, email address, password and other information, the type of this information is the second target type, and this information can be sent to the user information storage node in the domestic area, that is, the second target type of information is sent to the second storage node.

[0098] When querying the user information of the user, since different types of information are stored in different storage nodes, the first target type of information can be queried from the first storage node and the second target type of information can be queried from the second storage node by modifying the authorization credential.

[0099] If the user's modification authorization certificate is not stored in the user information storage node in the overseas area, it is necessary to generate the user's modification authorization certificate after the user confirms to modify the user information of the user in the user information storage node in the domestic area in the overseas area.

[0100] Scenario 2 is that an overseas user modifies user information using an overseas APP in an overseas region. A user information modification request from an overseas user is obtained, and the user category of the user is determined to be a registered user in the first region, that is, the user is an overseas user. When the user is an overseas user, the user information can be modified directly based on the user information modification request, and the modified user information is sent to the user information storage node in the overseas region for storage, that is, sent to the first storage node for storage.

[0101] The first storage node stores user information of overseas areas. If the user is located in country A, country A is located in the overseas area. Of course, in addition to country A, there are also countries B, C and other countries in the overseas area. The user information storage node corresponding to country A can be the third storage node. The modified user information will be stored in the first storage node first, and then synchronized to the third storage node. If the user searches for the target information, it will first be searched from the third storage node. If the target information is not found, it means that the target information has not been successfully stored from the first storage node to the third storage node. At this time, the target information will be searched from the first storage node.

[0102] The present invention also provides a user information processing system, such as Figure 3 As shown, the system includes:

[0103] The modification request obtaining module 301 is configured to obtain a user information modification request from a user located in the first area.

[0104] The user category determination module 302 is configured to determine the user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area.

[0105] The user category determination module 302 is specifically configured to: obtain user information of the user based on the user identifier of the user; if a first out-of-area identifier is parsed from the user information, determine that the user category of the user is a registered user outside the first area; if the first out-of-area identifier is not parsed from the user information, determine that the user category of the user is a registered user within the first area; wherein the first out-of-area identifier represents that the user information is stored in the second storage node.

[0106] The modification authorization credential determination module 303 is configured to determine whether the modification authorization credential of the user is stored in the first storage node if the user category is a registered user outside the first area. The first storage node is a user information storage node in the first area.

[0107] The first information modification module 304 is configured to send the modification authorization certificate to the second storage node to obtain the authority to modify the user information of the user in the second storage node if the modification authorization certificate is stored, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

[0108] The system also includes:

[0109] The information sending module is configured to send information of a first target type in the modified user information to a first storage node; and send information of a second target type in the modified user information to a second storage node; wherein the first target type and the second target type are different.

[0110] The query module is configured to query user information corresponding to the first target type from the first storage node based on the modified authorization credentials if the user category is a registered user outside the first area, and / or query user information corresponding to the second target type from the second storage node based on the modified authorization credentials.

[0111] The modification authorization certificate generation module is configured to send an authorization authentication request if no modification authorization certificate is stored; and generate a user's modification authorization certificate when a confirmation authorization instruction is generated based on the authorization authentication request. The confirmation authorization instruction is an authorization instruction generated after the user confirms to modify the user information of the user in the second storage node in the first area.

[0112] The present invention also provides a user information processing system, such as Figure 4 As shown, the system includes:

[0113] The modification request obtaining module 401 is configured to obtain a user information modification request from a user located in the first area.

[0114] The user category determination module 402 is configured to determine the user category of the user; the user category identifies the user as a registered user outside the first area or a registered user within the first area.

[0115] The user category determination module 402 is specifically configured to: obtain user information of the user based on the user identifier of the user; if a first out-of-area identifier is parsed from the user information, determine that the user category of the user is a registered user outside the first area; if the first out-of-area identifier is not parsed from the user information, determine that the user category of the user is a registered user within the first area; wherein the first out-of-area identifier represents that the user information is stored in the second storage node.

[0116] The modification authorization credential determination module 403 is configured to determine whether the modification authorization credential of the user is stored in the first storage node if the user category is a registered user outside the first area. The first storage node is a user information storage node in the first area.

[0117] The first information modification module 404 is configured to send the modification authorization certificate to the second storage node to obtain the authority to modify the user information of the user in the second storage node if the modification authorization certificate is stored, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

[0118] The second information modification module 405 is configured to modify the user information based on the user information modification request to obtain modified user information if the user category is a registered user in the first area; and send the modified user information to the first storage node for storage.

[0119] Synchronization module 406: configured to synchronize and store the modified user information stored in the first storage node to the third storage node; wherein the third storage node is a storage node for user information corresponding to the area where the user is located, and the area where the user is located is a partial area of ​​the first area.

[0120] The information search module 407 is configured to respond to the target information search request and, if the user's target information is not found in the third storage node, search for the target information in the first storage node.

[0121] The system also includes:

[0122] The information sending module is configured to send information of a first target type in the modified user information to a first storage node; and send information of a second target type in the modified user information to a second storage node; wherein the first target type and the second target type are different.

[0123] The query module is configured to query user information corresponding to the first target type from the first storage node based on the modified authorization credentials if the user category is a registered user outside the first area, and / or query user information corresponding to the second target type from the second storage node based on the modified authorization credentials.

[0124] The modification authorization certificate generation module is configured to send an authorization authentication request if no modification authorization certificate is stored; and generate a user's modification authorization certificate when a confirmation authorization instruction is generated based on the authorization authentication request. The confirmation authorization instruction is an authorization instruction generated after the user confirms to modify the user information of the user in the second storage node in the first area.

[0125] Figure 5 A schematic diagram of the user information processing system architecture after a user category is a registered user in the first area initiating a user information modification request, such as Figure 5 As shown, the gateway layer receives the user information modification request and forwards it to the storage node corresponding to the area where the user is located. The storage node can be a computer room. Area C corresponds to the first storage node 52, area A corresponds to the third storage node 51, and area B corresponds to the fourth storage node 53. The first storage node 52 corresponding to area C stores the full amount of data, that is, the data in the first, third, and fourth storage nodes. Areas A, B, and C are all in the first area, and the corresponding storage node outside the first area is the second storage node (not shown in the figure). The traffic layer of each computer room performs request distribution operations to balance the load of each computer room. The application layer maintains two sets of MySQL connections, one is a read connection and the other is a write connection. The read connection points to the data layer of the computer room, and the write connection points to the data layer of the computer room corresponding to area C. The application layer can manage the MySQL data source based on the Sharding-JDBC framework and identify read requests and write requests according to SQL semantics. For write requests, such as user information modification requests, they can be automatically routed to the computer room corresponding to area C, thereby ensuring that the computer room in area C stores all data as the data writing center, while the database in the computer room in area A only stores data from area A, and the database in the computer room in area B only stores data from area B. After the modified user information is written to the database of the computer room corresponding to area C, the data can be synchronized to the computer room corresponding to the user's area for data storage. For read requests, such as user information query, since the data in the computer room in area C is synchronized, the information query operation can be completed in the computer room in area A or area B.

[0126] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned user information processing method is implemented.

[0127] An embodiment of the present invention provides an electronic device, such as Figure 6 As shown, the electronic device 60 includes at least one processor 601, at least one memory 602 and a bus 603 connected to the processor 601; wherein the processor 601 and the memory 602 communicate with each other through the bus 603; the processor 601 is used to call the program instructions in the memory 602 to execute the above-mentioned user information processing method. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0128] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps included in the above-mentioned user information processing method.

[0129] The present application is described with reference to the flowcharts and / or block diagrams of the methods, systems and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0130] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0131] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0132] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0134] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0135] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0136] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A user information processing method, characterized in that: include: Obtaining a user information modification request from a user located in the first area; determining a user category of the user; The user category identifies the user as a registered user outside the first area or a registered user within the first area; If the user category is a registered user outside the first area, determine whether the modification authorization certificate of the user is stored in the first storage node; wherein the first storage node is a user information storage node within the first area, and the modification authorization certificate is a certificate for the user to authorize cross-area modification of user information; If the modification authorization certificate is stored, the modification authorization certificate is sent to the second storage node to obtain the authority to modify the user information of the user in the second storage node, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein, the second storage node is a user information storage node outside the first area.

2. The user information processing method according to claim 1, characterized in that: Also includes: Sending information of the first target type in the modified user information to the first storage node; Sending the information of the second target type in the modified user information to the second storage node; The first target type and the second target type are different.

3. The user information processing method according to claim 2, characterized in that: Also includes: querying user information corresponding to the first target type from the first storage node based on the modification authorization credential, and / or, Based on the modification authorization credential, user information corresponding to the second target type is queried from the second storage node.

4. The user information processing method according to claim 1, characterized in that: Also includes: If the user category is a registered user in the first area, modifying the user information based on the user information modification request to obtain modified user information; The modified user information is sent to the first storage node for storage.

5. The user information processing method according to claim 4, characterized in that: After sending the modified user information to the first storage node for storage, the method further includes: Synchronously storing the modified user information stored in the first storage node to a third storage node; wherein the third storage node is a storage node for user information corresponding to the area where the user is located, and the area where the user is located is a partial area of ​​the first area; In response to the target information search request, if the target information of the user is not found in the third storage node, the target information is searched in the first storage node.

6. The user information processing method according to claim 1, characterized in that: Also includes: If the modification authorization credential is not stored, sending an authorization authentication request; In the case of generating a confirmation authorization instruction based on the authorization authentication request, generating the user's modification authorization certificate; wherein the confirmation authorization instruction is an authorization instruction generated after the user confirms to modify the user information of the user in the second storage node within the first area.

7. The user information processing method according to claim 1, characterized in that: The method for determining the user category of the user includes: Obtaining user information of the user based on the user identifier of the user; If a first out-of-region identifier is parsed from the user information, determining that the user category of the user is a registered user outside the first region; If the first out-of-region identifier is not parsed from the user information, the user category of the user is a registered user in the first region; The first out-of-area identifier indicates that the user information is stored in the second storage node.

8. A user information processing system, characterized in that: include: a modification request obtaining module, configured to obtain a user information modification request from a user located in the first area; A user category determination module, configured to determine the user category of the user; The user category identifies the user as a registered user outside the first area or a registered user within the first area; The modification authorization credential determination module is configured to determine whether the modification authorization credential of the user is stored in the first storage node if the user category is a registered user outside the first area; wherein the first storage node is a user information storage node in the first area, and the modification authorization credential is a credential of the user authorizing the modification of user information across areas; The first information modification module is configured to send the modification authorization certificate to the second storage node to obtain the authority to modify the user information of the user in the second storage node if the modification authorization certificate is stored, so as to modify the user information of the user stored in the second storage node based on the user information modification request; wherein the second storage node is a user information storage node outside the first area.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, and when the program is executed by the processor, the user information processing method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: At least one processor, and at least one memory and bus connected to the processor; The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the user information processing method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Group account data processing method, apparatus, apparatus, and readable storage medium

    CN108989063A