A method, device and storage medium for creating an association relationship
By using user terminal verification and location information, the server filters target user terminals and automatically creates associations, solving the problem of low efficiency in existing technologies and realizing efficient and secure association creation in scenarios where multiple people add friends.
Patent Information
- Application Number
- CN202210861925.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-17
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2040-02-17
AI Technical Summary
Existing methods for adding friends are inefficient in one-on-one scenarios, cannot handle one person adding multiple people or multiple people adding multiple people, and lack security, making them vulnerable to exploitation by malicious users.
Based on the verification and location information entered by the user terminal, the server filters out the target user terminal and displays it in the matching space, automatically creates the association relationship, detects the creation status in real time and displays it with animation. The entire process is completed by the server, avoiding the one-to-one application and approval process for users.
It improves the efficiency and security of creating relationships, enabling accurate and targeted selection of users in scenarios where multiple people are adding friends, reducing unnecessary operations and enhancing the user experience.
Smart Images

Figure CN115186241B_ABST
Abstract
Description
[0001] This application is a divisional application filed with the Chinese Patent Office on February 17, 2020, with application number 202010096628.1 and the invention title "A method, apparatus and storage medium for creating an association relationship", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of Internet technology, and in particular to a method, apparatus and storage medium for creating association relationships. Background Technology
[0003] Currently, there are three main ways to add friends: Method 1: Scanning a QR code. Scan the QR code to send a friend request to a specific friend. Once the friend approves, a relationship is formed. Method 2: Discovering strangers within the instant messaging application. Access the user's profile and send a friend request. Once the friend approves, a relationship is formed. Method 3: Finding nearby people based on location.
[0004] In the process of researching and practicing existing technologies, the inventors of the embodiments of this application discovered that methods one and two are both designed for one-to-one friend adding scenarios, and cannot achieve scenarios where one person adds multiple people, or multiple people add multiple people. In scenarios where multiple people add friends, such as friend gatherings or the start of a new semester, the efficiency of one-to-one friend adding is low. Methods two and three are more used for discovering and adding strangers, and because they lack a unique verification information key, they are also easily imported by malicious users. It is evident that none of the current friend adding methods can simultaneously guarantee both efficiency and security. Summary of the Invention
[0005] This application provides a method, apparatus, and storage medium for creating association relationships, which can improve the efficiency and security of creating association relationships.
[0006] In a first aspect, embodiments of this application provide a method for creating an association relationship, the method comprising:
[0007] Based on the first verification information and the first location information of the first user terminal, a matching space for the user list that can be added as friends is determined. Target user terminals in the user list are added to the matching space and displayed there. The matching space refers to an application interface used to create associations between user terminals, where the association is a friend relationship. User information from the user list is retrieved sequentially, and friend requests are sent to each target user terminal in the user list to automatically create associations between the first user terminal and each target user terminal.
[0008] The creation status of the association between the first user terminal and each target user terminal in the matching space is detected in real time, so that the first user terminal displays the creation status of the association with each target user terminal in the matching space according to the status type of the creation status, and each creation status corresponds to an animation display.
[0009] In a second aspect, embodiments of this application provide a method for creating association relationships, the method comprising:
[0010] Send first verification information and first location information of the first user terminal to the server, wherein the server determines the current list of users who can add friends based on the first verification information and the first location information;
[0011] The matching space is displayed, and the target user terminals in the user list are added to the matching space and displayed in the matching space. The matching space refers to the application interface used to create association relationships between user terminals, and the association relationship is a friend relationship. The server sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create association relationships between the first user terminal and each target user terminal.
[0012] The creation status of the association between the first user terminal and each target user terminal in the matching space is detected in real time. According to the status type of the creation status, the creation status of the association with each target user terminal is displayed in the matching space, wherein each creation status corresponds to an animation display.
[0013] In a third aspect, embodiments of this application provide an apparatus for creating association relationships, which has the function of implementing the method for creating association relationships provided in the first aspect above. The function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware.
[0014] In one possible design, the device includes:
[0015] The transceiver module is used to acquire the first location information of the first user terminal and the first location information input by the first user terminal;
[0016] The processing module is used to determine the list of users who can be added as friends based on the first verification information and the first location information obtained by the transceiver module.
[0017] The system displays a matching space, adds target user terminals from the user list to the matching space, and displays them within the matching space. The matching space is an application interface used to create associations between user terminals, where the association is a friend relationship. The system sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create associations between the first user terminal and each target user terminal. The system continuously monitors the creation status of the associations between the first user terminal and each target user terminal within the matching space, and displays the creation status of the association with each target user terminal in the matching space according to the status type of the creation status. Each creation status corresponds to a different animation display.
[0018] In a fourth aspect, embodiments of this application provide an apparatus for creating association relationships, which has the function of implementing the method for creating association relationships provided in the second aspect above. The function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware.
[0019] In one possible design, the device includes:
[0020] The transceiver module is used to send first verification information and first location information of the first user terminal to the server, wherein the server determines the current list of users who can be added as friends based on the first verification information and the first location information.
[0021] The processing module is used to display the matching space, add target user terminals from the user list to the matching space, and display them in the matching space. The matching space refers to an application interface used to create associations between user terminals, where the association is a friend relationship. The server sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create associations between the first user terminal and each target user terminal. The module also monitors the creation status of the associations between the first user terminal and each target user terminal in the matching space in real time, with each creation status corresponding to a different animation display. Based on the status type of the creation status, the module displays the corresponding association creation status with each target user terminal in the matching space.
[0022] In another aspect, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
[0023] Compared to existing technologies, the solution provided in this application has two advantages. First, the server selects target user terminals based on first verification information and first location information. Due to the uniqueness of the first verification information and the clarity of the preset geographical range, suitable user terminals can be selected in a targeted manner, resulting in more accurate, targeted, and secure target user terminals. Second, since the entire process of creating association relationships is completed by the server, there is no need for users to submit separate applications to each target user. This bypasses the one-to-one application and approval process between users and allows for the simultaneous creation of multiple association relationships. Compared to existing solutions, this application effectively improves the efficiency of creating association relationships. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of an embodiment of this application;
[0025] Figure 2 This is a flowchart illustrating a method for creating associations in an embodiment of this application;
[0026] Figure 3a This is a schematic diagram illustrating the method of digitally inputting the first verification information in an embodiment of this application;
[0027] Figure 3b This is a schematic diagram illustrating the method of digitally inputting the first verification information in an embodiment of this application;
[0028] Figure 3c This is a schematic diagram illustrating the method of digitally inputting the first verification information in an embodiment of this application;
[0029] Figure 3d This is a schematic diagram illustrating the method of inputting the first verification information by voice in an embodiment of this application;
[0030] Figure 3e This is a schematic diagram illustrating the method of inputting first verification information via facial expression in an embodiment of this application;
[0031] Figure 4 This is a schematic diagram illustrating user input of instruction information in an embodiment of this application;
[0032] Figure 5 This is a schematic diagram illustrating the enhanced successful addition detection in an embodiment of this application;
[0033] Figure 6 This is a schematic diagram illustrating the setting of a maximum number of friends that can be added in an embodiment of this application;
[0034] Figure 7a This is a flowchart illustrating a method for creating associations in an embodiment of this application;
[0035] Figure 7bThis is a schematic diagram illustrating a scenario of a method for creating associations in the embodiments of this application;
[0036] Figure 8a This is a schematic diagram illustrating an application scenario of adding friends in an instant messaging application, as shown in the embodiments of this application.
[0037] Figure 8b This is a schematic diagram of at least two users in the matching space in an embodiment of this application;
[0038] Figure 9 This is a schematic diagram of a blockchain system in an embodiment of this application;
[0039] Figure 10 This is a schematic diagram of a device for creating association relationships in an embodiment of this application;
[0040] Figure 11 This is a schematic diagram of a device for creating association relationships in an embodiment of this application;
[0041] Figure 12 This is a schematic diagram of a device for creating association relationships in an embodiment of this application;
[0042] Figure 13 This is a schematic diagram of a server structure in one embodiment of this application;
[0043] Figure 14 This is a schematic diagram of the structure of a mobile phone in an embodiment of this application. Detailed Implementation
[0044] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or devices. The division of modules in the embodiments of this application is merely a logical division; in actual applications, there may be other division methods. For example, multiple modules may be combined into or integrated into another system, or some features may be ignored or not performed. Additionally, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interface, and the indirect coupling or communication connection between modules may be electrical or other similar forms, none of which are limited in the embodiments of this application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed among multiple circuit modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of this application.
[0045] This application provides a method, apparatus, and storage medium for creating association relationships, which can be used to create association relationships between multiple user terminals within a certain geographical area. For example, on the server side, it can be used to create one-to-one, one-to-many, and many-to-many friend relationships in scenarios such as lectures, meetings, friend gatherings, and new student enrollment. This application mainly uses a server as an example, where a device for creating association relationships is deployed on the server side. In this application embodiment, the device for creating association relationships can be a node in a blockchain system.
[0046] In some implementations, when this method for creating associations is applied to scenarios where multiple people add friends, it mainly involves a server and multiple user terminals, such as... Figure 1The system illustrates a communication system comprising a server and multiple user terminals. The server sets key fields and sends these key fields to each user terminal within a preset geographical range. When user terminal 'a' sends its stored verification information to the server, a multi-user friend request process is triggered. The server then requests permission from user terminal 'a' to access its current geographical location. Based on user terminal 'a's current geographical location and the sent verification information 'a', the server determines the valid user terminals within the preset geographical range where user terminal 'a's current location is located. The server then compares the verification information of these valid user terminals with the similarity of verification information 'a'. If they match, the server creates a friend relationship between user terminal 'a' and the user terminal whose verification information matches verification information 'a'.
[0047] It should be specifically noted that the user terminal involved in the embodiments of this application can be a device that provides voice and / or data connectivity to the user terminal, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. Examples include mobile phones (or "cellular" phones) and computers with mobile terminals, such as portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile devices that exchange voice and / or data with a wireless access network. Examples include Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs).
[0048] Before establishing associations between user terminals, the server needs to configure some environment settings for creating these associations, such as setting verification information for subsequent association creation. Specifically, the server sets key fields for creating associations, and the user terminals obtain these key fields from the server. These key fields are used to create associations, and the user terminals obtain verification information based on these key fields. This verification information can then be used to create associations with other user terminals.
[0049] In this embodiment, the lifespan of key fields can be set by the server or by the user terminal itself. In some embodiments, the server sets a lifespan for each key field separately and sends each key field to the corresponding user terminal. For example, the server queries data such as whether the user is in a frequently used location and whether the network address is normal based on user verification information, obtains a system score, and assigns a corresponding lifespan by default based on the system score. In other embodiments, the user terminal sets the lifespan of keywords based on the length of time the user inputs on the user terminal. If the user terminal does not set a lifespan, a default duration (e.g., 30 minutes) is used. In some embodiments, when the user terminal generates verification information based on the key fields, it can use a first preset rule to obtain anti-counterfeiting fields. The server and the user terminal can also agree on a second preset rule, which is used to identify key fields and anti-counterfeiting fields.
[0050] like Figure 2 As shown below, an embodiment of this application provides a method for creating an association relationship, which includes:
[0051] 201. The first user terminal sends the first verification information and the first location information of the first user terminal to the server.
[0052] The first user terminal is any user terminal on the map that initiates the creation of a relationship with the server. For example, the first user terminal could be any mobile phone whose location information is in the banquet hall of Hotel A in Yuehai Street, Nanshan District, and the user of this mobile phone is a participant in the banquet hall of Hotel A.
[0053] The first verification information and the first location information are used to request the creation of an association between the first user terminal and the second user terminal. In some embodiments, the first verification information may be a key field obtained from a server; or the first verification information may be obtained by the first user terminal based on the first key field obtained from the server, and the first key field may be encapsulated, encrypted, and protected against counterfeiting to prevent the creation of an association between a non-second user terminal and the first user terminal. The first user terminal may also choose not to encapsulate, encrypt, or protect against counterfeiting of the first key field, and this application embodiment does not limit this.
[0054] The first verification information refers to the key to open a preset space, within which the server can create associations between various user terminals. In some embodiments, the first verification information may be called an association credential, association password, or other key to open the preset space (e.g., the first verification information is the key to open the instant messaging friend addition space). For example, the first verification information can be information in any form, such as numbers, voice, symbols, or emoticons. This application does not limit the name or form of the first verification information. The first verification information is entered by the user on the first user terminal, for example... Figure 3a , Figure 3b , Figure 3c The methods for inputting the first verification information using numbers, as shown in the examples, are as follows: Figure 3d The method of inputting the first verification information via voice, for example... Figure 3e The illustration shows a method for inputting the first verification information using emojis. It is evident that this application embodiment can provide users with diverse forms and methods for inputting the first verification information. Besides making the addition more efficient, it also makes the addition method more interesting and fun, applicable to different scenarios and different types of added objects.
[0055] The first location information refers to the location of the first user terminal on the map, which can be represented by specific General Packet Radio Service (GPRS) data, specific geographic data, or network addresses. This application embodiment does not limit this. For example, the location information of the user terminal is Building A, Huangzhuang Street. In some embodiments, the location information of the user terminal (e.g., the first location information) can be obtained through user authorization.
[0056] The aforementioned association refers to a relationship between two user terminals that allows for data interaction between them, such as text chat, voice chat, video chat, or playing games together. This application embodiment does not limit this. The association may include friend relationships, temporary session relationships, etc., as long as the first user terminal and the second user terminal can communicate and interact; this application embodiment does not limit this.
[0057] The second user terminal refers to a user terminal located within a preset geographical area to which the first location information belongs, and the second verification information input by the second user terminal matches the first verification information.
[0058] 202. The server obtains the first verification information and the first location information of the first user terminal.
[0059] It is understandable that, since the first user terminal can be any user terminal on the map, in scenarios where multiple user terminals are linked, the server can obtain the verification and location information of some or all user terminals. That is, the server can also obtain the verification and location information of the second user terminal. This application embodiment does not limit this. Furthermore, user terminals can report their own verification and location information to the server, or the server can pre-set this information for each user terminal during the configuration phase. This application embodiment does not limit the method or channel through which the server obtains the user terminal's verification and location information.
[0060] 203. The server determines the second user terminal based on the first verification information and the first location information.
[0061] In some implementations, determining the second user terminal based on the first verification information and the first location information includes the following steps (1)-(3):
[0062] (1) Determine the preset geographical range based on the first location information.
[0063] In some implementations, the preset geographical range can be determined by the server itself or specified by the user terminal. To further clarify user needs, the first user terminal can also customize the geographical range of a friend. Specifically, determining the preset geographical range based on the first location information includes:
[0064] Receive indication information sent by the first user terminal, the indication information carrying indication information indicating the preset geographical range;
[0065] The preset geographical range is determined based on the indicated information.
[0066] In some implementations, the indication information includes at least one of the following:
[0067] This corresponds to the drawing trajectory, coordinate data, coordinate range, and image or audio / video data on the map.
[0068] It is understandable that after the server obtains the drawing trajectory from the first user terminal, it can analyze the data of the preset geographical area corresponding to the drawing trajectory to obtain the data through coordinate data and coordinate range, which will not be elaborated further. The audio and video data can be: a short street scene taken by the user, or data of a specific preset geographical area described by the user. This application embodiment does not limit the form of the instruction information.
[0069] like Figure 4The illustration shows an input method for drawing a trajectory. The user draws an elliptical region by hand based on their location information. Only users within this elliptical region can become the target users the user wishes to add as friends. This application does not limit the input method or presentation format of the instruction information.
[0070] (2) Determine the candidate user terminals within the preset geographical range.
[0071] (3) Determine the second user terminal from the candidate user terminals based on the similarity between the second verification information of the candidate user terminal and the first verification information.
[0072] In some implementations, the first verification information includes a first key field (and may also include an anti-counterfeiting field); the second user terminal is determined from the candidate user terminals by comparing the similarity between the user terminal verification information and the first verification information, which can be done in one of the following ways:
[0073] Method 1:
[0074] A first key field is obtained from the first verification information, and a second key field is obtained from the second verification information of each candidate user terminal. When there is a target character that is inconsistent with the first key field, if it is determined that the proportion of the target character in the key field is lower than a preset proportion, then the candidate user terminal whose proportion of the target character in the key field is lower than the preset proportion is determined as the second user terminal.
[0075] The target character can be a different character from the second key field; if there are very few characters, it can be considered negligible.
[0076] The target character (b) can also be a character that is missing compared to the first key field; if the proportion is small, it can be ignored.
[0077] c further determines whether the encoding patterns of the first and second key fields are the same. If they are the same, even if there are slight differences in the encoding patterns of the two fields, they can be considered to be completely consistent. This allows for the addition of more friends and avoids missing some users.
[0078] In other implementations, rules can be set during the encoding stage to prevent similar problems from occurring in the encoded verification information. For example, the Euclidean distance between characters in the same position between two adjacent generated key fields can be set to be greater than a certain preset distance. This application does not limit this approach.
[0079] Method 2:
[0080] A first key field is obtained from the first verification information, and a second key field is obtained from the second verification information of each candidate user terminal; if the first key field is consistent with the second key field, then the candidate user terminal whose second key field is consistent with the first key field is determined as the second user terminal.
[0081] It is evident that by selecting a user terminal that meets both geographical requirements and has similar verification information as the second user terminal, it is possible to select a suitable user terminal in a targeted manner, thereby improving the security and accuracy of creating association relationships.
[0082] Even if there are missing parts in the verification information transmission of the user terminal, missing parts in the verification information input by the user terminal, or distortion in the server's recognition of the verification information of the user terminal, the verification information sent by the user terminal uses random encryption, thus causing the verification information generated by each user terminal to contain other anti-counterfeiting characters.
[0083] In some implementations, considering the mobility of user terminals, the dynamic updating of preset geographical locations, and the need to update the creation of associations, as well as to avoid initiating invalid association creation processes, the server in this application embodiment can also verify the validity of the first verification information. Specifically, before determining the second user terminal based on the first verification information and the first location information, the method further includes:
[0084] Determine whether the lifetime of the first verification information is valid;
[0085] If valid, the target user terminal is determined based on the first verification information and the first location information.
[0086] It is evident that by determining whether the lifecycle is valid, unnecessary user additions can be reduced, as can the process of determining whether the verification information needs to proceed to the next step of finding target user terminals within a preset geographical range. Especially in scenarios with concurrent friend requests, unnecessary operations can be reduced, thereby improving server performance.
[0087] 204. The server creates an association between the first user terminal and the second user terminal.
[0088] Specifically, after identifying the second user terminal, the server sends a request message to the second user terminal. This request message requests that the first user terminal and the second user terminal establish an association. In some implementations, the request message may carry user information of the first user terminal, the purpose of establishing the association, and the validity period of the association. For example, in a meeting scenario, the request message may carry the following: 28th National Big Data Knowledge Training Course, valid for 10 minutes, from Educational Institution A, Gold Medal Lecturer A, etc.
[0089] In this embodiment of the application, the server may send request messages to one or at least two second user terminals to achieve the purpose of creating associations between one-to-one, one-to-many, and many-to-many relationships, thereby improving the efficiency of creating associations between user terminals.
[0090] After receiving the request message from the server, the second user terminal sends a request response to the server. It can be understood that after receiving the request message, the second user terminal can send a request response to the server by clicking the "Confirm Acceptance" icon to "Establish Association with the First User Terminal". The request response is feedback information based on the request message.
[0091] After receiving the request response returned by the second user terminal based on the request message, the server can create an association between the first user terminal and the second user terminal.
[0092] In some implementations, for example Figure 3a As shown, the user corresponding to the first user terminal has become friends with Piter, and the two can then... Figure 3a Communication and interaction are conducted within the dialog box shown.
[0093] In this embodiment, on one hand, the server filters target user terminals based on first verification information and first location information. Due to the uniqueness of the first verification information and the clarity of the preset geographical range, suitable user terminals can be selected in a targeted manner, resulting in more accurate, targeted, and secure target user terminals. On the other hand, since the entire process of creating association relationships is completed by the server, users do not need to submit separate applications to each target user, bypassing the one-to-one application and approval process between users. Furthermore, multiple association relationships can be created simultaneously. Compared to existing solutions, this embodiment effectively improves the efficiency of creating association relationships. For example, in social scenarios, the solution provided by this embodiment can help users achieve their goal of automatically and intelligently adding friends within a specified geographical area.
[0094] Optionally, in some embodiments of this application, since the creation of the association is performed by the server, the application interface for creating the association may still be in the application interface for adding space. Therefore, in order to promptly notify the user of the creation status of the association, the creation status of the association can also be notified to the first user terminal and the second user terminal by strengthening the perception of successful creation. For example, reminder information can be sent to the first user terminal and the second user terminal respectively. The reminder information can be presented on the application interface of the first user terminal and the second user terminal in the form of text, short message, audio or animation. From a visualization perspective, the server obtains the first location information of the first user terminal, determines the second user terminal based on the first location information, and the second user terminal refers to the user terminal within the preset geographical range to which the first location information belongs; then, a preset space is displayed, and the first user terminal and the second user terminal are added to the preset space respectively; an association relationship between the first user terminal and the second user terminal is created in the preset space.
[0095] In some implementations, in order to facilitate users to intuitively and in real time understand the creation status of the association, the server can also obtain the creation status of the association in the preset space after creating the association between the first user terminal and the second user terminal in the preset space, and display the creation status of the second user terminal in the preset space according to the status type of the creation status.
[0096] For example, taking adding friends in an instant messaging application as an example, after two users successfully match, they automatically become friends. However, since the interface is still in the add-friends space, the notification method for successful addition can be strengthened to inform the user that the two are now friends. For example, adding a successful addition animation can make it clear to the user that an addition operation is in progress.
[0097] For example, such as Figure 5 As shown, a user enters "1226" in their instant messaging application to initiate a friend-adding process. The server matches the user with two other users. After adding these two users to the matching space, the server monitors their status in the matching space in real time and displays animations for each status. For example... Figure 5 In the image, a circle is used to enclose the two users to distinguish between the user's existing friends and the two users who are to be added as friends. This allows users to intuitively identify which users are existing friends or who are to be added as friends simply by observing the icons. The addition progress is displayed as a progress bar within the circle's outline. Figure 5The system displays four states after a user enters the matching space: just entered, adding, adding completed, and added successfully. As you can see, displaying these four states provides users with real-time progress, allowing them to intuitively and clearly understand the progress of adding friends, thus improving the user experience.
[0098] Optionally, in some embodiments of this application, if a first user terminal currently wishes to establish an association with multiple user terminals within a preset geographical range, to shorten the process or time of creating an association between each pair of user terminals individually, the server can filter for multiple second user terminals and create associations between user terminals in batches. The server can set an upper limit, which refers to the number of user terminals participating in the batch creation of associations. Specifically, this includes the following steps:
[0099] The server can add a first user terminal and multiple second user terminals to a preset space, which refers to the application interface used to create associations between user terminals. Optionally, the preset space may also be called a matching space, matching area, etc., and this application embodiment does not limit it to this name.
[0100] Within a preset space, the server can sort multiple second user terminals according to the order in which they were added to the preset space. The server can sort and display the second user terminals based on the layout and arrangement of the preset space. For example, it can set a maximum display limit per page, and second user terminals that are later in the sorting order can be displayed on the next page. This application embodiment does not limit the display method, display order, etc.
[0101] For example, such as Figure 6 As shown, if the server finds 80 target users for user A who initiated the friend-adding process, the server will add these target users to the matching space one by one, then sort them according to the order in which they entered the matching space, and display them in pages. If a target user successfully adds as a friend to user A, the target user's icon will be highlighted so that the user can clearly know the current friend-adding progress.
[0102] Optionally, in some embodiments of this application, the first user terminal obtains first verification information based on the key field, including:
[0103] The first anti-counterfeiting field is obtained according to the first preset rule;
[0104] The first key field and the first anti-counterfeiting field are merged according to the second preset rule to obtain the first verification information. In some embodiments, the key field and the anti-counterfeiting field can be concatenated or have characters interspersed, etc., and this application embodiment does not limit this.
[0105] In some implementations, the first preset rule is the rule for generating anti-counterfeiting fields on the user terminal. The first preset rule set for each user terminal may be the same or different. Both the first preset rule and the second preset rule are encoding and decoding rules that are commonly agreed upon by the server and the user terminal.
[0106] Optionally, in some embodiments of this application, when the first user terminal acts as the second user terminal, it may also receive data from other third user terminals (e.g., acting as the second user terminal). Figure 2 In the illustrated embodiment, after determining that a mutual association relationship can be established between the first user terminal and the server (e.g., an association request), the association request from the third user terminal can be accepted. Specifically, after the first user terminal sends the first verification information to the server, the method further includes:
[0107] The server receives an association request, which is used to request the third user terminal to establish an association relationship with the first user.
[0108] A request response is sent to the server, the request response being used to confirm the establishment of an association with the third user terminal.
[0109] As can be seen, through this embodiment, in the scenario where the first user terminal establishes an association relationship with the second user terminal, it can also establish an association relationship with other third user terminals, thus enabling both one-to-many and many-to-many association relationships to be established.
[0110] Optionally, in some embodiments of this application, this application also provides scenario embodiments for targeted searching of user groups matching business needs information to achieve rapid and targeted business promotion. For example... Figure 7a As shown, the method for creating association relationships in this application embodiment includes:
[0111] 701. The business user terminal sends business requirement information to the server.
[0112] Among them, business user terminals refer to user terminals that provide business services to users, such as game user terminals, medical user terminals, product guide user terminals, etc. This application embodiment does not limit the number, name, application field, or business type of business user terminals.
[0113] Business requirement information includes the business type, business description, location information of the user terminal, and unique identifiers. For example, if the user terminal is a virtual reality (VR) user terminal, the business requirement information may include the VR game name, VR game features, location information of the VR user terminal, and unique identifiers (such as device serial number). As another example, if the user terminal is a defibrillator, the business requirement information may include the defibrillator model, therapeutic functions, place of origin, applicable population, location information, and unique identifiers (such as device serial number).
[0114] 702. The server receives business requirement information from the business user terminal.
[0115] 703. The server obtains user behavior data corresponding to candidate user terminals within a preset geographical range.
[0116] In some implementations, the user behavior data includes user interest data, user subscription data, or registration data on interactive applications. This user behavior data can comprehensively reflect a user's daily behavior, interests, psychological and physical state, etc., and the specific data included is not limited in this application embodiment.
[0117] 704. Based on user behavior data that matches the business requirement information, determine the target user terminal from the candidate user terminals.
[0118] For example, user behavior data includes behavioral data related to gaming, physical therapy, reading, shopping, and beauty, while business demand information is specifically for gaming. Therefore, during matching, to target suitable users, the server can match the gaming-related business demand information with the user behavior data of each candidate user terminal, identifying users with gaming needs and using their respective user terminals as the target user terminals.
[0119] like Figure 7b As shown, the preset geographical range is the coffee shop on the A1 floor of the building. First, multiple candidate user terminals in the coffee shop on the A1 floor of the building are obtained. Then, the target user terminal is determined from the candidate user terminals. These target user terminals and business user terminals are added to the preset space to perform the association creation operation.
[0120] 705. The server creates an association between the business user terminal and the target user terminal, wherein the business user terminal corresponds to the business requirement information.
[0121] In some implementations, the user behavior data includes user interest data, and the method further includes:
[0122] Based on the interest type corresponding to the user interest data, each candidate user terminal is grouped to obtain at least one interest group;
[0123] Associate candidate user terminals in the same interest group with the same interest session group.
[0124] As can be seen, by narrowing the search scope by locking onto candidate user terminals within a set geographical range and obtaining user behavior data of candidate user terminals within the preset geographical range, even if the obtained user behavior data includes behavioral data from multiple fields or interests, this application only needs to match the user behavior data with business requirement information to obtain suitable users in a targeted manner, that is, to match users who truly meet the business requirement information, which can improve the hit rate of promotion and improve promotion efficiency.
[0125] To facilitate understanding, the following example of adding friends seamlessly in an instant messaging application illustrates the method for creating association relationships in this application embodiment. For example... Figure 8a As shown,
[0126] By combining user geolocation information and friend-adding credentials (such as shared passwords, shared emojis, etc.), it enables the ability to quickly add friends within a specified geographical area.
[0127] 1. The server receives a face-to-face friend request from front-end user A.
[0128] 2. The server obtains credential 'a' held by user 'a'. This credential 'a' is used to verify and create a friend relationship. The server determines whether credential 'a' is still valid. If it is, step 3 is executed; otherwise, the process ends.
[0129] 3. The server obtains the location information of user A.
[0130] 4. The server queries a list L1 of users holding the same credential 'a' within a preset geographical range.
[0131] 5. The server filters out user information in user list L1 that does not meet the conditions for adding friends, and obtains the current user list L2 that can be added as friends. This embodiment of the application does not limit the filtering strategy.
[0132] 6. If the filtered user list L2 is not empty, proceed to step 7; otherwise, proceed to step 10.
[0133] 7. The server retrieves user information from the list sequentially, for example, according to specified rules (such as the order in which users joined the service).
[0134] 8. The server sends a friend request to the target user in user list L2.
[0135] 9. Once the target user accepts the friend request, both the target user and user a are added to the matching space, and a friend relationship between the target user and user a is automatically established in the matching space; if the friend request is not accepted, ignore it. Proceed to step 6.
[0136] 10. Wait for friend requests from later users.
[0137] 11. Determine whether the obtained voucher is within its validity period. If it is, proceed to step 12; otherwise, the process ends.
[0138] 12. The server obtains the user's current location information.
[0139] 14. The server obtains the credential b from the requester to add the friend.
[0140] 14. Verify whether the person requesting the friend request holds the same friend request credential b within the specified geographical area. If yes, establish a friend relationship; otherwise, ignore. Proceed to step 10.
[0141] As can be seen from the embodiments of this application, when the server automatically creates the association relationship between various user terminals (such as the friend relationship between users), it performs two judgments before filtering out the target user. Specifically, when searching for users within a preset geographical range, condition 1 is used (whether the users in user list L1 are within the preset geographical range). Then, condition 2 is used to determine whether the credentials of the users in user list L2 are consistent with the credentials of user a. If both conditions 1 and 2 are satisfied, then user a and the target user are added to the matching space to automatically create a friend relationship between user a and the target user. If either condition 1 or condition 2 is not satisfied, then only the user who initiated the friend-adding process will exist in the matching space, and a friend relationship will not be created.
[0142] like Figure 8b As shown, users a and b satisfy both the actual distance within 10 meters and the same string "123". Therefore, the server can add users a and b to matching space 1 respectively and automatically set them as friends. Since user c only satisfies the actual distance within 10 meters, and the credential is the string "456", user a will not be added to matching space 2; only user c will be added. Since user d only satisfies the credential being the string "123" but not the actual distance within 10 meters, user a will not be added to matching space 3; only user d will be added.
[0143] As can be seen, this solution can help users automate and intelligently add friends within a specified geographical area in social scenarios. Even in scenarios involving multiple people adding one person or multiple people adding multiple people, it effectively helps users meet their friend-adding needs in such social situations. It uses geographical location and a unique string as credentials to ensure the security and accuracy of friend-adding; it bypasses friend request and approval processes to achieve high efficiency in friend-adding; and it simultaneously establishes multiple relationship pairs to meet the needs of multi-person scenarios, effectively improving the efficiency of friend-adding.
[0144] In this embodiment, the aforementioned first verification information, first location information, and association relationship can all be stored in the blockchain. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer.
[0145] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operations management. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between user real identities and blockchain addresses (access management). Furthermore, under authorization, it monitors and audits transactions of certain real identities and provides risk control rule configuration (risk control audit). The basic services module is deployed on all blockchain node devices to verify the validity of business requests. After consensus is reached on valid requests, they are recorded in storage. For a new business request, the basic services first perform interface adaptation parsing and authentication (interface adaptation), and then encrypt the business information using a consensus algorithm (consensus management). After encryption, the data is transmitted completely and consistently to the shared ledger (network communication) and recorded and stored. The smart contract module is responsible for contract registration, issuance, triggering, and execution. Developers can define contract logic using a programming language and publish it to the blockchain (contract registration). According to the contract terms, the key or other events are invoked to trigger execution and complete the contract logic. It also provides functions for contract upgrades and cancellations. The operations management module is mainly responsible for deployment, configuration modification, contract settings, cloud adaptation, and real-time status visualization during product launch, such as alarms, network status monitoring, and node device health status monitoring.
[0146] The apparatus (also referred to as a server or user terminal) for executing the method of creating a relationship in this application embodiment can be a node in a blockchain system. The apparatus for creating a relationship in this application embodiment can be, for example... Figure 9 The diagram shows a node in a blockchain system.
[0147] Figures 1 to 9 Any technical feature mentioned in the embodiments corresponding to any one of the above also applies to the embodiments of this application. Figures 10 to 14 The corresponding implementation examples will not be repeated hereafter.
[0148] The above describes a method for creating an association in the embodiments of this application. The following describes the apparatus (e.g., server, user terminal) for creating an association by performing the above method.
[0149] See Figure 10 ,like Figure 10 The diagram shows a structural schematic of a device 100 for creating associations, which can be applied to the server side to create associations between user terminals. The device for creating associations in this embodiment can achieve the above-described... Figures 1-9 The steps of the method for creating an association relationship are executed in any corresponding embodiment. The function implemented by the device for creating the association relationship can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware. The device 100 for creating the association relationship may include a processing module 1001, a transceiver module 1002, and a display module ( Figure 10 (Not specified in the text) The functional implementation of the processing module 1001 and the transceiver module 1002 can be found in [reference]. Figure 1 The operations performed in the corresponding embodiments, such as determining the second user terminal and creating association relationships, will not be described in detail here. For example, the processing module 1001 can be used to control the sending and receiving, acquisition, and other operations of the transceiver module 1002, as well as the display module to control the display of the preset space, and other operations.
[0150] In some implementations, the transceiver module 1002 can be used to obtain first authentication information and first location information of the first user terminal;
[0151] The processing module 1001 can be used to determine a second user terminal based on the first verification information and the first location information obtained by the transceiver module 1002. The second user terminal refers to a user terminal within a preset geographical range to which the first location information belongs. The second verification information input by the second user terminal matches the first verification information. An association relationship is created between the first user terminal and the second user terminal.
[0152] Specifically, after the processing module 1001 determines the second user terminal, it sends a request message to the second user terminal through the transceiver module 1002. The request message requests the first user terminal to establish an association with the second user terminal. After receiving the request response from the second user terminal based on the request message, the transceiver module 1002 establishes an association between the first user terminal and the second user terminal. The request response indicates that the second user terminal agrees to establish an association with the first user terminal.
[0153] In this embodiment, on one hand, the processing module 1001 filters target user terminals based on first verification information and first location information. Due to the uniqueness of the first verification information and the clarity of the preset geographical range, the final determined target user terminals are more accurate and have higher security. On the other hand, since the entire process of creating association relationships is completed by the server side, it is not necessary for users to initiate applications to each target user individually. This bypasses the one-to-one application and approval process between users and allows for the simultaneous creation of multiple association relationships. Compared with existing solutions, this embodiment can effectively improve the efficiency of creating association relationships.
[0154] In some embodiments, the processing module 1001 is specifically used for:
[0155] The preset geographical range is determined based on the first location information;
[0156] Identify candidate user terminals within the preset geographical range;
[0157] The second user terminal is determined from the candidate user terminals based on the similarity between the second verification information of the candidate user terminal and the first verification information.
[0158] In some embodiments, the processing module 1001 is specifically used for:
[0159] The transceiver module receives the indication information sent by the first user terminal, and the indication information is used to indicate the preset geographical range;
[0160] The preset geographical range is determined based on the indicated information.
[0161] In some implementations, the indication information includes at least one of the following:
[0162] This corresponds to the drawing trajectory, coordinate data, coordinate range, or audio / video data on the map.
[0163] In some implementations, the first verification information includes a first key field; the processing module 1001 is specifically used for:
[0164] The first key field is obtained from the first verification information, and the second key field is obtained from the second verification information of each candidate user terminal.
[0165] When there is a target character that is inconsistent with the first key field, if it is determined that the proportion of the target character in the key field is lower than a preset proportion, then the candidate user terminal whose proportion of the target character in the key field is lower than the preset proportion is determined as the second user terminal.
[0166] In some implementations, the first verification information includes a first key field; the processing module 1001 is specifically used for:
[0167] The first key field is obtained from the first verification information, and the second key field is obtained from the second verification information of each candidate user terminal.
[0168] If the first key field is consistent with the second key field, then the candidate user terminal whose second key field is consistent with the first key field is determined as the second user terminal.
[0169] In some embodiments, before the processing module 1001 determines the second user terminal based on the first verification information and the first location information, it is further configured to: s
[0170] Determine whether the lifetime of the first verification information is valid;
[0171] If valid, the second user terminal is determined based on the first verification information and the first location information.
[0172] In some embodiments, before the transceiver module 1002 obtains the first authentication information of the first user terminal, the processing module 1001 is further configured to:
[0173] Set the key fields used to create the relationships;
[0174] Set a lifecycle for each of the key fields;
[0175] The transceiver module 1002 sends each key field to the corresponding user terminal.
[0176] In some implementations, the first verification information, the first location information, and the association relationship are all stored on a blockchain node.
[0177] Optionally, in some embodiments of this application, business promotion and targeted acquisition of effective audiences can also be achieved by creating association relationships. Specifically, the transceiver module 1002 can also be used to acquire user behavior data corresponding to candidate user terminals within a preset geographical range;
[0178] The processing module 1001 can also be used to determine a target user terminal from the candidate user terminals based on user behavior data that matches the business requirement information; and to create an association between the business user terminal and the target user terminal, wherein the business user terminal corresponds to the business requirement information.
[0179] In some implementations, the user behavior data includes user interest data, and the processing module 1001 is further configured to:
[0180] Based on the interest type corresponding to the user interest data, each candidate user terminal is grouped to obtain at least one interest group;
[0181] Associate candidate user terminals in the same interest group with the same interest session group.
[0182] It is understood that in the specific implementation of this application, data related to user behavior is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0183] refer to Figure 11 ,like Figure 11 The diagram shows a structural schematic of a device 110 for creating association relationships. This device can be applied to the user terminal side to generate verification information for creating association relationships between user terminals and to initiate the process of creating association relationships. The device for creating association relationships in this embodiment can achieve the above-described... Figure 1 The steps of the method for creating associations executed in the corresponding embodiments. The function implemented by the device for creating associations can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware. The device 110 for creating associations may include a processing module 1101, a transceiver module 1102, and a display module ( Figure 11 (Not specified in the text) The functional implementation of the processing module 1101 and the transceiver module 1102 can be found in [reference]. Figure 1The operations performed in the corresponding embodiments, such as determining the second user terminal and creating association relationships, will not be described in detail here. For example, the processing module 11101 can be used to control the sending and receiving, acquisition, input and output operations of the transceiver module 1102, as well as the display module to control the display preset space and other operations.
[0184] In some implementations, the transceiver module 1102 can be used to obtain a first key field, which is used to create an association relationship;
[0185] The processing module 1101 can be used to obtain the first verification information of the first user terminal based on the first key field obtained by the transceiver module;
[0186] The transceiver module 1102 is further configured to send the first verification information and the first location information of the first user terminal to the server. The first verification information and the first location information are used to request the creation of an association between the first user terminal and the second user terminal. The second user terminal refers to a user terminal within a preset geographical range to which the first location information belongs.
[0187] In this embodiment, on one hand, since the first verification information set by the processing module 1101 is unique, and the transceiver module 1102 provides the first verification information and the first location information to the server, and the first location information clearly defines the preset geographical range, the server can jointly filter out the target user terminal based on the first verification information and the first location information. Due to the uniqueness of the first verification information and the clarity of the preset geographical range, the final determined target user terminal is more accurate and has higher security. On the other hand, since the entire process of creating the association is completed by the server, there is no need for the user to initiate an application to each target user individually. This bypasses the one-to-one application and approval process between users, and can also complete the creation of multiple associations simultaneously. Compared with the solutions in the prior art, this embodiment can effectively improve the efficiency of creating associations.
[0188] In some embodiments, the processing module 1101 is specifically used for:
[0189] The first anti-counterfeiting field is obtained according to the first preset rule;
[0190] The first key field and the first anti-counterfeiting field are merged according to the second preset rule to obtain the first verification information.
[0191] In some implementations, after sending the first verification information to the server, the transceiver module 1102 is further configured to:
[0192] The server receives an association request, which is used to request the third user terminal to establish an association relationship with the first user terminal.
[0193] A request response is sent to the server, the request response being used to confirm the establishment of an association with the third user terminal.
[0194] In some implementations, the first verification information, the first location information, and the association relationship are all stored on a blockchain node.
[0195] In some embodiments, the transceiver module 1102 can also be used to obtain the first location information of the first user terminal;
[0196] The processing module 1101 can also be used to determine a second user terminal based on the first location information, wherein the second user terminal refers to a user terminal within a preset geographical range to which the first location information belongs.
[0197] The display module can be used to display a preset space;
[0198] The processing module 1101 is further configured to add the first user terminal and the second user terminal to the preset space respectively; and create an association relationship between the first user terminal and the second user terminal in the preset space.
[0199] In some embodiments, after the processing module 1101 creates the association between the first user terminal and the second user terminal in the preset space, it is further configured to:
[0200] The creation status of the association within the preset space is obtained through the transceiver module 1102;
[0201] Based on the creation status type, the creation status of the second user terminal is displayed in the preset space via the display module.
[0202] The above description of the apparatus for creating associations in the embodiments of this application has focused on modular functional entities. The following description, from a hardware processing perspective, details the apparatus (e.g., server, user terminal) for creating associations in the embodiments of this application, which executes the method for creating associations. It should be noted that in the embodiments of this application… Figure 10 , Figure 11 In any of the embodiments shown, the physical device corresponding to the transceiver module can be a transceiver, input / output unit, radio frequency circuit, communication module, and output interface, etc., and the physical device corresponding to the processing module can be a processor. For example, Figure 10 The device 100 shown may have, for example Figure 12 The structure shown, when Figure 10The device 100 shown has, for example Figure 12 When the structure shown is used, Figure 10 The processor and transceiver in the device can perform the same or similar functions as the processing module 1001 and transceiver module 1002 provided in the aforementioned device embodiment corresponding to device 100. Figure 12 The memory storage processor in the memory needs to call the computer program when executing the above method of creating associations.
[0203] Figure 11 The device shown can also have, for example, Figure 12 The structure shown, when Figure 11 The device 110 shown has the following features: Figure 12 When the structure shown is used, Figure 12 The processor and transceiver in the device can perform the same or similar functions as the processing module 1101 and transceiver module 1102 provided in the aforementioned device embodiment corresponding to device 110. Figure 12 The memory storage processor in the memory needs to call the computer program when executing the above method of creating associations.
[0204] Figure 13 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 1320 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 1322 (e.g., one or more processors) and memory 1332, and one or more storage media 1330 (e.g., one or more mass storage devices) for storing application programs 1342 or data 1344. The memory 1332 and storage media 1330 can be temporary or persistent storage. The program stored in the storage media 1330 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the server. Furthermore, the CPU 1322 may be configured to communicate with the storage media 1330 and execute the series of instruction operations in the storage media 1330 on the server 1320.
[0205] Server 1320 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input / output interfaces 1358, and / or one or more operating systems 1341, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
[0206] The steps performed by the server in the above embodiments can be based on this Figure 13 The structure of server 1320 is shown. For example, in the above embodiment, it consists of... Figure 10 The steps performed by the device 100 shown can be based on this Figure 13 The server architecture is shown. For example, the processor 1322 performs the following operations by calling instructions stored in memory 1332:
[0207] The first location information of the first user terminal and the first location information input by the first user terminal are obtained through the input / output interface 1358.
[0208] A second user terminal is determined based on the first verification information and the first location information. The second user terminal refers to a user terminal within a preset geographical range to which the first location information belongs. The second verification information input by the second user terminal matches the first verification information. An association relationship is created between the first user terminal and the second user terminal.
[0209] This application also provides another terminal device, such as... Figure 14 As shown, for ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of this application. The terminal device can be any terminal device including mobile phones, tablets, personal digital assistants (PDAs), point-of-sale (POS) terminals, in-vehicle computers, etc. Taking a mobile phone as an example:
[0210] Figure 14 This diagram illustrates a partial structural representation of a mobile phone related to the terminal device provided in this embodiment. (Reference) Figure 14 The mobile phone includes: a radio frequency (RF) circuit 1414, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a wireless fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490, etc. Those skilled in the art will understand that... Figure 14 The mobile phone structure shown does not constitute a limitation on the mobile phone and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0211] The following is combined Figure 14 A detailed introduction to each component of a mobile phone:
[0212] RF circuit 1414 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with processor 1480; additionally, it transmits uplink data to the base station. Typically, RF circuit 1414 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, RF circuit 1414 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Messaging Service (SMS).
[0213] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various mobile phone functions and data processing by running the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0214] The input unit 1430 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the mobile phone. Specifically, the input unit 1430 may include a touch panel 1431 and other input devices 1432. The touch panel 1431, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1431), and drive the corresponding connected devices according to a pre-set program. Optionally, the touch panel 1431 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1480, and can also receive and execute commands sent by the processor 1480. In addition, the touch panel 1431 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1431, the input unit 1430 may also include other input devices 1432. Specifically, other input devices 1432 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0215] Display unit 1440 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile phone. Display unit 1440 may include display panel 1441, optionally configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel 1441. Further, touch panel 1431 may cover display panel 1441. When touch panel 1431 detects a touch operation on or near it, it transmits the information to processor 1480 to determine the type of touch event. Subsequently, processor 1480 provides corresponding visual output on display panel 1441 based on the type of touch event. Although in Figure 14 In this embodiment, the touch panel 1431 and the display panel 1441 are two separate components to realize the input and output functions of the mobile phone. However, in some embodiments, the touch panel 1431 and the display panel 1441 can be integrated to realize the input and output functions of the mobile phone.
[0216] The mobile phone may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1441 according to the ambient light level, and the proximity sensor can turn off the display panel 1441 and / or the backlight when the phone is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, taps), etc. Other sensors that may be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0217] Audio circuit 1460, speaker 1461, and microphone 1462 provide an audio interface between the user and the mobile phone. Audio circuit 1460 converts received audio data into electrical signals and transmits them to speaker 1461, where speaker 1461 converts them into sound signals for output. On the other hand, microphone 1462 converts collected sound signals into electrical signals, which are received by audio circuit 1460, converted into audio data, and then processed by processor 1480 before being transmitted via RF circuit 1414 to, for example, another mobile phone, or the audio data can be output to memory 1420 for further processing.
[0218] Wi-Fi is a short-range wireless transmission technology. Through the Wi-Fi module 1470, mobile phones can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 14 The Wi-Fi module 1470 is shown, but it is understood that it is not a necessary component of the phone and can be omitted as needed without changing the nature of the application.
[0219] The processor 1480 is the control center of the mobile phone, connecting various parts of the phone through various interfaces and lines. It executes various functions and processes data by running or executing software programs and / or modules stored in the memory 1420, and by calling data stored in the memory 1420. Optionally, the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 1480.
[0220] The mobile phone also includes a power supply 1490 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 1480 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0221] Although not shown, mobile phones may also include a camera, Bluetooth module, etc., which will not be described in detail here.
[0222] In this embodiment of the application, the processor 1480 included in the mobile phone also has the function of controlling and executing the above-mentioned... Figure 11 The method flow executed by the device 110 shown.
[0223] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0224] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0225] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, apparatuses, or modules, and may be electrical, mechanical, or other forms.
[0226] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0227] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0228] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0229] The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)).
[0230] The technical solutions provided in the embodiments of this application have been described in detail above. Specific examples have been used in the embodiments of this application to illustrate the principles and implementation methods of the embodiments of this application. The description of the above embodiments is only for the purpose of helping to understand the methods and core ideas of the embodiments of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the embodiments of this application. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this application.
Claims
1. A method for creating associations, characterized in that, The method includes: Based on the first verification information input by the first user terminal and the first location information of the first user terminal, determine the current list of users who can add friends, including: determining a preset geographical range based on the first location information; determining candidate user terminals within the preset geographical range; and determining the current list of users who can add friends from the candidate user terminals based on the similarity between the second verification information of the candidate user terminals and the first verification information. The matching space is displayed by adding the target user terminals from the user list to the matching space and displaying them in the matching space. The matching space is an application interface used to create associations between user terminals, and the association is a friend relationship. The user information in the user list is retrieved sequentially, and a friend request is sent to each target user terminal in the user list to automatically create an association between the first user terminal and each target user terminal. The creation status of the association between the first user terminal and each target user terminal in the matching space is detected in real time, so that the first user terminal displays the creation status of the association with each target user terminal in the matching space according to the status type of the creation status, and each creation status corresponds to an animation display.
2. The method according to claim 1, characterized in that, The creation status types include newly entered, adding, adding completed, and added.
3. The method according to claim 1, characterized in that, Further includes: Add the first user terminal to the matching space.
4. The method according to claim 1, characterized in that, Determining the preset geographical range based on the first location information includes: Receive indication information sent by the first user terminal, the indication information being used to indicate the preset geographical range; The preset geographical range is determined based on the indicated information.
5. The method according to claim 1, characterized in that, The first verification information includes a first key field; the list of users who can currently add friends is determined from the candidate user terminals based on the similarity between the second verification information of the candidate user terminals and the first verification information, including: The first key field is obtained from the first verification information, and the second key field is obtained from the second verification information of each candidate user terminal. When there is a target character that is inconsistent with the first key field, if it is determined that the proportion of the target character in the first key field is lower than a preset proportion, then the candidate user terminal whose proportion of the target character in the key field is lower than the preset proportion is determined as the target user terminal in the current list of users who can add friends. The target character is a character that is missing or different from the first key field in the second key field.
6. The method according to claim 5, characterized in that, Also includes: If the first key field is consistent with the second key field, then the candidate user terminal whose second key field is consistent with the first key field is determined as the target user terminal.
7. The method according to claim 1, characterized in that, Before determining the current list of users who can be added as friends based on the first verification information and the first location information, the method further includes: Determine whether the lifetime of the first verification information is valid; If valid, the target user terminal is determined based on the first verification information and the first location information.
8. The method according to claim 1, characterized in that, The first verification information, the first location information, and the association relationship are all stored on the blockchain node.
9. A method for creating associations, characterized in that, The method includes: Send first verification information and first location information of a first user terminal to the server, wherein the server determines a preset geographical range based on the first location information, determines candidate user terminals within the preset geographical range, and determines a list of users who can be added as friends from the candidate user terminals based on the similarity between the second verification information of the candidate user terminals and the first verification information. The matching space is displayed, and the target user terminals in the user list are added to the matching space and displayed in the matching space. The matching space refers to the application interface used to create association relationships between user terminals, and the association relationship is a friend relationship. The server sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create association relationships between the first user terminal and each target user terminal. The creation status of the association between the first user terminal and each target user terminal in the matching space is detected in real time. According to the status type of the creation status, the creation status of the association with each target user terminal is displayed in the matching space, wherein each creation status corresponds to an animation display.
10. The method according to claim 9, characterized in that, The creation status types include newly entered, adding, adding completed, and added.
11. The method according to claim 9, characterized in that, Further includes: Add the first user terminal to the matching space.
12. The method according to claim 9, characterized in that, Further includes: Obtain the first key field, which is used to create an association; obtain the first verification information of the first user terminal based on the first key field.
13. The method according to claim 12, characterized in that, The step of obtaining the first verification information based on the key field includes: The first anti-counterfeiting field is obtained according to the first preset rule; The first key field and the first anti-counterfeiting field are merged according to the second preset rule to obtain the first verification information.
14. The method according to claim 12, characterized in that, The first verification information, the first location information, and the association relationship are all stored on the blockchain node.
15. A device for users to create associations, characterized in that, The device includes: The transceiver module is used to acquire the first location information of the first user terminal and the first verification information input by the first user terminal; The processing module is configured to determine a preset geographical range based on the first location information; determine candidate user terminals within the preset geographical range; and determine a list of users who can currently be added as friends from the candidate user terminals based on the similarity between the second verification information of the candidate user terminals and the first verification information. The system displays a matching space, adds target user terminals from the user list to the matching space, and displays them within the matching space. The matching space is an application interface used to create associations between user terminals, where the association is a friend relationship. The system sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create associations between the first user terminal and each target user terminal. The system continuously monitors the creation status of the associations between the first user terminal and each target user terminal within the matching space, and displays the creation status of the association with each target user terminal in the matching space according to the status type of the creation status. Each creation status corresponds to a different animation display.
16. A device for users to create associations, characterized in that, The device includes: The transceiver module is used to send first verification information and first location information of a first user terminal to the server. The server determines a preset geographical range based on the first location information, determines candidate user terminals within the preset geographical range, and determines a list of users who can be added as friends from the candidate user terminals based on the similarity between the second verification information of the candidate user terminals and the first verification information. The processing module is used to display the matching space, add target user terminals from the user list to the matching space, and display them in the matching space. The matching space refers to an application interface used to create associations between user terminals, where the association is a friend relationship. The server sequentially retrieves user information from the user list and sends friend requests to each target user terminal in the user list to automatically create associations between the first user terminal and each target user terminal. The module also monitors the creation status of the associations between the first user terminal and each target user terminal in the matching space in real time, with each creation status corresponding to a different animation display. Based on the status type of the creation status, the module displays the corresponding association creation status with each target user terminal in the matching space.
17. An apparatus for creating associations, characterized in that, The device includes: At least one processor, memory, and transceiver; The memory is used to store computer programs, and the processor is used to call the computer programs stored in the memory to execute the method executed by the server as claimed in any one of claims 1-8, or to execute the method executed by the first user terminal as claimed in any one of claims 9-14.
18. A computer-readable storage medium, characterized in that, It includes instructions that, when executed on a computer, cause the computer to perform the method performed by the server as claimed in any one of claims 1-8, or to perform the method performed by the first user terminal as claimed in any one of claims 9-14.
Citation Information
Patent Citations
Processing method for adding friends, terminal and server
CN106713111A
Contact group processing method, apparatus, and mobile terminal
WO2017124795A1