CN113553492A - Account processing method, device, equipment and storage medium - Google Patents

Account processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113553492A
CN113553492A CN202110875804.6A CN202110875804A CN113553492A CN 113553492 A CN113553492 A CN 113553492A CN 202110875804 A CN202110875804 A CN 202110875804A CN 113553492 A CN113553492 A CN 113553492A
Authority
CN
China
Prior art keywords
account
target
preset
mapping
mirror image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110875804.6A
Other languages
Chinese (zh)
Inventor
朱志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110875804.6A priority Critical patent/CN113553492A/en
Publication of CN113553492A publication Critical patent/CN113553492A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of artificial intelligence, and discloses an account processing method, device, equipment and storage medium, which are used for improving the account processing efficiency. The account processing method comprises the following steps: receiving an account number obtaining request sent by a terminal, and inquiring an account number corresponding to the account number obtaining request to obtain an initial account number; performing attribute field mapping on the initial account according to the attribute mapping relation table to obtain a mapping account; writing the mapping account into a preset account mirror image to obtain a target account; performing bidirectional comparison on the target account with the local account and the account mirror image respectively to obtain a comparison result; and determining the operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type on the target account. In addition, the invention also relates to a block chain technology, and the target account can be stored in the block chain node.

Description

Account processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of account processing, and in particular, to an account processing method, apparatus, device, and storage medium.
Background
With the development of the internet, the internet account is widely applied to the network as a unique identifier of a user, and the account plays an important role in embodying personalized data. For example, the account number may include profile data and network behavior data, and all data included in the account number also often have a certain relationship. For example, the data and network behavior data contained in a certain account may reflect the interest of the account.
The existing scheme reports the problems about the application program through the embedded points, and can only try to debug in a test environment, but the test environment is greatly different from a production environment, and many problems are caused by interface data, so that a real data account is not available, the problem is difficult to be solved, namely the processing efficiency of the account is low.
Disclosure of Invention
The invention provides an account processing method, device, equipment and storage medium, which are used for improving the account processing efficiency.
The invention provides an account processing method, which comprises the following steps: receiving an account number obtaining request sent by a terminal, and inquiring an account number corresponding to the account number obtaining request to obtain an initial account number; performing attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account; writing the mapping account into a preset account mirror image to obtain a target account; the target account is respectively subjected to bidirectional comparison with a preset local account and a preset account mirror image to obtain a comparison result; and determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type on the target account.
Optionally, in a first implementation manner of the first aspect of the present invention, the receiving an account acquisition request sent by a terminal, and querying an account corresponding to the account acquisition request to obtain a primary account includes: receiving an account number acquisition request sent by a terminal, calling a preset query function to query an account number corresponding to the account number acquisition request, obtaining a return value of the query function, and monitoring whether the return value of the query function is a preset target value; and if the return value of the query function is a preset target value, determining the account corresponding to the account acquisition request as the initial account.
Optionally, in a second implementation manner of the first aspect of the present invention, the performing attribute field mapping on the primary account according to a preset attribute mapping relationship table to obtain a mapped account includes: extracting attribute fields of the initial account to obtain account attribute fields; and performing equivalence mapping on the account attribute field based on a preset attribute mapping relation table to obtain a mapped account.
Optionally, in a third implementation manner of the first aspect of the present invention, writing the mapping account into a preset account mirror to obtain a target account includes: adding the mapping account into a preset account mirror image according to a preset account model, wherein the account model comprises a hash table; and looking up a table for the mapping account based on the hash table to obtain a target account corresponding to the mapping account.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the bidirectional comparing the target account with the preset local account and the preset account mirror image to obtain a comparison result includes: traversing a plurality of first account numbers in a preset local account number and a plurality of second account numbers in an account number mirror image; and comparing the plurality of first account numbers with the target account number, and comparing the plurality of second account numbers with the target account number to obtain a comparison result.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and performing the target operation corresponding to the operation type on the target account, the account processing method further includes: acquiring configuration information of the target operation and monitoring an information updating request, wherein the configuration information and the information updating request are in a one-to-one correspondence relationship; and when the information updating request is received, calling a preset configuration updating interface to update the configuration information.
The second aspect of the present invention provides an account processing apparatus, including: the query module is used for receiving an account acquisition request sent by a terminal, and querying an account corresponding to the account acquisition request to obtain a primary account; the mapping module is used for carrying out attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account; the processing module is used for writing the mapping account into a preset account mirror image to obtain a target account; the comparison module is used for performing bidirectional comparison on the target account number with a preset local account number and a preset account number mirror image respectively to obtain a comparison result; and the execution module is used for determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type on the target account.
Optionally, in a first implementation manner of the second aspect of the present invention, the query module is specifically configured to: receiving an account number acquisition request sent by a terminal, calling a preset query function to query an account number corresponding to the account number acquisition request, obtaining a return value of the query function, and monitoring whether the return value of the query function is a preset target value; and if the return value of the query function is a preset target value, determining the account corresponding to the account acquisition request as the initial account.
Optionally, in a second implementation manner of the second aspect of the present invention, the mapping module is specifically configured to: extracting attribute fields of the initial account to obtain account attribute fields; and performing equivalence mapping on the account attribute field based on a preset attribute mapping relation table to obtain a mapped account.
Optionally, in a third implementation manner of the second aspect of the present invention, the processing module is specifically configured to: adding the mapping account into a preset account mirror image according to a preset account model, wherein the account model comprises a hash table; and looking up a table for the mapping account based on the hash table to obtain a target account corresponding to the mapping account.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the comparison module is specifically configured to: traversing a plurality of first account numbers in a preset local account number and a plurality of second account numbers in an account number mirror image; and comparing the plurality of first account numbers with the target account number, and comparing the plurality of second account numbers with the target account number to obtain a comparison result.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the account processing device further includes: the monitoring module is used for acquiring configuration information of the target operation and monitoring an information updating request, wherein the configuration information and the information updating request are in a one-to-one correspondence relationship; and the updating module is used for calling a preset configuration updating interface to update the configuration information when the information updating request is received.
A third aspect of the present invention provides an account processing device, including: a memory and at least one processor, the memory having stored therein a computer program; the at least one processor calls the computer program in the memory to enable the processing device of the account to execute the processing method of the account.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the above-described account processing method.
According to the technical scheme provided by the invention, an account number obtaining request sent by a terminal is received, and an account number corresponding to the account number obtaining request is inquired to obtain an initial account number; performing attribute field mapping on the initial account according to the attribute mapping relation table to obtain a mapping account; writing the mapping account into a preset account mirror image to obtain a target account; performing bidirectional comparison on the target account with the local account and the account mirror image respectively to obtain a comparison result; and determining the operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type. In the embodiment of the invention, an account acquisition request sent by a terminal is queried to obtain a primary account, attribute field mapping is carried out on the primary account according to a preset attribute mapping relation table to obtain a mapping account, the mapping account is written into a preset account mirror image to obtain a target account which has one-to-one correspondence with the mapping account, the target account is respectively subjected to bidirectional comparison with a local account and the account mirror image to obtain a comparison result, an operation type needing to be operated on the target account is determined according to the comparison result, a corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed. According to the invention, the target account, the local account and the account mirror image are subjected to bidirectional comparison, so that the processing efficiency of the account is improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a processing method of an account in an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a processing method of an account according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an embodiment of a processing device of an account according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a processing device of an account according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a processing device of an account according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an account processing method, device, equipment and storage medium, which are used for improving the account processing efficiency. The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a method for processing an account according to the embodiment of the present invention includes:
101. receiving an account number obtaining request sent by a terminal, and inquiring an account number corresponding to the account number obtaining request to obtain an initial account number;
it is understood that the execution subject of the present invention may be a processing device of an account, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform. The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Specifically, after a terminal monitors an account acquisition request sent by a preset application program, a server calls a query function according to the account acquisition request, the server acquires an account corresponding to the account acquisition request through the query function, the server monitors whether a return value of the query function is a preset target value, and if the return value of the query function is the preset target value, the server determines that the query of the account corresponding to the account acquisition request is completed, so that an initial account is obtained.
102. Performing attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account;
specifically, when the server acquires the primary account, the server calls a preset attribute mapping relationship table to perform attribute field mapping on the primary account, so as to obtain a mapping account. It should be noted that attribute mapping relationship tables corresponding to different primary accounts may be different, where the attribute mapping relationship tables are preset, and when the server calls the attribute mapping relationship tables, the server obtains account attribute fields of the primary accounts, and maps the account attribute fields of the primary accounts into local attribute fields according to the attribute mapping relationship tables to obtain mapped accounts, where the account attribute fields include user names of the accounts, account types, group names of account groups to which the accounts belong, and group paths, and the account types include development accounts, test accounts, administrator accounts, and the like, and one account group has at least one account.
103. Writing the mapping account into a preset account mirror image to obtain a target account;
specifically, the server adds the mapping account to a preset account mirror image according to a preset account model in a local account to obtain a target account, wherein the account model is a hash table serving as a carrier, the account model is composed of nodes, a table node of each hash table is an account group or an account, when the table node of the hash table represents an account group, a child node exists in the table node, the table node is a root node of the child node, the child node represents an account in the account group, and the number of accounts in the account group is equal to the number of the child nodes corresponding to the table node.
104. Performing bidirectional comparison on the target account number with a preset local account number and a preset account number mirror image respectively to obtain a comparison result;
specifically, the server traverses a plurality of first accounts in preset local accounts and a plurality of second accounts in a traversal account mirror image, compares the first accounts with the target account to obtain a comparison result, further, the server traverses the plurality of second accounts in the account mirror image, monitors whether the target account exists in the account mirror image, and if the server monitors that the target account does not exist in the account mirror image, the target account is deleted by the service system, at this time, the target account can be determined as an account to be deleted, that is, the comparison result obtained at this time is the first account as the account to be deleted.
105. And determining the operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type.
Specifically, the server determines an operation type according to the comparison result, wherein the operation types corresponding to different comparison results are also different, the operation types are strings of numbers and/or letters, such as 001, 00-a and the like, the server generates corresponding target operations according to the operation types, the server executes the target operations corresponding to the operation types, further, after the server obtains the comparison result, the target account in the local account is managed according to the comparison result, if the comparison result is that the target account is the account to be deleted, the target operation generated by the server deletes the account to be deleted in the local account, and the server deletes the account to be deleted in the local account; if the comparison result is that the target account is not changed, the target operation generated by the server is not executed to the target account, and the server does not execute the operation to the target account; if the comparison result is that the target account is the account to be newly added, the target operation generated by the server is to newly add the account in the local account, and the server newly adds the account in the local account; and if the comparison result is the account to be determined, the target operation generated by the server is to determine the account in the local accounts, and the server determines the account in the local accounts.
Further, the server stores the target account number in a blockchain database, which is not limited herein.
In the embodiment of the invention, an account acquisition request sent by a terminal is queried to obtain a primary account, attribute field mapping is carried out on the primary account according to a preset attribute mapping relation table to obtain a mapping account, the mapping account is written into a preset account mirror image to obtain a target account which has one-to-one correspondence with the mapping account, the target account is respectively subjected to bidirectional comparison with a local account and the account mirror image to obtain a comparison result, an operation type needing to be operated on the target account is determined according to the comparison result, a corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed. According to the invention, the target account, the local account and the account mirror image are subjected to bidirectional comparison, so that the processing efficiency of the account is improved.
Referring to fig. 2, a second embodiment of the account processing method according to the embodiment of the present invention includes:
201. receiving an account number obtaining request sent by a terminal, and inquiring an account number corresponding to the account number obtaining request to obtain an initial account number;
specifically, the server receives an account number obtaining request sent by the terminal, calls a preset query function to query an account number corresponding to the account number obtaining request, obtains a return value of the query function, and monitors whether the return value of the query function is a preset target value; and if the return value of the query function is a preset target value, the server determines the account corresponding to the account acquisition request as the initial account. The server acquires an account corresponding to the account acquisition request according to a preset query function to obtain a return value of the query function, wherein the query function can acquire one user account of the application program and also can acquire a plurality of user accounts at each time. For example: the server sets a return value of a corresponding query function, which indicates that all the account numbers of the application program are acquired, to 0, and sets a return value of a corresponding query function, which indicates that the account numbers in the application program are not acquired, to 1; or the server sets the return value of the query function corresponding to the acquired account numbers of the application program to be 01, and sets the return value of the query function corresponding to the acquired account numbers of the application program to be 10. Further, the preset target value is a value corresponding to the fact that all the account numbers of the application program are obtained, the server monitors that the return value of the query function is the preset target value, the server determines that all the account numbers corresponding to the application program are obtained, namely the server determines that query operation for querying the account numbers in the application program through the query function is finished, and the server takes the account numbers obtained through current query as initial account numbers; if the server monitors that the return value of the query function is not the preset target value, the server determines that all the account numbers corresponding to the application program are not acquired, and the server continues to monitor whether the return value of the query function is the preset target value.
202. Performing attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account;
specifically, the server extracts attribute fields of the initial account to obtain account attribute fields; and the server performs equivalent mapping on the account attribute field based on a preset attribute mapping relation table to obtain a mapping account. The server maps the account attribute field into a local attribute field through equivalence mapping and/or custom mapping based on the attribute mapping relation table to obtain a mapped account, and further assigns the value of the account attribute field to the corresponding local attribute field by the equivalence mapping, for example: the attribute of a certain account is ID, the value is cloud, the required equivalence mapping is local username, after the equivalence mapping is finished, the attribute ID of the user is changed into username, and the value is cloud; the user-defined mapping means that a user can set mapping in a user-defined manner, and comprises the steps of splitting attribute values, then mapping and performing associated mapping through an ID. For example: when the account attribute field is unit, the account attribute field has three possible values: mapping the account attribute field into a local attribute field, wherein the angular color value corresponding to the account attribute field is a development, test and administrator, and the server configures a corresponding relationship through a customized mapping relationship, wherein the customized mapping relationship can be as follows: "develoop" corresponds to: development; "test" corresponds to: test, "admin" corresponds to: an administrator.
203. Writing the mapping account into a preset account mirror image to obtain a target account;
specifically, the server adds a mapping account to an account mirror image according to a preset account model, wherein the account model comprises a hash table; the server looks up the mapping account number based on the hash table to obtain a target account number corresponding to the mapping account number; the server has a corresponding node for each account in the account model, each account has a uniquely determined table look-up full path, the server looks up the mapping account through the table look-up full path based on the hash table to obtain a target account, the server accesses the root node of the full path, and the server recursively traverses all accounts in the account group corresponding to the root node through the sub-nodes corresponding to the root node. When an account mirror image is created, the server indexes the account based on the user name of the account as a key, in addition, if the server needs to index other attributes of the account, the server specifies an attribute set to be indexed when the mirror image is created, the mirror image can create a plurality of sub-tables, each target account has a corresponding role, and when the target account does not have an access right, the server cannot synchronize the target account.
204. Performing bidirectional comparison on the target account number with a preset local account number and a preset account number mirror image respectively to obtain a comparison result;
specifically, the server traverses a plurality of first account numbers in preset local account numbers and traverses a plurality of second account numbers in account number images; and the server compares the first account number with the target account number, and compares the second account number with the target account number to obtain a comparison result. The server respectively carries out bidirectional comparison on the first account, the second account and the target account to obtain a comparison result, and further, if the server monitors that the target account does not exist in an account mirror image, the obtained comparison result is the target account which is an account to be deleted; traversing each second account in the account mirror image; if the server monitors that the target account does not exist in the account mirror image, the server determines a comparison result as an account to be newly added; and if the server monitors that the target account exists in the account mirror image, determining an account consistent with the target account in the local account as an account to be determined.
205. Determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type;
specifically, the server determines an operation type according to the comparison result, wherein the operation types corresponding to different comparison results are also different, the operation types are strings of numbers and/or letters, such as 001, 00-a and the like, the server generates corresponding target operations according to the operation types, the server executes the target operations corresponding to the operation types, further, after the server obtains the comparison result, the target account in the local account is managed according to the comparison result, if the comparison result is that the target account is the account to be deleted, the target operation generated by the server deletes the account to be deleted in the local account, and the server deletes the account to be deleted in the local account; if the comparison result is that the target account is not changed, the target operation generated by the server is not executed to the target account, and the server does not execute the operation to the target account; if the comparison result is that the target account is the account to be newly added, the target operation generated by the server is to newly add the account in the local account, and the server newly adds the account in the local account; and if the comparison result is the account to be determined, the target operation generated by the server is to determine the account in the local accounts, and the server determines the account in the local accounts.
206. Acquiring configuration information of target operation, and monitoring an information updating request, wherein the configuration information and the information updating request are in a one-to-one correspondence relationship;
specifically, the server obtains configuration information of the target operation, and monitors whether an information updating request for updating the synchronization policy configuration information exists in real time or at regular time, wherein the configuration information and the information updating request are in a one-to-one correspondence relationship, the time length corresponding to the regular time can be set according to specific needs, and the updating request can be triggered by a user according to own needs and also can be triggered by a user corresponding to the application program and is sent to the server by the application program.
207. And when an information updating request is received, calling a preset configuration updating interface to update the configuration information.
Specifically, when an information update request is received, the server calls a preset configuration update interface to update the configuration information. For example: the server updates the attribute mapping relation table in the configuration information, and the server can update the account synchronization time interval in the configuration information. If the update request does not exist, the server monitors whether an account acquisition request exists or continues to monitor whether an information update request exists.
Further, the server stores the target account number in a blockchain database, which is not limited herein.
In the embodiment of the invention, an account acquisition request sent by a terminal is queried to obtain a primary account, attribute field mapping is carried out on the primary account according to a preset attribute mapping relation table to obtain a mapping account, the mapping account is written into a preset account mirror image to obtain a target account which has one-to-one correspondence with the mapping account, the target account is respectively subjected to bidirectional comparison with a local account and the account mirror image to obtain a comparison result, an operation type needing to be operated on the target account is determined according to the comparison result, a corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed. According to the invention, the target account, the local account and the account mirror image are subjected to bidirectional comparison, so that the processing efficiency of the account is improved.
With reference to fig. 3, a first embodiment of a processing apparatus for an account according to an embodiment of the present invention includes:
the query module 301 is configured to receive an account acquisition request sent by a terminal, and query an account corresponding to the account acquisition request to obtain an initial account;
the mapping module 302 is configured to perform attribute field mapping on the primary account according to a preset attribute mapping relationship table to obtain a mapping account;
the processing module 303 is configured to write the mapping account into a preset account mirror image to obtain a target account;
the comparison module 304 is configured to perform bidirectional comparison on the target account with a preset local account and a preset account mirror image, respectively, to obtain a comparison result;
an executing module 305, configured to determine an operation type according to the comparison result, generate a corresponding target operation according to the operation type, and execute the target operation corresponding to the operation type on the target account.
Further, the server stores the target account number in a blockchain database, which is not limited herein.
In the embodiment of the invention, an account acquisition request sent by a terminal is queried to obtain a primary account, attribute field mapping is carried out on the primary account according to a preset attribute mapping relation table to obtain a mapping account, the mapping account is written into a preset account mirror image to obtain a target account which has one-to-one correspondence with the mapping account, the target account is respectively subjected to bidirectional comparison with a local account and the account mirror image to obtain a comparison result, an operation type needing to be operated on the target account is determined according to the comparison result, a corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed. According to the invention, the target account, the local account and the account mirror image are subjected to bidirectional comparison, so that the processing efficiency of the account is improved.
Referring to fig. 4, a second embodiment of a processing apparatus for an account according to the embodiment of the present invention includes:
the query module 301 is configured to receive an account acquisition request sent by a terminal, and query an account corresponding to the account acquisition request to obtain an initial account;
the mapping module 302 is configured to perform attribute field mapping on the primary account according to a preset attribute mapping relationship table to obtain a mapping account;
the processing module 303 is configured to write the mapping account into a preset account mirror image to obtain a target account;
the comparison module 304 is configured to perform bidirectional comparison on the target account with a preset local account and a preset account mirror image, respectively, to obtain a comparison result;
an executing module 305, configured to determine an operation type according to the comparison result, generate a corresponding target operation according to the operation type, and execute the target operation corresponding to the operation type on the target account.
Optionally, the query module 301 is specifically configured to: receiving an account number acquisition request sent by a terminal, calling a preset query function to query an account number corresponding to the account number acquisition request, obtaining a return value of the query function, and monitoring whether the return value of the query function is a preset target value; and if the return value of the query function is a preset target value, determining the account corresponding to the account acquisition request as the initial account.
Optionally, the mapping module 302 is specifically configured to: extracting attribute fields of the initial account to obtain account attribute fields; and performing equivalence mapping on the account attribute field based on a preset attribute mapping relation table to obtain a mapped account.
Optionally, the processing module 303 is specifically configured to: adding the mapping account into a preset account mirror image according to a preset account model, wherein the account model comprises a hash table; and looking up a table for the mapping account based on the hash table to obtain a target account corresponding to the mapping account.
Optionally, the comparison module 304 is specifically configured to: traversing a plurality of first account numbers in a preset local account number and a plurality of second account numbers in an account number mirror image; and comparing the plurality of first account numbers with the target account number, and comparing the plurality of second account numbers with the target account number to obtain a comparison result.
Optionally, the account processing apparatus further includes: a monitoring module 306, configured to obtain configuration information of the target operation and monitor an information update request, where the configuration information and the information update request are in a one-to-one correspondence relationship; the updating module 307 is configured to invoke a preset configuration updating interface to update the configuration information when the information updating request is received.
Further, the server stores the target account number in a blockchain database, which is not limited herein.
In the embodiment of the invention, an account acquisition request sent by a terminal is queried to obtain a primary account, attribute field mapping is carried out on the primary account according to a preset attribute mapping relation table to obtain a mapping account, the mapping account is written into a preset account mirror image to obtain a target account which has one-to-one correspondence with the mapping account, the target account is respectively subjected to bidirectional comparison with a local account and the account mirror image to obtain a comparison result, an operation type needing to be operated on the target account is determined according to the comparison result, a corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed. According to the invention, the target account, the local account and the account mirror image are subjected to bidirectional comparison, so that the processing efficiency of the account is improved.
Fig. 3 and fig. 4 describe the processing apparatus of the account in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the following describes the processing apparatus of the account in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a processing device for an account according to an embodiment of the present invention, where the processing device 500 for an account may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of computer program operations in the processing device 500 for an account number. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of computer program operations in the storage medium 530 on the account processing device 500.
The account processing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the processing device configuration of the account illustrated in fig. 5 does not constitute a limitation of the processing device of the account and may include more or fewer components than illustrated, or some components may be combined, or a different arrangement of components.
The invention further provides an account processing device, which includes a memory and a processor, where the memory stores a computer-readable computer program, and when the computer-readable computer program is executed by the processor, the processor is caused to execute the steps of the account processing method in the foregoing embodiments.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, having stored thereon a computer program, which, when run on a computer, causes the computer to execute the steps of the account processing method.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several computer programs to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An account processing method is characterized by comprising the following steps:
receiving an account number obtaining request sent by a terminal, and inquiring an account number corresponding to the account number obtaining request to obtain an initial account number;
performing attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account;
writing the mapping account into a preset account mirror image to obtain a target account;
the target account is respectively subjected to bidirectional comparison with a preset local account and a preset account mirror image to obtain a comparison result;
and determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type on the target account.
2. The account processing method according to claim 1, wherein the receiving an account acquisition request sent by a terminal, and querying an account corresponding to the account acquisition request to obtain a primary account includes:
receiving an account number acquisition request sent by a terminal, calling a preset query function to query an account number corresponding to the account number acquisition request, obtaining a return value of the query function, and monitoring whether the return value of the query function is a preset target value;
and if the return value of the query function is a preset target value, determining the account corresponding to the account acquisition request as the initial account.
3. The account processing method according to claim 1, wherein the performing attribute field mapping on the primary account according to a preset attribute mapping relationship table to obtain a mapped account includes:
extracting attribute fields of the initial account to obtain account attribute fields;
and performing equivalence mapping on the account attribute field based on a preset attribute mapping relation table to obtain a mapped account.
4. The account processing method according to claim 1, wherein writing the mapping account into a preset account image to obtain a target account comprises:
adding the mapping account into a preset account mirror image according to a preset account model, wherein the account model comprises a hash table;
and looking up a table for the mapping account based on the hash table to obtain a target account corresponding to the mapping account.
5. The account processing method according to claim 1, wherein the bidirectional comparison between the target account and the preset local account and the preset account mirror image is performed to obtain a comparison result, and the method includes:
traversing a plurality of first account numbers in a preset local account number and a plurality of second account numbers in an account number mirror image;
and comparing the plurality of first account numbers with the target account number, and comparing the plurality of second account numbers with the target account number to obtain a comparison result.
6. The account processing method according to any one of claims 1 to 5, wherein after the operation type is determined according to the comparison result, the corresponding target operation is generated according to the operation type, and the target operation corresponding to the operation type is executed on the target account, the account processing method further includes:
acquiring configuration information of the target operation and monitoring an information updating request, wherein the configuration information and the information updating request are in a one-to-one correspondence relationship;
and when the information updating request is received, calling a preset configuration updating interface to update the configuration information.
7. An account processing device, comprising:
the query module is used for receiving an account acquisition request sent by a terminal, and querying an account corresponding to the account acquisition request to obtain a primary account;
the mapping module is used for carrying out attribute field mapping on the initial account according to a preset attribute mapping relation table to obtain a mapping account;
the processing module is used for writing the mapping account into a preset account mirror image to obtain a target account;
the comparison module is used for performing bidirectional comparison on the target account number with a preset local account number and a preset account number mirror image respectively to obtain a comparison result;
and the execution module is used for determining an operation type according to the comparison result, generating a corresponding target operation according to the operation type, and executing the target operation corresponding to the operation type on the target account.
8. The account processing apparatus according to claim 7, wherein the query module is specifically configured to:
receiving an account number acquisition request sent by a terminal, calling a preset query function to query an account number corresponding to the account number acquisition request, obtaining a return value of the query function, and monitoring whether the return value of the query function is a preset target value;
and if the return value of the query function is a preset target value, determining the account corresponding to the account acquisition request as the initial account.
9. An account processing device, comprising: a memory and at least one processor, the memory having stored therein a computer program;
the at least one processor invokes the computer program in the memory to cause a processing device of the account to perform the account processing method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a processing method for an account according to any one of claims 1 to 6.
CN202110875804.6A 2021-07-30 2021-07-30 Account processing method, device, equipment and storage medium Pending CN113553492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110875804.6A CN113553492A (en) 2021-07-30 2021-07-30 Account processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110875804.6A CN113553492A (en) 2021-07-30 2021-07-30 Account processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113553492A true CN113553492A (en) 2021-10-26

Family

ID=78133441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110875804.6A Pending CN113553492A (en) 2021-07-30 2021-07-30 Account processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113553492A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323277A (en) * 2014-07-09 2016-02-10 腾讯科技(深圳)有限公司 Application account management method, device and system
CN111314333A (en) * 2020-02-06 2020-06-19 深信服科技股份有限公司 Account management method, account management device, account management equipment and computer readable storage medium
US20200329049A1 (en) * 2019-04-09 2020-10-15 Twitter, Inc. Managing user identities in a managed multi-tenant service
CN111991813A (en) * 2020-08-28 2020-11-27 厦门雅基软件有限公司 Method and device for logging in game, electronic equipment and storage medium
CN112579956A (en) * 2020-12-17 2021-03-30 北京金山云网络技术有限公司 Website account management method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323277A (en) * 2014-07-09 2016-02-10 腾讯科技(深圳)有限公司 Application account management method, device and system
US20200329049A1 (en) * 2019-04-09 2020-10-15 Twitter, Inc. Managing user identities in a managed multi-tenant service
CN111314333A (en) * 2020-02-06 2020-06-19 深信服科技股份有限公司 Account management method, account management device, account management equipment and computer readable storage medium
CN111991813A (en) * 2020-08-28 2020-11-27 厦门雅基软件有限公司 Method and device for logging in game, electronic equipment and storage medium
CN112579956A (en) * 2020-12-17 2021-03-30 北京金山云网络技术有限公司 Website account management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112615849B (en) Micro-service access method, device, equipment and storage medium
CN109688120B (en) Dynamic authority management system based on improved RBAC model and Spring Security framework
CN107528872B (en) Data recovery method and device and cloud storage system
EP1589691B1 (en) Method, system and apparatus for managing computer identity
WO2017165018A1 (en) Automated event id field analysis on heterogeneous logs
KR20010110093A (en) Method, system and program products for automatically configuring clusters of a computing environment
KR20010109086A (en) Method, system and program products for managing a clustered computing environment
US9281992B2 (en) Method and system for identifying storage device
CN109656688B (en) Method, system and server for realizing distributed business rules
CN109976822A (en) Configuration method, device and the distributed system of Distributed Application
CN113204598B (en) Data synchronization method, system and storage medium
US20050033795A1 (en) Identifying resource and data instances in management systems
CN107992350B (en) Method and device for generating configuration overview page
CN116701330A (en) Logistics information sharing method, device, equipment and storage medium
CN110334103A (en) The update method of recommendation service provides device, access mechanism and recommender system
CN112217774A (en) Authority control system and method, server and storage medium
CN104239376A (en) Method and device for storing data
CN116974948A (en) Service system testing method, system, equipment and medium
CN113553492A (en) Account processing method, device, equipment and storage medium
CN114598680A (en) Domain name management method, device and storage medium
US20080208797A1 (en) Automated record attribute value merging from multiple directory servers
CN115563073A (en) Method and device for data processing of distributed metadata and electronic equipment
CN110493326B (en) Zookeeper-based cluster configuration file management system and method
CN109117152B (en) Service generation system and method
US9311367B2 (en) Database extension structure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination