Information processing method and device, server and computer readable storage medium
By constructing a parent-child relationship between IDs to automatically unbind the target ID and its child node IDs, the problem of data discrepancies in the system when user IDs change is solved, improving unbinding efficiency and system accuracy.
Patent Information
- Application Number
- CN202211321396.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-10-26
AI Technical Summary
The existing system cannot efficiently unbind related account IDs when user IDs change, resulting in data discrepancies and affecting the accuracy of analysis, operation, and recommendation systems. Furthermore, manual unbinding by users is costly and inefficient.
By establishing parent-child relationships between IDs, when responding to information unbinding commands, the target ID and its child node IDs are determined and unbound simultaneously, improving unbinding efficiency.
It enables automatic unbinding of the target ID and its child node IDs when the user ID changes, reducing manual user operations, improving unbinding efficiency, reducing data discrepancies, and enhancing system accuracy.
Smart Images

Figure CN115658974B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to an information processing method and device, a server and a computer readable storage medium. BACKGROUND
[0002] Most of the existing systems basically only consider how to associate users, and do not consider the scenario that the user ID changes in actual business. For example, the user will replace the bound mobile phone number, and will also replace the bound new WeChat account. When such a scenario occurs, most systems cannot delete the ID of the mobile phone number or WeChat account that has been associated in the system, and for the ID of the mobile phone number, WeChat account and the like, other account IDs are also bound. When the ID of the mobile phone number, WeChat account and the like is deleted, the bound account ID also needs to be deleted. If left unattended, it will cause data differences between the analysis system and the business system, and over time, the data differences will gradually expand, seriously affecting the accuracy of the analysis, operation, recommendation and the like. If such an operation is left to the user to delete in turn, the cost will be high and the efficiency will be extremely low, so it is necessary to simplify the user's operation to a certain extent and improve the efficiency. SUMMARY
[0003] The information processing method provided by the present application can improve the unbinding efficiency by constructing the parent-child relationship between the IDs and simultaneously unbinding the target ID and the child node ID of the target ID when the target ID to be unbound by the user is obtained.
[0004] In a first aspect, the present application provides an information processing method, comprising:
[0005] In response to an information unbinding instruction, determining a target ID corresponding to the information unbinding instruction;
[0006] Determining whether the target ID has a parent-child relationship, the parent-child relationship being constructed according to the target type of the ID and the ID hierarchical relationship corresponding to the target type;
[0007] If the target ID has a parent-child relationship, determining a child node ID of the target ID according to the parent-child relationship;
[0008] Unbinding the target ID and the child node ID.
[0009] In some embodiments of the present application, before the step of determining the target ID corresponding to the information unbinding instruction in response to the information unbinding instruction, the method further comprises:
[0010] Determining the type of each ID;
[0011] For each ID, according to the type of the ID, determine whether there is a target hierarchical relationship corresponding to the type of the ID;
[0012] If the target hierarchical relationship exists, obtain an associated ID associated with the ID, and according to the target hierarchical relationship, determine whether there is a target associated ID adjacent to the level of the ID in the associated ID; the associated ID is an ID of the same object as the ID;
[0013] If there is a target associated ID adjacent to the level of the ID, establish a parent-child relationship between the ID and the target associated ID.
[0014] In some embodiments of the present application, if there is a target associated ID adjacent to the level of the ID, the parent-child relationship between the ID and the target associated ID is established, comprising:
[0015] Determine whether the ID has an established target parent-child relationship, and whether the parent-child associated ID in the target parent-child relationship is the same as the target associated ID;
[0016] If the target parent-child relationship does not exist and / or the parent-child associated ID in the target parent-child relationship is not the same as the target associated ID, determine the hierarchical relationship between the target associated ID and the ID;
[0017] If the hierarchical relationship between the target associated ID and the ID indicates that the level of the target associated ID is higher than the level of the ID, determine that the target associated ID is the parent node of the ID, and establish the parent-child relationship between the ID and the target associated ID;
[0018] If the hierarchical relationship between the target associated ID and the ID indicates that the level of the target associated ID is lower than the level of the ID, determine that the target associated ID is the child node of the ID, and establish the parent-child relationship between the ID and the target associated ID.
[0019] In some embodiments of the present application, the determination of the hierarchical relationship between the target associated ID and the target ID comprises:
[0020] According to the type information of the target associated ID, determine the theoretical quantity of the target associated ID;
[0021] If the actual quantity of the target associated ID is greater than the theoretical quantity, give up establishing the parent-child relationship, and prompt an error;
[0022] If the actual quantity of the target associated ID is not greater than the theoretical quantity, determine the hierarchical relationship between the target associated ID and the target ID.
[0023] In some embodiments of the present application, before determining the target ID corresponding to the information unbinding instruction in response to the information unbinding instruction, the method further comprises:
[0024] receiving an information unbinding instruction sent by a target terminal; and / or,
[0025] triggering the information unbinding instruction when any ID is found to have changed; the ID that has changed is the target ID.
[0026] In some embodiments of the present application, triggering the information unbinding instruction when any ID is found to have changed comprises:
[0027] for each ID, if the number of the ID is found to have changed, determining the ID as the target ID and triggering the information unbinding instruction of the target ID.
[0028] In some embodiments of the present application, triggering the information unbinding instruction when any ID is found to have changed comprises:
[0029] for each ID, if a modification record of the ID is found, determining the ID as the target ID and triggering the information unbinding instruction of the target ID.
[0030] In a second aspect, the present application further provides an information processing apparatus, which comprises:
[0031] a first determining module configured to determine a target ID corresponding to an information unbinding instruction in response to the information unbinding instruction;
[0032] a second determining module configured to determine whether the target ID has a parent-child relationship, the parent-child relationship being constructed according to a target type of the ID and an ID hierarchical relationship corresponding to the target type;
[0033] a third determining module configured to determine a child node ID of the target ID according to the parent-child relationship if the target ID has the parent-child relationship;
[0034] an unbinding module configured to unbind the target ID and the child node ID.
[0035] In some embodiments of the present application, the information processing apparatus can further comprise an association module, which is specifically configured to:
[0036] determine the type of each ID;
[0037] for each ID, determine whether there is a target hierarchical relationship corresponding to the type of the ID according to the type of the ID;
[0038] if the target hierarchical relationship exists, obtaining an associated ID associated with the ID, and determining whether a target associated ID adjacent to the hierarchical level of the ID exists in the associated ID according to the target hierarchical relationship; the associated ID is an ID of the same object as the ID;
[0039] if the target associated ID adjacent to the hierarchical level of the ID exists, establishing a parent-child relationship between the ID and the target associated ID.
[0040] In some embodiments of the present application, the association module is specifically further used for:
[0041] determining whether a target parent-child relationship has been established for the ID, and whether a parent-child associated ID in the target parent-child relationship is the same as the target associated ID;
[0042] if the target parent-child relationship does not exist and / or the parent-child associated ID in the target parent-child relationship is not the same as the target associated ID, determining a hierarchical relationship between the target associated ID and the ID;
[0043] if the hierarchical relationship between the target associated ID and the ID indicates that the hierarchical level of the target associated ID is higher than the hierarchical level of the ID, determining that the target associated ID is a parent node of the ID, and establishing a parent-child relationship between the ID and the target associated ID;
[0044] if the hierarchical relationship between the target associated ID and the ID indicates that the hierarchical level of the target associated ID is lower than the hierarchical level of the ID, determining that the target associated ID is a child node of the ID, and establishing a parent-child relationship between the ID and the target associated ID.
[0045] In some embodiments of the present application, the association module is specifically further used for:
[0046] determining a theoretical quantity of the target associated ID according to type information of the target associated ID;
[0047] if the actual quantity of the target associated ID is greater than the theoretical quantity, giving up establishing a parent-child relationship, and performing error prompting;
[0048] if the actual quantity of the target associated ID is not greater than the theoretical quantity, determining a hierarchical relationship between the target associated ID and the target ID.
[0049] In some embodiments of the present application, the information processing apparatus can further include an unbinding information triggering module, which is specifically used for:
[0050] receiving an information unbinding instruction sent by a target terminal; and / or,
[0051] When it is monitored that any ID is changed, the information unbinding instruction is triggered; the changed ID is the target ID.
[0052] In some embodiments of the present application, the unbinding information determination module is further configured to:
[0053] For each ID, if it is monitored that the number of the ID is changed, the ID is determined as the target ID, and the information unbinding instruction of the target ID is triggered.
[0054] In some embodiments of the present application, the unbinding information determination module is further configured to:
[0055] For each ID, if it is monitored that the ID has a modification record, the ID is determined as the target ID, and the information unbinding instruction of the target ID is triggered.
[0056] In a third aspect, the embodiments of the present application further provide a server, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the information processing method.
[0057] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the information processing method.
[0058] The information processing method provided by the present application can correspond to the corresponding information unbinding instruction, and determine the target ID to be unbound. Meanwhile, it can also determine whether the target ID to be unbound has an associated child node ID, and if the corresponding child node ID exists, the child node ID can be unbound together with the target ID when the target ID is unbound, without manual unbinding by the user, thereby improving the unbinding efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.
[0060] Figure 1 is a scene schematic diagram of the information processing system provided in the embodiments of the present application;
[0061] Figure 2 is a flowchart of an embodiment of the information processing method in the embodiments of the present application;
[0062] Figure 3 is a schematic diagram of one functional module of the information processing device in the embodiments of the present application;
[0063] Figure 4 is a schematic diagram of the structure of the server in the embodiments of the present application. DETAILED DESCRIPTION
[0064] The technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0065] In the description of the present application, it should be understood that the terms "first", "second" are used only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0066] In the present application, the word "exemplary" is used to mean "serving as an example, instance, or illustration". Any implementation described as "exemplary" in the present application is not necessarily to be construed as preferred or advantageous over other implementations. It should also be understood that, in the specific embodiments of the present application, the data related to user information, user data, etc. When the above embodiments of the present application are applied to specific products or technologies, the user's permission or consent needs to be obtained, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of the country and region.
[0067] In order for any person skilled in the art to be able to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that those skilled in the art can realize the present application without using these specific details. In other examples, well-known structures and processes will not be described in detail to avoid unnecessary details making the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope that meets the principles and characteristics disclosed in the present application.
[0068] Please refer to Figure 1 , Figure 1The scene schematic diagram of the information processing method provided by the embodiment of the application, the information processing system can include a server 100 and a storage device 200, the server 100 and the storage device 200 are communicatively connected, the server 100 can transmit data to the storage device 200, and the storage device 200 can also transmit data to the server 100, such as Figure 1 The server 100 in the embodiment of the application can obtain the ID information stored in the storage device 200 to process the information processing method mentioned in the application.
[0069] In the embodiment of the application, the server 100 includes but is not limited to a stand-alone server, and can also be a server network or a server cluster composed of servers, and includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of a plurality of servers. The cloud server can be composed of a large number of computers or network servers based on cloud computing.
[0070] In the embodiment of the application, the server 100 and the storage device 200 can communicate through any communication mode, including but not limited to mobile communication based on the third generation partnership project (3rd Generation Partnership Project, 3GPP), long term evolution (Long Term Evolution, LTE) and worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, WiMAX), or computer network communication based on TCP / IP protocol suite (TCP / IP), user datagram protocol (User Datagram Protocol, UDP) and the like.
[0071] Those skilled in the art can understand that Figure 1 The application environment shown in the embodiment of the application is only one application scenario of the application scheme, and does not constitute a limitation on the application scenario of the application scheme, and other application environments can include more or fewer servers and background devices than Figure 1 The application environment shown in the embodiment of the application is only one application scenario of the application scheme, and does not constitute a limitation on the application scenario of the application scheme, and other application environments can include more or fewer servers and background devices than Figure 1 The information processing system can also include one or more other servers and servers that can process data, and the specific embodiments are not limited here.
[0072] It should be noted that Figure 1The scenario diagram of the information processing system shown is only an example, and the information processing system and scenario described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, as the information processing system evolves and new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0073] As shown in Figure 2 Figure 2 This is an embodiment flow diagram of the information processing method in the embodiments of the present application. The information processing method can include the following steps 201-204.
[0074] 201, in response to the information unbinding instruction, determining the target ID corresponding to the information unbinding instruction.
[0075] The information unbinding instruction in the embodiments of the present application can refer to any instruction for unbinding an ID. The instruction can be sent to the device, system or equipment corresponding to the information processing method by the target terminal of the user.
[0076] Of course, the device, system or equipment corresponding to the information processing method can also carry a preset unbinding instruction generation module. The unbinding instruction generation module can monitor the target terminal of the user in real time. When the target terminal of the user executes some target instructions of the user, for example, the user modifies the identity information of the user through the target terminal, at this time, the unbinding instruction generation module can monitor the behavior of the user modifying the identity information, so that the unbinding instruction generation module can generate the corresponding information unbinding instruction, at this time, the unbinding instruction generation module can send the generated information unbinding instruction to the corresponding processing module in the device, system or equipment corresponding to the information processing method, for information processing.
[0077] 202, determining whether the target ID has a parent-child relationship, the parent-child relationship being constructed according to the target type of the ID and the ID hierarchical relationship corresponding to the target type.
[0078] When the ID information needs to be processed subsequently, it is necessary to detect the ID subordinate to the target ID, that is, to determine whether the target ID has a parent-child relationship ID. In other words, it is necessary to confirm whether the target ID is a parent node ID of other ID or a child node ID of other ID, the purpose being to simultaneously perform corresponding processing on the parent-child IDs associated with the target ID when the target ID is processed.
[0079] It should be noted that the target type of the ID can include a mobile phone ID, an email ID, a WeChat ID, etc. Different types of IDs represent different types of IDs, and different types of IDs may have certain subordinate characteristics at the beginning of creation. For example, in the WeChat ecosystem, in addition to the WeChat itself, there are various applets, and the applet login ID of these applets can be logged in through the WeChat ID or temporarily create a new login ID for login. If the user creates a new login ID, although the login ID is not the same as the WeChat ID, the login ID is logged in through the WeChat, and they belong to the same user. At this time, the login ID is subordinate to the WeChat ID. As can be seen, the login ID and the WeChat ID are different in type, and the hierarchical relationship between the login ID and the WeChat ID is that the login ID is a subordinate ID of the WeChat ID. Therefore, when constructing the relationship of the ID, the parent-child relationship of the ID can be constructed according to the type of the ID and the hierarchical relationship of the type. For the mobile phone ID, the email ID and the WeChat ID, although the types are different, they do not have the characteristics of subordinate relationship, so if the user is the same, the three can be associated with each other.
[0080] In addition, since the parent-child relationship between the IDs is constructed in advance, when the parent-child ID construction is completed, the relationship between the IDs can be stored so that when needed, it can be determined whether there is a parent-child relationship between the IDs. Among them, the relationship between the IDs can be stored through a relationship lookup table, or through a relationship tree diagram, or any form that can store the relationship of the ID, which is not limited here. When it is necessary to check the relationship between the IDs, by reading the already stored relationship between the IDs, it can be determined whether the target ID has a parent-child relationship ID.
[0081] 203、If the target ID has a parent-child relationship, the child node ID of the target ID is determined according to the parent-child relationship.
[0082] According to the above steps, the parent-child relationship between the IDs has been stored, so the stored relationship lookup table, relationship tree diagram, etc. are used for searching.
[0083] Specifically, if the target ID is determined, the target ID can be searched in the relationship lookup table. When the target ID is searched in the lookup table, the target position of the target ID in the lookup table can be determined, and then it is determined whether the child target position of the target position exists in the associated position of the target position. For example, each cell in the table can be numbered, and one cell corresponds to one number. The number of the top-level ID can be 1-1, that is, the ID without parent node ID is 1-1. If the table number of the ID is 1-1, the child node ID can be 1-1-1, 1-1-2, 1-1-3, etc. When the child node ID 1-1-1 also has a corresponding child node ID, the child node ID number can be 1-1-1-1, 1-1-1-2, 1-1-1-3, etc. This is true for all levels.
[0084] In addition, if the storage form is a relationship tree diagram, the subordinate relationship of the branch node of the relationship tree diagram can be detected, that is, the ID on the branch point has a parent-child relationship with the adjacent branch point. For example, if the target ID corresponds to the current branch point, and there is an adjacent upper-level branch point, then the target ID is the child node ID of the upper-level branch point. If the target ID corresponds to the current branch node, and there is a next-level adjacent next-level branch point, then the target ID is the parent node ID of the next-level branch point.
[0085] 204, the target ID and the child node ID are unbound.
[0086] According to the above embodiment, when there is a parent-child relationship between the IDs, it can be determined that the IDs that are parent-child relationship belong to the same user. Therefore, when the target ID needs to be unbound, it can be proved that the child node ID corresponding to the target ID also needs to be unbound, so there is no need to issue an instruction to unbind the corresponding child node ID. For example, if the target ID has multiple child node IDs, and each child node ID also has multiple child node IDs, if the target ID needs to be unbound, the target ID and all corresponding child node IDs, and all child node IDs corresponding to the child node IDs can be directly unbound. In other words, if the target ID has a first-level child node ID, a second-level child node ID, a third-level child node ID, etc., all levels of child node IDs can be directly unbound regardless of the level of the child node ID. It should be noted that the first-level child node ID is the parent node ID of the second-level child node ID, the second-level child node ID is the parent node ID of the third-level child node ID, and so on.
[0087] In addition, the target ID can be in a binding relationship with a target user or a target device, and the unbinding means associating the target ID with the bound user or device. After unbinding, the target ID and the corresponding child node ID can be deleted or retained. Specifically, it can be determined whether the target ID or the corresponding child node ID needs to be associated again. If the target ID and the corresponding child node ID need to be associated again, the unbound target ID and the corresponding child node ID can be retained. If the target ID and the corresponding child node ID do not need to be associated again, the target ID and the corresponding child node ID can be deleted to save data storage space.
[0088] In addition, if only the target ID and the first-level child node ID are unbound, and the second-level child node ID and the third-level child node ID are not unbound, only the target ID and the first-level child node ID and the corresponding user or device are unbound at this time. At this time, the second-level child node can be associated with the user or device as an ID without a parent node ID.
[0089] The information processing method provided in the application can correspond to the corresponding information unbinding instruction and determine the target ID to be unbound. At the same time, it can also be determined whether the target ID to be unbound has an associated child node ID. If there is a corresponding child node ID, the child node ID can be unbound together when the target ID is unbound, without the need for the user to manually unbind, thereby improving the unbinding efficiency.
[0090] In order to better implement the embodiments of the application, in one embodiment of the application, in response to the information unbinding instruction, before determining the target ID corresponding to the information unbinding instruction, the method further comprises:
[0091] determining the type of each ID; for each ID, determining whether there is a target hierarchical relationship corresponding to the type of the ID according to the type of the ID; if there is a target hierarchical relationship, obtaining an associated ID associated with the ID, and determining whether there is a target associated ID adjacent to the level of the ID in the associated ID according to the target hierarchical relationship; the associated ID is an ID of the same object as the ID; if there is a target associated ID adjacent to the level of the ID, a parent-child relationship is established between the ID and the target associated ID.
[0092] In the embodiments of the present application, determining the target type of the target ID can be understood as determining the type of the target ID. Since different IDs have different characteristics, the type of the ID can be determined according to the characteristics of the ID itself. For example, a mobile phone number is 11 digits, so when a characteristic ID of 11 digits is detected, it can be determined that the target ID is a mobile phone number; or an email ID will always contain an “@”, so when an ID carrying an “@” symbol is detected, it can be determined that the ID type is an email. Therefore, when determining the type of the ID, the relevant characteristics of the ID itself can be used for determination, and specific details are not repeated here. Of course, the type of the ID can also be determined according to the source of the ID. For example, if the source of the target ID is WeChat, then the target ID is a WeChat ID; or if the source of the target ID is a WeChat applet, then the target ID can be a WeChat applet login ID, and so on.
[0093] According to the above embodiments, IDs such as WeChat IDs and WeChat applet IDs that have a subordinate relationship have a parent-child relationship, so a hierarchical relationship table can be established in advance to determine whether different ID types have conditions for forming a parent-child relationship. If so, it is determined that there is a target hierarchical relationship between the two IDs. The specific way of determining the hierarchical relationship according to the table is the same as the way of determining whether there is a parent node ID or a child node ID in the above embodiments, and details are not repeated here.
[0094] When it is determined that the type of the target ID can construct a related parent node ID type or child node ID type, the two are constructed into a parent-child relationship and stored. It should be noted that the adjacent relationship mentioned in the embodiments of the present application refers to the fact that there is no cross-level parent-child relationship between two IDs. For example, the first-level child node ID, the second-level child node ID, and the third-level child node ID mentioned in the above embodiments, where the first-level child node ID and the second-level child node ID are parent-child relationship, the second-level child node ID and the third-level child node ID are parent-child relationship, and the first-level child node ID and the third-level child node ID are indirect parent-child relationship, not direct parent-child relationship.
[0095] In order to better implement the embodiments of the present application, in one embodiment of the present application, if there is a target associated ID adjacent in the hierarchy of the ID, a parent-child relationship is established between the ID and the target associated ID, including:
[0096] determining whether the ID exists an established target parent-child relationship and whether the parent-child association ID in the target parent-child relationship is identical to the target association ID; if the target parent-child relationship does not exist and / or the parent-child association ID in the target parent-child relationship is not identical to the target association ID, determining the hierarchical relationship between the target association ID and the ID; if the hierarchical relationship between the target association ID and the ID indicates that the level of the target association ID is higher than the level of the ID, determining that the target association ID is the parent node of the ID and establishing the parent-child relationship between the ID and the target association ID; if the hierarchical relationship between the target association ID and the ID indicates that the level of the target association ID is lower than the level of the ID, determining that the target association ID is the child node of the ID and establishing the parent-child relationship between the ID and the target association ID.
[0097] According to the above embodiment, the target ID can exist a parent node ID or a child node ID. If the type of the target ID is determined to be only a parent node ID or only a child node ID of a certain ID type, the superior adjacent relationship or the inferior adjacent relationship of the target ID does not need to be determined, and the parent-child relationship can be directly constructed according to the corresponding ID information.
[0098] However, in specific cases, a target ID can be a parent node ID of an ID and a child node ID of an ID, so that the position of the target ID in the hierarchical relationship can be determined, and it is determined whether the target ID needs to be determined as a parent node ID or a child node ID of a certain ID.
[0099] Specifically, after the hierarchical relationship of the target ID is determined, the parent-child relationship can be constructed, and the construction manner is the same as the above embodiment, and the manner of determining the hierarchical relationship is the same as the above embodiment, which will not be described here.
[0100] In order to better implement the embodiment of the application, in an embodiment of the application, the hierarchical relationship between the target association ID and the target ID is determined, comprising:
[0101] According to the type information of the target association ID, the theoretical quantity of the target association ID is determined; if the actual quantity of the target association ID is greater than the theoretical quantity, the parent-child relationship is abandoned, and an error prompt is performed; if the actual quantity of the target association ID is not greater than the theoretical quantity, the hierarchical relationship between the target association ID and the target ID is determined.
[0102] In the embodiments of the present application, there can also be multiple associated IDs corresponding to the target ID, for example: in the WeChat ecosystem, one WeChat ID can log in multiple different mini-programs, and the number of mini-programs is large. Therefore, the number of different ID types is different. For example, a user can have one WeChat ID, two WeChat IDs, or even three WeChat IDs, but it is basically impossible to have ten WeChat IDs. However, for mini-programs, there are many mini-programs, and a WeChat ID can log in dozens or even hundreds of mini-programs, so there can be dozens or even hundreds of IDs used to log in mini-programs.
[0103] Therefore, for different types of IDs, a number threshold can be set in advance, and each type of ID can correspond to a number threshold. When it is determined that a certain ID is a target ID or a target associated ID, the number threshold corresponding to the type of the ID can be determined according to the type of the ID. When the number of IDs of the type exceeds the corresponding number threshold, it can be determined that the IDs of the type are abnormal, that is, an error prompt can be given to the set terminal. When the number of IDs of the type does not exceed the number threshold, it can be determined that the current ID meets the corresponding condition, and the parent-child relationship can be constructed.
[0104] In order to better implement the embodiments of the present application, in one embodiment of the present application, in response to the information unbinding instruction, before determining the target ID corresponding to the information unbinding instruction, the method further comprises:
[0105] receiving an information unbinding instruction sent by a target terminal; and / or, when it is monitored that any one ID changes, triggering the information unbinding instruction; the ID that changes is a target ID.
[0106] In the embodiments of the present application, the target terminal can be a user's server, and when the user sends a corresponding ID information unbinding instruction through the server, it can be directly determined that the user himself needs to unbind the related binding information. Therefore, according to the information unbinding instruction sent by the user's server, the target ID information that needs to be unbound can be determined, and then it is determined whether the target ID has a parent-child relationship. If the target ID has a corresponding child node ID, the target ID and the related data of the user can be unbound, and the child node ID can be unbound at the same time.
[0107] In addition, sometimes the user forgets to send a corresponding unbinding instruction when changing ID information or when trading the user's own ID information. At this time, the system can automatically detect whether the user's ID information is abnormal or changed, for example, when the mobile phone number bound to the user's WeChat ID is changed, it can be considered that the user's mobile phone ID is abnormal. At this time, if the user's mobile phone ID is changed and the user does not send a corresponding information unbinding instruction within a certain period of time, it can be considered that the user forgets to send the unbinding instruction. At this time, the system can unbind the changed ID and the related data of the target user. When unbinding the changed ID, the changed ID can also be detected to determine whether the changed ID has a corresponding child node ID. If the changed ID has a corresponding child node ID, the child node ID of the changed ID can be unbound at the same time.
[0108] In order to better implement the embodiments of the present application, in an embodiment of the present application, when it is monitored that any ID is changed, an information unbinding instruction is triggered, including:
[0109] For each ID, if it is monitored that the number of the ID is changed, it is determined that the ID is a target ID, and an information unbinding instruction of the target ID is triggered.
[0110] The above embodiment provides a technical solution of ID unbinding when the ID is changed. However, since the above embodiment also describes that the number of different ID types is associated with the ID itself. Therefore, not only when the ID is changed, but also when the number of the ID is increased or decreased, it can be considered as a way of judging an abnormality. For example, the user unbinds the WeChat ID and the mobile phone ID by an unusual means, or additional mobile phone IDs are added. At this time, it can be considered that the user's mobile phone ID is abnormal, such as being maliciously used, and in order to protect the safety of the user, the user's mobile phone ID and the WeChat ID can be unbound. Similarly, if the mobile phone ID has a child node ID, the child node ID can also be unbound.
[0111] In order to better implement the embodiments of the present application, in an embodiment of the present application, when it is monitored that any ID is changed, an information unbinding instruction is triggered, including:
[0112] For each ID, if it is monitored that the number of the ID is changed, it is determined that the ID is a target ID, and an information unbinding instruction of the target ID is triggered.
[0113] In the above embodiments, a technical solution is provided for monitoring whether the ID information of a user is changed, thereby performing unbinding. However, sometimes the system has high resource occupation and cannot timely unbind the ID information of the user. Therefore, if the user changes the ID, the change behavior of the user can be recorded, and when the resource occupation of the system is less than a certain degree, the corresponding unbinding operation can be performed.
[0114] It should be noted that after the unbinding solution described in any embodiment of the present application completes the unbinding of the ID information of the user, the corresponding unbinding notification information can be sent to the target terminal of the user, with the purpose of meeting the right to know of the user and preventing false unbinding. When there is false unbinding, if the user is notified of the unbinding situation, whether the system has false unbinding can be notified according to whether the user subsequently feeds back the corresponding information. If the feedback information of the user is received, it is determined that there is false unbinding, and the system can re-associate the unbound ID information with the user. When re-associating, the unbound ID information can be determined, the parent node ID and the child node ID in the unbound ID are determined according to the parent-child relationship construction mode, and the user is bound again according to the parent-child relationship.
[0115] In combination with the above embodiments, the present application further provides a comprehensive embodiment, as shown below:
[0116] It is assumed that the corresponding user configuration is simplified as follows:
[0117] ID Priority Number Parent node Business line A_ID 1 1 - Mobile phone number 2 1 - Email 3 1 - $identity_mp_unionid 4 N - $identity_mp_{appid}_openid 5 N $identity_mp_unionid
[0118] It is assumed that the user A_ID=A1 binds a mobile phone number 131xxx, and the corresponding data is constructed as follows:
[0119]
[0120]
[0121] When the above data is sent to the corresponding ID unbinding system, the user table is as follows:
[0122] User number Business line A_ID Mobile phone number Email $identity_mp_unionid $identity_mp_wx123456_openid 1 A1 131xxxx
[0123] It is assumed that the user A_ID=A1 is associated with $identity_mp_unionid=unionid_123 and
[0124] $identity_mp_wx123456_openid=openid_abc, and the corresponding data is constructed as follows:
[0125]
[0126] When the above data is sent to the ID unbinding system, the user table is as follows:
[0127] User number Business line A_ID Mobile phone number Email $identity_mp_unionid $identity_mp_wx123456_openid 1 A1 131xxxx unionid_123 openid_abc
[0128] Suppose the user needs to delete the bound WeChat UnionID and OpenID, the corresponding data is constructed as follows:
[0129]
[0130]
[0131] When the above data is sent to the ID unbinding system, the user table is as follows:
[0132] User number Business line A_ID Mobile phone number Email $identity_mp_unionid $identity_mp_wx123456_openid 1 A1 131xxxx
[0133] As can be seen, through the above operations, the parent node ID and the child node ID are unbound at the same time.
[0134] In order to better implement the information processing method in the embodiment of the application, on the basis of the information processing method, the embodiment of the application further provides an information processing device, as shown in Figure 3 The device 300 includes:
[0135] A first determination module 301 is configured to determine a target ID corresponding to an information unbinding instruction in response to the information unbinding instruction.
[0136] A second determination module 302 is configured to determine whether the target ID has a parent-child relationship, and the parent-child relationship is constructed according to a target type of the ID and an ID hierarchical relationship corresponding to the target type.
[0137] A third determination module 303 is configured to determine a child node ID of the target ID according to the parent-child relationship if the target ID has the parent-child relationship.
[0138] An unbinding module 304 is configured to unbind the target ID and the child node ID.
[0139] The information processing device provided by the application can determine the corresponding information unbinding instruction through the first determination module 301 and determine the target ID that needs to be unbound. At the same time, the second determination module 302 and the third determination module 303 can be used to determine whether the target ID that needs to be unbound has an associated child node ID. If the corresponding child node ID exists, the unbinding module 304 can be used to unbind the child node ID at the same time when the target ID is unbound, so that the user does not need to manually unbind, and the unbinding efficiency is improved.
[0140] In some embodiments of the present application, the information processing apparatus can further comprise an association module 305, which is specifically configured to:
[0141] determine the type of each ID;
[0142] for each ID, determine whether there is a target hierarchical relationship corresponding to the type of the ID according to the type of the ID;
[0143] if there is a target hierarchical relationship, obtain an associated ID associated with the ID, and determine whether there is a target associated ID adjacent in the hierarchy of the ID in the associated ID according to the target hierarchical relationship; the associated ID is an ID of the same object as the ID;
[0144] if there is a target associated ID adjacent in the hierarchy of the ID, establish a parent-child relationship between the ID and the target associated ID.
[0145] In some embodiments of the present application, the association module 305 is specifically further configured to:
[0146] determine whether the ID has an established target parent-child relationship, and whether the parent-child associated ID in the target parent-child relationship is the same as the target associated ID;
[0147] if there is no target parent-child relationship and / or the parent-child associated ID in the target parent-child relationship is not the same as the target associated ID, determine the hierarchical relationship between the target associated ID and the ID;
[0148] if the hierarchical relationship between the target associated ID and the ID indicates that the hierarchy of the target associated ID is higher than the hierarchy of the ID, determine that the target associated ID is the parent node of the ID, and establish a parent-child relationship between the ID and the target associated ID;
[0149] if the hierarchical relationship between the target associated ID and the ID indicates that the hierarchy of the target associated ID is lower than the hierarchy of the ID, determine that the target associated ID is the child node of the ID, and establish a parent-child relationship between the ID and the target associated ID.
[0150] In some embodiments of the present application, the association module 305 is specifically further configured to:
[0151] determine the theoretical number of target associated IDs according to the type information of the target associated ID;
[0152] if the actual number of target associated IDs is greater than the theoretical number, give up establishing a parent-child relationship, and perform error prompt;
[0153] if the actual number of target associated IDs is not greater than the theoretical number, determine the hierarchical relationship between the target associated ID and the target ID.
[0154] In some embodiments of the present application, the information processing apparatus can further include an information unbinding trigger module 306, which is specifically configured to:
[0155] receive the information unbinding instruction sent by the target terminal; and / or,
[0156] trigger the information unbinding instruction when any ID is found to be changed.
[0157] In some embodiments of the present application, the information unbinding determination module 306 is specifically further configured to:
[0158] For each ID, if the number of the ID is found to be changed, the ID is determined as the target ID, and the information unbinding instruction of the target ID is triggered.
[0159] In some embodiments of the present application, the information unbinding determination module 306 is specifically further configured to:
[0160] For each ID, if the modification record of the ID is found to exist, the ID is determined as the target ID, and the information unbinding instruction of the target ID is triggered.
[0161] Embodiments of the present application also provide a server which integrates any information processing method provided by embodiments of the present application, such as shown in Figure 4 which shows a structural schematic diagram of the server related to embodiments of the present application. Specifically:
[0162] The server can include a processor 401 with one or more processing cores, a memory 402 with one or more computer readable storage media, a power supply 403, and an input unit 404, etc. Those skilled in the art can understand that the server structure shown in Figure 4 does not constitute a limitation on the server, and can include more or less components than the diagram, or combine certain components, or different component arrangements.
[0163] Among them:
[0164] The processor 401 is the control center of the server, which connects all parts of the server through various interfaces and lines, performs various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, thereby overall monitoring the server. Optionally, the processor 401 can include one or more processing cores; the processor 401 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor and the like, preferably, the processor 401 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 401.
[0165] The memory 402 can be used to store software programs and modules, and the processor 401 executes various functions and data processing by running the software programs and modules stored in the memory 402. The memory 402 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application program required by a function; the data storage area can store data created according to the use of the server, etc. In addition, the memory 402 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 402 can also include a memory controller to provide the processor 401 with access to the memory 402.
[0166] The server further includes a power supply 403 for supplying power to various components, and preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to realize the functions of managing charging, discharging and power consumption management through the power management system. The power supply 403 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power state indicators and any other components.
[0167] The server can also include an input unit 404, which can be used to receive inputted digital or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0168] Although not shown, the server can also include a display unit, etc., which will not be described here. In particular in the present embodiment, the processor 401 in the server will load the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and run the application program stored in the memory 402 by the processor 401, thereby realizing various functions, such as:
[0169] In response to the information unbinding instruction, determining a target ID corresponding to the information unbinding instruction;
[0170] Determining whether the target ID has a parent-child relationship, the parent-child relationship being constructed according to the target type of the ID and the ID hierarchical relationship corresponding to the target type;
[0171] If the target ID has a parent-child relationship, determining a child node ID of the target ID according to the parent-child relationship;
[0172] Unbinding the target ID and the child node ID.
[0173] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0174] To this end, the embodiments of the present application provide a computer readable storage medium, which can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any information processing method provided by the embodiments of the present application. For example, the computer program loaded by the processor can execute the following steps:
[0175] In response to the information unbinding instruction, determining a target ID corresponding to the information unbinding instruction;
[0176] Determining whether the target ID has a parent-child relationship, the parent-child relationship being constructed according to the target type of the ID and the ID hierarchical relationship corresponding to the target type;
[0177] If the target ID has a parent-child relationship, determining a child node ID of the target ID according to the parent-child relationship;
[0178] Unbind the target ID and the child node ID.
[0179] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the detailed description of other embodiments above, which will not be repeated here.
[0180] In the implementation, the above various units or structures can be implemented as independent entities, or can be combined as the same or several entities, and the specific implementation of the above various units or structures can be referred to the method embodiments above, which will not be repeated here.
[0181] The specific implementation of the above various operations can be referred to the above embodiments, which will not be repeated here.
[0182] The information processing method and device provided by the embodiments of the present application are described in detail above, and the principle and implementation mode of the present application are described by applying specific examples; the above embodiment is only used to help understand the method and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as the limitation of the present application.
Claims
1. An information processing method, characterized in that, The method includes: Determine the type of each ID; For each ID, determine whether a target hierarchical relationship exists that corresponds to the type of the ID, based on the type of the ID; If the target hierarchical relationship exists, then obtain the associated ID of the ID; based on the target hierarchical relationship, determine whether there is a target associated ID among the associated IDs that is hierarchically adjacent to the ID; the associated ID and the ID are IDs of the same object; If there exists a target associated ID that is hierarchically adjacent to the ID, establish a parent-child relationship between the ID and the target associated ID; In response to the information unbinding command, determine the target ID corresponding to the information unbinding command; Determine whether the target ID has a parent-child relationship, wherein the parent-child relationship is constructed based on the target type of the ID and the ID hierarchy relationship corresponding to the target type; If the target ID has a parent-child relationship, then the child node ID of the target ID is determined according to the parent-child relationship; Unbind the target ID from the child node ID.
2. The information processing method according to claim 1, characterized in that, If a target associated ID exists at a hierarchical level adjacent to this ID, establishing a parent-child relationship between this ID and the target associated ID includes: Determine whether an established target parent-child relationship exists for the ID, and whether the parent-child association ID in the target parent-child relationship is the same as the target association ID; If the target parent-child relationship does not exist and / or the parent-child association ID in the target parent-child relationship is not the same as the target association ID, then the hierarchical relationship between the target association ID and that ID is determined; If the hierarchical relationship between the target associated ID and the ID indicates that the level of the target associated ID is higher than that of the ID, then the target associated ID is determined to be the parent node of the ID, and a parent-child relationship is established between the ID and the target associated ID. If the hierarchical relationship between the target associated ID and the ID indicates that the level of the target associated ID is lower than that of the ID, then the target associated ID is determined to be a child node of the ID, and a parent-child relationship is established between the ID and the target associated ID.
3. The information processing method according to claim 2, characterized in that, Determining the hierarchical relationship between the target associated ID and the ID includes: Based on the type information of the target associated ID, determine the theoretical number of the target associated IDs; If the actual number of the target associated IDs is greater than the theoretical number, the establishment of the parent-child relationship will be abandoned and an error message will be displayed. If the actual data of the target associated ID is not greater than the theoretical quantity, then the hierarchical relationship between the target associated ID and the target ID is determined.
4. The information processing method according to claim 1, characterized in that, Before determining the target ID corresponding to the information unbinding instruction in response to the information unbinding instruction, the method further includes: Receive an unbinding command sent by the target terminal; and / or, When any ID changes, an information unbinding command is triggered; the ID that has changed is the target ID.
5. The information processing method according to claim 4, characterized in that, The method of triggering an information unbinding instruction when any ID changes during monitoring includes: For each ID, if a change in the number of IDs associated with that ID is detected, then that ID is identified as the target ID, and an unbinding instruction for the target ID is triggered.
6. The information processing method according to claim 4, characterized in that, The method of triggering an information unbinding instruction when any ID changes during monitoring includes: For each ID, if a modification record is detected for that ID, then that ID is identified as the target ID, and an information unbinding command for the target ID is triggered.
7. An information processing device, characterized in that, The device includes: The associated module is used for: Determine the type of each ID; For each ID, determine whether a target hierarchical relationship exists that corresponds to the type of the ID, based on the type of the ID; If a target hierarchical relationship exists, obtain the associated ID of the ID. Based on the target hierarchical relationship, determine whether there is a target associated ID among the associated IDs that is hierarchically adjacent to the ID; the associated ID is an ID of the same object as the ID. If there exists a target associated ID that is hierarchically adjacent to the ID, establish a parent-child relationship between the ID and the target associated ID; The first determining module is used to determine the target ID corresponding to the information unbinding instruction in response to the information unbinding instruction; The second determining module is used to determine whether the target ID has a parent-child relationship, wherein the parent-child relationship is constructed based on the target type of the ID and the ID hierarchy relationship corresponding to the target type. The third determining module is used to determine the child node ID of the target ID based on the parent-child relationship if the target ID has a parent-child relationship; The unbinding module is used to unbind the target ID from the child node ID.
8. A server, characterized in that, The server includes a processor, a memory, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the steps of the information processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the steps of the information processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Microservice-based authentication method and device, medium and electronic equipment
CN112804224A
Asset alarm processing method and device, computer equipment and storage medium
CN114826877A