Account association control method and device, equipment and storage medium
By caching the openid and unionid of WeChat users and generating the target applet entry link, the automatic association between the official account and the service cloud is achieved, and the problem of cumbersome relationship control operations is solved, improving user experience and convenience.
Patent Information
- Application Number
- CN202411090185.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-08-09
AI Technical Summary
The correlation control operation between traditional public accounts and service cloud is cumbersome and the user experience is poor.
By monitoring the follow events between WeChat users and the official account, cache openid and unionid, and generate the entrance link of the target applet, implement a single sign-in interface, automatically associate the official account, applet and service cloud, and reduce the user's information entry on the H5 page need.
It realizes automatic correlation between the official account and the service cloud, reduces the risk of account information leakage, and improves user experience and operation convenience.
Smart Images

Figure CN119202371A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of account management, and in particular to an account association control method, device, equipment and storage medium. Background Art
[0002] With the development of Internet of Things technology, smart home devices such as heat pump air conditioners and fresh air systems have achieved remote management. Traditional servers are often operated through independent mobile applications or web interfaces. Although this method can meet basic management needs, for ordinary users, the operation process is cumbersome and not convenient enough. WeChat has become an important channel for users to obtain information due to its convenience and popularity. Taking the smart home device public account as an example, users can browse the corresponding product information on the smart home device public account, and can also log in to the cloud account to make door-to-door service appointments, check work order progress, and query outlets.
[0003] However, in order to control the association between the target public account and the service cloud, the user needs to develop an H5 page in the public account management background to embed the public account. The user needs to enter the user account password on the H5 page every time to achieve the association between the public account and the service cloud. The traditional public account and service cloud association control is cumbersome to operate and the user experience is not good. Summary of the invention
[0004] The present application provides an account association control method, device, equipment and storage medium for solving the problem that the association control between traditional public accounts and service clouds is complicated to operate and has a poor user experience.
[0005] The first aspect of the present application provides an account association control method, comprising: when a target attention event of a target public account is monitored, a first openid between a WeChat user and the target public account and a first unionid corresponding to the WeChat user are cached in a storage of a service cloud, and a target attention event response message is generated, wherein the target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud; when the WeChat user jumps to the target applet through the entry link, a user verification parameter of the WeChat user in the target applet is obtained, and a second unionid in the user verification parameter is used to match it in the storage of the service cloud; if a consistent unionid is matched, the association relationship data cached in the storage is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid; in response to a target interaction instruction, the target public account, the target applet and the service cloud are associated and controlled according to the association relationship data.
[0006] In a feasible implementation, when a target attention event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached to a storage device of the service cloud, including: when a target attention event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are obtained; whether the target attention event is a re-attention is determined according to the first openid; if so, the target relationship chain corresponding to the last entry into the target applet is determined according to the first unionid, and the data status of the target relationship chain is set to valid, the target relationship chain including the bound unionid, the first openid, the second openid and the target service cloud id; if not, the first openid and the first unionid are associated and cached to the storage device of the service cloud.
[0007] In a feasible implementation, the account association control method also includes: when monitoring the target public account's cancel target follow-up event, obtaining the target unionid of the target user corresponding to the cancel target follow-up event; determining the target relationship chain corresponding to the last entry into the target mini program based on the target unionid, and setting the data status of the target relationship chain to invalid, the target relationship chain includes the bound target unionid, the first openid, the second openid and the target service cloud id.
[0008] In a feasible implementation, the association relationship data is a relationship graph set, and if a consistent unionid is matched, the association relationship data cached in the memory is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid, including: if the second unionid matches the same first unionid, a first relationship graph is generated according to the second openid, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid; at least one IoT device id corresponding to each service cloud id is obtained, and according to each IoT device id, whether there is a second relationship graph bound to the same device; if not, the first relationship graph is stored in the relationship graph set cached in the memory; if it exists, a third relationship graph is generated according to the first relationship graph and the second relationship graph, and the third relationship graph is cached in the memory.
[0009] In a feasible implementation, in response to the target interaction instruction, the target public account, the target mini-program and the service cloud are associated and controlled according to the association relationship data, including: retrieving the target relationship graph from the relationship graph set according to the target interaction instruction; and associating and controlling the target public account, the target mini-program and the service cloud according to the target interaction instruction and the target relationship graph.
[0010] In a feasible implementation, the target public account, the target mini-program and the service cloud are associated and controlled according to the target interaction instruction and the target relationship map, including: if the target interaction instruction is a work order creation instruction created by the first user through the target public account, then controlling the target public account to log in to the target service cloud account without a password through the single sign-on interface provided by the target mini-program based on the target relationship map; determining whether there is a duplicate work order based on the target IoT device ID bound to the target service cloud account and the target relationship map, and the duplicate work order is the same service requirement work order created by the first user or the second user; if so, generating a prompt message, and pushing the prompt message to the first user through the target public account; if not, creating an on-site service work order in the service cloud according to the target IoT device ID.
[0011] In a feasible implementation, if the target interaction instruction is a work order creation instruction created by the first user through the target public account, the target public account is controlled to log in to the target service cloud account without a password through the single sign-on interface provided by the target mini-program based on the target relationship graph, including: in response to the work order creation instruction, determining whether the second openid has only one associated service cloud id according to the target relationship graph; if so, determining the associated service cloud id as the target service cloud account, otherwise determining the service cloud id that the second openid last logged in as the target service cloud account; the target public account logs in to the target service cloud account without a password through the target mini-program.
[0012] The second aspect of the present application provides an account association control device, including: a processing module, which is used to cache the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user to the storage of the service cloud when monitoring the target attention event of the target public account, and generate a target attention event response message, wherein the target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud; a matching module, which is used to obtain the user verification parameters of the WeChat user in the target applet when the WeChat user jumps to the target applet through the entry link, and use the second unionid in the user verification parameters to match in the storage of the service cloud; an association update module, which is used to update the association data cached in the storage according to the second openid in the user verification parameters, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if a consistent unionid is matched; an association control module, which is used to respond to a target interaction instruction and perform association control on the target public account, the target applet and the service cloud according to the association data.
[0013] In a feasible implementation manner, the processing module is specifically used to: when monitoring a target attention event of a target public account, obtain a first openid between a WeChat user and the target public account and a first unionid corresponding to the WeChat user;
[0014] Determining whether the target attention event is a re-attention according to the first openid;
[0015] If so, determine the target relationship chain corresponding to the last entry into the target applet according to the first unionid, and set the data state of the target relationship chain to be valid, wherein the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud id;
[0016] If not, the first openid and the first unionid are associated and cached in a storage device of the service cloud.
[0017] In a feasible implementation, the association relationship update module includes: a first generating unit, for generating a first relationship graph according to the second openid, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if the second unionid matches the same first unionid;
[0018] A determination unit, configured to obtain at least one IoT device ID corresponding to each service cloud ID, and determine, based on each IoT device ID, whether there is a second relationship graph bound to the same device;
[0019] A first processing unit, configured to store the first relationship graph into a relationship graph set cached in the memory if the first relationship graph does not exist;
[0020] The second processing unit is configured to generate a third relationship map according to the first relationship map and the second relationship map, if any, and cache the third relationship map to the memory.
[0021] In a feasible implementation, the account association control device further includes: a follow-off module, configured to obtain a target unionid of a target user corresponding to the target follow-off event when a follow-off event of the target public account is monitored;
[0022] The target relationship chain corresponding to the last entry into the target applet is determined according to the target unionid, and the data state of the target relationship chain is set to invalid, wherein the target relationship chain includes the bound target unionid, the first openid, the second openid and the target service cloud id.
[0023] In a feasible implementation, the association control module includes: a calling unit, configured to call a target relationship graph in the relationship graph set according to the target interaction instruction;
[0024] A control unit is used to perform association control on the target public account, the target mini program and the service cloud according to the target interaction instruction and the target relationship map.
[0025] In a feasible implementation, the control unit includes: a login subunit, which is used to control the target public account to log in to the target service cloud account without a password through the single sign-on interface provided by the target applet based on the target relationship graph if the target interaction instruction is a work order creation instruction created by the first user through the target public account;
[0026] A judgment subunit, configured to determine whether there is a duplicate work order according to the target IoT device ID bound to the target service cloud account and the target relationship map, wherein the duplicate work order is a work order for the same service requirement created by the first user or the second user;
[0027] a prompting subunit, configured to generate prompting information if yes, and push the prompting information to the first user through the target public account;
[0028] A subunit is created to, if not, create a door-to-door service work order in the service cloud according to the target IoT device ID.
[0029] In a feasible implementation manner, the login subunit is specifically used to respond to the work order creation instruction and determine whether the second openid has only one associated service cloud id according to the target relationship graph;
[0030] If yes, the associated service cloud ID is determined as the target service cloud account; otherwise, the service cloud ID last logged in by the second openid is determined as the target service cloud account;
[0031] The target public account logs in to the target service cloud account through the target mini program without a password.
[0032] The third aspect of the present application provides an account association control device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the account association control device executes the above-mentioned account association control method.
[0033] A fourth aspect of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned account association control method.
[0034] In the technical solution provided in this application, automatic association of the target public account and the service cloud is achieved through the target mini program. Users do not need to record information on the H5 page, reducing the risk of account information leakage. Seamless association control of the target public account, the target mini program and the service cloud is provided, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of an embodiment of the account association control method in this application;
[0036] Figure 2 This is a schematic diagram of another embodiment of the account association control method in this application;
[0037] Figure 3 A schematic diagram of an embodiment of an account association control device in the present application;
[0038] Figure 4 This is a schematic diagram of another embodiment of the account association control device in the present application;
[0039] Figure 5 This is a schematic diagram of an embodiment of an account association control device in this application. DETAILED DESCRIPTION
[0040] The present application provides an account association control method, device, equipment and storage medium for the association control between traditional public accounts and service clouds, which has cumbersome operations and poor user experience.
[0041] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] It is understandable that the executor of the present application may be an account-associated control device, or a terminal, a service cloud or a server of a smart home device, which is not specifically limited here.
[0043] For ease of understanding, the specific process of this application is described below. Figure 1 , an embodiment of the account association control method in the present application includes:
[0044] 101. When a target attention event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached to the storage of the service cloud, and a target attention event response message is generated. The target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud.
[0045] In this embodiment, the first openid is an associated identifier generated when a WeChat user follows a target public account, and is used to indicate a unique identifier associated with the target public account by the WeChat user. The first openid generated when the user re-follows the target public account is the same; the first unionid is used to indicate a unique identifier of a WeChat user. Each WeChat user has the same corresponding unionid for different applications under the WeChat open platform (such as website applications, mobile applications, public accounts, mini-programs, etc.).
[0046] When a WeChat user clicks to follow a target public account, the target public account will generate the first openid of the WeChat user. The service cloud has an interface for monitoring public account callback events. When a target follow event of the target public account is monitored, the first unionid and first openid of the WeChat user are captured for caching, and a target follow event response message is constructed to send the associated target mini-program entry link to the target public account. The target public account pushes the target follow event response message to the WeChat user, and the WeChat user clicks the target mini-program entry link to jump to the target mini-program.
[0047] The target public accounts of this embodiment are the Internet of Things device public account, the smart home device public account, and the heat pump public account, and the service cloud is the Internet of Things device cloud, the smart home device cloud, and the heat pump cloud.
[0048] 102. When the WeChat user jumps to the target mini program through the entry link, the user verification parameters of the WeChat user in the target mini program are obtained, and the second unionid in the user verification parameters is used for matching in the storage of the service cloud.
[0049] When a WeChat user enters a mini program, the system needs to extend the validity period of the WeChat user's access token through the single sign-on interface in order to keep the WeChat user logged in, so as to avoid frequent login operations. When the WeChat user authorizes the mini program to obtain his or her information, the mini program can obtain a user verification parameter carrying personal information, namely the Code parameter, and obtain the user's second unionid and second openid based on the code parameter, and match the second unionid with the first unionid of the target public account cached in the storage of the service cloud.
[0050] In this embodiment, the second openid is an associated identifier generated when the WeChat user enters the target mini program, which is used to indicate the unique identifier associated with the target mini program by the WeChat user. It is worth noting that the second openid is not the same as the first openid. The mini program openid and the public account openid are two independent systems.
[0051] The second unionid is used to indicate the unique identifier of the WeChat user obtained through the Code parameter. If the WeChat user who enters the target mini-program and the WeChat user who follows the target public account are the same user, the first unionid and the second unionid are the same. There are multiple first unionids of the target public account cached in the storage of the service cloud, that is, it includes multiple first unionids and corresponding first openids. The unionid can be used to identify the identity of WeChat users across mini-programs or public accounts, ensuring the continuity and security of WeChat user identity authentication.
[0052] 103. If a consistent unionid is matched, the association relationship data cached in the memory is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid.
[0053] If the second unionid matches the same first unionid in the memory, the first openid between the WeChat user and the target public account, the second openid between the WeChat user and the target mini-program, the unionid of the WeChat user, and at least one service cloud id corresponding to the second openid are associated, and the association relationship data cached in the memory is updated.
[0054] The association relationship data of this embodiment may be in various forms, for example, stored through a relationship list, through a key-value pair, or through a relationship graph, and this embodiment does not impose any specific limitation.
[0055] It can be understood that the target mini program user provides a single sign-on interface of the service cloud for password-free login to the service cloud. The second openID may include one or more service cloud IDs. For example, a user may include a first service cloud ID corresponding to a household scenario and a corresponding second service cloud ID corresponding to an industrial / commercial scenario. Through the target mini program, the user can switch between the first service cloud ID and the second service cloud ID, and log in to the service cloud ID of the corresponding usage scenario for control.
[0056] 104. In response to the target interaction instruction, the target public account, the target mini program and the service cloud are associated and controlled according to the association relationship data.
[0057] Specifically, the target public account, target mini program and service cloud are associated and controlled according to the target interaction instructions and associated relationship data.
[0058] The target interaction instructions of this embodiment are used to indicate the instructions for interactive control between the target public account, the target mini-program and the service cloud. They can be instructions generated by the WeChat user selecting the corresponding functional components in the target public account for calling the functions of the mini-program and / or the service cloud, for example, logging in to the service cloud, making an appointment for a home visit, service inquiry, technical support, etc. The target public account can be associated with the service cloud through association relationship data; they can also be instructions generated by the service cloud that need to push messages to WeChat users through the target mini-program and / or target public account, for example, fault message notification, maintenance progress notification, payment notification, etc. The service remote can be associated with the target public account and the target mini-program through association relationship data to achieve association control of the target public account, target mini-program and the service cloud.
[0059] In this application, the target official account and service cloud are automatically associated through the target mini program. Users do not need to record information on the H5 page, reducing the risk of account information leakage. It provides seamless association control between the target official account, target mini program and service cloud, and improves the user experience.
[0060] See also Figure 2 Another embodiment of the account association control method in the present application includes:
[0061] 201. When a target attention event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached to the storage of the service cloud, and a target attention event response message is generated. The target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud.
[0062] Optionally, when a target follow event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached to the storage of the service cloud, including: when a target follow event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are obtained; whether the target follow event is a re-follow is determined according to the first openid; if so, the target relationship chain corresponding to the last entry into the target mini program is determined according to the first unionid, and the data status of the target relationship chain is set to valid; if not, the first openid and the first unionid are associated and cached to the storage of the service cloud.
[0063] Optionally, when a cancel target follow-up event of a target public account is monitored, the target unionid of the target user corresponding to the cancel target follow-up event is obtained; the target relationship chain corresponding to the last entry into the target mini program is determined based on the target unionid, and the data status of the target relationship chain is set to invalid.
[0064] In this embodiment, the target relationship chain includes a bound target unionid, a first openid, a second openid and a target service cloud id. Each target relationship chain can determine a WeChat user and a corresponding service cloud id, and the validity of the relationship chain is managed through the data status.
[0065] In this embodiment, by monitoring the attention events of the target public account, the system can automatically cache the openID and unionID information of the WeChat user, and intelligently associate them when the user clicks to enter the mini program. Users do not need to repeatedly enter account information, and the single sign-on function is realized, which greatly improves the smoothness and convenience of the user experience.
[0066] 202. When the WeChat user jumps to the target mini program through the entry link, the user verification parameters of the WeChat user in the target mini program are obtained, and the second unionid in the user verification parameters is used for matching in the storage of the service cloud.
[0067] Step 202 may be performed with reference to step 102 and will not be described in detail here.
[0068] 203. If a consistent unionid is matched, the association relationship data cached in the memory is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid.
[0069] This embodiment constructs a triple with any two IDs and their relationship, and takes the association relationship data as an example of a relationship graph. Specifically, if the second unionid matches the same first unionid, a first relationship graph is generated according to the second openid, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid; at least one IoT device id corresponding to each service cloud id is obtained, and according to each IoT device id, it is determined whether there is a second relationship graph bound to the same device; if not, the first relationship graph is stored in a relationship graph set cached in the memory; if so, a third relationship graph is generated according to the first relationship graph and the second relationship graph, and the third relationship graph is cached in the memory.
[0070] It is understandable that one or more IoT devices may be bound to each service cloud ID, for example, air conditioners in each room, heat pump units, etc. Each IoT device ID may be bound to one or more service cloud IDs. For example, in household scenarios, each family member can bind the central air conditioner in the public area through its service cloud ID to manage and control IoT devices. This embodiment can realize the association of different service cloud IDs through the IoT device ID to realize the association of multiple relationship graphs. It is understandable that the third relationship graph can include multiple service cloud IDs of the same WeChat user, and can also include at least two service cloud IDs belonging to different WeChat users. For example, in industrial scenarios, the third relationship graph can include a first relationship graph corresponding to employees and a second relationship graph corresponding to administrators.
[0071] 204. Retrieve a target relationship graph from the relationship graph set according to the target interaction instruction.
[0072] In this embodiment, the interaction instructions are instructions generated by different operations or requests initiated by the user through the target official account, target mini-program or service cloud. Specifically, the interaction instructions may be notification push interaction instructions corresponding to notification push requests, work order creation interaction instructions corresponding to work order creation requests, device control interaction instructions corresponding to device control requests, information query interaction instructions corresponding to information query requests, etc.
[0073] In this embodiment, each interaction instruction corresponds to a relationship graph, and the relationship graph set can be divided into user-service cloud relationship graph, user-device relationship graph, user-user relationship graph, etc. according to different relationship types. By calling the target relationship graph corresponding to the target interaction instruction to execute the corresponding operation or requested associated control logic, the processing efficiency of the associated relationship can be improved.
[0074] The above-mentioned user-service cloud relationship map (i.e., the first relationship map) includes the target unionid-first openid-second openid-target service cloud ID of the WeChat user, which can indicate the relationship between all service cloud accounts corresponding to each user, so as to facilitate cloud account switching. That is, when the WeChat user generates an account switching instruction on the target mini program, the cloud account can be switched by calling the user-service cloud relationship map to achieve isolation of different accounts, such as personal cloud accounts and corporate cloud accounts.
[0075] The above-mentioned user-device relationship map includes the WeChat user's target unionid-first openid-second openid-target service cloud ID, and the relationship chain of the target service cloud ID-at least one IoT device ID; for example, the user needs to query the device operation report or needs to control the device, and obtains the user-device relationship map to obtain the device ID bound to the target service cloud account, thereby realizing operation report query and device control.
[0076] The above user-user relationship graph (such as the third relationship graph) includes the relationship chain formed by the first service cloud ID of the first user-an IoT device ID bound to it, and the second service cloud ID of the second user corresponding to the IoT device ID that is also bound. For example, the service cloud needs to push specific information to the user, such as equipment failure, maintenance progress, etc., by obtaining the user-user relationship graph to obtain the target object of the notification push, and push the target information to the WeChat public account of the target object. The target object can be one or more, that is, the target information can be pushed to at least one WeChat user. For example, in an industrial scenario, the equipment failure information is pushed to employees and administrators at the same time.
[0077] In this embodiment, by refining the calling logic of the interaction instruction type and the relationship graph, the system can quickly call the corresponding graph data for processing according to different user operation requirements.
[0078] 205. According to the target interaction instructions and the target relationship map, the target public account, target mini program and service cloud are associated and controlled.
[0079] Optionally, if the target interaction instruction is a notification push instruction, the service cloud determines at least one candidate relationship chain based on the target relationship graph, and each candidate relationship chain corresponds to a WeChat user; constructs target notification information based on the target task progress information and a preset target notification template, and pushes the target notification information to the WeChat user corresponding to each candidate relationship chain through the target public account.
[0080] Optionally, if the target interaction instruction is a work order creation instruction created by the first user through the target public account, the target public account is controlled to log in to the target service cloud account without a password through the single sign-on interface provided by the target applet based on the target relationship map; determine whether there is a duplicate work order based on the target IoT device ID bound to the target service cloud account and the target relationship map, and the duplicate work order is the same service demand work order created by the first user or the second user; if so, generate a prompt message, and push the prompt message to the first user through the target public account; if not, create a door-to-door service work order in the service cloud based on the target IoT device ID. In the work order creation process of this embodiment, the system can detect whether there is a duplicate work order through the relationship map technology, avoiding waste of resources and redundant operations.
[0081] Optionally, if the target interaction instruction is a work order creation instruction created by the first user through the target public account, the target public account is controlled to log in to the target service cloud account without a password through the single sign-on interface provided by the target applet based on the target relationship graph, including: in response to the work order creation instruction, determining whether the second openid has only one associated service cloud id according to the target relationship graph; if so, determining the associated service cloud id as the target service cloud account, otherwise determining the service cloud id that the second openid last logged in as the target service cloud account; the target public account logs in to the target service cloud account without a password through the target applet.
[0082] In this embodiment, the target official account and the service cloud are automatically associated through the target applet. Users do not need to record information on the H5 page, reducing the risk of account information leakage. By using relationship graph technology, the association relationships between different devices, users and their service cloud accounts can be quickly and accurately retrieved to ensure the security and reliability of each association control, reduce the operational complexity caused by user device switching or multi-account management, improve the efficiency of association control, and enhance user experience.
[0083] The above describes the account association control method in this application. The following describes the account association control device in this application. Figure 3 , an embodiment of the account association control device in the present application includes:
[0084] The processing module 301 is used to cache the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user to the storage of the service cloud when monitoring the target attention event of the target public account, and generate a target attention event response message, the target attention event response message includes an entry link of the target applet, and the target applet is used to provide a single sign-on interface of the service cloud;
[0085] The matching module 302 is used to obtain the user verification parameters of the WeChat user in the target mini program when the WeChat user jumps to the target mini program through the entry link, and use the second unionid in the user verification parameters to match in the storage of the service cloud;
[0086] The association updating module 303 is used to update the association data cached in the memory according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if a consistent unionid is matched;
[0087] The association control module 304 is used to respond to the target interaction instruction and perform association control on the target public account, target mini program and service cloud according to the association relationship data.
[0088] In this embodiment, the target public account and the service cloud are automatically associated through the target mini program. Users do not need to record information on the H5 page, reducing the risk of account information leakage. Seamless association control of the target public account, target mini program and the service cloud is provided, thereby improving the user experience.
[0089] See also Figure 4 Another embodiment of the account association control device in the present application includes:
[0090] The processing module 301 is used to cache the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user to the storage of the service cloud when monitoring the target attention event of the target public account, and generate a target attention event response message, the target attention event response message includes an entry link of the target applet, and the target applet is used to provide a single sign-on interface of the service cloud;
[0091] The matching module 302 is used to obtain the user verification parameters of the WeChat user in the target mini program when the WeChat user jumps to the target mini program through the entry link, and use the second unionid in the user verification parameters to match in the storage of the service cloud;
[0092] The association updating module 303 is used to update the association data cached in the memory according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if a consistent unionid is matched;
[0093] The association control module 304 is used to respond to the target interaction instruction and perform association control on the target public account, target mini program and service cloud according to the association relationship data.
[0094] The processing module 301 is specifically used for: when monitoring a target attention event of a target public account, obtaining a first openid between the WeChat user and the target public account and a first unionid corresponding to the WeChat user;
[0095] Determine whether the target attention event is a re-attention according to the first openid;
[0096] If yes, determine the target relationship chain corresponding to the last entry into the target applet according to the first unionid, and set the data status of the target relationship chain to be valid, where the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud id;
[0097] If not, the first openid and the first unionid are associated and cached in the storage of the service cloud.
[0098] In a feasible implementation manner, the association relationship updating module 303 includes:
[0099] A generating unit 3031 is used to generate a first relationship graph according to the second openid, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if the second unionid matches the same first unionid;
[0100] The determining unit 3032 is used to obtain at least one IoT device ID corresponding to each service cloud ID, and determine whether there is a second relationship graph bound to the same device according to each IoT device ID;
[0101] The first processing unit 3033 is configured to store the first relationship graph into a relationship graph set cached in the memory if the first relationship graph does not exist;
[0102] The second processing unit 3034 is configured to generate a third relationship map according to the first relationship map and the second relationship map, if any, and cache the third relationship map to the memory.
[0103] In a feasible implementation manner, the account association control device further includes:
[0104] The unfollowing module 305 is used to obtain the target unionid of the target user corresponding to the unfollowing event when monitoring the unfollowing event of the target public account;
[0105] Determine the target relationship chain corresponding to the last entry into the target applet according to the target unionid, and set the data status of the target relationship chain to invalid. The target relationship chain includes the bound target unionid, the first openid, the second openid and the target service cloud id.
[0106] In a feasible implementation, the association control module 304 includes: a calling unit 3041, configured to call a target relationship graph in a relationship graph set according to a target interaction instruction;
[0107] The control unit 3042 is used to perform association control on the target public account, target mini program and service cloud according to the target interaction instructions and the target relationship map.
[0108] In a feasible implementation manner, the control unit 3042 includes:
[0109] The login subunit 30421 is used to control the target public account to log in to the target service cloud account without a password through the single sign-on interface provided by the target mini program based on the target relationship graph if the target interaction instruction is a work order creation instruction created by the first user through the target public account;
[0110] The judgment subunit 30422 is used to determine whether there is a duplicate work order based on the target IoT device ID bound to the target service cloud account and the target relationship map, and the duplicate work order is the same service demand work order created by the first user or the second user;
[0111] The prompt subunit 30423 is used to generate prompt information and push the prompt information to the first user through the target public account;
[0112] A subunit 30424 is created to create a door-to-door service work order in the service cloud according to the target IoT device ID if no.
[0113] In a feasible implementation, the login subunit 30421 is specifically used to respond to the work order creation instruction and determine whether the second openid has only one associated service cloud id according to the target relationship graph;
[0114] If yes, the associated service cloud ID is determined as the target service cloud account, otherwise the service cloud ID last logged in by the second openid is determined as the target service cloud account;
[0115] The target public account logs in to the target service cloud account without a password through the target mini program.
[0116] In this embodiment, the target public account and the service cloud are automatically associated through the target applet. Users do not need to record information on the H5 page, reducing the risk of account information leakage. The target relationship map is called according to the corresponding interactive instructions for association control, which improves the efficiency of association relationship processing and improves user experience.
[0117] above Figure 3 and Figure 4 The account association control device in the present application is described in detail from the perspective of modular functional entities, and the account association control device in the present application is described in detail from the perspective of hardware processing.
[0118] See also Figure 5 As shown, the account association control device includes a processor 500 and a memory 501. The memory 501 stores machine executable instructions that can be executed by the processor 500. The processor 500 executes the machine executable instructions to implement the above-mentioned account association control method.
[0119] Further, Figure 5 The account association control device shown also includes a bus 502 and a communication interface 503 , and the processor 500 , the communication interface 503 and the memory 501 are connected via the bus 502 .
[0120] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 500. The above processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501 , and the processor 500 reads the information in the memory 501 and completes the method steps of the above-mentioned embodiment in combination with its hardware.
[0122] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the account association control method.
[0123] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0125] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An account association control method, characterized in that: The account association control method includes: When a target attention event of a target public account is monitored, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached in a storage device of the service cloud, and a target attention event response message is generated, wherein the target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud; When the WeChat user jumps to the target mini program through the entry link, obtaining the user verification parameter of the WeChat user in the target mini program, and using the second unionid in the user verification parameter to perform matching in the storage of the service cloud; If a consistent unionid is matched, the association relationship data cached in the memory is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid; In response to the target interaction instruction, the target public account, the target mini-program and the service cloud are associated and controlled according to the association relationship data.
2. The account association control method according to claim 1, characterized in that: When a target attention event of a target public account is monitored, caching the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user to a storage device of the service cloud includes: When a target attention event of a target public account is monitored, a first openid between the WeChat user and the target public account and a first unionid corresponding to the WeChat user are obtained; Determining whether the target attention event is a re-attention according to the first openid; If so, determine the target relationship chain corresponding to the last entry into the target applet according to the first unionid, and set the data state of the target relationship chain to be valid, wherein the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud id; If not, the first openid and the first unionid are associated and cached in a storage device of the service cloud.
3. The account association control method according to claim 1, characterized in that: The account association control method further includes: When a cancel target follow-up event of the target public account is monitored, the target unionid of the target user corresponding to the cancel target follow-up event is obtained; The target relationship chain corresponding to the last entry into the target applet is determined according to the target unionid, and the data state of the target relationship chain is set to invalid, wherein the target relationship chain includes the bound target unionid, the first openid, the second openid and the target service cloud id.
4. The account association control method according to claim 1, characterized in that: The association relationship data is a relationship graph set. If a consistent unionid is matched, the association relationship data cached in the memory is updated according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid, including: If the second unionid matches the same first unionid, a first relationship graph is generated according to the second openid, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid; Obtain at least one IoT device ID corresponding to each service cloud ID, and determine whether there is a second relationship graph bound to the same device according to each IoT device ID; If not, storing the first relationship graph into the relationship graph set cached in the memory; If so, a third relationship map is generated according to the first relationship map and the second relationship map, and the third relationship map is cached in the memory.
5. The account association control method according to claim 1, characterized in that: The association relationship data is a set of relationship graphs, and the response to the target interaction instruction is to perform association control on the target public account, the target mini program and the service cloud according to the association relationship data, including: Retrieving a target relationship graph from the relationship graph set according to the target interaction instruction; The target public account, the target mini-program and the service cloud are associated and controlled according to the target interaction instruction and the target relationship map.
6. The account association control method according to claim 5, characterized in that: The associating and controlling the target public account, the target mini-program, and the service cloud according to the target interaction instruction and the target relationship graph includes: If the target interaction instruction is a work order creation instruction created by the first user through the target official account, the target official account is controlled to log in to the target service cloud account without a password through the single sign-on interface provided by the target mini-program based on the target relationship graph; Determine whether there is a duplicate work order based on the target IoT device ID bound to the target service cloud account and the target relationship map, where the duplicate work order is the same service demand work order created by the first user or the second user; If yes, generate prompt information, and push the prompt information to the first user through the target official account; If not, a door-to-door service work order is created in the service cloud according to the target IoT device ID.
7. The account association control method according to claim 6, characterized in that: If the target interaction instruction is a work order creation instruction created by the first user through the target public account, controlling the target public account to log in to the target service cloud account without a password through the single sign-on interface provided by the target mini program based on the target relationship graph, including: In response to a work order creation instruction, determining whether the second openid has only one associated service cloud id according to the target relationship graph; If yes, the associated service cloud ID is determined as the target service cloud account; otherwise, the service cloud ID last logged in by the second openid is determined as the target service cloud account; The target public account logs in to the target service cloud account through the target mini program without a password.
8. An account association control device, characterized in that: The account association control device comprises: A processing module, configured to cache the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user to a storage device of the service cloud when monitoring a target attention event of the target public account, and generate a target attention event response message, wherein the target attention event response message includes an entry link of a target applet, and the target applet is used to provide a single sign-on interface of the service cloud; A matching module, configured to obtain a user verification parameter of the WeChat user in the target mini-program when the WeChat user jumps to the target mini-program through the entry link, and use the second unionid in the user verification parameter to perform a match in the storage of the service cloud; An association relationship update module, for updating the association relationship data cached in the memory according to the second openid in the user verification parameter, at least one service cloud id corresponding to the second openid, the unionid of each WeChat user, and the first openid if a consistent unionid is matched; The association control module is used to respond to the target interaction instruction and perform association control on the target public account, the target mini program and the service cloud according to the association relationship data.
9. An account association control device, characterized in that: The account association control device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instruction in the memory so that the account association control device executes the account association control method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is read and executed, the account association control method as described in any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Associated account analysis method and device and computer readable storage medium
CN110287688A
Data processing method and device, equipment and storage medium
CN113760904A
Account login method and device, equipment, storage medium and program product
CN116961927A
Method to Efficiently and Reliably Process Ordered User Account Events in a Cluster
US20180121515A1
