Account association control method and device, equipment and storage medium
Patent Information
- Application Number
- CN202411090185.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2044-08-09
AI Technical Summary
[0004]本申请提供了一种账号关联控制方法、装置、设备及存储介质,用于解决传统的公众号和服务云端的关联控制,操作比较繁琐,用户体验差的问题
[0034] The technical solution provided in this application achieves automatic association between the target official account and the service cloud through the target mini-program. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. It provides seamless association and control between the target official account, the target mini-program and the service cloud, and improves the user experience.
Smart Images

Figure CN119202371B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of account management technology, and in particular to an account association control method, apparatus, device and storage medium. Background Technology
[0002] With the development of IoT technology, smart home devices such as heat pump air conditioners and fresh air systems have achieved remote management. Traditional service providers often operate through independent mobile applications or web interfaces. While this method can meet basic management needs, it is cumbersome and inconvenient for ordinary users. WeChat, with its convenience and widespread adoption, has become an important channel for users to obtain information. Taking smart home device official accounts as an example, users can browse relevant product information on the official accounts and also log in to their cloud accounts to make on-site service appointments, check work order progress, and locate service points.
[0003] However, the traditional method of linking a target WeChat Official Account with the service cloud requires developing an H5 page in the Official Account management backend to embed the Official Account. Users need to enter their account and password on this H5 page each time to link the Official Account with the service cloud. This traditional method of linking an Official Account with the service cloud is cumbersome and provides a poor user experience. Summary of the Invention
[0004] This application provides an account association control method, device, equipment, and storage medium to solve the problems of cumbersome operation and poor user experience in traditional account association control and cloud service.
[0005] The first aspect of this application provides an account association control method, comprising: upon detecting a target public account's follow event, caching a first openid between the WeChat user and the target public account, and a first unionid corresponding to the WeChat user, in a service cloud's storage, and generating a target follow event response message, the target follow event response message including an entry link to a target mini-program, the target mini-program being used to provide a single sign-on interface to the service cloud; when the WeChat user jumps to the target mini-program through the entry link, obtaining the WeChat user's user verification parameters in the target mini-program, and matching the second unionid in the user verification parameters in the service cloud's storage; if a matching unionid is found, updating the cached association data in the storage based on 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; and in response to a target interaction instruction, performing association control on the target public account, the target mini-program, and the service cloud based on the association data.
[0006] In one feasible implementation, when a target follow event of a target public account is detected, caching the first openid between the WeChat user and the target public account, as well as the first unionid corresponding to the WeChat user, to the storage of the service cloud includes: when a target follow event of a target public account is detected, obtaining the first openid between the WeChat user and the target public account, as well as the first unionid corresponding to the WeChat user; determining whether the target follow event is a re-follow based on the first openid; if so, determining the target relationship chain corresponding to the last entry into the target mini-program based on the first unionid, and setting the data status of the target relationship chain to valid, wherein the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud ID; if not, associating the first openid and the first unionid and caching them to the storage of the service cloud.
[0007] In one feasible implementation, the account association control method further includes: when a target public account unfollowing event is detected, obtaining the target unionid of the target user corresponding to the unfollowing event; determining the target relationship chain corresponding to the last time the target mini program was accessed based on the target unionid, and setting the data status of the target relationship chain to invalid, wherein the target relationship chain includes the bound target unionid, the first openid, the second openid, and the target service cloud ID.
[0008] In one feasible implementation, the association data is a set of relationship graphs. If a matching unionid is found, the association data cached in the memory is updated based on 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. This includes: if the second unionid matches the same first unionid, generating a first relationship graph based on the second openid, at least one service cloud ID corresponding to the second openid, the unionid of each WeChat user, and the first openid; obtaining at least one IoT device ID corresponding to each service cloud ID, and determining whether a second relationship graph bound to the same device exists based on each IoT device ID; if not, storing the first relationship graph in the set of relationship graphs cached in the memory; if it exists, generating a third relationship graph based on the first relationship graph and the second relationship graph, and caching the third relationship graph in the memory.
[0009] In one feasible implementation, the step of responding to a target interaction instruction and performing association control on the target public account, the target mini-program, and the service cloud based on the association relationship data includes: retrieving a target relationship graph from the relationship graph set according to the target interaction instruction; and performing association control on the target public account, the target mini-program, and the service cloud based on the target interaction instruction and the target relationship graph.
[0010] In one feasible implementation, the step of associating and controlling the target official account, the target mini-program, and the service cloud based on 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, then controlling the target official 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; 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 graph, wherein the duplicate work order is the same service request 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 official account; if not, creating an on-site service work order on the service cloud based on the target IoT device ID.
[0011] In one feasible implementation, if the target interaction instruction is a work order creation instruction created by the first user through the target official account, then controlling the target official account to log in to the target service cloud account without a password based on the target relationship graph through the single sign-on interface provided by the target mini-program includes: responding 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 of the second openid's last login as the target service cloud account; the target official account logs in to the target service cloud account without a password through the target mini-program.
[0012] A second aspect of this application provides an account association control device, comprising: a processing module, configured to, upon detecting a target follow event of a target public account, cache a first openid between a WeChat user and the target public account and a first unionid corresponding to the WeChat user in a service cloud's storage, and generate a target follow event response message, the target follow event response message including an entry link of a target mini-program, the target mini-program being used to provide a single sign-on interface of the service cloud; a matching module, configured to, when the WeChat user jumps to the target mini-program through the entry link, obtain the user verification parameters of the WeChat user in the target mini-program, and use the second unionid in the user verification parameters to perform matching in the service cloud's storage; an association update module, configured to, if a matching unionid is found, update the association relationship 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; and an association control module, configured to, in response to a target interaction instruction, perform association control on the target public account, the target mini-program, and the service cloud according to the association relationship data.
[0013] In one feasible implementation, the processing module is specifically used to: when a target follow event of a target public account is detected, obtain the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user;
[0014] Determine whether the target attention event is a re-attention event based on the first openid;
[0015] 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. The target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud ID.
[0016] If not, associate the first openid and the first unionid and cache them in the service cloud's storage.
[0017] In one feasible implementation, the association update module includes: a first generation unit, configured to generate a first relationship graph based on 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] The determination unit 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 that is bound to the same device based on each IoT device ID;
[0019] The first processing unit is configured to, if the first relationship graph does not exist, store the first relationship graph in a cached relationship graph set in the memory;
[0020] The second processing unit is configured to generate a third relationship graph based on the first relationship graph and the second relationship graph, if such a graph exists, and cache the third relationship graph in the memory.
[0021] In one feasible implementation, the account association control device further includes: an unfollow module, used to obtain the target unionid of the target user corresponding to the unfollow event when the target public account is detected to have unfollowed the target public account;
[0022] 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. The target relationship chain includes the bound target unionid, the first openid, the second openid, and the target service cloud ID.
[0023] In one feasible implementation, the association control module includes: a retrieval unit, configured to retrieve a target relationship graph from the relationship graph set according to the target interaction instruction;
[0024] The 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 instructions and the target relationship graph.
[0025] In one feasible implementation, the control unit includes: a login subunit, configured to, if the target interaction instruction is a work order creation instruction created by the first user through the target public account, control the target public account to log in to the target service cloud account without password based on the target relationship graph through the single sign-on interface provided by the target mini-program;
[0026] The judgment subunit 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 graph. The duplicate work order is the same service request work order created by the first user or the second user.
[0027] The prompting subunit is used to generate a prompt message if the condition is met, and push the prompt message to the first user through the target public account;
[0028] Create a sub-unit to create an on-site service order in the service cloud if no, based on the target IoT device ID.
[0029] In one feasible implementation, 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 based on the target relationship graph;
[0030] If so, the associated service cloud ID will be determined as the target service cloud account; otherwise, the service cloud ID from the last login of the second openid will be determined as the target service cloud account.
[0031] The target official account logs into the target service cloud account without a password through the target mini-program.
[0032] A third aspect of this 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 invokes the instructions in the memory to cause the account association control device to perform the aforementioned account association control method.
[0033] A fourth aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the account association control method described above.
[0034] The technical solution provided in this application achieves automatic association between the target official account and the service cloud through the target mini-program. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. It provides seamless association and control between the target official account, the target mini-program and the service cloud, and improves the user experience. Attached Figure Description
[0035] Figure 1 This is 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 This is a schematic diagram of one embodiment of the account association control device in this application;
[0038] Figure 4 This is a schematic diagram of another embodiment of the account association control device in this application;
[0039] Figure 5 This is a schematic diagram of one embodiment of the account association control device in this application. Detailed Implementation
[0040] This application provides an account association control method, device, equipment, and storage medium for traditional public accounts and cloud-based service association control, which is cumbersome to operate and has a poor user experience.
[0041] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” or “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0042] It is understood that the entity executing this application may be an account association control device, or it may be a terminal, a service cloud of a smart home device, or a server; no specific limitation is made here.
[0043] For ease of understanding, the specific process of this application is described below. Please refer to [link / reference]. Figure 1 One embodiment of the account association control method in this application includes:
[0044] 101. When the target public account's target follow event is detected, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached in the service cloud's storage, and a target follow event response message is generated. The target follow event response message includes the entry link of the target mini program, which is used to provide the single sign-on interface of the service cloud.
[0045] In this embodiment, the first openid is an association identifier generated when a WeChat user follows a target public account, used to indicate the unique identifier associated with the target public account by the WeChat user. The first openid generated when the user follows the target public account again is the same. The first unionid is used to indicate the unique identifier of the WeChat user. Each WeChat user has the same 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 official account, the target official account generates the first openid for that WeChat user. The service cloud has an interface for monitoring official account callback events. When it listens for the target follow event of the target official account, it captures and caches the first unionid and first openid of the WeChat user, and constructs a target follow event response message to send the associated target mini-program entry link to the target official account. The target official account pushes the target follow event response message to the WeChat user, and the WeChat user can jump to the target mini-program by clicking the target mini-program entry link.
[0047] In this embodiment, the target public accounts are IoT device public accounts, smart home device public accounts, and heat pump public accounts, and the service cloud is IoT device cloud, smart home device cloud, and heat pump cloud.
[0048] 102. When a WeChat user is redirected to the target mini-program through an entry link, obtain the user verification parameters of the WeChat user in the target mini-program, and use the second unionid in the user verification parameters to perform 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 to maintain the user's login status and avoid frequent login operations. When a WeChat user authorizes the mini-program to obtain their information, the mini-program can obtain a user verification parameter carrying personal information, namely the Code parameter. Based on the Code parameter, the mini-program obtains the user's second unionid and second openid, and matches the second unionid with the first unionid of the target public account cached in the service cloud's storage.
[0050] In this embodiment, the second openid is an association identifier generated when a WeChat user enters the target mini-program. It is used to indicate the unique identifier that the WeChat user associates with the target mini-program. It is worth noting that the second openid is not the same as the first openid. The mini-program openid and the official 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 official account are the same user, then the first unionid and the second unionid are the same. There are multiple first unionids of the target official account cached in the service cloud storage, which includes multiple first unionids and corresponding first openids. Through the unionid, the identity of WeChat users can be identified across mini programs or official accounts, ensuring the continuity and security of WeChat user identity verification.
[0052] 103. If a matching unionid is found, the cached association data in the storage is updated based on 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.
[0053] If the second unionid matches the same first unionid in the memory, then the first openid between the WeChat user and the target official account, the second openid between the WeChat user and the target mini program, the WeChat user's unionid, and at least one service cloud ID corresponding to the second openid are associated together, and the association data cached in the memory is updated.
[0054] The relationship data in this embodiment can be in various forms, such as being stored through a relationship list, key-value pairs, or a relationship graph. This embodiment does not impose any specific limitations.
[0055] It is understandable that the target mini-program user provides a single sign-on interface to the service cloud for passwordless login. The second openid may include one or more service cloud IDs. For example, a user may have a first service cloud ID corresponding to a residential scenario and a second service cloud ID corresponding to an industrial / commercial scenario. Through the target mini-program, the user can switch between the first and second service cloud IDs and control the login based on the service cloud ID of the corresponding usage scenario.
[0056] 104. Responding to the target interaction command, perform association control on the target official account, target mini program and service cloud based on the association relationship data.
[0057] Specifically, based on the target interaction instructions and related relationship data, the target official account, target mini-program and service cloud are associated and controlled.
[0058] The target interaction instructions in this embodiment are used to instruct the interaction control between the target official account, the target mini-program, and the service cloud. These instructions can be generated by the WeChat user selecting the corresponding functional component in the target official account to call the functions of the mini-program and / or the service cloud, such as logging into the service cloud, scheduling an on-site visit, service inquiry, technical support, etc. The target official account can be associated with the service cloud through association data. Alternatively, they can be instructions generated by the service cloud that need to push messages to WeChat users through the target mini-program and / or the target official account, such as fault message notifications, repair progress notifications, payment notifications, etc. The service remote end can be associated with the target official account and the target mini-program through association data to achieve the associated control of the target official account, the target mini-program, and the service cloud.
[0059] In this application, the target mini-program enables automatic association between the target official account and the service cloud. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. It provides seamless association control between the target official account, the target mini-program, and the service cloud, thereby improving the user experience.
[0060] Please see Figure 2 Another embodiment of the account association control method in this application includes:
[0061] 201. When the target public account's target follow event is detected, the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user are cached in the service cloud's storage, and a target follow event response message is generated. The target follow event response message includes the entry link of the target mini program, which is used to provide the single sign-on interface of the service cloud.
[0062] Optionally, when a target follow event of a target official account is detected, caching the first openid between the WeChat user and the target official account, as well as the first unionid corresponding to the WeChat user, in the service cloud's storage includes: when a target follow event of a target official account is detected, obtaining the first openid between the WeChat user and the target official account, as well as the first unionid corresponding to the WeChat user; determining whether the target follow event is a re-follow based on the first openid; if so, determining the target relationship chain corresponding to the last entry into the target mini-program based on the first unionid, and setting the data status of the target relationship chain to valid; if not, associating the first openid and the first unionid and caching them in the service cloud's storage.
[0063] Optionally, when a target official account's unfollow event is detected, the target unionid of the target user corresponding to the unfollow event is obtained; the target relationship chain corresponding to the last time the target mini program was accessed 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 identify a WeChat user and a corresponding service cloud ID, and the validity of the relationship chain is managed through data status.
[0065] This embodiment monitors the follow events of the target official account, and the system can automatically cache the openID and unionID information of WeChat users, and intelligently associate them when the user clicks to enter the mini program. Users do not need to repeatedly enter account information, realizing single sign-on functionality and greatly improving the smoothness and convenience of the user experience.
[0066] 202. When a WeChat user is redirected to the target mini-program through an entry link, obtain the user verification parameters of the WeChat user in the target mini-program, and use the second unionid in the user verification parameters to perform matching in the storage of the service cloud.
[0067] Step 202 can be performed by referring to step 102, and will not be repeated here.
[0068] 203. If a matching unionid is found, the cached association data in the storage is updated based on 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.
[0069] In this embodiment, a triplet is constructed using any two IDs and their relationship. Taking the associated relationship data as an example, specifically, if the second unionid matches the same first unionid, a first relationship graph is generated based on 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 it is determined whether a second relationship graph bound to the same device exists based on each IoT device ID; if it does not exist, the first relationship graph is stored in the cached relationship graph set in the memory; if it exists, a third relationship graph is generated based on the first and second relationship graphs, and the third relationship graph is cached in the memory.
[0070] It is understandable that each service cloud ID may be bound to one or more IoT devices, such as air conditioners in each room or heat pump units. Each IoT device ID may be bound to one or more service cloud IDs. For example, in a residential scenario, each family member can bind the central air conditioner in the public area through their service cloud ID to manage and control IoT devices. This embodiment can achieve the association of different service cloud IDs through IoT device IDs, thereby realizing the association of multiple relationship graphs. It is understood that the third relationship graph may include multiple service cloud IDs of the same WeChat user, and may also include at least two service cloud IDs belonging to different WeChat users. For example, in an industrial scenario, the third relationship graph may include the first relationship graph corresponding to employees and the second relationship graph corresponding to administrators.
[0071] 204. Retrieve the target relationship graph from the relationship graph set according to the target interaction command.
[0072] In this embodiment, the interaction instructions are instructions generated by different operations or requests initiated by the user through the target public account, target mini program or service cloud. Specifically, the interaction instructions can 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 interactive instruction corresponds to a relationship graph. 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 interactive instruction to execute the associated control logic of the corresponding operation or request, the processing efficiency of the associated relationship can be improved.
[0074] The aforementioned user-service cloud relationship graph (i.e., the first relationship graph) includes the target unionid, first openid, second openid, and target service cloud ID of the WeChat user. It can indicate the relationship between all service cloud accounts corresponding to each user, so as to facilitate cloud account switching. That is, when a WeChat user generates an account switching command on the target mini program, he / she can switch cloud accounts by calling the user-service cloud relationship graph to achieve the isolation of different accounts, such as personal cloud accounts and enterprise cloud accounts.
[0075] The aforementioned user-device relationship graph includes the relationship chain of the WeChat user's target unionid - first openid - second openid - target service cloud ID, and the target service cloud ID - at least one IoT device ID. For example, if a user needs to query a device operation report or control a device, they can obtain the device ID bound to the target service cloud account by acquiring the user-device relationship graph, thereby enabling them to query the operation report and control the device.
[0076] The aforementioned user-user relationship graph (such as the third relationship graph) includes a relationship chain consisting of the first user's first service cloud ID, a bound IoT device ID, and the second service cloud ID of the second user corresponding to that IoT device ID. For example, if the service cloud needs to push specific information to users, such as equipment failure or repair progress, it can obtain the target audience for the notification push by acquiring the user-user relationship graph. The target information can then be pushed to the target audience's WeChat official account. The target audience can be one or more, meaning the target information can be pushed to at least one WeChat user. For example, in an industrial scenario, equipment failure information can be pushed to both employees and administrators simultaneously.
[0077] This embodiment refines the interaction command types and the calling logic of the relationship graph, enabling the system to quickly call the corresponding graph data for processing according to different user operation needs.
[0078] 205. Based on the target interaction instructions and the target relationship graph, perform association control on the target official account, target mini program and service cloud.
[0079] Optionally, if the target interaction command is a notification push command, the service cloud determines at least one candidate relationship chain based on the target relationship graph, with each candidate relationship chain corresponding to a WeChat user; constructs target notification information based on the target task progress information and the preset target notification template, and pushes the target notification information to the WeChat user corresponding to each candidate relationship chain through the target official account.
[0080] Optionally, if the target interaction instruction is a work order creation instruction created by the first user through the target official account, then 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; the system determines 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 graph. A duplicate work order is a work order with the same service request created by either the first user or the second user; if so, a prompt message is generated and pushed to the first user through the target official account; if not, an on-site service work order is created in the service cloud based on the target IoT device ID. In this embodiment, during the work order creation process, the system can detect whether there is a duplicate work order through relationship graph technology, avoiding waste of resources and redundancy of operations.
[0081] Optionally, if the target interaction instruction is a work order creation instruction created by the first user through the target official account, then 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. This includes: responding 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 of the second openid's last login as the target service cloud account; and the target official account logging in to the target service cloud account without a password through the target mini-program.
[0082] In this embodiment, the target mini-program enables automatic association between the target public account and the service cloud. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. By utilizing relationship graph technology, the association between different devices, users and their service cloud accounts can be retrieved quickly and accurately, ensuring the security and reliability of each association control. This reduces the operational complexity caused by users switching devices or managing multiple accounts, improves the efficiency of association control, and enhances the user experience.
[0083] The account association control method in this application has been described above. The account association control device in this application is described below. Please refer to [link to relevant documentation]. Figure 3 One embodiment of the account association control device in this 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 the target public account is monitored, and generate a target attention event response message. The target attention event response message includes the entry link of the target mini program, which is used to provide the 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 to perform matching in the storage of the service cloud using the second unionid in the user verification parameters.
[0086] The association update module 303 is used to update the cached association data in the storage based on 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 matching unionid is found.
[0087] The association control module 304 is used to respond to the target interaction command and perform association control on the target official account, target mini program and service cloud based on the association relationship data.
[0088] In this embodiment, the target mini-program enables automatic association between the target official account and the service cloud. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. It provides seamless association control between the target official account, the target mini-program, and the service cloud, thereby improving the user experience.
[0089] Please see Figure 4 Another embodiment of the account association control device in this 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 the target public account is monitored, and generate a target attention event response message. The target attention event response message includes the entry link of the target mini program, which is used to provide the 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 to perform matching in the storage of the service cloud using the second unionid in the user verification parameters.
[0092] The association update module 303 is used to update the cached association data in the storage based on 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 matching unionid is found.
[0093] The association control module 304 is used to respond to the target interaction command and perform association control on the target official account, target mini program and service cloud based on the association relationship data.
[0094] The processing module 301 is specifically used to: when the target follow event of the target public account is detected, obtain the first openid between the WeChat user and the target public account and the first unionid corresponding to the WeChat user;
[0095] Determine whether the target event to be followed is a re-followed event based on the first openid;
[0096] If so, determine the target relationship chain corresponding to the last entry into the target mini program based on the first unionid, and set the data status of the target relationship chain to be valid. The target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud ID.
[0097] If not, associate the first openid and the first unionid and cache them in the service cloud's storage.
[0098] In one feasible implementation, the association update module 303 includes:
[0099] The generation unit 3031 is used to generate a first relationship graph based on 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 that is bound to the same device based on each IoT device ID;
[0101] The first processing unit 3033 is used to store the first relation graph into a cached relation graph set in the memory if it does not exist.
[0102] The second processing unit 3034 is used to generate a third relation graph based on the first relation graph and the second relation graph if the first relation graph exists, and to cache the third relation graph in the memory.
[0103] In one feasible implementation, the account association control device further includes:
[0104] The unfollow module 305 is used to obtain the target unionid of the target user corresponding to the unfollow event when the target public account is detected to have unfollowed the target public account.
[0105] 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. The target relationship chain includes the bound target unionid, the first openid, the second openid, and the target service cloud ID.
[0106] In one feasible implementation, the association control module 304 includes: a retrieval unit 3041, used to retrieve a target relationship graph from the relationship graph set according to the 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 based on the target interaction instructions and target relationship graph.
[0108] In one feasible implementation, the control unit 3042 includes:
[0109] The login subunit 30421 is used to control the target official account to log in to the target service cloud account without 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 official 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 graph. The duplicate work order is the same service request work order created by the first user or the second user.
[0111] The prompt subunit 30423 is used to generate a prompt message if the condition is met, and push the prompt message to the first user through the target public account;
[0112] Create sub-unit 30424, which will be used to create an on-site service order in the service cloud if no other option is found.
[0113] In one 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 so, the associated service cloud ID will be determined as the target service cloud account; otherwise, the service cloud ID from the last login of the second openid will be determined as the target service cloud account.
[0115] The target official account can be logged into the target service cloud account without a password via the target mini-program.
[0116] In this embodiment, the target mini-program enables automatic association between the target public account and the service cloud. Users do not need to enter information on the H5 page, reducing the risk of account information leakage. The target relationship graph is retrieved according to the corresponding interaction instructions for association control, which improves the efficiency of association processing and enhances the user experience.
[0117] above Figure 3 and Figure 4 The account association control device in this application is described in detail from the perspective of modular functional entities. The account association control device in this application is described in detail from the perspective of hardware processing.
[0118] See 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 aforementioned account association control method.
[0119] Furthermore, Figure 5 The account association control device shown also includes a bus 502 and a communication interface 503. The processor 500, the communication interface 503 and the memory 501 are connected through the bus 502.
[0120] The memory 501 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 503 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 502 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0121] The processor 500 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 500 or by instructions in software form. The processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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 gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 501. The processor 500 reads the information in memory 501 and, in conjunction with its hardware, completes the method steps of the aforementioned embodiment.
[0122] This application also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, storing instructions that, when executed on a computer, cause the computer to perform the steps of the account association control method.
[0123] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0124] If the integrated unit is implemented as 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 this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for controlling account association, characterized in that, The account association control method includes: When a target follow event of a target official account is detected, the first openid between the WeChat user and the target official account and the first unionid corresponding to the WeChat user are cached in the storage of the service cloud, and a target follow event response message is generated. The target follow event response message includes the entry link of the target mini program, which is used to provide the single sign-on interface of the service cloud. 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. If a matching unionid is found, the cached association data in the storage is updated based on 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. In response to the target interaction command, the target official account, the target mini-program, and the service cloud are associated and controlled according to the association data; The step of caching the first openid between the WeChat user and the target official account and the first unionid corresponding to the WeChat user in the service cloud's storage when a target follow event of the target official account is detected includes: obtaining the first openid between the WeChat user and the target official account and the first unionid corresponding to the WeChat user when a target follow event of the target official account is detected; determining whether the target follow event is a re-follow based on the first openid; if so, determining the target relationship chain corresponding to the last entry into the target mini-program based on the first unionid, and setting the data status of the target relationship chain to valid, wherein the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud ID; if not, associating the first openid and the first unionid and caching them in the service cloud's storage.
2. The account association control method according to claim 1, characterized in that, The account association control method also includes: When the unfollow event of the target public account is detected, the target unionid of the target user corresponding to the unfollow 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. The target relationship chain includes the bound target unionid, the first openid, the second openid, and the target service cloud ID.
3. The account association control method according to claim 1, characterized in that, The association data is a set of relationship graphs. If a matching unionid is found, the cached association data in the storage is updated based on 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. This includes: If the second unionid matches the same first unionid, a first relationship graph is generated based on 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 that binds to the same device based on each IoT device ID; If it does not exist, the first relation graph is stored in the cached relation graph set in the memory; If it exists, a third relationship graph is generated based on the first relationship graph and the second relationship graph, and the third relationship graph is cached in the memory.
4. The account association control method according to claim 1, characterized in that, The association data is a set of relationship graphs. The step of responding to a target interaction command by controlling the association of the target public account, the target mini-program, and the service cloud based on the association data includes: The target relationship graph is retrieved from the relationship graph set according to the target interaction command; The target public account, the target mini-program, and the service cloud are associated and controlled according to the target interaction instructions and the target relationship graph.
5. The account association control method according to claim 4, characterized in that, The step of associating and controlling the target public account, the target mini-program, and the service cloud based on the target interaction instructions 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, then control the target official account to log in to the target service cloud account without password through the single sign-on interface provided by the target mini-program based on the target relationship graph; Based on the target IoT device ID bound to the target service cloud account and the target relationship graph, it is determined whether there is a duplicate work order. The duplicate work order is the same service request work order created by the first user or the second user. If so, a prompt message is generated and pushed to the first user through the target public account; If not, an on-site service order will be created in the service cloud based on the target IoT device ID.
6. The account association control method according to claim 5, characterized in that, If the target interaction instruction is a work order creation instruction created by the first user through the target official account, then the target official account is controlled to log in to the target service cloud account without a password based on the target relationship graph through the single sign-on interface provided by the target mini-program, including: In response to the work order creation instruction, determine whether the second openid has only one associated service cloud ID based on the target relationship graph; If so, the associated service cloud ID will be determined as the target service cloud account; otherwise, the service cloud ID of the last login using the second openid will be determined as the target service cloud account. The target official account logs into the target service cloud account without a password through the target mini-program.
7. An account association control device, characterized in that, The account association control device includes: The processing module 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 in the storage of the service cloud when the target public account is monitored, and generate a target follow event response message. The target follow event response message includes the entry link of the target mini program, which is used to provide the single sign-on interface of the service cloud. The matching module 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 to perform matching in the storage of the service cloud using the second unionid in the user verification parameters. The association update module is used to update the cached association data in the memory based on 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 matching unionid is found. The association control module is used to respond to the target interaction command and perform association control on the target public account, the target mini program and the service cloud according to the association relationship data; The step of caching the first openid between the WeChat user and the target official account and the first unionid corresponding to the WeChat user in the service cloud's storage when a target follow event of the target official account is detected includes: obtaining the first openid between the WeChat user and the target official account and the first unionid corresponding to the WeChat user when a target follow event of the target official account is detected; determining whether the target follow event is a re-follow based on the first openid; if so, determining the target relationship chain corresponding to the last entry into the target mini-program based on the first unionid, and setting the data status of the target relationship chain to valid, wherein the target relationship chain includes the bound unionid, the first openid, the second openid, and the target service cloud ID; if not, associating the first openid and the first unionid and caching them in the service cloud's storage.
8. An account association control device, characterized in that, The account association control device includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the account association control device to perform the account association control method as described in any one of claims 1-6.
9. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is read and executed, it performs the account association control method as described in any one of claims 1-6.
Citation Information
Patent Citations
Associated account analysis method and device and computer readable storage medium
CN110287688A
Method to Efficiently and Reliably Process Ordered User Account Events in a Cluster
US20180121515A1