Account association method and apparatus, computer device, and storage medium
By establishing communication connections between devices to obtain account and identity information, and having the server establish association relationships, the complex process of device account association is solved, enabling convenient account association operations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-02-24
- Publication Date
- 2026-05-26
AI Technical Summary
The process of establishing associations between device accounts in existing technologies is complex and lacks convenience.
By establishing communication connections between devices, account and identity information can be obtained, and the server can establish associations without conflict, simplifying the operation process.
It enables convenient establishment of device account associations, allowing users to complete the association simply by selecting one identity, simplifying the operation process and improving convenience.
Smart Images

Figure CN116702105B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an account association method, apparatus, computer device, and storage medium. Background Technology
[0002] With the development of computer technology, devices are becoming increasingly feature-rich and diverse. Currently, a function has been proposed to establish associations between accounts logged in on multiple devices. The process of establishing these associations is currently quite complex, and simplifying this process is a pressing issue that needs to be addressed. Summary of the Invention
[0003] This application provides an account association method, apparatus, computer device, and storage medium, which can improve the convenience of establishing association relationships. The technical solution is as follows:
[0004] On the one hand, an account association method is provided, the method including:
[0005] In response to the instruction to establish an association, a communication connection is established with the first device;
[0006] Based on the communication connection, the first account and first identity logged in by the first device are obtained, wherein the first identity is the identity selected by the first device from multiple identities included in the association relationship;
[0007] Display first identity verification information, which includes the plurality of identities;
[0008] In response to the selection of the second identity among the plurality of identities, the second identity is obtained, and the second account logged in on the local device is obtained;
[0009] If the second identity does not conflict with the first identity, an account association request is sent to the server. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
[0010] In one possible implementation, the method further includes:
[0011] When the target application has enabled short-range communication and the local device is detected to have switched from a mobile state to a stationary state, the local device broadcasts its short-range communication signal.
[0012] In another possible implementation, the method further includes:
[0013] If the first identity conflicts with the second identity, the communication connection with the first device is disconnected.
[0014] On the other hand, an account association method is provided, the method comprising:
[0015] When a communication connection is established with a second device, second identity verification information is displayed, which includes multiple identities in the association to be established;
[0016] In response to the selection of a first identity among the plurality of identities, the first identity is obtained, and the first account logged in on the local device is obtained;
[0017] Based on the communication connection, the first account and the first identity are sent to the second device;
[0018] Wherein, the second device is used to send an account association request to the server when the first identity and the second identity do not conflict, requesting that the second account logged in by the second device be used as the second identity and the first account be used as the first identity, and to establish an association relationship between the first account and the second account, wherein the second identity is the identity selected by the second device from the plurality of identities.
[0019] In one possible implementation, displaying the second identity verification information upon establishing a communication connection with the second device includes:
[0020] Based on the communication connection, receive the identity verification request sent by the second device;
[0021] Based on the identity verification request, the second identity verification information is displayed.
[0022] In another possible implementation, the local device has the target application installed, the first account is the account logged into the target application, and the communication connection is a short-range communication connection; before displaying the second identity verification information when a communication connection is established with the second device, the method further includes:
[0023] When the target application has enabled short-range communication and the local device is detected to have switched from a mobile state to a stationary state, the local device broadcasts a short-range communication signal. The second device is used to establish the short-range communication connection between the local device and the second device based on the short-range communication signal broadcast by the local device.
[0024] On the other hand, an account association device is provided, the device comprising:
[0025] The module establishes a communication connection with the first device in response to an instruction to establish an association.
[0026] The acquisition module is used to acquire, based on the communication connection, the first account and first identity logged in by the first device, wherein the first identity is the identity selected by the first device from multiple identities included in the association relationship;
[0027] A display module is used to display first identity verification information, which includes the plurality of identities;
[0028] The acquisition module is further configured to, in response to the selection operation of the second identity among the plurality of identities, acquire the second identity and acquire the second account logged in by the local device;
[0029] The sending module is used to send an account association request to the server when the second identity does not conflict with the first identity. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
[0030] In one possible implementation, the communication connection is a short-range communication connection; the establishment module includes:
[0031] A receiving unit is configured to receive a short-range communication signal broadcast by at least one device in response to an instruction to establish the association.
[0032] The establishment unit is used to establish the short-range communication connection with the first device when the target short-range communication signal meets the connection conditions;
[0033] Wherein, the target short-range communication signal is any one of the at least one received short-range communication signals, and the first device is the device that broadcasts the target short-range communication signal among the at least one devices.
[0034] In another possible implementation, the local device has a target application installed, the second account is an account logged in to the target application, and the receiving unit is used to receive short-range communication signals broadcast by at least one device when the target application has enabled short-range communication function and the local device is detected to have switched from a mobile state to a stationary state.
[0035] In another possible implementation, the receiving unit is configured to detect the motion state of the local device when the target application enables the short-range communication function; and to receive the short-range communication signal broadcast by the at least one device when the local device stops after shaking, or when the local device's moving speed increases from 0 to 0 within a target duration.
[0036] In another possible implementation, the device further includes:
[0037] The broadcast module is used to broadcast the short-range communication signal of the local device when the target application has enabled the short-range communication function and the local device is detected to switch from a mobile state to a stationary state.
[0038] In another possible implementation, the connection condition includes at least one of the following:
[0039] The received short-range communication signal belongs to the same signal type as the short-range communication signal broadcast by the local device;
[0040] The signal strength of the received short-range communication signal is greater than the strength threshold.
[0041] In another possible implementation, the acquisition module is configured to, in response to establishing the communication connection, send an identity verification request to the first device based on the communication connection; the first device is configured to, based on the identity verification request, display second identity verification information, the second identity verification information including the plurality of identities, acquire the first identity selected from the plurality of identities, return the first identity and the first account; and receive the first account and the first identity sent by the first device based on the communication connection.
[0042] In another possible implementation, the display module is configured to display the first identity verification information in response to establishing the communication connection.
[0043] In another possible implementation, the device further includes:
[0044] A receiving module is used to receive notification messages returned by the server;
[0045] The sending module is further configured to send a message indicating successful association between the first account and the second account to the first device when the notification message indicates that the association between the first account and the second account has been successfully established.
[0046] The disconnect module is used to disconnect the communication connection with the first device if the notification message indicates that the association has not been successfully established.
[0047] In another possible implementation, the second identity has the authority to manage the first identity, and the device further includes:
[0048] The display module is used to display the application usage records corresponding to the first account;
[0049] The configuration module is used to configure the displayed application usage records.
[0050] In another possible implementation, the configuration module is configured to perform at least one of the following:
[0051] The application usage record includes the allowed online time for the first account to log in to the application, and the allowed online time is adjusted;
[0052] The application usage record includes an application list, and applications in the application list can be added or removed. The first account has the permission to log in to the applications in the application list.
[0053] The application usage record includes the usage time period of at least one application. The usage time period of the at least one application is adjusted, wherein the first account has the permission to log in to the corresponding application during any usage time period.
[0054] In another possible implementation, the device further includes:
[0055] The disconnect module is used to disconnect the communication connection with the first device in the event of a conflict between the first identity and the second identity.
[0056] On the other hand, an account association device is provided, the device comprising:
[0057] The display module is used to display second identity verification information when a communication connection is established with the second device. The second identity verification information includes multiple identities in the association to be established.
[0058] The acquisition module is used to acquire the first identity and the first account logged in on the local device in response to the selection operation of the first identity among the multiple identities;
[0059] The sending module is used to send the first account and the first identity to the second device based on the communication connection;
[0060] Wherein, the second device is used to send an account association request to the server when the first identity and the second identity do not conflict, requesting that the second account logged in by the second device be used as the second identity and the first account be used as the first identity, and to establish an association relationship between the first account and the second account, wherein the second identity is the identity selected by the second device from the plurality of identities.
[0061] In one possible implementation, the display module is configured to receive an identity verification request sent by the second device based on the communication connection; and display the second identity verification information based on the identity verification request.
[0062] In another possible implementation, the local device has a target application installed, the first account is an account logged into the target application, and the communication connection is a short-range communication connection; the device further includes:
[0063] The broadcast module is used to broadcast the short-range communication signal of the local device when the target application has enabled the short-range communication function and the local device is detected to switch from a mobile state to a stationary state. The second device is used to establish the short-range communication connection between the local device and the second device based on the short-range communication signal broadcast by the local device.
[0064] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the account association method as described above.
[0065] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to perform the operations performed by the account association method as described above.
[0066] In another aspect, a computer program product is provided, comprising a computer program that, when executed by a processor, performs the operations performed by the account association method described above.
[0067] The method, apparatus, computer device, and storage medium provided in this application, when two devices to be associated are involved, automatically establish a communication connection with the other device after either device receives an instruction to establish an association. Based on the established communication connection, the device obtains the login account and identity of the other device, as well as the login account and identity of its own device. Then, the server establishes an association between the two accounts according to the identities selected by the two accounts. During the association establishment process, the user only needs to select an identity for the device's login account, without performing excessive operations. The association between the two accounts is established automatically through device interaction, thus simplifying the association establishment process and improving its convenience. Attached Figure Description
[0068] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0069] Figure 1 This is a schematic diagram of the structure of an implementation environment provided in an embodiment of this application;
[0070] Figure 2 This is a flowchart of an account association method provided in an embodiment of this application;
[0071] Figure 3 This is a flowchart of an account association method provided in an embodiment of this application;
[0072] Figure 4 This is a flowchart of an account association method provided in an embodiment of this application;
[0073] Figure 5 This is a schematic diagram of the interface of a first device provided in an embodiment of this application;
[0074] Figure 6 This is a schematic diagram of the communication model of a Bluetooth communication connection provided in an embodiment of this application;
[0075] Figure 7 This is a schematic diagram illustrating the establishment of a Bluetooth communication connection between two devices according to an embodiment of this application;
[0076] Figure 8 This is a schematic diagram illustrating the display of identity verification information by two devices according to an embodiment of this application;
[0077] Figure 9 This is a schematic diagram illustrating the display of identity verification information by two devices according to an embodiment of this application;
[0078] Figure 10 This is a schematic diagram illustrating the disconnection of Bluetooth communication between two devices according to an embodiment of this application;
[0079] Figure 11 This is a flowchart illustrating an interaction between a server and a second device, as provided in an embodiment of this application.
[0080] Figure 12 This is a flowchart illustrating the establishment of a communication connection between a first device and a second device, as provided in an embodiment of this application.
[0081] Figure 13 This is a schematic diagram of the interface of a target application provided in an embodiment of this application;
[0082] Figure 14 This is a schematic diagram of a peripheral device broadcast signal provided in an embodiment of this application;
[0083] Figure 15 This is a schematic diagram of a central device receiving signals according to an embodiment of this application;
[0084] Figure 16 This is a schematic diagram of a short-range communication signal broadcast between a first device and a second device according to an embodiment of this application;
[0085] Figure 17 This is a flowchart illustrating the establishment of an association relationship provided in an embodiment of this application;
[0086] Figure 18 This is a flowchart illustrating the establishment of an association relationship provided in an embodiment of this application;
[0087] Figure 19 This is a schematic diagram of the interface of a game management application provided in an embodiment of this application;
[0088] Figure 20 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application;
[0089] Figure 21 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application;
[0090] Figure 22 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application;
[0091] Figure 23 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application;
[0092] Figure 24 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0093] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0094] The terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are used only to distinguish one concept from another. For example, without departing from the scope of this application, a first identity may be referred to as a second identity, and similarly, a second identity may be referred to as a first identity.
[0095] As used in this application, the terms "at least one," "multiple," "each," and "any" have the following meanings: at least one includes one, two, or more; multiple includes two or more; each refers to each of the corresponding multiple; and any refers to any one of the multiple. For example, multiple identities include three identities, where each refers to each of the three identities, and any refers to any one of the three identities, which could be the first, the second, or the third.
[0096] In the specific implementation of this application, the account information and account verification information involved require user permission or consent, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant regions.
[0097] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also... Figure 1 The implementation environment includes a first device 101, a second device 102, and a server 103. The first device 101 and the second device 102 can be any device, such as a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, vehicle terminal, and aircraft, but are not limited to these.
[0098] The first device 101 is used to establish a communication connection with the second device 102 when an association relationship needs to be established. The first device 101 uses this communication connection to realize the interaction between the first device 101 and the second device 102, obtain the account logged in by the second device 102 and the selected identity, and request the server 103 to establish an association relationship between the accounts logged in by the first device 101 and the second device 102.
[0099] Optionally, both the first device 101 and the second device 102 have the target application installed. Optionally, the target application can be an application in the operating system of the first device 101 and the second device 102, or an application provided by a third party. Optionally, the target application can be any application, such as a game management application, a music application, a video application, etc., and this embodiment does not impose any limitations on this. The first account logged into the first device 101 and the second account logged into the second device 102 are both accounts logged into the target application, and the server 103 provides services to the target application. The first device 101 and the second device 102 establish a communication connection based on the target application and interact based on the established communication connection. The second device 102 acts as the leading device, requesting 103 to establish an association relationship between the accounts logged into the first device 101 and the second device 102.
[0100] Figure 2 This is a flowchart of an account association method provided in an embodiment of this application. The method is executed by a second device, such as... Figure 2 As shown, the method includes:
[0101] 201. In response to the instruction to establish an association, the second device establishes a communication connection with the first device.
[0102] The association relationship refers to the relationship between accounts logged in on at least two devices. Within this relationship, each account has a unique identity, and different accounts have different identities. The instruction to establish an association relationship indicates the need to establish an association between the account logged in on the second device and accounts logged in on other devices. This establishes a communication connection with the first device, enabling the second device to interact with the first device subsequently based on this communication connection.
[0103] 202. Based on the communication connection, the second device obtains the first account and first identity logged in by the first device. The first identity is the identity selected by the first device from multiple identities included in the association relationship.
[0104] The first account can be represented in any form, such as a nickname or a mobile phone number. The association includes multiple identities, which can be selected for each account when establishing the association. The first identity is any identity selected by the first device from these multiple identities. For example, if the multiple identities include "parent" and "child," the first device would select "child" as the first identity for the first account. Another example is if the multiple identities include "father," "mother," "son," and "daughter," and the first device would select "son" as the first identity for the first account.
[0105] In this embodiment of the application, when establishing an association between accounts logged in on any two devices, each device needs to assign an identity to the logged-in account so that the association can be established according to the identity assigned to each account. Therefore, after establishing a communication connection with the first device, the second device interacts with the first device based on the communication connection to obtain the first account logged in by the first device and the identity assigned to the first account by the first device.
[0106] 203. The second device displays first identity verification information, which includes the multiple identities.
[0107] The first identity verification information includes multiple identities in the relationship to be established. The user can select from the multiple identities included in the first identity verification information.
[0108] 204. In response to the selection operation of the second identity among the multiple identities, the second device obtains the second identity and obtains the second account logged in by the local device.
[0109] The selection operation can be of any type, such as a click or a swipe. The second account can be represented in any form, and the second identity can be any of multiple identities. For the second device, the local device is the second device, meaning the second account is the account logged in on the second device. Based on the displayed first identity information, the user selects one identity from the multiple displayed identities for the second account within the pending association relationships.
[0110] 205. If the second identity does not conflict with the first identity, the second device sends an account association request to the server. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
[0111] The server is used to manage the association relationships between accounts. The second identity does not conflict with the first identity, meaning that an association can be established according to the first identity assigned to the first account and the second identity assigned to the second account. This is equivalent to the second account, the second identity, the first account, and the first identity meeting the requirements for establishing an association. In this case, the second device interacts with the server, and the server establishes the association.
[0112] The method provided in this application, for two devices to be associated, automatically establishes a communication connection with the other device after receiving an instruction to establish an association. Based on the established communication connection, it obtains the login account and identity of the other device, as well as the login account and identity of its own device. Then, the server establishes an association between the two accounts according to the identities selected by the two accounts. During the association establishment process, the user only needs to select an identity for the device's login account, without performing excessive operations. The association between the two accounts is established automatically through device interaction, thus simplifying the association establishment process and improving its convenience.
[0113] Figure 3 This is a flowchart of an account association method provided in an embodiment of this application. The method is executed by a first device, such as... Figure 3 As shown, the method includes:
[0114] 301. When the first device establishes a communication connection with the second device, it displays the second identity confirmation information.
[0115] The second identity verification information includes multiple identities in the relationship to be established.
[0116] 302. The first device responds to the selection operation of the first identity among the multiple identities, obtains the first identity, and obtains the first account logged in by the local device.
[0117] 303. Based on the communication connection, the first device sends the first account and the first identity to the second device.
[0118] The second device is used to send an account association request to the server when the first identity and the second identity do not conflict. The request is to use the second account logged in by the second device as the second identity and the first account as the first identity to establish an association relationship between the first account and the second account. The second identity is the identity selected by the second device from the multiple identities.
[0119] The method provided in this application, for two devices to be associated, automatically establishes a communication connection with the other device after receiving an instruction to establish an association. Based on the established communication connection, it obtains the login account and identity of the other device, as well as the login account and identity of its own device. Then, the server establishes an association between the two accounts according to the identities selected by the two accounts. During the association establishment process, the user only needs to select an identity for the device's login account, without performing excessive operations. The association between the two accounts is established automatically through device interaction, thus simplifying the association establishment process and improving its convenience.
[0120] exist Figure 2 and Figure 3 Based on the illustrated embodiment, the second device interacts with the first device and the server respectively to establish the association between the first account and the second account. Furthermore, the second device and the first device interact based on the established short-range communication connection, as detailed in the following embodiment.
[0121] Figure 4 This is a flowchart illustrating an account association method provided in an embodiment of this application. The method is executed interactively by a first device, a second device, and a server. Figure 4 As shown, the method includes:
[0122] 401. In response to the instruction to establish an association, the second device receives a short-range communication signal broadcast by at least one device.
[0123] Among them, short-range communication signals can be any type of communication signal, such as Bluetooth signals, WiFi (Wireless Fidelity) signals, NFC (Near Field Communication) signals, etc.
[0124] In this embodiment of the application, at least one device to be connected will broadcast a short-range communication signal, and after the second device obtains the instruction to establish an association, it will receive the short-range communication signal broadcast by other devices so as to establish a short-range communication connection with any device based on the received short-range communication signal.
[0125] 402. When the target short-range communication signal meets the connection conditions, the second device establishes a short-range communication connection with the first device.
[0126] The target short-range communication signal is any one of the at least one received short-range communication signals, and the first device is the device that broadcasts the target short-range communication signal among the at least one devices. The connection condition is the condition that the short-range communication signal broadcast by the device must meet for the device to establish a short-range communication connection with the second device. When an association needs to be established, the second device will actively receive short-range communication signals broadcast by other devices. If any received short-range communication signal meets the connection condition, it will establish a short-range communication connection with the device that broadcast the short-range communication signal, so that it can subsequently obtain the account logged into by the device and the identity selected for that account based on this short-range communication connection.
[0127] In one possible implementation, the connection condition includes at least one of the following:
[0128] The first condition is that the received short-range communication signal belongs to the same signal type as the short-range communication signal broadcast by the local device.
[0129] In this context, the local device is the same as the second device, meaning that the received short-range communication signal belongs to the same signal type as the short-range communication signal broadcast by the second device.
[0130] In this embodiment, in response to an instruction to establish an association, the second device, while receiving short-range communication signals broadcast by other devices, also broadcasts its own short-range communication signals for other devices to receive. Each device broadcasts a short-range communication signal of a specific signal type. For any two devices, if the short-range communication signals they broadcast belong to different signal types, it indicates that there is no basis for establishing an association between the two devices, and a communication connection cannot be established. That is, a communication connection can only be established between two devices when the short-range communication signals they broadcast belong to the same signal type.
[0131] Optionally, if the short-range communication signal broadcast by each device carries the device's own service identifier, then if the format of the server identifier carried by the received short-range communication signal is the same as the format of the server identifier carried by the short-range communication signal broadcast by the local device, it is determined that the received short-range communication signal and the short-range communication signal broadcast by the local device belong to the same signal type.
[0132] Each device broadcasts a short-range communication signal carrying its own service identifier. Different devices have different service identifiers, which are unique identifiers that distinguish them. For example, the server identifier is ServiceUUID (Service Universally Unique Identifier). Each device's service identifier follows a specific format. If two devices have service identifiers of the same format, it indicates that the short-range communication signals broadcast by those two devices belong to the same signal type.
[0133] The second condition is that the signal strength of the received short-range communication signal is greater than the strength threshold.
[0134] The strength threshold can be any value. For any device, the signal strength of the short-range communication signal broadcast by that device gradually weakens as the propagation distance increases. When the signal strength of the short-range communication signal is less than the strength threshold, it indicates that the distance between the second device and the device broadcasting the short-range communication signal is too great, and the second device cannot establish a short-range communication connection with that device using the short-range communication signal. Therefore, when the second device receives a short-range communication signal broadcast by any device, the requirement to establish a short-range communication connection with that device is met only if the signal strength of the received short-range communication signal is greater than the strength threshold.
[0135] It should be noted that in this embodiment, the second device, in response to the instruction to establish an association, first receives short-range communication signals broadcast by other devices and selects the first device corresponding to the distance communication signal that meets the connection conditions to establish a short-range communication connection. In another embodiment, steps 401-402 are not required; instead, other methods are adopted, and the second device, in response to the instruction to establish an association, establishes a communication connection with the first device.
[0136] 403. In response to the established short-range communication connection, the second device sends an identity verification request to the first device based on the short-range communication connection.
[0137] The identity verification request is used to request the first account to log in to the first device and the first identity selected for that first account in the relationship to be established. The second device automatically sends this identity verification request to the first device immediately upon successfully establishing a short-range communication connection with the first device.
[0138] 404. The first device receives the identity verification request and displays the second identity verification information based on the identity verification request.
[0139] The second identity verification information includes multiple identities in the relationship to be established. After receiving the identity verification request, the first device indicates that the second device needs to obtain the first account logged in by the first device and the identity selected for the first account. Therefore, the second identity verification information is displayed immediately so that the user can select an identity for the first account from the displayed multiple identities.
[0140] In one possible implementation, the second identity information may also include a device identifier corresponding to the second device, and a brief description of the identity verification request.
[0141] The device identifier indicates the second device, and the brief description explains the intent of this identity verification request. By displaying the device identifier and brief description corresponding to the second device, the user is clearly informed which device they are currently interacting with, and what the currently displayed second identity verification information is for, thus instructing the user to take appropriate action.
[0142] In one possible implementation, the first device displays the second identity verification information in the form of a pop-up window.
[0143] like Figure 5 As shown, the first device displays a pop-up window 501, which includes "Association request from XXX", where "XXX" is the device identifier corresponding to the second device. It also includes a brief description and multiple identity options, such as "I am a parent", "I am a child", and "Reject". Users can perform operations in the displayed pop-up window.
[0144] In one possible implementation, the process of the first device displaying the second identity verification information includes the following two methods:
[0145] In the first method, the identity verification request carries the second identity verification information, and the first device displays the second identity verification information after receiving the identity verification request.
[0146] In the second method, if the first device is configured with multiple identities that are associated with each other, then after receiving an identity verification request sent by the second device, the first device generates the second identity verification information based on the identity verification request and displays the generated second identity verification information.
[0147] Optionally, the identity verification request carries the device identifier and brief description of the second device, and the process of generating the second identity verification information includes: the first device generating the second identity verification information based on multiple configured identities, device identifiers and brief descriptions.
[0148] Optionally, if the identity verification request carries the device identifier corresponding to the second device, and the first device is configured with an identity verification information template, which includes the multiple identities and the brief description, then the process of generating the second identity verification information includes: the first device filling the device identifier into the identity verification information template to obtain the second identity verification information.
[0149] It should be noted that the embodiments of this application are only examples of the two methods described above to illustrate how the first device generates the second identity verification information. In another embodiment, the first device may also generate the second identity verification information in other ways, and this application does not limit this.
[0150] It should be noted that in this embodiment, the first device displays the second identity verification information based on an identity verification request sent by the second device. However, in another embodiment, steps 403-404 are not required; instead, other methods are used to display the second identity verification information after a communication connection is established with the second device. In one possible implementation, the first device displays the second identity verification information in response to establishing a communication connection with the second device; that is, the first device immediately displays the second identity information upon learning that a communication connection has been successfully established with the second device.
[0151] 405. In response to the selection operation of the first identity among the multiple identities, the first device obtains the first identity and obtains the first account logged in by the first device; based on the short-range communication connection, it sends the first account and the first identity to the second device.
[0152] In this context, the first identity can be any one of multiple identities, and the selection operation can be of any type, such as a click or a swipe. When the first device displays multiple identities, the user can select one of them as the identity for the first account in the relationship to be established. Then, based on the communication connection between the first device and the second device, the first device sends the first identity and the first account to the second device so that the second device can establish the relationship based on the first identity and the first account.
[0153] In one possible implementation, the process of obtaining a first identity includes: when a first device displays multiple identity options, it obtains the first identity in response to the selection of a first identity option.
[0154] Each identity option can be any form of option, such as a button or a slider. When a user selects a first identity option, the first device acquires that first identity, which is the identity selected by the user for that first account.
[0155] 406. The second device receives the first account and the first identity sent by the first device based on the communication connection.
[0156] It should be noted that in this embodiment, the first device obtains the first identity and first account logged in by the second device by sending an identity verification request to the first device. In another embodiment, steps 403-406 above do not need to be performed. Instead, other methods are used, whereby the second device obtains the first account and first identity logged in by the first device based on the communication connection. The first identity is the identity selected by the first device from multiple identities included in the association relationship. For example, the first account and first identity are actively sent by the second device to the first device based on the communication connection. This application does not limit this.
[0157] 407. The second device displays the first identity confirmation information.
[0158] The first identity verification information includes multiple identities in the relationship to be established.
[0159] In one possible implementation, the first identity information may also include a device identifier corresponding to the first device, and a brief description of the identity verification request.
[0160] By displaying the device identifier and brief description corresponding to the first device, the user can clearly understand which device they are currently interacting with, and what the currently displayed first identity verification information is for, thus instructing the user to perform an operation. Optionally, the device identifier corresponding to the first device is obtained when establishing a short-range communication connection with the first device. The device identifier corresponding to the first device can also be obtained in other ways, which are not limited in this application.
[0161] In one possible implementation, the second device displays the second identity verification information in the form of a pop-up window.
[0162] In one possible implementation, step 407 includes: the second device, in response to establishing the short-range communication connection, displaying first identity verification information.
[0163] Once the second device successfully establishes a short-range communication connection with the first device, it immediately displays the first identity verification information, allowing the user to select an identity for the account logged into the second device.
[0164] It should be noted that in this embodiment, after the second device establishes a short-range communication connection with the first device, it first interacts with the first device to obtain the first account and first identity sent by the first device, and then displays the first identity information. In another embodiment, in response to the established short-range communication connection, the second device first displays the first identity confirmation information and then sends an identity confirmation request to the first device; or, in response to the established short-range communication connection, the second device sends an identity confirmation request to the first device while simultaneously displaying the first identity confirmation information. This application does not limit this.
[0165] 408. In response to the selection operation of the second identity among the multiple identities, the second device obtains the second identity and obtains the second account logged in by the second device.
[0166] The second identity can be any one of multiple identities. This step is the same as step 405 above, and will not be repeated here.
[0167] 409. If the second device does not conflict with the first identity, it sends an account association request to the server.
[0168] The account association request includes the second account, the second identity, the first account, and the first identity.
[0169] Since the primary and secondary identities are chosen by different users, conflicts may arise. If an account association request is sent to the server despite a conflict between the primary and secondary identities, the server will be unable to establish an association, thus only increasing server load without actually establishing the association. Therefore, after obtaining the identities of the two accounts to be associated, the second device needs to verify both identities. Only if the two identities do not conflict will an account association request be sent to the server to avoid increasing server load.
[0170] Optionally, if the first identity and the second identity are different, or if the first identity and the second identity meet the conditions for establishing an association, then the first identity and the second identity are determined not to conflict. These conditions are the requirements that the identities corresponding to the two accounts establishing the association must meet.
[0171] For example, if the relationship to be established includes multiple identities of "parent" and "child", then if both the second and first identities are "parent" or both are "child", then the first and second identities conflict. If the first identity is "parent" for all of them and the second identity is "child", or if the second identity is "parent" for all of them and the first identity is "child", then the first and second identities do not conflict.
[0172] For example, the relationship to be established includes multiple identities such as "father," "mother," "son," and "daughter." The establishment condition indicates that of the two identities establishing the relationship, one identity must be either "father" or "mother," and the other identity must be either "son" or "daughter." If the first identity is "father" and the second identity is "mother," then the first and second identities do not meet the establishment condition; that is, the first and second identities conflict. If the first identity is "father" and the second identity is "son," then the first and second identities meet the establishment condition; that is, the first and second identities do not conflict.
[0173] 410. The server receives the account association request, establishes an association relationship between the second account and the first account, using the first account as the first identity and the second account as the second identity.
[0174] The server is used to establish associations between accounts. Optionally, both the first and second devices have the target application installed, and the first and second accounts are login accounts within the target application. The server provides services to the target application. Upon receiving an account association request, the server establishes an association between the two accounts according to the identity selected for each account. That is, in the established association, the first account is the first identity, and the second account is the second identity. Optionally, the accounts with different identities have different permissions within the association. For example, the first identity may have the permission to manage the second identity, or vice versa.
[0175] In one possible implementation, after receiving an account association request from the second device, the server verifies the information carried in the request. Only if the verification passes will the association between the second account and the first account be established. The verification process includes the following two methods:
[0176] The first method is to obtain the association relationships corresponding to the first account and the second account respectively. If the association relationships corresponding to the first account and the second account do not conflict with the association relationship to be established, the verification is confirmed to be successful.
[0177] In this context, the associations corresponding to the first account are the existing associations that include the first account; similarly, the associations corresponding to the second account are the existing associations that include the second account. If either the associations corresponding to the first account or the associations corresponding to the second account cannot coexist with the association to be established, it indicates a conflict with the currently pending association. For example, if the server limits the maximum number of associations established with any account as the same identity, say a maximum of 2, and the number of associations corresponding to the first account as "father" is 2, meaning the maximum number of associations established with the first account as "father" has been reached, and the server currently receives pending associations where the first account's identity is still "father," then it cannot establish another association according to the account association request sent by the second device.
[0178] The second method is to obtain the first account information corresponding to the first account and the second account information corresponding to the second account. Based on the first account information and the second account information, determine the first age corresponding to the first account and the second age corresponding to the second account. If the relationship between the first age and the second age matches the relationship between the first identity and the second identity, the verification is considered successful.
[0179] In this embodiment of the application, the server stores account information corresponding to each account, and each piece of account information is used to represent the corresponding account. For example, account information includes age or other information.
[0180] For example, if the first account corresponds to a first age of 15, the second account corresponds to a second age of 40, and the first identity is a child and the second identity is a parent, the relationship between the first and second ages matches the relationship between the child and the parent, then the verification is confirmed to be successful.
[0181] In one possible implementation, after the server verifies the information carried in the account association request, it adds the first identity to the first account information and the second identity to the second account information.
[0182] In this embodiment, after the server verifies the information carried in the account association request, an association relationship can be established between the first account and the second account. Therefore, the first identity and the second identity are added to the corresponding account information to record the identities of the first account and the second account in the association relationship. For example, both the first identity and the second identity are family identities, which include father, mother, or child, etc. By adding the first identity and the second identity to the corresponding account information, the account information corresponding to the first account and the second account includes the family identity of the corresponding account in the association relationship.
[0183] Furthermore, in practical applications, the method provided in this application can establish an association between parent accounts and child accounts, and the parent identity corresponding to the parent account can manage the child identity corresponding to the child account. Considering that during the process of establishing the association, there may be situations where the child controls the two devices to establish the association, it is necessary to verify the parent account corresponding to the parent identity when establishing the association to ensure the accuracy of the established association.
[0184] In one possible implementation, the process of establishing an association between the server and the target account includes: after receiving an account association request from the second device, the server interacts with the target device logged in by the target account corresponding to the target identity, verifies the target account, and only establishes an association between the second account and the first account if the account verification is successful. That is, the identity verification process includes: the server sending an account verification request to the target device, the target device obtaining the input account verification information based on the account verification request, sending the account verification information to the server, the server receiving the account verification information, verifying the account verification information, and establishing an association between the second account and the first account if the account verification information is successful.
[0185] The target identity is either a first identity or a second identity, where the target identity has the authority to manage the other identity. The target account is the account corresponding to the target identity, and the target device is the device used to log in to the target account. For example, the target identity is the first identity, which has the authority to manage the second identity; the target account is the first account, and the target device is the first device. Alternatively, the target identity is the second identity, which has the authority to manage the first identity; the target account is the second account, and the target device is the second device. Account verification information is used to identify the user referred to by the target account. This account verification information can be of any type, such as the user's facial information or a password.
[0186] In this embodiment, when a user registers an account on the server, they enter account verification information. After account registration is complete, the server stores the account verification information corresponding to that account. Upon receiving an account verification request from the server, the target device displays an input area for account verification information, such as a password input area or a face recognition area, so that the user can enter the verification information. The device then sends the obtained account verification information to the server, which compares it with the account verification information stored on the server to determine whether the account verification has passed.
[0187] After receiving an account association request, the server interacts with the target device logged in by the target account corresponding to the target identity to verify the target account. This ensures that the target device is operated by the user represented by the target account, preventing other users from requesting to establish an association, and thus guaranteeing the accuracy of the established association.
[0188] It should be noted that after receiving the account association request from the second device, the server can combine the two verification processes. Specifically, the server verifies the information carried in the account association request. If the verification passes, it interacts with the target device logged into by the target account corresponding to the target identity to verify the target account. Only if the account verification passes will the association between the second account and the first account be established. Alternatively, the server interacts with the target device logged into by the target account corresponding to the target identity to verify the target account. If the account verification passes, it verifies the information carried in the account association request. Only if the verification passes will the association between the second account and the first account be established. After receiving the account association request from the second device, the server performs multiple verifications on this request to ensure the accuracy of the established association.
[0189] It should be noted that the embodiments of this application are illustrated by taking the example of the first device selecting a first identity from multiple displayed identities. In another embodiment, in response to the rejection operation of the second identity confirmation information, the first device disconnects the communication connection between the first device and the second device and no longer executes the above steps 405-410.
[0190] It should be noted that the embodiments of this application are illustrated with the example that the first identity and the second identity do not conflict. In another embodiment, if the first identity and the second identity conflict, the second device disconnects the communication connection with the first device and no longer executes the above steps 409-410.
[0191] The method provided in this application, for two devices to be associated, automatically establishes a communication connection with the other device after receiving an instruction to establish an association. Based on the established communication connection, it obtains the login account and identity of the other device, as well as the login account and identity of its own device. Then, the server establishes an association between the two accounts according to the identities selected by the two accounts. During the association establishment process, the user only needs to select an identity for the device's login account, without performing excessive operations. The association between the two accounts is established automatically through device interaction, thus simplifying the association establishment process and improving its convenience.
[0192] Furthermore, by establishing a short-range communication connection with another device, one device can obtain the login account and identity of the other device, ensuring the privacy of the communication. This eliminates the need to use a broadband network for this purpose, avoiding attacks that could occur when using a broadband network to obtain the identity of another device, thus improving security.
[0193] Furthermore, before establishing an association based on an account association request, the server first verifies the information carried in the account association request. Only if the verification passes will the association be established based on the account association request, thereby ensuring the accuracy of the established association.
[0194] It should be noted that, in the above Figure 4Based on the illustrated embodiment, taking a short-range Bluetooth communication connection as an example, both the second and first devices are configured with BLE (Bluetooth Low Energy). After establishing a Bluetooth communication connection with the first device through the configured BLE, the second device communicates with the first device based on the GATT (Generic Attribute Profile) protocol. During the communication process between the second and first devices, both devices communicate by reading and writing characteristics from the Bluetooth connection service. The communication model of this Bluetooth connection is as follows: Figure 6 As shown. The communication model of this Bluetooth communication connection includes Profile (a communication protocol), Service, and Characteristic. The Profile includes multiple services, each with multiple characteristic values.
[0195] Based on the above Figure 4 The illustrated embodiment provides a schematic diagram of establishing an association between a first device and a second device. For example... Figure 7 As shown, the second device 701 establishes a Bluetooth communication connection between the first device 702 and the second device 701. The second device 701 displays the first identity confirmation information, and the second identity selected by the user is "I am a parent". Figure 8 As shown, the first device 702, based on the Bluetooth communication connection with the second device 701, displays second identity confirmation information. The user selects "I am a child" as the first identity. The second device 701 determines that the first and second identities do not conflict, and then interacts with the server to establish an association between the first account logged in by the first device 702 and the second account logged in by the second device 701. If both the second identity selected by the second device 701 and the first identity selected by the first device 702 are "I am a parent," then... Figure 9 As shown, if the first identity conflicts with the second identity, the second device 701 will disconnect the Bluetooth communication connection with the first device 702. If the first device 702 refuses to establish an association, such as... Figure 10 As shown, the second device 701 will also disconnect the Bluetooth communication connection with the first device 702.
[0196] It should be noted that, in the above Figure 4 Based on the illustrated embodiment, regardless of whether the server successfully establishes the association, the server will return a notification message to the second device so that the second device is aware of whether the association has been successfully established. For example... Figure 11 As shown, after step 410, the method further includes:
[0197] 1101. The server returns a notification message to the second device.
[0198] The notification message indicates whether the association between the first account and the second account has been successfully established.
[0199] 1102. The second device receives the notification message returned by the server.
[0200] 1103. When the notification message indicates that the association between the first account and the second account has been successfully established, the second device sends a message indicating that the association has been successfully established to the first device.
[0201] The message indicating that the association has been successfully established is used to notify the first account and the second account that the association has been successfully established.
[0202] 1104. The first device receives the message that the association has been successfully established and displays the message that the association has been successfully established.
[0203] The first device displays a success message to notify the user that the association has been successfully established.
[0204] 1105. If the notification message indicates that the association has not been successfully established, the second device disconnects the communication connection with the first device.
[0205] If the notification message indicates that the association was not established successfully, it means that the server cannot establish an association with the first account as the first identity and the second account as the second identity. Therefore, the second device and the first device no longer need to interact based on the established communication connection. Thus, the second device disconnects the communication connection with the first device.
[0206] The method provided in this application embodiment allows the server to return a notification message to the second device regardless of whether the account association request sent by the second device is successfully established, so that the second device can know whether the association was successfully established and the user can know the current status of the association.
[0207] Furthermore, once the association between the first and second accounts is successfully established, one account in this association can configure the application usage records of the other account. Taking the second identity having management permissions over the first identity as an example, after the association between the first and second accounts is successfully established, the second account can configure the application usage records corresponding to the first account. This configuration process includes the following steps 1-2:
[0208] Step 1: The second device displays the application usage records corresponding to the first account.
[0209] Step 2: The second device configures the displayed application usage records.
[0210] In one possible implementation, step 2 includes at least one of the following:
[0211] First item: The application usage record includes the allowed online time for the first account to log in to the application, adjust the allowed online time.
[0212] The allowed online time is the maximum amount of time that the first account is allowed to log in to the application. For example, the allowed online time may be 5 hours or 1 hour. In other words, the maximum time the first account can log in to the application is this allowed online time.
[0213] Optionally, the allowed online time is the duration within a period, which can be any period, such as one day or one week. For example, if the period is one day, the maximum allowed online time for the first account to log in to the application each day is the allowed online time; if the period is one week, the maximum allowed online time for the first account to log in to the application within one week is the allowed online time.
[0214] The second item: The application usage history includes an application list, allowing you to add or remove applications from this list.
[0215] The first account has permission to log in to the applications listed in the application list. By adding or removing applications from the application list, the system controls which applications the first account can log in to, thus enabling management of the applications the first account can access. For example, the second account has a secondary identity of "parent," and the first account has a primary identity of "child." The application list includes multiple game applications, and the first account has permission to log in to the game applications in this list. By adding or removing game applications from the application list, the system controls which game applications the first account uses, allowing parents to manage the games their children play.
[0216] Third item: The application usage record includes the usage time period of at least one application, and the usage time period of the at least one application is adjusted.
[0217] The first account has the permission to log in to the corresponding application during any given time period. This time period can be any time period, for example, from 8 PM to 10 PM. Optionally, the time period can be a period within a target period, which can be of any length, for example, a day or a week. For example, the time period could be from 8 PM to 10 PM every day; or, from 8 PM to 10 PM every Saturday.
[0218] Optionally, if the application usage record includes the usage time period of each of the multiple applications, then the second device adjusts the usage time period of each application respectively.
[0219] The method provided in this application embodiment allows accounts with different identities to have different permissions in the established association relationship. When one identity has the permission to manage another identity, based on the association relationship, one account can configure the application usage records corresponding to the other account, thereby realizing the convenience of configuring the application usage records corresponding to other accounts.
[0220] In the above Figure 4 Based on the illustrated embodiment, both the first device and the second device have the target application installed. Both the first account and the second account are accounts used to log in to the target application. The first device and the second device establish a communication connection based on the installed target application. The process of establishing the communication connection is detailed in the following embodiment. Figure 12 As shown, the process of establishing a communication connection between the first device and the second device includes:
[0221] 1201. When the target application has enabled short-range communication function and the first device detects that the first device has switched from a moving state to a stationary state, the first device broadcasts the short-range communication signal of the first device and receives the short-range communication signal broadcast by at least one device.
[0222] The target application can be any type of application, such as an application installed on the device or a mini-program running on the device. This short-range communication function is used to establish short-range communication connections with other devices. Optionally, the target application includes an option for the short-range communication function; when this option is activated, the target application enables the short-range communication function; when this option is deactivated, the target application has already enabled the short-range communication function. Figure 13 As shown, taking short-range communication as an example, Bluetooth communication function option 1301 is activated, indicating that the target application has enabled Bluetooth communication function.
[0223] In this embodiment, when the target application has enabled short-range communication, the first device already possesses the conditions to establish short-range communication connections with other devices based on the target application. When the first device detects that it has switched from a moving state to a stationary state, which is equivalent to receiving an instruction to establish an association, the first device will enter a connection detection state. That is, the first device will broadcast its own short-range communication signal and also receive short-range communication signals broadcast by other devices.
[0224] In this embodiment, when a short-range communication connection needs to be established between multiple devices, but no such connection is currently established, the master-slave relationship between the devices cannot be determined; that is, it cannot be determined which device will act as the master to establish a short-range communication connection with another device. Therefore, each device will act in two roles: a peripheral device and a central device. When the first device has the conditions to establish a short-range communication connection and has received the instruction to establish an association, the first device will act as a peripheral device, broadcasting its own short-range communication signal for other devices to receive; furthermore, the first device will also act as a central device, receiving short-range communication signals broadcast by other devices.
[0225] For example, if the short-range communication signal is a Bluetooth signal, and the short-range communication connection to be established is a Bluetooth connection, when the first device acts as a peripheral device, the process of the peripheral device 1401 broadcasting its own Bluetooth signal is as follows: Figure 14 As shown; when the first device acts as the central device, the process by which the central device 1501 detects and receives Bluetooth signals broadcast by other peripheral devices is as follows: Figure 15 As shown.
[0226] Optionally, if the short-range communication signal is a Bluetooth signal, then when any device needs to establish a short-range communication connection with other devices, the GAP (Generic Access Profile) protocol is used to control the device to broadcast its own Bluetooth signal and to control the reception of Bluetooth signals broadcast by other devices.
[0227] 1202. When the target application has enabled short-range communication function and the local device is detected to switch from a mobile state to a stationary state, the second device broadcasts the short-range communication signal of the local device and receives the short-range communication signal broadcast by at least one device.
[0228] When the second device has the conditions to establish a short-range communication connection with other devices and receives the instruction to establish the association, it will broadcast its own short-range communication signal and simultaneously receive short-range communication signals broadcast by other devices. For example... Figure 16 As shown, the first device 1601 and the second device 1602 broadcast their own short-range communication signals for the other device to receive.
[0229] In one possible implementation, the process of detecting that the local device has switched from a mobile state to a motion state includes: detecting the motion state of the local device when the target application has enabled short-range communication; receiving a short-range communication signal broadcast by at least one device when the local device stops after shaking, or when the local device's speed increases from 0 and then returns to 0 within a target duration.
[0230] The target duration can be any length, such as 5 seconds or 10 seconds. For the second device, the local device refers to the second device itself.
[0231] In this embodiment of the application, detecting that the device stops shaking indicates that the local device has switched from a moving state to a stationary state. Alternatively, if the device's moving speed starts from 0 within a target time period, then the device's moving speed increases, and then the device's speed returns to 0, indicating that the device is stationary again, this indicates that the local device has switched from a moving state to a stationary state.
[0232] Optionally, the second device is based on the target application and uses a speed sensor in the second device to detect the speed of the second device.
[0233] 1203. The second device receives at least one short-range communication signal, and establishes a short-range communication connection with the first device if the target short-range communication signal meets the connection conditions.
[0234] This step is the same as step 302 above, and will not be repeated here.
[0235] It should be noted that the embodiment of this application takes the second device as the central device as an example, in which the second device takes the lead in establishing a short-range communication connection with the first device. In another embodiment, the first device can also take the first device as the central device, and the first device can take the lead in establishing a short-range communication connection with the second device in accordance with the above-described step 1203. This will not be described in detail here.
[0236] In the process of multiple devices simultaneously broadcasting and receiving short-range communication signals, the timing of signal reception may differ due to variations in the receiving capabilities of different devices. For example, for any first device and a second device, both are in a state of broadcasting and receiving short-range communication signals. If the first device receives a short-range communication signal broadcast by the second device and determines that the signal meets the connection conditions, while the second device has not yet received the signal, or if the second device receives the signal but has not yet determined whether it meets the connection conditions, then the first device will act as the central device to initiate the establishment of a short-range communication connection with the second device. Conversely, if the second device receives a short-range communication signal broadcast by the first device and determines that the signal meets the connection conditions, while the first device has not yet received the signal, or if the first device receives the signal but has not yet determined whether it meets the connection conditions, then the second device will act as the central device to initiate the establishment of a short-range communication connection with the first device.
[0237] The method provided in this application embodiment requires establishing a short-range communication connection between multiple devices. However, if a short-range communication connection has not yet been established, the master-slave relationship between the multiple devices cannot be determined. Therefore, each device broadcasts its own short-range communication signal and also receives short-range communication signals broadcast by other devices. This ensures that any device can establish a short-range communication connection between two devices using the short-range communication signals broadcast by other devices, thereby ensuring the flexibility of establishing a short-range communication connection.
[0238] Based on the embodiments shown above, a flowchart for establishing association relationships is provided, such as... Figure 17 As shown, the process includes:
[0239] 1701. The first and second devices are initially in their initial state.
[0240] 1702. The first and second devices use the speed sensor in the device to perform a touch-to-touch detection through the touch-to-touch module. That is, if the device stops shaking after being detected, or if the speed of the device quickly becomes 0, the two devices will enter the connection detection state respectively.
[0241] 1703. When the device is in connection detection mode, it broadcasts its own Bluetooth signal and receives Bluetooth signals broadcast by other devices. When either device detects the Bluetooth signal of an adjacent device that meets the connection requirements, a Bluetooth communication connection is established between the two devices. In the event of a connection timeout, both the first and second devices switch back to their initial states.
[0242] 1704. The two devices interact via Bluetooth communication. One device obtains the logged-in accounts and selected identities of both devices and requests the server to establish an association. If one user refuses, the server returns a notification message indicating that the association establishment failed, or the selected identities of the two devices conflict, the Bluetooth communication connection between the two devices is disconnected. Only when the server returns a notification message indicating that the association establishment was successful is the association between the first account logged in on the first device and the second account logged in on the second device confirmed to be successfully established.
[0243] Based on the embodiments described above, a flowchart for establishing an association relationship is provided. When a second device establishes a communication connection with a first device, the second device interacts with both the first device and the server to establish the association relationship. Figure 18 As shown, the process of establishing a relationship includes:
[0244] 1801. The second device requests the identity information of the first device based on the communication connection.
[0245] 1802. The first device displays the second identity confirmation information in the form of a pop-up window, obtains the first identity selected by the user, and sends the first identity and the first account logged in by the first device to the second device based on the communication connection.
[0246] 1803. The second device receives the first identity and first account sent by the second device; and displays the first identity confirmation information in the form of a pop-up window to obtain the second identity selected by the user.
[0247] 1804. The second device performs logical verification on the first identity and the second identity.
[0248] 1805. If the first identity and the second identity do not conflict, request the server to establish an association.
[0249] 1806. The server verifies the legitimacy of the first account, first identity, second account, and second identity. Only if the verification is successful will the association be established and a notification message be returned to the second device.
[0250] 1807. The second device learns the result of establishing the association based on the notification message, and notifies the first device if the association is successfully established.
[0251] The method provided in this application can be applied to scenarios where parents manage their children's gaming time. For example, both the parent's and child's phones have Bluetooth enabled, and both are running a game management application (the target application). Both the parent and child enable Bluetooth communication within the running game management application on their phones. When the parent and child shake their phones, a Bluetooth connection is automatically established as described in the above embodiment. The parent's phone takes the lead, displaying identity verification information, and the parent selects "Parent" on their phone. Based on this Bluetooth connection, the child's phone also displays identity verification information, and the child selects "Child" on their phone, sending their account and the selected "Child" identity to the parent's phone. The parent's phone then requests the server corresponding to the game management application, and the server establishes an association between the parent's and child's accounts. Afterward, the parent can manage the child's game time or the games the child's account can log into within the game management application using their own account. The interface displayed when logging into the game management application with the parent's account is as follows: Figure 19 As shown, this interface allows parents to view the amount of time their child spends playing games. The interface also displays a time configuration option 1901, a recharge restriction option 1902, and a one-click ban option 1903. Parents can configure the allowed playtime through the time configuration option 1901, control the amount of money their child can spend in the game through the recharge restriction option 1902, and prohibit their child from playing games through the one-click ban option 1903.
[0252] Figure 20 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application, such as... Figure 20 As shown, the device includes:
[0253] Establishment module 2001 is used to establish a communication connection with the first device in response to the instruction to establish an association relationship;
[0254] The acquisition module 2002 is used to acquire the first account and first identity of the first device based on the communication connection. The first identity is the identity selected by the first device from multiple identities included in the association relationship.
[0255] Display module 2003 is used to display first identity verification information, which includes multiple identities;
[0256] The acquisition module 2002 is also used to acquire the second identity in response to the selection operation of the second identity among multiple identities, and to acquire the second account logged in on the local device;
[0257] The sending module 2004 is used to send an account association request to the server when the second identity does not conflict with the first identity. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
[0258] In one possible implementation, the communication connection is a short-range communication connection; such as... Figure 21 As shown, module 2001 is established, including:
[0259] The receiving unit 2011 is configured to receive a short-range communication signal broadcast by at least one device in response to an instruction to establish an association.
[0260] Establishment unit 2012 is used to establish a short-range communication connection with the first device when the target short-range communication signal meets the connection conditions;
[0261] Wherein, the target short-range communication signal is any one of the at least one short-range communication signals received, and the first device is the device that broadcasts the target short-range communication signal among at least one devices.
[0262] In another possible implementation, the local device has a target application installed, the second account is an account logged in in the target application, and the receiving unit 2011 is used to receive short-range communication signals broadcast by at least one device when the target application has enabled short-range communication function and the local device is detected to switch from a mobile state to a stationary state.
[0263] In another possible implementation, the receiving unit 2011 is used to detect the motion state of the local device when the target application enables short-range communication; and to receive a short-range communication signal broadcast by at least one device when the local device stops after shaking, or when the local device's moving speed increases from 0 to 0 within a target duration.
[0264] In another possible implementation, such as Figure 21 As shown, the device also includes:
[0265] The broadcast module 2005 is used to broadcast the short-range communication signal of the local device when the target application has enabled the short-range communication function and the local device is detected to have switched from a mobile state to a stationary state.
[0266] In another possible implementation, the connection conditions include at least one of the following:
[0267] The received short-range communication signal belongs to the same signal type as the short-range communication signal broadcast by this device;
[0268] The signal strength of the received short-range communication signal is greater than the strength threshold.
[0269] In another possible implementation, the acquisition module 2002 is used to send an identity verification request to the first device in response to the establishment of a communication connection; the first device is used to display second identity verification information based on the identity verification request, the second identity verification information including multiple identities, acquire the first identity selected from the multiple identities, and return the first identity and the first account; and receive the first account and the first identity sent by the first device based on the communication connection.
[0270] In another possible implementation, the display module 2003 is used to display first identity verification information in response to the establishment of a communication connection.
[0271] In another possible implementation, such as Figure 21 As shown, the device also includes:
[0272] The receiving module 2006 is used to receive notification messages returned by the server;
[0273] The sending module 2004 is also used to send a message indicating successful association establishment to the first device when the notification message indicates that the association between the first account and the second account has been successfully established.
[0274] Disconnect module 2007 is used to disconnect the communication connection with the first device when the notification message indicates that the association relationship has not been successfully established.
[0275] In another possible implementation, the second identity has the authority to manage the first identity, such as... Figure 21 As shown, the device also includes:
[0276] Display module 2003 is used to display the application usage records corresponding to the first account;
[0277] Configuration module 2008 is used to configure the displayed application usage records.
[0278] In another possible implementation, configuration module 2008 is used to perform at least one of the following:
[0279] Application usage records include the allowed online time for the first account to log in to the application, and the ability to adjust the allowed online time;
[0280] Application usage records include an application list, allowing users to add or remove applications from the list. The first account has permission to log in to applications listed in the application list.
[0281] Application usage records include the usage time period of at least one application, and the usage time period of at least one application is adjusted, wherein the first account has the permission to log in to the corresponding application during any usage time period.
[0282] In another possible implementation, such as Figure 21 As shown, the device also includes:
[0283] Disconnect module 2007 is used to disconnect the communication connection with the first device in the event of a conflict between the first identity and the second identity.
[0284] It should be noted that the account association device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the second device can be divided into different functional modules to complete all or part of the functions described above. In addition, the account association device and the account association method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0285] Figure 22 This is a schematic diagram of the structure of an account association device provided in an embodiment of this application, such as... Figure 22 As shown, the device includes:
[0286] Display module 2201 is used to display second identity verification information when a communication connection is established with a second device. The second identity verification information includes multiple identities in the association to be established.
[0287] The acquisition module 2202 is used to acquire the first identity in response to the selection operation of the first identity among multiple identities, and to acquire the first account logged in by the local device;
[0288] The sending module 2203 is used to send the first account and first identity to the second device based on the communication connection;
[0289] The second device is used to send an account association request to the server when the first identity and the second identity do not conflict. The request is to use the second account logged in by the second device as the second identity and the first account as the first identity to establish an association relationship between the first account and the second account. The second identity is the identity selected by the second device from multiple identities.
[0290] In one possible implementation, the display module 2201 is used to receive an identity verification request sent by the second device based on the communication connection; and to display second identity verification information based on the identity verification request.
[0291] In another possible implementation, the local device has the target application installed, the first account is the account logged in within the target application, and the communication connection is a short-range communication connection; such as Figure 23 As shown, the device also includes:
[0292] The broadcast module 2204 is used to broadcast the short-range communication signal of the local device when the target application has enabled the short-range communication function and the local device is detected to switch from a mobile state to a stationary state. The second device is used to establish a short-range communication connection between the local device and the second device based on the short-range communication signal broadcast by the local device.
[0293] It should be noted that the account association device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the first device can be divided into different functional modules to complete all or part of the functions described above. In addition, the account association device and the account association method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0294] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to perform the operations performed by the account association method of the above embodiments.
[0295] Optionally, the computer device is provided as a terminal. Figure 24 A structural block diagram of a terminal 2400 provided in an exemplary embodiment of this application is shown. The terminal 2400 may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, vehicle terminal, or aircraft, etc. The terminal 2400 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0296] Terminal 2400 includes a processor 2401 and a memory 2402.
[0297] Processor 2401 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2401 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 2401 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2401 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 2401 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0298] The memory 2402 may include one or more computer-readable storage media, which may be non-transitory. The memory 2402 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2402 are used to store at least one computer program, which is executed by the processor 2401 to implement the account association method provided in the method embodiments of this application.
[0299] In some embodiments, the terminal 2400 may also optionally include a peripheral device interface 2403 and at least one peripheral device. The processor 2401, memory 2402, and peripheral device interface 2403 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 2403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: radio frequency circuitry 2404, display screen 2405, camera assembly 2406, audio circuitry 2407, and power supply 2408.
[0300] Peripheral device interface 2403 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 2401 and memory 2402. In some embodiments, processor 2401, memory 2402 and peripheral device interface 2403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 2401, memory 2402 and peripheral device interface 2403 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0301] The radio frequency (RF) circuit 2404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 2404 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 2404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 2404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 2404 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi networks. In some embodiments, the RF circuit 2404 may also include NFC-related circuitry, which is not limited in this application.
[0302] Display screen 2405 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 2405 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 2401 for processing. In this case, display screen 2405 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 2405, disposed on the front panel of terminal 2400; in other embodiments, there may be at least two display screens, disposed on different surfaces of terminal 2400 or in a folded design; in still other embodiments, display screen 2405 may be a flexible display screen, disposed on a curved or folded surface of terminal 2400. Furthermore, display screen 2405 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 2405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0303] The camera assembly 2406 is used to acquire images or videos. Optionally, the camera assembly 2406 includes a front-facing camera and a rear-facing camera. The front-facing camera is disposed on the front panel of the terminal, and the rear-facing camera is disposed on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 2406 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.
[0304] The audio circuit 2407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 2401 for processing, or to the radio frequency circuit 2404 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 2400. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 2401 or the radio frequency circuit 2404 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 2407 may also include a headphone jack.
[0305] Power supply 2408 is used to power the various components in terminal 2400. Power supply 2408 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 2408 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0306] In some embodiments, the terminal 2400 further includes one or more sensors 2409. The one or more sensors 2409 include, but are not limited to, an acceleration sensor 2410.
[0307] Accelerometer 2410 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 2400. For example, accelerometer 2410 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 2401 can control display screen 2405 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 2410. Accelerometer 2410 can also be used for games or for acquiring user motion data.
[0308] Those skilled in the art will understand that Figure 24 The structure shown does not constitute a limitation on terminal 2400 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0309] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to perform the operations of the account association method described above.
[0310] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the operations performed by the account association method described above.
[0311] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0312] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.
Claims
1. An account association method, characterized in that, The method includes: In response to the instruction to establish an association, a communication connection is established with the first device; Based on the communication connection, the first account and first identity logged in by the first device are obtained, wherein the first identity is the identity selected by the first device from multiple identities included in the association relationship; Display first identity verification information, which includes the plurality of identities; In response to the selection of the second identity among the plurality of identities, the second identity is obtained, and the second account logged in on the local device is obtained; If the second identity does not conflict with the first identity, an account association request is sent to the server. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
2. The method according to claim 1, characterized in that, The communication connection is a short-range communication connection; the establishment of a communication connection with the first device in response to the instruction to establish an association includes: In response to an instruction to establish the association, receive a short-range communication signal broadcast by at least one device; If the target short-range communication signal meets the connection conditions, establish the short-range communication connection with the first device; Wherein, the target short-range communication signal is any one of the at least one received short-range communication signals, and the first device is the device that broadcasts the target short-range communication signal among the at least one devices.
3. The method according to claim 2, characterized in that, The local device has a target application installed, and the second account is an account logged into the target application. The step of receiving a short-range communication signal broadcast by at least one device in response to an instruction to establish the association includes: When the target application has enabled short-range communication and the local device is detected to have switched from a mobile state to a stationary state, the short-range communication signal broadcast by the at least one device is received.
4. The method according to claim 3, characterized in that, The step of receiving short-range communication signals broadcast by at least one device when the target application has enabled short-range communication and the local device has switched from a mobile state to a stationary state includes: When the target application enables the short-range communication function, the motion state of the local device is detected; If the local device stops shaking after being detected, or if the local device's moving speed increases from 0 to 0 within a target duration and then returns to 0, the local device receives a short-range communication signal broadcast by the at least one device.
5. The method according to claim 2, characterized in that, The connection conditions include at least one of the following: The received short-range communication signal belongs to the same signal type as the short-range communication signal broadcast by the local device; The signal strength of the received short-range communication signal is greater than the strength threshold.
6. The method according to claim 1, characterized in that, The step of obtaining the first account and first identity logged in by the first device based on the communication connection includes: In response to establishing the communication connection, based on the communication connection, send an identity confirmation request to the first device; the first device is configured to display second identity confirmation information based on the identity confirmation request, the second identity confirmation information includes the multiple identities, obtain the selected first identity from the multiple identities, and return the first identity and the first account; Based on the communication connection, receive the first account and the first identity sent by the first device.
7. The method according to claim 1, characterized in that, The displaying the first identity confirmation information includes: In response to establishing the communication connection, display the first identity confirmation information.
8. The method according to any one of claims 1-7, characterized in that, After sending an account association request to the server when the second identity does not conflict with the first identity, the method further includes: Receive a notification message returned by the server; When the notification message indicates that the association relationship between the first account and the second account is successfully established, send an association relationship establishment success message to the first device; When the notification message indicates that the association relationship is not successfully established, disconnect the communication connection with the first device.
9. The method according to claim 8, characterized in that, The second identity has the permission to manage the first identity. After sending an association relationship establishment success message to the first device when the notification message indicates that the association relationship between the first account and the second account is successfully established, the method further includes: Display the application usage records corresponding to the first account; Configure the displayed application usage records.
10. The method according to claim 9, characterized in that, The configuring the displayed application usage records includes at least one of the following: The application usage record includes the allowed online duration for the first account to log in to the application, and adjust the allowed online duration; The application usage record includes an application list, add or delete applications included in the application list, where the first account has the permission to log in to the applications included in the application list; The application usage record includes the usage time periods of at least one application, and adjust the usage time periods of the at least one application, where the first account has the permission to log in to the corresponding application during any usage time period.
11. A method for account association, characterized in that, The method includes: When establishing a communication connection with a second device, display second identity confirmation information, the second identity confirmation information includes multiple identities in the to-be-established association relationship; In response to a selection operation on the first identity from the multiple identities, obtain the first identity and obtain the first account logged in to the local device; Based on the communication connection, send the first account and the first identity to the second device; Where the second device is configured to send an account association request to the server when the first identity does not conflict with the second identity, request to use the second account logged in to the second device as the second identity and the first account as the first identity to establish an association relationship between the first account and the second account, and the second identity is the identity selected by the second device from the multiple identities.
12. An account association device, characterized in that, The device includes: The module establishes a communication connection with the first device in response to an instruction to establish an association. The acquisition module is used to acquire, based on the communication connection, the first account and first identity logged in by the first device, wherein the first identity is the identity selected by the first device from multiple identities included in the association relationship; A display module is used to display first identity verification information, which includes the plurality of identities; The acquisition module is further configured to, in response to the selection operation of the second identity among the plurality of identities, acquire the second identity and acquire the second account logged in by the local device; The sending module is used to send an account association request to the server when the second identity does not conflict with the first identity. The account association request carries the second account, the second identity, the first account, and the first identity. The server is used to establish an association relationship between the first account and the second account, with the first account as the first identity and the second account as the second identity.
13. An account association device, characterized in that, The device includes: The display module is used to display second identity verification information when a communication connection is established with the second device. The second identity verification information includes multiple identities in the association to be established. The acquisition module is used to acquire the first identity and the first account logged in on the local device in response to the selection operation of the first identity among the multiple identities; The sending module is used to send the first account and the first identity to the second device based on the communication connection; Wherein, the second device is used to send an account association request to the server when the first identity and the second identity do not conflict, requesting that the second account logged in by the second device be used as the second identity and the first account be used as the first identity, and to establish an association relationship between the first account and the second account, wherein the second identity is the identity selected by the second device from the plurality of identities.
14. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the account association method as described in any one of claims 1 to 10; or to perform the operations performed by the account association method as described in claim 11.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to perform the operations performed by the account association method as described in any one of claims 1 to 10; or to perform the operations performed by the account association method as described in claim 11.
16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it performs the operations performed by the account association method as described in any one of claims 1 to 10; or, it performs the operations performed by the account association method as described in claim 11.