Resource synchronization methods and apparatus, electronic device and computer-readable storage medium

By automatically identifying and verifying between the interactive terminal and the user terminal, it solves the delay and inefficiency problems caused by manual operations in traditional interactions, and achieves seamless resource synchronization and automated merchant acquisition.

WO2025209123A1PCT designated stage Publication Date: 2025-10-09TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/081769
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-03
Filing Date
2025-03-11
Publication Date
2025-10-09

AI Technical Summary

Technical Problem

The information interaction between traditional electronic payment terminals and user devices requires manual operation by users, resulting in response delays and inefficiency during high-frequency interactions.

Method used

By obtaining the characteristic information of the interactive terminal, identifying the interactive party and sending the interactive party identifier, the user terminal performs identity authentication. If passed, it selects and pushes the selected promotion resources from the local resource configuration list.

Benefits of technology

It realizes automatic resource synchronization without manual operation by users, improving merchants' efficiency in attracting new customers and interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025081769_09102025_PF_FP_ABST
    Figure CN2025081769_09102025_PF_FP_ABST
Patent Text Reader

Abstract

A resource synchronization method, which is executed by an interaction terminal, and comprises: acquiring feature information of an interaction party of the interaction terminal, and determining a user terminal to which the interaction terminal is connected (201); on the basis of the feature information, identifying the interaction party to obtain an interaction party identifier of the interaction party (202); sending the interaction party identifier to the user terminal, and receiving a verification result obtained by the user terminal performing identity verification on the interaction party on the basis of the interaction party identifier (203); in response to the verification result indicating that the identity verification on the interaction party has passed, selecting from a local resource configuration list a selected promotional resource to be pushed (204); and pushing the selected promotional resource to the user terminal, the selected promotional resource being used for instructing the user terminal to display the selected promotional resource (205).
Need to check novelty before this filing date? Find Prior Art

Description

Resource synchronization method, device, electronic device and computer-readable storage medium

[0001] Related applications

[0002] This application claims priority to Chinese patent application number 202410404483.5, filed on April 3, 2024, entitled “Resource synchronization method, device, electronic device and computer-readable storage medium,” the entire text of which is hereby incorporated by reference. Technical Field

[0003] The present invention relates to the field of data processing technology, and in particular to a resource synchronization method, device, electronic device and computer-readable storage medium. Background Art

[0004] With the development of computer technology, the interaction requirements between electronic payment terminals and user devices are becoming increasingly diverse. Currently, the method of realizing user identity recognition and information exchange through electronic payment terminals in offline scenarios has gradually become popular, but the traditional interaction process still has significant limitations.

[0005] Traditional technical solutions require manual triggering or user interaction to synchronize information on the terminal device. For example, in a payment scenario, users must scan a specific QR code or enter a command to access associated resources. This approach requires active cooperation and multiple steps. When frequent interactions occur, manual operation processes can easily lead to delayed terminal responses, resulting in inefficient interactions. Summary of the Invention

[0006] The embodiments of the present application provide a resource synchronization method, device, electronic device, and computer-readable storage medium, which can improve the efficiency of merchants in attracting new customers.

[0007] In a first aspect, an embodiment of the present application provides a resource synchronization method, which is executed by an interactive terminal, comprising:

[0008] Acquiring characteristic information of an interacting party of an interactive terminal, and determining a user terminal to which the interactive terminal is connected;

[0009] Identifying the interacting party based on the characteristic information to obtain an interacting party identifier of the interacting party;

[0010] sending the interacting party identifier to the user terminal, and receiving a verification result of the user terminal performing identity authentication on the interacting party based on the interacting party identifier;

[0011] In response to the verification result indicating that the identity authentication of the interacting party is passed, selecting a selected promotion resource to be pushed from a local resource configuration list; and

[0012] The selected promotional resource is pushed to the user terminal, where the selected promotional resource is used to instruct the user terminal to display the selected promotional resource.

[0013] Accordingly, an embodiment of the present application provides a resource synchronization device, including:

[0014] a first connection confirmation unit, configured to obtain characteristic information of an interaction party of an interaction terminal and determine a user terminal to which the interaction terminal is connected;

[0015] an interacting party identifying unit, configured to identify the interacting party based on the feature information and obtain an interacting party identifier of the interacting party;

[0016] a data receiving unit, configured to send the interacting party identifier to the user terminal and receive a verification result of the user terminal performing identity authentication on the interacting party based on the interacting party identifier;

[0017] a resource calling unit, configured to select a selected promotion resource to be pushed from a local resource configuration list in response to the verification result indicating that the identity authentication of the interacting party is passed; and

[0018] The resource synchronization unit is configured to push the selected promotion resource to the user terminal, wherein the selected promotion resource is used to instruct the user terminal to display the selected promotion resource.

[0019] In a second aspect, an embodiment of the present application provides a resource synchronization method, which is executed by a user terminal and includes:

[0020] Obtaining a login user identifier logged in at a user terminal, and determining an interactive terminal to which the user terminal is connected;

[0021] receiving an interacting party identifier of the interacting party returned by the interacting terminal, and comparing the interacting party identifier with the login user identifier;

[0022] If the interaction party identifier is the same as the login user identifier, sending an identity verification result to the interaction terminal; and

[0023] After receiving the selected promotional resources returned by the interactive terminal, the selected promotional resources are displayed.

[0024] Accordingly, an embodiment of the present application provides a resource synchronization device, including:

[0025] a second connection confirmation unit, configured to obtain a login user identifier logged in at a user terminal and determine an interactive terminal to which the user terminal is connected;

[0026] an identity authentication unit, configured to receive an interacting party identifier of the interacting party returned by the interaction terminal, and compare the interacting party identifier with the login user identifier;

[0027] a data sending unit, configured to send an identity verification result to the interaction terminal if the interaction party identifier is the same as the login user identifier; and

[0028] The synchronous display unit is configured to display the selected promotional resources after receiving the selected promotional resources returned by the interactive terminal.

[0029] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to execute the resource synchronization method provided in the embodiment of the present application.

[0030] In addition, an embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in the resource synchronization method provided in an embodiment of the present application.

[0031] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in any one of the resource synchronization methods provided in the embodiment of the present application.

[0032] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.

[0034] FIG1 is a schematic diagram of an application scenario of a resource synchronization method provided in an embodiment of the present application;

[0035] FIG2 is a schematic diagram of a process of synchronizing resources according to an embodiment of the present invention;

[0036] FIG3 is a schematic diagram of communication security verification between an interactive terminal and a request sending terminal provided in an embodiment of the present application;

[0037] FIG4 is another schematic diagram of communication security verification between an interactive terminal and a request sending terminal provided in an embodiment of the present application;

[0038] FIG5 is a front view of an interactive terminal provided in an embodiment of the present application;

[0039] FIG6 is a schematic diagram of a screen area provided in an embodiment of the present application;

[0040] FIG7 is a schematic diagram of a push path provided in an embodiment of the present application;

[0041] FIG8 is a flow chart of a resource synchronization method provided in an embodiment of the present application;

[0042] 9 is a schematic diagram of communication security verification between a user terminal and a request sending terminal provided in an embodiment of the present application;

[0043] 10 is another schematic diagram of communication security verification between a user terminal and a request receiving terminal provided in an embodiment of the present application;

[0044] FIG11 is a schematic diagram of data interaction of a resource synchronization method provided in an embodiment of the present application;

[0045] FIG12 is a schematic structural diagram of a resource synchronization device provided in an embodiment of the present application;

[0046] FIG13 is a schematic diagram of the structure of a resource synchronization device provided in an embodiment of the present application;

[0047] FIG14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0049] The embodiments of the present application provide a resource synchronization method, device, and computer-readable storage medium. The resource synchronization device can be integrated into an electronic device, which can be a server or a terminal. Specifically, the embodiments of the present application provide a resource synchronization device applicable to a first electronic device (which can be referred to as an interactive terminal for the purpose of distinction), and a resource synchronization device applicable to a second electronic device (which can be referred to as a user terminal for the purpose of distinction).

[0050] The first electronic device may be a smart payment terminal used by a merchant for electronic purchases. For example, the first electronic device may be a user terminal that supports facial recognition payment, a user terminal that supports fingerprint payment, a user terminal that supports palm recognition payment, and so on. The first electronic device may also be an integrated device of the aforementioned user terminals of various functional types. For different functional types, the first electronic device is equipped with corresponding hardware devices. For example, a first electronic device that supports palm recognition payment may be equipped with hardware devices such as a depth camera and an infrared camera, a first electronic device that supports facial recognition payment may be equipped with a 3D speckle structured light camera, and a first electronic device that supports fingerprint payment may be equipped with a fingerprint sensor, and so on.

[0051] Palm verification payment is a new payment method that uses palm prints and subcutaneous palm veins for identity verification. Because every palm print is unique, even identical twins have distinct differences in their forks and patterns, palm prints can be used to distinguish individuals. Palm verification payment enables both identity verification and transaction confirmation, ensuring secure payment while also providing high convenience.

[0052] For ease of description, the present application embodiment will be described with the first electronic device being a user terminal supporting palm verification payment as an example. It should be understood that the first electronic device may also be a smart payment terminal supporting other methods (such as facial verification, fingerprint, etc.).

[0053] The second electronic device may be, but is not limited to, a user terminal such as a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc. Various application software may be installed on the second electronic device, such as a payment application, a shopping application, etc.

[0054] A communication connection can be established between the first electronic device and the second electronic device. In addition, the second electronic device can also establish a communication connection with a background server. Among them, the background server can be a payment server corresponding to the payment application installed on the second electronic device, etc. The background server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud preset databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0055] In the embodiment of the present application, the resource synchronization method will be introduced by taking the first electronic device as a smart payment terminal (interactive terminal) for electronic consumption on the merchant side and the second electronic device as a user terminal used by the user as an example.

[0056] FIG1 illustrates a schematic diagram of an application scenario of the resource synchronization method provided by an embodiment of the present application. As shown in FIG1 , an interactive terminal can establish a communication connection with a user terminal. The number of user terminals can be multiple. For a merchant, it can configure one interactive terminal or multiple interactive terminals.

[0057] On this basis, for the interactive terminal, when the characteristic information of the interactive party is obtained and the user terminal to which the interactive terminal is connected is determined; the interactive terminal can identify the interactive party based on the characteristic information and obtain the interactive party identifier of the interactive party; send the interactive party identifier to the user terminal, and receive the verification result of the user terminal authenticating the interactive party based on the interactive party identifier; in response to the verification result indicating that the identity authentication of the interactive party is passed, select the selected promotion resource to be pushed from the local resource configuration list; push the selected promotion resource to the user terminal so that the user terminal displays the selected promotion resource.

[0058] For the user terminal, it can obtain the login user identification logged in at the user terminal and determine the interactive terminal to which the user terminal is connected; when receiving the interactive party identification of the interactive party returned by the interactive terminal, it can compare the interactive party identification with the login user identification; if the interactive party identification is the same as the login user identification, the identity authentication result is sent to the interactive terminal; after receiving the selected promotion resources returned by the interactive terminal, the selected promotion resources are displayed.

[0059] The resource synchronization method provided in the embodiments of this application involves business scenarios such as cloud computing, cloud storage, databases, and artificial intelligence. Cloud computing provides databases and artificial intelligence with powerful computing and storage capabilities, enabling them to process and analyze massive amounts of data. Databases provide artificial intelligence with a rich data source, enabling it to learn and extract useful patterns and regularities from data. Artificial intelligence can achieve more intelligent applications and decision-making through database analysis and mining. Cloud storage provides a secure storage system for various types of data.

[0060] Cloud computing refers to the delivery and usage model of IT infrastructure, enabling on-demand, scalable access to required resources over the internet. Broadly speaking, cloud computing refers to the delivery and usage model of services, enabling on-demand, scalable access to required services over the internet. These services can be IT-related, software-related, internet-related, or other services. Cloud computing is the product of the convergence of traditional computer and network technologies, including grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.

[0061] Driven by the growth of the internet, real-time data streams, and the diversification of connected devices, as well as the demand for search services, social networks, mobile commerce, and open collaboration, cloud computing has rapidly developed. Unlike previous parallel and distributed computing, the emergence of cloud computing will fundamentally revolutionize the entire internet model and enterprise management model.

[0062] Cloud storage is a new concept that has been extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.

[0063] Currently, storage systems utilize a method for creating logical volumes. When creating a logical volume, physical storage space is allocated for each logical volume. This physical storage space may consist of disks on a specific storage device or several storage devices. When a client stores data on a logical volume, it stores the data on a file system. The file system divides the data into multiple parts, each of which is an object. Objects contain not only the data but also additional information such as the data identifier (ID) of the data entity. The file system writes each object to the physical storage space of the logical volume and records the storage location information of each object. Therefore, when a client requests access to data, the file system can provide access to the data based on the storage location information of each object.

[0064] The storage system allocates physical storage space to logical volumes by pre-dividing the physical storage space into stripes based on the estimated capacity of the objects to be stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the Redundant Array of Independent Disks (RAID) groupings. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0065] A database, in short, can be thought of as a digital filing cabinet—a place where electronic files are stored, allowing users to add, query, update, and delete data. A database is a collection of data stored in a specific way, shared by multiple users, with minimal redundancy, and independent of applications.

[0066] A database management system (DBMS) is a computer software system designed for managing databases, typically providing basic functions such as storage, retrieval, security, and backup. DBMSs can be categorized by the database model they support, such as relational or XML (Extensible Markup Language); by the type of computer they support, such as server clusters or mobile phones; by the query language used, such as SQL (Structured Query Language) or XQuery; by performance priorities, such as maximum scale or maximum speed; or by other classification methods. Regardless of the classification method used, some DBMSs are cross-category, for example, supporting multiple query languages ​​simultaneously.

[0067] Artificial intelligence (AI) refers to the theories, methods, techniques, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, to perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that seeks to understand the essence of intelligence and produce new intelligent machines that can respond in a manner similar to human intelligence. AI also involves studying the design principles and implementation methods of various intelligent machines, enabling them to possess the capabilities of perception, reasoning, and decision-making.

[0068] Artificial intelligence (AI) technology is a comprehensive discipline encompassing a wide range of fields, encompassing both hardware and software technologies. Foundational AI technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, database processing, pre-trained models, operating / interaction systems, and mechatronics. Pre-trained models, also known as large models or basic models, can be fine-tuned and widely applied to downstream tasks across various AI disciplines. AI software technologies primarily encompass computer vision, speech processing, natural language processing, and machine learning / deep learning.

[0069] Computer vision is the science of making machines "see." Specifically, it involves using cameras and computers to replace the human eye in identifying and measuring objects, and then performing image processing to create images more suitable for human observation or transmission to instruments. As a scientific discipline, computer vision studies related theories and technologies, aiming to build artificial intelligence systems that can extract information from images or multidimensional data. Large model technology has revolutionized the development of computer vision. Pre-trained models in the field of vision, such as the Swin Transformer, ViT, V-MOE, and MAE, can be fine-tuned to quickly and widely apply to specific downstream tasks. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, and biometric recognition technologies such as palm print recognition, face recognition, and fingerprint recognition.

[0070] It should be noted that the embodiments of the present application can be used in various scenarios, including but not limited to the above-mentioned cloud computing, cloud storage, databases, artificial intelligence, etc.

[0071] It can be understood that in the specific implementation of this application, relevant data such as the interacting party identification and the interacting party image are involved. When the following embodiments of this application are applied to specific products or technologies, permission or consent is required, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.

[0072] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0073] This embodiment will be described from the perspective of a resource synchronization device. The resource synchronization device may be integrated into a first electronic device. The first electronic device may be a smart payment terminal for electronic consumption on the merchant side, that is, an interactive terminal.

[0074] A resource synchronization method comprises: obtaining characteristic information of an interacting party of an interacting terminal and determining a user terminal to which the interacting terminal is connected; identifying the interacting party based on the characteristic information to obtain an interacting party identifier of the interacting party; sending the interacting party identifier to the user terminal and receiving a verification result of the user terminal authenticating the interacting party based on the interacting party identifier; selecting a selected promotion resource to be pushed from a local resource configuration list in response to the verification result indicating that the identity authentication of the interacting party is successful; and pushing the selected promotion resource to the user terminal so that the user terminal displays the selected promotion resource.

[0075] Figure 2 shows a schematic diagram of the process of the resource synchronization method provided by the embodiment of the present application. As shown in Figure 2, the specific process of the resource synchronization method is as follows:

[0076] 201. Acquire characteristic information of an interacting party of an interactive terminal, and determine a user terminal to which the interactive terminal is connected.

[0077] The interacting party can be understood as the user who is currently performing operations such as scanning a code, facial verification, or palm verification through the interactive terminal. Accordingly, the interactive party's characteristic information may include code scanning information, facial image information, or palm print information. For ease of description, the following example uses the interactive party performing palm verification through the interactive terminal, and the corresponding characteristic information is palm print information.

[0078] The interacting party is the user currently performing operations such as code scanning, facial verification, or palm verification through the interactive terminal. The interacting party's characteristic information refers to information related to the interacting party's identity. Depending on the interactive party's operation method, it may include code scanning information, facial image information, or palm print information. For example, in a palm swiping operation, the interacting party's characteristic information is palm print information. The interactive terminal can collect the interacting party's palm print data as characteristic information using a depth camera, infrared camera, etc.

[0079] The interactive terminal can be equipped with a depth camera, infrared camera, or other similar camera. These cameras can be used to collect the interacting party's palm print data and use this data as the interacting party's signature information. Specifically, the interactive terminal can use these cameras to collect the interacting party's palm streaming data, which includes multiple image frames. The interactive terminal can evaluate each image frame based on factors such as palm size, angle, image contrast, image brightness, and image clarity, and select the image frame with the highest overall score as the interacting party's signature information.

[0080] A user terminal can be understood as a user terminal that has established a communication connection with the interactive terminal at the current moment. It should be noted that the moment the user terminal establishes a communication connection with the interactive terminal is close to or the same as the moment the interactive terminal collects the characteristic information of the interactive party. For example, the interactive terminal collects the characteristic information of the interactive party at the same time the user terminal establishes a communication connection with the interactive terminal. Alternatively, the interactive terminal collects the characteristic information of the interactive party very shortly before or after the user terminal establishes a communication connection with the interactive terminal. For example, if the user terminal establishes a communication connection with the interactive terminal at 10:01 a.m., the moment the interactive terminal collects the characteristic information of the interactive party may be 10:02 a.m.

[0081] The user terminal to which the interactive terminal is connected may be a user terminal owned by the interactive party or a user terminal owned by another user.

[0082] In an embodiment of the present application, determining the user terminal to which the interactive terminal is connected may include: receiving a communication connection request sent by a request-sending terminal, sending a first public key to the request-sending terminal so that the request-sending terminal encrypts first data based on the first public key, where the first public key is the public key of the interactive terminal; receiving first encrypted data returned by the request-sending terminal, decrypting the first encrypted data using a first private key to obtain first decrypted data, where the first private key is the private key of the interactive terminal; sending the first decrypted data to the request-sending terminal so that the request-sending terminal compares the first decrypted data with the first data; upon receiving a comparison result returned by the request-sending terminal that is consistent, determining that the communication connection with the request-sending terminal is a secure connection, and using the request-sending terminal as the user terminal. The first data is a piece of random data selected and known by the request-sending terminal, and is used to perform an encryption operation based on the first public key of the interactive terminal when verifying the communication security with the interactive terminal.

[0083] The communication connection between the interactive terminal and the user terminal can be via near-field communication. Near-field communication (NFC), also known as short-range wireless communication, is a short-range, high-frequency wireless communication technology that allows for contactless, point-to-point data transmission and exchange between devices over short distances (within 10 cm), making it suitable for short-range, high-frequency data exchange.

[0084] The request sending terminal refers to the user terminal that sends the NFC communication connection request to the interactive terminal. During the process of establishing a communication connection with the interactive terminal, it will participate in the security verification process set by the interactive terminal, such as encrypting data based on the public key of the interactive terminal. The request sending terminal can be understood as the user terminal that sends the NFC communication connection request to the interactive terminal. Generally, after the interactive terminal receives the NFC communication connection request sent by the request sending terminal, it can establish an NFC connection with the request sending terminal. However, this method of directly establishing an NFC connection is less secure. Therefore, in the embodiment of the present application, after the interactive terminal receives the communication connection request sent by the request sending terminal, it can perform security verification.

[0085] Security verification can be performed between the interacting terminal and the requesting terminal using asymmetric encryption. In asymmetric encryption, each terminal has a pair of keys, including a public key and a private key. The public key is used for encryption, and the private key is used for decryption. For ease of distinction, the key pair of the interacting terminal is referred to as the first public key and the first private key, while the key pair of the requesting terminal is referred to as the second public key and the second private key.

[0086] The First Public Key and the First Private Key are a pair of keys used by an interactive terminal in asymmetric encryption. The First Public Key is used to encrypt data and can be shared with other terminals. The First Private Key is used to decrypt data encrypted with the First Public Key and is kept by the interactive terminal itself. It is a crucial component of ensuring communication security.

[0087] The second public key and second private key are a pair of keys used in asymmetric encryption by the requesting terminal (when connecting to a user terminal through an interactive terminal) or the user terminal (when connecting to an interactive terminal through a user terminal). The second public key is used to encrypt data and can be provided to other terminals. The second private key is used to decrypt data encrypted with the second public key and is kept by the owner, ensuring secure transmission and decryption of communication data.

[0088] Figure 3 shows a schematic diagram of communication security verification between an interactive terminal and a request-sending terminal provided by an embodiment of the present application. As shown in Figure 3, from the perspective of the interactive terminal, after receiving the communication connection request sent by the request-sending terminal, the interactive terminal can send the first public key set by itself to the request-sending terminal; after the request-sending terminal receives the first public key, it can encrypt the first data (which can be a piece of random data) based on the first public key to obtain the first encrypted data; thereafter, after the interactive terminal receives the first encrypted data returned by the request-sending terminal, it can use the first private key to decrypt the first encrypted data to obtain the first decrypted data; then, the interactive terminal can send the first decrypted data to the request-sending terminal, and after the request-sending terminal receives the first decrypted data, it can compare the first decrypted data with the first data; if the first decrypted data is the same as the first data, the request-sending terminal returns a comparison consistency result. At this time, after receiving the comparison consistency result, the interactive terminal can determine that the communication connection with the request-sending terminal is a secure connection and use the request-sending terminal as the user terminal.

[0089] In an embodiment of the present application, determining the user terminal to which the interactive terminal is connected may also include: receiving a communication connection request sent by a requesting terminal, receiving a second public key returned by the requesting terminal, and encrypting second data based on the second public key to obtain second encrypted data, where the second public key is the public key of the requesting terminal; sending the second encrypted data to the requesting terminal so that the requesting terminal decrypts the second encrypted data using a second private key, where the second private key is the private key of the requesting terminal; receiving second decrypted data returned by the requesting terminal, and if the second decrypted data is consistent with the second data, determining that the communication connection with the requesting terminal is a secure connection, and using the requesting terminal as the user terminal. The second data is a piece of random data selected and known by the interactive terminal, and is used to perform encryption operations based on the second public key of the requesting terminal when verifying the communication security with the requesting terminal.

[0090] Figure 4 shows another schematic diagram of communication security verification between an interactive terminal and a request-sending terminal provided by an embodiment of the present application. As shown in Figure 4, from the perspective of the interactive terminal, when the interactive terminal receives the communication connection request sent by the request-sending terminal, it can also receive the second public key sent by the request-sending terminal. On this basis, the interactive terminal can use the second public key to encrypt the second data (which can be a piece of random data) to obtain the second encrypted data; thereafter, the interactive terminal can send the second encrypted data to the request-sending terminal. After the request-sending terminal receives the second encrypted data, it can use the second private key to decrypt the second encrypted data to obtain the second decrypted data, and return the second decrypted data to the interactive terminal; after the interactive terminal receives the second decrypted data, it can compare the second decrypted data with the second data. If the second decrypted data is the same as the second data, it can be determined that the communication connection with the request-sending terminal is a secure connection. At this time, the interactive terminal can use the request-sending terminal as a user terminal. On the contrary, if the second decrypted data is different from the second data, the interactive terminal can determine that the communication connection with the request-sending terminal is an unsecure connection. At this time, the interactive terminal can disconnect the communication connection with the request-sending terminal.

[0091] It should be understood that the verification processes of Figures 3 and 4 can be performed simultaneously. In addition, the first data is data selected and known by the requesting terminal, and the second data is data selected and known by the interacting terminal. Generally, the first data and the second data are different.

[0092] After determining that the communication connection with the user terminal is a secure connection, the interactive terminal may directly use an asymmetric encryption algorithm for data transmission, or may use other methods for data transmission.

[0093] For example, after determining the user terminal to which the interactive terminal is connected, the method may further include: performing key negotiation with the user terminal using a symmetric encryption algorithm to obtain a shared key; and performing encrypted communication with the user terminal based on the shared key.

[0094] The shared key is the same key obtained by the interacting terminal and the user terminal through key negotiation using a symmetric encryption algorithm. This key is used to encrypt and decrypt data during subsequent communications between the two parties, improving the security and efficiency of data transmission and ensuring that communication content is protected from unauthorized access and tampering.

[0095] In symmetric encryption, the sender of data processes plaintext (raw data) along with an encryption key through a specialized encryption algorithm, transforming it into a complex encrypted ciphertext before sending it. Upon receiving the ciphertext, if the recipient wishes to decipher the original text, they must decrypt it using the encryption key and the inverse algorithm of the same encryption algorithm to restore it to readable plaintext. Symmetric encryption uses a single key, which both the sender and receiver use to encrypt and decrypt data. This requires the decryptor to know the encryption key in advance. Symmetric encryption algorithms are characterized by their openness, minimal computational effort, high encryption speed, high efficiency, and difficulty in cracking when using long keys.

[0096] In the embodiment of the present application, the interaction terminal and the user terminal may determine a shared key through negotiation. The negotiation process may be as follows:

[0097] (1) The interactive terminal and the user terminal each generate a random number and send it to the other party;

[0098] (2) The interactive terminal and the user terminal use their own private key and the other party's public key to calculate an intermediate value;

[0099] (3) The interactive terminal and the user terminal send the calculated intermediate value to each other;

[0100] (4) The interactive terminal and the user terminal again use their own private keys and the other party's public key to calculate a final key.

[0101] Through the above steps, the interactive terminal and the user terminal can negotiate a shared key to be used for encrypting and decrypting data to be transmitted later, thereby further improving the security of subsequent data transmission.

[0102] 202. Identify the interacting party based on the feature information to obtain an interacting party identifier of the interacting party.

[0103] Based on the collected feature information, the interactive terminal can identify the identity of the interacting party based on the feature information to determine the interacting party's interacting party identifier. The interactive terminal can identify the interacting party in a variety of ways. For example, the interactive terminal can transmit the interacting party's feature information to a backend server, which then extracts the feature information and performs a full database search based on the extracted palmprint features. If palmprint data that meets a preset similarity with the palmprint features exists in the database, the interacting party identifier can be determined. After the backend server retrieves the corresponding interacting party identifier, it can return the interacting party identifier to the interactive terminal. The interactive terminal can also directly extract the feature information and perform a search based on the extracted palmprint features to determine the interacting party's interacting party identifier.

[0104] 203. Send the interacting party identifier to the user terminal, and receive a verification result of the user terminal performing identity verification on the interacting party based on the interacting party identifier.

[0105] The interacting party identifier is determined by the interactive terminal after identifying the interacting party based on the interacting party's characteristic information. It is used to uniquely identify the interacting party. The interactive terminal can transmit the interacting party's characteristic information to the backend server for identification, or directly identify the characteristic information to determine the interacting party identifier.

[0106] When sending the interaction party's ID, in addition to using a shared key for encryption, digital signature technology can also be used to sign the data to ensure the integrity of the data and the authenticity of the source. After receiving the data, the user terminal verifies the signature to confirm the validity of the data.

[0107] As previously mentioned, the user terminal to which the interactive terminal is connected may be the user terminal owned by the interactive party or may be the user terminal owned by another user. In order to ensure that the user terminal is the user terminal owned by the interactive party, that is, to ensure the validity of the interactive process, after determining the interactive party identifier of the interactive party, the interactive terminal may send the interactive party identifier to the user terminal, and the user terminal will verify whether the account identifier currently logged in to the user terminal is consistent with the received interactive party identifier. If the account identifier currently logged in to the user terminal is consistent with the interactive party identifier, it indicates that the user terminal is the user terminal owned by the interactive party, and the interactive process based on this is valid; conversely, if the account identifier currently logged in to the user terminal is inconsistent with the interactive party identifier, it indicates that the user terminal may be the user terminal owned by another user.

[0108] It should be understood that when the interactive terminal sends the interactive party identifier to the user terminal, it can use the aforementioned shared key to encrypt the interactive party identifier. Accordingly, after the user terminal receives the encrypted interactive party identifier, it needs to use the shared key to decrypt the encrypted data.

[0109] 204. In response to the verification result indicating that the identity authentication of the interacting party is passed, select a selected promotion resource to be pushed from a local resource configuration list.

[0110] If the user terminal determines that the account ID currently logged in to the user terminal is consistent with the interacting party ID, it returns identity authentication pass information to the interactive terminal. When the interactive terminal receives the identity authentication pass information, it can select the selected promotion resource to be pushed from the local resource configuration list.

[0111] The local resource configuration list can be understood as the collection of all promotional resources configured on the interactive terminal for resource synchronization. Therefore, the local resource configuration list includes at least one promotional resource. A selected promotional resource is one of the promotional resources in the local resource configuration list. The selected promotional resource is a promotional resource selected from the local resource configuration list to be pushed to the user terminal, including the target promotional content and the activation push path corresponding to the target promotional content. The interactive terminal can determine the selected promotional resource based on factors such as path status or order data.

[0112] In an embodiment of the present application, before selecting the selected promotional resources to be pushed from the local resource configuration list, the process may further include: adding the promotional content to the local resource configuration list in response to an upload operation of at least one promotional content; displaying resource configuration options for each promotional content in the local resource configuration list, the resource configuration options including a push path option corresponding to the promotional content and a path status option corresponding to each push path option; and generating promotional resources corresponding to the promotional content based on the candidate push path and path status corresponding to the selection operation in response to a selection operation for the resource configuration option. The resource configuration options are options set for each promotional content in the local resource configuration list, including a push path option corresponding to the promotional content and a path status option corresponding to each push path option. Merchants can generate promotional resources corresponding to the promotional content by selecting these options.

[0113] Among them, the push path option is part of the resource configuration option, which refers to the push path that merchants can choose for promotional content during the resource configuration process, including mini-program push, social circle push, and official account push. These paths can be selected one by one or in combination. The path status option is part of the resource configuration option, corresponding to the push path option, including active and closed states. Merchants can set the corresponding path status for each candidate push path. In a local resource configuration list, there is only one candidate push path with an active path status.

[0114] Promotional content refers to online advertisements created by merchants for promotional purposes, or direct advertising from third-party payment platforms to attract new customers. These advertisements typically carry varying degrees of discounts, and users can receive rewards for viewing or forwarding these advertisements. Candidate push paths refer to the push paths merchants select for promotional content in their resource allocation options. These include mini-program push, social media push, and official account push. These paths can be selected individually or in combination.

[0115] Merchants must configure the local resource configuration list on the interactive terminal in advance. Merchants can create corresponding online promotional ads based on current in-store promotions and configure these ads locally as promotional content. Alternatively, merchants can directly use the live-to-new customer acquisition ads launched by third-party payment platforms and configure them locally as promotional content. Generally, online promotional ads and live-to-new customer acquisition ads have advertising attributes and, to expand the reach of these ads, offer varying degrees of discounts, allowing users to receive certain rewards after viewing or forwarding these ads.

[0116] Figure 5 shows a front view of an interactive terminal provided by an embodiment of the present application. As shown in Figure 5, the interactive terminal includes a screen area and a palm image acquisition area, wherein merchants can configure resources in the screen area to generate a corresponding local resource configuration list.

[0117] Figure 6 shows a schematic diagram of the screen area provided in an embodiment of the present application. As shown in Figure 6, merchants can upload at least one promotional content to the interactive terminal. Each promotional content is configured with resource configuration options. Merchants can select the corresponding option in the resource configuration options to obtain configuration information for that promotional content. After completing resource configuration for all promotional content, a local resource configuration list is obtained. Table 1 shows the configuration of the local resource configuration list.

[0118] Table 1. Configuration of local resource configuration list

[0119] As shown in Table 1, if a merchant uploads three promotional contents, namely Promotional Content A, Promotional Content B, and Promotional Content C, for each promotional content, the merchant can select a push path in the resource configuration options and set the path status for the selected push path.

[0120] Figure 7 shows a schematic diagram of the push path provided by an embodiment of the present application. As shown in Figure 7, the push path options include three push methods, namely, mini program push, social circle push and public account push. The three push methods can be selected one by one, or they can be selected in a superimposed manner. For example, for promotional content A, the push path selected by the merchant covers all push paths; for promotional content B, the push path selected by the merchant includes social circle push and mini program push, and for promotional content C, the merchant selects a push path. For ease of distinction, the selected push path is referred to as a candidate push path. For each candidate push path, the merchant can further set its corresponding path status. The path status options corresponding to each candidate push path include two states, namely, activated state and closed state, and one of the two states can be selected. After the merchant completes the setting of the resource configuration options for each push content, the push resources corresponding to the push content are immediately formed. The local resource configuration list in Table 1 includes three promotional resources, namely, promotion resource A, promotion resource B and promotion resource C.

[0121] In the embodiment of the present application, as mentioned above, the path status options include an activated state and a closed state. It should be noted that in a local resource configuration list, a candidate push path with an activated path status is included. As shown in Table 1, when the path status of the social circle push path in the promotion resource A set by the merchant is activated, the path statuses of the remaining candidate push paths are all closed. In some embodiments, in a local resource configuration list, the path status of one and only one candidate push path is activated.

[0122] It should be understood that after setting up the local resource configuration list, merchants can update the promotion resources according to actual conditions during subsequent use, such as deleting existing promotion resources, adding new promotion resources, changing the promotion path of promotion resources, changing the path status, etc.

[0123] After the merchant completes the configuration, it means that the local resource configuration list has been generated. At this time, the interactive terminal can select the selected promotional resources to be pushed from the local resource configuration list. In the embodiment of the present application, the interactive terminal selects the selected promotional resources to be pushed from the local resource configuration list, which may include: searching for an activated push path with an activated path status from the candidate push paths in the local resource configuration list; and selecting the promotional resources corresponding to the activated push path as the selected promotional resources.

[0124] As previously mentioned, since a local resource configuration list includes a candidate push path with an activated path status, the interactive terminal can directly select the candidate push path corresponding to the activated path status as the activated push path. After determining the activated push path, the promotional resource corresponding to the activated push path can be directly selected as the selected promotional resource. An activated push path refers to a push path with an activated path status among the candidate push paths in the local resource configuration list. The promotional resource corresponding to this path will be pushed as the selected promotional resource.

[0125] In an embodiment of the present application, selecting the selected promotional resources to be pushed from the local resource configuration list may also include: obtaining the order data of the interacting party; based on the order data, searching for scene-related resources that have an association with the order data from the promotional resources in the local resource configuration list; comparing the scene-related resources with the selected promotional resources, and updating the selected promotional resources based on the comparison results.

[0126] Scenario-related resources refer to promotional resources that are associated with the order data and are selected from the promotional resources in the local resource configuration list based on the order data of the interacting party, that is, promotional resources that point to the products in the order data.

[0127] If the interactive party has currently purchased a product, the interactive party can scan the product barcode through the interactive terminal so that the interactive terminal can obtain the interactive party's order data in this way. The order data may include the category of the product purchased by the interactive party, the price of the product, etc. After the interactive terminal obtains the order data of the interactive party, it can filter out a promotional resource that is most relevant to the order data from the promotional resources based on the order data as a scene-related resource, and compare the scene-related resource with the selected promotional resource determined by the path status mentioned above, and then determine whether it is necessary to replace the selected promotional resource determined by the path status mentioned above based on the comparison result. Among them, the scene-related resource can be understood as a promotional resource pointing to the product in the order data. For example, if the promotional content in promotional resource B promotes a certain product, and after the interactive party scans the code of the product, the interactive terminal can determine that promotional resource B is a scene-related resource based on the order data.

[0128] In the embodiment of the present application, updating the selected promotion resources based on the comparison results may include the following two situations:

[0129] In the first case, if the comparison results show that the scene-related resources are the same as the selected promotion resources, the selected promotion resources will be retained. If the scene-related resources are the same as the selected promotion resources, there is no need to change the selected promotion resources.

[0130] In the second case, if the comparison results show that the scenario-related resources are different from the selected promotional resources, the selected promotional resources are updated to the scenario-related resources. Since the scenario-related resources are determined based on the interacting party's order data, this indicates that the current promotional resources better meet the interacting party's needs. In this case, if the scenario-related resources are different from the selected promotional resources, the selected promotional resources can be replaced with the scenario-related resources, making the scenario-related resources the most recently selected promotional resources. For example, in Table 1, the selected promotional resource determined based on the path status is promotional resource A, but the scenario-related resource determined by the interactive terminal based on the order data is promotional resource B. Since promotional resource A is different from promotional resource B, promotional resource B can be used as the final selected promotional resource.

[0131] Selected promotional resources include target promotional content and the corresponding activation push path. Scenario-related resources include associated promotional content and the corresponding associated push paths. For ease of distinction, the promotional content corresponding to the selected promotional resource is referred to as the target promotional content, and the promotional content corresponding to the scenario-related resource is referred to as the associated promotional content. Accordingly, candidate push paths with an activated path status in the target promotional content are referred to as activated push paths, while candidate push paths included in the associated promotional content are referred to as associated push paths. It should be understood that there is only one activated push path, and the number of associated push paths depends on the resource configuration of the associated promotional content, which may be one or more. Therefore, when replacing the selected promotional resource with a scenario-related resource, if there are more than two associated push paths, one of the associated push paths must be selected as the activated push path. Target promotional content refers to the promotional content corresponding to the selected promotional resource and is the content ultimately pushed to the user terminal for display. Associated push paths refer to the candidate push paths included in the associated promotional content, and their number depends on the resource configuration of the associated promotional content, which may be one or more.

[0132] Accordingly, replacing the selected promotional resource with the scene-associated resource may include: using the associated promotional content corresponding to the scene-associated resource as the target promotional content; displaying the associated push path corresponding to the associated promotional content, and the associated path status of each associated push path; and in response to an adjustment operation on the associated path status, using the associated push path corresponding to an activation state specified in the adjustment operation as the activated push path. Associated promotional content refers to the promotional content corresponding to the scene-associated resource. When the scene-associated resource is different from the selected promotional resource, the associated promotional content may be pushed as the new target promotional content. The associated path status refers to the path status corresponding to the associated push path, including the activated state and the closed state, which can be set and adjusted by the merchant.

[0133] Taking the configuration in Table 1 as an example, in the process of using the scene-associated resource (promotional resource B) as the final selected promotional resource, the interactive terminal can use the associated promotional content B corresponding to the promotional resource B as the target promotional content. Afterwards, the interactive terminal can display the associated push paths (including social circle push and mini-program push) and the associated path status of each associated push path (all are not closed at this time). When an adjustment operation based on the displayed content is detected, the interactive terminal can use the associated push path corresponding to an activation state specified by the adjustment operation as the activation push path. For example, when it is detected that the path status of the social circle push is changed to the activation state, the interactive terminal can use the social circle push as the activation push path. Or, when it is detected that the path status of the mini-program push is changed to the activation state, the interactive terminal can use the mini-program push as the activation push path.

[0134] The process of updating the selected promotional resources to scene-related resources by the interactive terminal is equivalent to adjusting the local resource configuration list. The interactive terminal can then use the adjusted local resource configuration list to determine the selected promotional resources. Considering that the order data of each interactive party is different, the interactive terminal may always need to update the currently used selected promotional resources and use the updated selected promotional resources as the basis for determining the selected promotional resources next time. This process will cause the interactive terminal to constantly pop up the interface for modifying the local resource configuration list during use, thereby affecting the efficiency of attracting new customers. To address this issue, embodiments of the present application can introduce a default option, setting the resource configuration triggered by the merchant as the default option and setting the update of the selected promotional resources caused by order data as a temporary option. Through this setting, even if the scene-related resources are determined based on the interactive party's order data and the scene-related resources are different from the selected promotional resources and need to be updated, the updated resource configuration will be treated as temporary resource configuration content. After this use, the interactive terminal can revert to the resource configuration before the update. On the one hand, the local resource configuration list configured by the merchant can always be used as the priority, and on the other hand, the update frequency caused by the personalization of order data can be reduced, thereby improving the efficiency of attracting new customers.

[0135] 205. Push the selected promotional resources to the user terminal so that the user terminal displays the selected promotional resources.

[0136] After the interactive terminal determines the selected promotional resources, it can send the selected promotional resources to the user terminal. After receiving the selected promotional resources, the user terminal can synchronously display the target promotion content according to the target promotion path corresponding to the selected promotional resources, thereby quickly activating the relevant functions of the user terminal. Specifically, pushing the selected promotional resources to the user terminal can include: displaying the selected promotional resources and generating a push notification based on the selected promotional resources; sending the push notification to the user terminal; and upon receiving a push consent message from the user terminal, sending the selected promotional resources to the user terminal.

[0137] Before the interactive terminal sends the selected promotional resources to the user terminal, it may display relevant information about the selected promotional resources in the screen area of ​​the interactive terminal, such as the target promotional content corresponding to the selected promotional resources and the activation push path for the target promotional content. At the same time, the interactive terminal may generate corresponding push prompt information based on the selected promotional resources and send the push prompt information to the user terminal. The push prompt information may include the options of "agree to push" and "disagree to push". The user terminal receives and displays the push prompt information. If the user terminal detects a selection operation for the "agree to push" option, it may generate a push consent message and return the push consent message to the interactive terminal. After receiving the push consent message, the interactive terminal may send the selected promotional resources to the user terminal for synchronous display. Conversely, if the user terminal detects a selection operation for the "disagree to push" option, it may generate a push rejection message and return the push rejection message to the interactive terminal. After receiving the push rejection message, the interactive terminal terminates the relevant procedures for this resource synchronization and enters the normal settlement process.

[0138] In an embodiment of the present application, after pushing the selected promotional resources to the user terminal, the following may also be included: sending the interaction adjustment resources corresponding to the selected promotional resources and the order data of the interacting party to a backend server, so that the backend server can settle the target account corresponding to the interacting party based on the interaction adjustment resources and the order data; and receiving the settlement result returned by the backend server, sending the settlement result to the user terminal. The settlement result is the result obtained by the backend server after settling the target account corresponding to the interacting party based on the interaction adjustment resources and the order data. After receiving the settlement result, the interactive terminal will send it to the user terminal.

[0139] When the interactive terminal successfully pushes the selected promotional resources to the user terminal (that is, the user terminal synchronously displays the target promotion content according to the target promotion path corresponding to the selected promotional resources), the interactive adjustment resources carried by the selected promotional resources can enter the account of the interactive party (that is, the target account), and the interactive terminal can also determine that the interactive adjustment resources begin to take effect on the target account. Among them, interactive adjustment resources refer to resources related to information such as coupons carried by the selected promotional resources. When the interactive terminal successfully pushes the selected promotional resources to the user terminal, the resources will enter the account of the interactive party and begin to take effect. Interactive adjustment resources can be understood as information such as coupons carried by the selected promotional resources. The target account refers to the account corresponding to the interactive party. When the interactive terminal successfully pushes the selected promotional resources to the user terminal, the interactive adjustment resources carried by the selected promotional resources will enter the account, and the background server will settle the account based on the interactive adjustment resources and order data.

[0140] At this time, the interactive terminal can send the interactive adjustment resources and order data to the background server; after the background server receives the interactive adjustment resources and order data, it can make payment settlements on the target account and return the settlement results to the interactive terminal; after the interactive terminal receives the settlement results returned by the background server, it can send the settlement results to the user terminal.

[0141] As can be seen from the above, the embodiment of the present application obtains the characteristic information of the interactive party of the interactive terminal through the interactive terminal, and determines the user terminal to which the interactive terminal is connected; then, based on the characteristic information, the interactive party is identified to obtain the interactive party identifier of the interactive party; thereafter, the interactive party identifier is sent to the user terminal, and the verification result of the user terminal authenticating the interactive party based on the interactive party identifier is received; in response to the verification result indicating that the identity authentication of the interactive party is passed, the selected promotional resources to be pushed are selected from the local resource configuration list; and the selected promotional resources are then pushed to the user terminal so that the user terminal displays the selected promotional resources. Since this solution can push the promotional resources configured on the merchant side to the user terminal where the user is located, the user terminal can quickly activate the relevant functions to synchronously display the promotional resources. On the one hand, the promotional resources on the merchant side can be quickly transmitted, reducing the impact on the efficiency of offline cashier settlement and improving the efficiency of merchants in attracting new customers; on the other hand, since the user terminal can quickly activate the relevant functions to display the promotional resources, it changes the way in which users need to open the corresponding interface step by step through verbal communication to obtain promotional resources, thereby improving the efficiency of users in obtaining promotional resources.

[0142] The method described in the above embodiment will be further described in detail below with examples.

[0143] This embodiment will be described from the perspective of a resource synchronization device, which can be specifically integrated into a second electronic device. The second electronic device can be a user terminal, which can be a user terminal such as a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc. used by the user.

[0144] A resource synchronization method includes: obtaining a login user identifier logged in at a user terminal and determining the interactive terminal to which the user terminal is connected; receiving an interactive party identifier of an interactive party returned by the interactive terminal, and comparing the interactive party identifier with the login user identifier; if the interactive party identifier is identical to the login user identifier, sending an identity verification result to the interactive terminal; and after receiving selected promotion resources returned by the interactive terminal, displaying the selected promotion resources.

[0145] FIG8 shows a schematic diagram of a process flow of a resource synchronization method provided by an embodiment of the present application. As shown in FIG8 , the specific process of the resource synchronization method is as follows:

[0146] 801. Obtain a login user identifier at a user terminal, and determine an interactive terminal to which the user terminal is connected.

[0147] The login user ID can be understood as the account ID that the current user terminal is logged in. When the user logs in on the relevant application of the user terminal, the user terminal can obtain the account ID corresponding to the currently logged in user, that is, the login user ID.

[0148] In an embodiment of the present application, during the process of the interactive terminal determining the user terminal to which it is connected, the user terminal can also determine the interactive terminal to which it is connected. Determining the interactive terminal to which the user terminal is connected may include: broadcasting a communication connection request, and after receiving the connection consent information fed back by the request receiving terminal, sending a second public key to the request receiving terminal so that the request receiving terminal encrypts the second data based on the second public key, where the second public key is the public key of the user terminal; receiving the second encrypted data returned by the request receiving terminal, decrypting the second encrypted data using the second private key to obtain the second decrypted data, where the second private key is the private key of the user terminal; sending the second decrypted data to the request receiving terminal so that the request receiving terminal compares the second decrypted data with the second data; upon receiving the comparison result returned by the request receiving terminal, determining that the communication connection with the request receiving terminal is a secure connection, and using the request receiving terminal as the interactive terminal.

[0149] A request receiving terminal (RTT) is a terminal that receives communication connection requests broadcast by user terminals. When establishing a communication connection with a user terminal, it must participate in the security verification process set by the user terminal, such as encrypting data using the user terminal's public key. When the communication connection is determined to be secure, the RTT becomes an interactive terminal.

[0150] As mentioned above, the communication connection method between the interactive terminal and the user terminal can be a near field communication method. In an embodiment of the present application, the user terminal can be set as the NFC master device, and the user terminal broadcasts the NFC communication connection request to the outside world. The request receiving terminal can be understood as a user terminal that receives the communication connection request of the user terminal. Generally, after the request receiving terminal receives the NFC communication connection request sent by the user terminal, it can establish an NFC communication connection with the user terminal. However, this method of directly establishing an NFC connection is less secure. In this regard, in an embodiment of the present application, when the request receiving terminal receives the communication connection request sent by the user terminal, it can perform security verification. When the communication connection between the request receiving terminal and the user terminal is a secure connection, the request receiving terminal is the interactive terminal.

[0151] Figure 9 shows a schematic diagram of communication security verification between a user terminal and a request sending terminal provided by an embodiment of the present application. As shown in Figure 9, from the perspective of the user terminal, the user terminal broadcasts a communication connection request to other user terminals. When the request receiving terminal receives the communication connection request and establishes a connection with the user terminal, it can feedback connection consent information to the user terminal; after the user terminal receives the connection consent information feedback from the request receiving terminal, it can send its own set second public key to the request receiving terminal; after the request receiving terminal receives the second public key, it can encrypt the second data (which can be a piece of random data) based on the second public key to obtain second encrypted data; after that, after the user terminal receives the second encrypted data returned by the request receiving terminal, it can use the second private key to decrypt the second encrypted data to obtain second decrypted data; then, the user terminal can send the second decrypted data to the request receiving terminal. After receiving the second decrypted data, the request receiving terminal can compare the second decrypted data with the second data; if the second decrypted data is the same as the second data, the request receiving terminal returns a comparison consistency result. At this time, after receiving the comparison consistency result, the user terminal can determine that the communication connection with the request receiving terminal is a secure connection and use the request receiving terminal as an interactive terminal.

[0152] In an embodiment of the present application, determining the interactive terminal to which the user terminal is connected may also include: broadcasting a communication connection request, receiving the connection consent information fed back by the request receiving terminal, receiving the first public key returned by the request receiving terminal, and encrypting the first data based on the first public key to obtain the first encrypted data, where the first public key is the public key of the request receiving terminal; sending the first encrypted data to the request receiving terminal so that the request receiving terminal uses the first private key to decrypt the first encrypted data, where the first private key is the private key of the request receiving terminal; receiving the first decrypted data returned by the request receiving terminal, and if the first decrypted data is consistent with the first data, determining that the communication connection with the request receiving terminal is a secure connection, and using the request receiving terminal as the interactive terminal. The first encrypted data is the data obtained by the request sending terminal using the first public key of the interactive terminal to encrypt the first data; the first decrypted data is the data obtained by the interactive terminal using its own first private key to decrypt the first encrypted data. These two data.

[0153] Figure 10 shows another schematic diagram of communication security verification between a user terminal and a request receiving terminal provided by an embodiment of the present application. As shown in Figure 10, from the perspective of the user terminal, the user terminal broadcasts a communication connection request to other user terminals. When the request receiving terminal receives the communication connection request and establishes a connection with the user terminal, it can feedback the user terminal with the connection consent information and the first public key; after the user terminal receives the first public key, it can encrypt the first data (which can be a random data) based on the first public key to obtain the first encrypted data; thereafter, the user terminal can send the first encrypted data to the request receiving terminal. After the request receiving terminal receives the first encrypted data, it can use the first private key to decrypt the first encrypted data to obtain the first decrypted data, and return the first decrypted data to the user terminal; after the user terminal receives the first decrypted data, it can compare the first decrypted data with the first data. If the first decrypted data is the same as the first data, it can be determined that the communication connection with the request receiving terminal is a secure connection. At this time, the user terminal can use the request receiving terminal as an interactive terminal; on the contrary, if the first decrypted data is different from the first data, the user terminal can determine that the communication connection with the request receiving terminal is an unsecure connection. At this time, the user terminal can disconnect the communication connection with the request receiving terminal.

[0154] It should be understood that the verification processes of FIG. 9 and FIG. 10 can be performed simultaneously, and the verification processes of FIG. 9 , FIG. 10 , FIG. 3 , and FIG. 4 can also be performed simultaneously.

[0155] After determining that the communication connection with the user terminal is a secure connection, the interactive terminal may directly use an asymmetric encryption algorithm for data transmission, or may use other methods for data transmission.

[0156] For example, after determining the interactive terminal to which the user terminal is connected, the following steps may also be performed: using a symmetric encryption algorithm to negotiate a key with the interactive terminal to obtain a shared key; and then performing encrypted communication with the interactive terminal based on the shared key. The manner in which the user terminal and the interactive terminal determine the shared key can be referenced to the negotiation process described above and is not further described here.

[0157] 802. Receive the interacting party identifier of the interacting party returned by the interacting terminal, and compare the interacting party identifier with the login user identifier.

[0158] As previously mentioned, the interaction terminal can collect characteristic information of the interacting party and identify the interacting party based on the collected characteristic information, thereby determining the interacting party identifier of the interacting party. After determining the interacting party identifier of the interacting party, the interaction terminal can send the interacting party identifier to the user terminal. After receiving the interacting party identifier, the user terminal can compare the interacting party identifier with the login user identifier to verify whether the account identifier currently logged into the user terminal is consistent with the received interacting party identifier. If the interacting party identifier and the login user identifier are consistent, it indicates that the user terminal is a user terminal owned by the interacting party, and the interaction process based on this is valid. Conversely, if the interacting party identifier and the login user identifier are inconsistent, it indicates that the user terminal may be a user terminal owned by another user.

[0159] 803. If the interaction party identifier is the same as the login user identifier, send the identity verification result to the interaction terminal. When the interaction party identifier is the same as the login user identifier, the user terminal may send the identity verification result to the interaction terminal.

[0160] 804. After receiving the selected promotion resources returned by the interactive terminal, the selected promotion resources are displayed.

[0161] After receiving the selected promotion resource returned by the interactive terminal, the user terminal can synchronously display the target promotion content according to the target promotion path corresponding to the selected promotion resource, thereby quickly activating relevant functions of the user terminal.

[0162] As can be seen from the above, the embodiment of the present application obtains the characteristic information of the interactive party of the interactive terminal through the interactive terminal, and determines the user terminal to which the interactive terminal is connected; then, based on the characteristic information, the interactive party is identified to obtain the interactive party identifier of the interactive party; thereafter, the interactive party identifier is sent to the user terminal, and the verification result of the user terminal authenticating the interactive party based on the interactive party identifier is received; in response to the verification result indicating that the identity authentication of the interactive party is passed, the selected promotional resources to be pushed are selected from the local resource configuration list; and the selected promotional resources are then pushed to the user terminal so that the user terminal displays the selected promotional resources. Since this solution can push the promotional resources configured on the merchant side to the user terminal where the user is located, the user terminal can quickly activate the relevant functions to synchronously display the promotional resources. On the one hand, the promotional resources on the merchant side can be quickly transmitted, reducing the impact on the efficiency of offline cashier settlement and improving the efficiency of merchants in attracting new customers; on the other hand, since the user terminal can quickly activate the relevant functions to display the promotional resources, it changes the way in which users need to open the corresponding interface step by step through verbal communication to obtain promotional resources, thereby improving the efficiency of users in obtaining promotional resources.

[0163] The method described in the above embodiment will be further described in detail below with examples.

[0164] In this embodiment, the data exchange process between a first electronic device and a second electronic device is used as an example to illustrate. The first electronic device may be a merchant-side smart payment terminal for electronic purchases, i.e., an interaction terminal. The second electronic device may be a user terminal, such as a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, or other user terminal. A communication connection is established between the interaction terminal and the user terminal.

[0165] Figure 11 shows a data interaction diagram of a resource synchronization method provided by an embodiment of the present application. As shown in Figure 11, a resource synchronization method has the following specific process:

[0166] 1101. The interaction terminal obtains characteristic information of an interaction partner of the interaction terminal and determines a user terminal to which the interaction terminal is connected.

[0167] For example, the interactive terminal can use a camera to collect the interacting party's palm streaming data, which includes multiple image frames. The interactive terminal can evaluate each image frame based on factors such as palm size, angle, image contrast, image brightness, and image clarity, and select the image frame with the highest overall score as the interacting party's feature information.

[0168] For example, the interactive terminal can receive a communication connection request sent by the request sending terminal, send the first public key to the request sending terminal, so that the request sending terminal encrypts the first data based on the first public key, and the first public key is the public key of the interactive terminal; receive the first encrypted data returned by the request sending terminal, use the first private key to decrypt the first encrypted data to obtain the first decrypted data, and the first private key is the private key of the interactive terminal; send the first decrypted data to the request sending terminal, so that the request sending terminal compares the first decrypted data with the first data; when receiving the comparison consistency result returned by the request sending terminal, determine that the communication connection with the request sending terminal is a secure connection, and use the request sending terminal as the user terminal.

[0169] For example, an interactive terminal may receive a communication connection request from a requesting terminal, receive a second public key returned by the requesting terminal, and encrypt second data using the second public key to obtain second encrypted data, where the second public key is the public key of the requesting terminal. The second encrypted data is then sent to the requesting terminal, so that the requesting terminal can decrypt the second encrypted data using the second private key, where the second private key is the private key of the requesting terminal. The second decrypted data returned by the requesting terminal is received, and if the second decrypted data matches the second data, the communication connection with the requesting terminal is determined to be secure, and the requesting terminal is designated as the user terminal. The second encrypted data is the data obtained by the interactive terminal encrypting the second data using the second public key of the requesting terminal; the second decrypted data is the data obtained by the requesting terminal decrypting the second encrypted data using its own second private key. These data are used to further verify the security of the communication and the accuracy of the data during the communication security verification process between the interactive terminal and the requesting terminal.

[0170] 1102. The user terminal obtains a login user identifier logged in at the user terminal, and determines an interactive terminal to which the user terminal is connected.

[0171] For example, after a user logs in on a related application on a user terminal, the user terminal can obtain an account identifier corresponding to the currently logged-in user, that is, a logged-in user identifier.

[0172] For example, the user terminal can broadcast a communication connection request, and after receiving the connection consent information fed back by the request receiving terminal, send the second public key to the request receiving terminal so that the request receiving terminal encrypts the second data based on the second public key, where the second public key is the public key of the user terminal; receive the second encrypted data returned by the request receiving terminal, use the second private key to decrypt the second encrypted data to obtain the second decrypted data, where the second private key is the private key of the user terminal; send the second decrypted data to the request receiving terminal so that the request receiving terminal compares the second decrypted data with the second data; when receiving the comparison consistency result returned by the request receiving terminal, determine that the communication connection with the request receiving terminal is a secure connection, and use the request receiving terminal as an interactive terminal.

[0173] For example, a user terminal may broadcast a communication connection request, and after receiving the connection consent information fed back by the requesting receiving terminal, receive the first public key returned by the requesting receiving terminal, and encrypt the first data based on the first public key to obtain the first encrypted data, where the first public key is the public key of the requesting receiving terminal; send the first encrypted data to the requesting receiving terminal so that the requesting receiving terminal uses the first private key to decrypt the first encrypted data, where the first private key is the private key of the requesting receiving terminal; receive the first decrypted data returned by the requesting receiving terminal, and if the first decrypted data is consistent with the first data, determine that the communication connection with the requesting receiving terminal is a secure connection, and use the requesting receiving terminal as an interactive terminal.

[0174] 1103. The interaction terminal identifies the interaction party based on the feature information, obtains the interaction party identifier of the interaction party, and sends the interaction party identifier to the user terminal.

[0175] For example, the interactive terminal can transmit the feature information of the interacting party to the backend server, which extracts the feature information and performs a full database search based on the extracted palmprint features. If there is palmprint data in the database that meets a preset similarity with the palmprint features, the interacting party identifier of the interacting party can be determined. After the backend server retrieves the corresponding interacting party identifier, it can return the interacting party identifier to the interactive terminal. The interactive terminal can also directly extract the feature information and search based on the extracted palmprint features to determine the interacting party identifier of the interacting party.

[0176] 1104. The user terminal receives the interacting party identifier of the interacting party returned by the interacting terminal, compares the interacting party identifier with the login user identifier, and sends an identity verification result to the interacting terminal if the interacting party identifier and the login user identifier are the same.

[0177] For example, if the interacting party identifier is consistent with the login user identifier, it indicates that the user terminal is the user terminal held by the interacting party, and the interaction process based on this is valid. At this time, the user terminal can send the identity authentication result to the interacting terminal; on the contrary, if the interacting party identifier is inconsistent with the login user identifier, it indicates that the user terminal may be a user terminal held by another user.

[0178] 1105. The interactive terminal receives the identity authentication result, selects the selected promotion resource to be pushed from the local resource configuration list, and pushes the selected promotion resource to the user terminal.

[0179] For example, the interactive terminal may search for an activated push path with an activated path status from the candidate push paths in the local resource configuration list; and use the promotion resource corresponding to the activated push path as the selected promotion resource.

[0180] For example, the interactive terminal can obtain the order data of the interacting party; based on the order data, search the promotional resources in the local resource configuration list for scenario-related resources that are associated with the order data; compare the scenario-related resources with the selected promotional resources, and update the selected promotional resources based on the comparison results. This can be done by matching the product category, price, and other information in the order data with the promotional content in the promotional resources. If the promotional content in the promotional resource promotes the product in the order data, the promotional resource is considered to have an association with the order data and is used as a scenario-related resource.

[0181] 1106. After receiving the selected promotion resources returned by the interactive terminal, the user terminal displays the selected promotion resources.

[0182] For example, after receiving the selected promotion resource returned by the interactive terminal, the user terminal can synchronously display the target promotion content according to the target promotion path corresponding to the selected promotion resource, thereby quickly activating relevant functions of the user terminal.

[0183] As can be seen from the above, the embodiment of the present application obtains the login user identification logged in at the user terminal through the user terminal, and determines the interactive terminal to which the user terminal is connected; thereafter, the interactive party identification of the interactive party returned by the interactive terminal is received, and the interactive party identification is compared with the login user identification; if the interactive party identification is the same as the login user identification, the identity authentication result is sent to the interactive terminal; then, after receiving the selected promotional resources returned by the interactive terminal, the selected promotional resources are displayed. Since this solution can push the promotional resources configured on the merchant side to the user terminal where the user is located, the user terminal can quickly activate the relevant functions to synchronously display the promotional resources. On the one hand, the merchant side's promotional resources can be quickly delivered, reducing the impact on the efficiency of offline cashier settlement and improving the merchant's efficiency in attracting new customers; on the other hand, since the user terminal can quickly activate the relevant functions to display the promotional resources, it changes the way users need to open the corresponding interface step by step through verbal communication to obtain promotional resources, thereby improving the efficiency of users in obtaining promotional resources.

[0184] In order to better implement the above method, an embodiment of the present application also provides a resource synchronization device, which can be integrated into a first electronic device. The first electronic device can be a smart payment terminal for electronic consumption on the merchant side, that is, an interactive terminal.

[0185] Figure 12 shows a schematic diagram of the structure of a resource synchronization device provided by an embodiment of the present application. As shown in Figure 12, the resource synchronization device may include a first connection confirmation unit 401, an interaction party identification unit 402, a data receiving unit 403, a resource calling unit 404, and a resource synchronization unit 405, as follows:

[0186] (1) First connection confirmation unit 401.

[0187] The first connection confirmation unit 401 is configured to obtain feature information of an interaction party of an interaction terminal and determine a user terminal to which the interaction terminal is connected.

[0188] For example, the first connection confirmation unit 401 can be specifically used to receive a communication connection request sent by a request sending terminal, send a first public key to the request sending terminal, so that the request sending terminal encrypts the first data based on the first public key, and the first public key is the public key of the interactive terminal; receive the first encrypted data returned by the request sending terminal, use the first private key to decrypt the first encrypted data to obtain first decrypted data, and the first private key is the private key of the interactive terminal; send the first decrypted data to the request sending terminal, so that the request sending terminal compares the first decrypted data with the first data; when receiving the comparison consistency result returned by the request sending terminal, determine that the communication connection with the request sending terminal is a secure connection, and use the request sending terminal as the user terminal.

[0189] For example, the first connection confirmation unit 401 can be specifically used to receive a communication connection request sent by the request sending terminal, receive the second public key returned by the request sending terminal, and encrypt the second data based on the second public key to obtain second encrypted data, where the second public key is the public key of the request sending terminal; send the second encrypted data to the request sending terminal so that the request sending terminal uses the second private key to decrypt the second encrypted data, where the second private key is the private key of the request sending terminal; receive the second decrypted data returned by the request sending terminal, and if the second decrypted data is consistent with the second data, determine that the communication connection with the request sending terminal is a secure connection, and use the request sending terminal as a user terminal.

[0190] For example, the first connection confirmation unit 401 may be specifically configured to perform key negotiation with the user terminal using a symmetric encryption algorithm to obtain a shared key; and perform encrypted communication with the user terminal based on the shared key.

[0191] (2) Interacting party identification unit 402.

[0192] The interacting party identifying unit 402 is configured to identify the interacting party based on the feature information and obtain an interacting party identifier of the interacting party.

[0193] (3) Data receiving unit 403.

[0194] The data receiving unit 403 is configured to send the interacting party identifier to the user terminal and receive a verification result of the user terminal performing identity verification on the interacting party based on the interacting party identifier.

[0195] (4) Resource calling unit 404.

[0196] The resource calling unit 404 is configured to select a selected promotion resource to be pushed from a local resource configuration list in response to the verification result indicating that the identity authentication of the interacting party is passed.

[0197] For example, the resource calling unit 404 may be specifically configured to search for an activated push path with an activated path status from the candidate push paths in the local resource configuration list; and use the promotion resource corresponding to the activated push path as the selected promotion resource.

[0198] For example, the resource calling unit 404 can be specifically used to obtain the order data of the interacting party; based on the order data, search for scene-related resources that have an association relationship with the order data from the promotion resources in the local resource configuration list; compare the scene-related resources with the selected promotion resources, and update the selected promotion resources based on the comparison results.

[0199] For example, the resource calling unit 404 can be specifically used to retain the selected promotion resource if the comparison result shows that the scene-related resource is the same as the selected promotion resource; if the comparison result shows that the scene-related resource is different from the selected promotion resource, update the selected promotion resource to the scene-related resource.

[0200] (5) Resource synchronization unit 405.

[0201] The resource synchronization unit 405 is configured to push the selected promotional resources to the user terminal so that the user terminal displays the selected promotional resources.

[0202] For example, the resource synchronization unit 405 may be specifically configured to display the selected promotional resources, generate push prompt information based on the selected promotional resources, send the push prompt information to the user terminal, and upon receiving a push consent message returned by the user terminal, send the selected promotional resources to the user terminal.

[0203] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can be found in the previous method embodiments and will not be repeated here.

[0204] As can be seen from the above, in the embodiment of the present application, the first connection confirmation unit 401 is used to obtain the characteristic information of the interacting party of the interactive terminal and determine the user terminal to which the interactive terminal is connected. The interacting party identification unit 402 is used to identify the interacting party based on the characteristic information and obtain the interacting party identifier of the interacting party; thereafter, the data receiving unit 403 sends the interacting party identifier to the user terminal and receives the verification result of the user terminal authenticating the interacting party based on the interacting party identifier; then, in response to the verification result indicating that the identity authentication of the interacting party is passed, the resource calling unit 404 selects the selected promotion resource to be pushed from the local resource configuration list; then, the resource synchronization unit 405 pushes the selected promotion resource to the user terminal so that the user terminal displays the selected promotion resource. Since this solution can push the promotional resources configured on the merchant side to the user terminal where the user is located, the user terminal can quickly activate relevant functions to synchronously display the promotional resources. On the one hand, it can quickly transmit the promotional resources on the merchant side, reduce the impact on the efficiency of offline checkout settlement, and improve the efficiency of merchants in attracting new customers; on the other hand, since the user terminal can quickly activate relevant functions to display promotional resources, it changes the way users need to open the corresponding interface step by step through verbal communication to obtain promotional resources, thereby improving the efficiency of users in obtaining promotional resources.

[0205] In order to better implement the above method, an embodiment of the present application also provides a resource synchronization device, which can be integrated in a second electronic device. The second electronic device can be a user terminal, which can be a user terminal such as a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc. used by the user.

[0206] Figure 13 shows a schematic diagram of the structure of the resource synchronization device provided by an embodiment of the present application. As shown in Figure 13, the resource synchronization device may include a second connection confirmation unit 1301, an identity authentication unit 1302, a data sending unit 1303 and a synchronization display unit 1304, as follows:

[0207] (1) Second connection confirmation unit 1301.

[0208] The second connection confirmation unit 1301 is configured to obtain a login user identifier of a user terminal, and determine an interactive terminal to which the user terminal is connected.

[0209] For example, the second connection confirmation unit 1301 can be specifically used to broadcast a communication connection request. After receiving the connection consent information fed back by the requesting receiving terminal, the second public key is sent to the requesting receiving terminal, so that the requesting receiving terminal encrypts the second data based on the second public key, and the second public key is the public key of the user terminal; the second encrypted data returned by the requesting receiving terminal is received, and the second encrypted data is decrypted using the second private key to obtain the second decrypted data, and the second private key is the private key of the user terminal; the second decrypted data is sent to the requesting receiving terminal, so that the requesting receiving terminal compares the second decrypted data with the second data; when the comparison consistency result returned by the requesting receiving terminal is received, it is determined that the communication connection with the requesting receiving terminal is a secure connection, and the requesting receiving terminal is used as an interactive terminal.

[0210] For example, the second connection confirmation unit 1301 can be specifically used to broadcast a communication connection request. After receiving the connection consent information fed back by the requesting receiving terminal, it receives the first public key returned by the requesting receiving terminal, and encrypts the first data based on the first public key to obtain the first encrypted data, where the first public key is the public key of the requesting receiving terminal; the first encrypted data is sent to the requesting receiving terminal so that the requesting receiving terminal uses the first private key to decrypt the first encrypted data, where the first private key is the private key of the requesting receiving terminal; the first decrypted data returned by the requesting receiving terminal is received. If the first decrypted data is consistent with the first data, it is determined that the communication connection with the requesting receiving terminal is a secure connection, and the requesting receiving terminal is used as an interactive terminal.

[0211] For example, the second connection confirmation unit 1301 may be specifically configured to perform key negotiation with the interactive terminal using a symmetric encryption algorithm to obtain a shared key; and perform encrypted communication with the interactive terminal based on the shared key.

[0212] (2) Identity verification unit 1302.

[0213] The identity authentication unit 1302 is configured to receive the interacting party identifier of the interacting party returned by the interacting terminal, and compare the interacting party identifier with the login user identifier.

[0214] (3) Data sending unit 1303.

[0215] The data sending unit 1303 is configured to send an identity verification result to the interaction terminal if the interaction party identifier is the same as the login user identifier.

[0216] (4) Synchronous display unit 1304.

[0217] The synchronous display unit 1304 is configured to display the selected promotional resources after receiving the selected promotional resources returned by the interactive terminal.

[0218] As can be seen from the above, the embodiment of the present application obtains the login user identifier logged in to the user terminal through the second connection confirmation unit 1301, and determines the interactive terminal to which the user terminal is connected; thereafter, the identity authentication unit 1302 receives the interactive party identifier of the interactive party returned by the interactive terminal, and compares the interactive party identifier with the login user identifier; if the interactive party identifier is the same as the login user identifier, the data sending unit 1303 sends the identity authentication result to the interactive terminal; then, after the synchronous display unit 1304 receives the selected promotional resources returned by the interactive terminal, it displays the selected promotional resources. Since this solution can push the promotional resources configured on the merchant side to the user terminal where the user is located, the user terminal can quickly activate the relevant functions to synchronously display the promotional resources. On the one hand, the promotional resources on the merchant side can be quickly transmitted, reducing the impact on the efficiency of offline cashier settlement and improving the efficiency of merchants in attracting new customers; on the other hand, since the user terminal can quickly activate the relevant functions to display the promotional resources, it changes the way users need to open the corresponding interface step by step through verbal communication to obtain promotional resources, thereby improving the efficiency of users in obtaining promotional resources.

[0219] The present application also provides an electronic device, as shown in FIG14 , which shows a schematic diagram of the structure of the electronic device involved in the present application embodiment. Specifically:

[0220] The electronic device may include components such as a processor 1401 with one or more processing cores, a memory 1402 with one or more computer-readable storage media, a power supply 1403, and an input unit 1404. Those skilled in the art will appreciate that the electronic device structure shown in FIG14 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0221] Processor 1401 is the control center of the electronic device, connecting all parts of the electronic device using various interfaces and circuits. It executes the various functions of the electronic device and processes data by running or executing software programs and / or modules stored in memory 1402 and accessing data stored in memory 1402. Optionally, processor 1401 may include one or more processing cores; preferably, processor 1401 may integrate an application processor and a modem processor, where the application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 1401.

[0222] The memory 1402 can be used to store software programs and modules. The processor 1401 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402. The memory 1402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1402 may also include a memory controller to provide the processor 1401 with access to the memory 1402.

[0223] The electronic device also includes a power supply 1403 for supplying power to various components. Preferably, the power supply 1403 can be logically connected to the processor 1401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 1403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0224] The electronic device may further include an input unit 1404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0225] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 1401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 1402 according to the following instructions, and the processor 1401 will run the application programs stored in the memory 1402 to implement various functions as follows:

[0226] Acquire characteristic information of the interactive party of the interactive terminal and determine the user terminal to which the interactive terminal is connected; identify the interactive party based on the characteristic information and obtain the interactive party identifier of the interactive party; send the interactive party identifier to the user terminal and receive the verification result of the user terminal authenticating the interactive party based on the interactive party identifier; in response to the verification result indicating that the identity authentication of the interactive party is successful, select the selected promotion resource to be pushed from the local resource configuration list; push the selected promotion resource to the user terminal so that the user terminal displays the selected promotion resource. Alternatively, obtain the login user identifier logged in at the user terminal and determine the interactive terminal to which the user terminal is connected; receive the interactive party identifier of the interactive party returned by the interactive terminal and compare the interactive party identifier with the login user identifier; if the interactive party identifier is the same as the login user identifier, send the identity authentication result to the interactive terminal; after receiving the selected promotion resource returned by the interactive terminal, display the selected promotion resource.

[0227] The specific implementation of the above operations can be found in the previous embodiments and will not be described in detail here.

[0228] As can be seen above, the interactive terminal obtains the interactive party's characteristic information, such as using a depth camera or infrared camera to collect the interactive party's palm print data as characteristic information. At the same time, it determines the user terminal to which it is connected. After receiving the communication connection request from the request-sending terminal, it can perform security verification through asymmetric encryption. For example, it sends a first public key to the request-sending terminal, receives and decrypts the first encrypted data returned by it, and then sends the decrypted data back for comparison. If the results are consistent, a secure connection is determined and the user terminal is used. Next, the interactive party is identified based on the characteristic information to obtain an interactive party identifier, which is sent to the user terminal and the authentication result is received. If verification is successful, the selected promotional resources to be pushed are selected from the local resource configuration list and finally pushed to the user terminal. This solution allows the merchant's promotional resources to be quickly delivered to the user terminal, reducing the impact on offline checkout efficiency. It also allows users to quickly obtain promotional resources, improving the efficiency of resource delivery and acquisition.

[0229] Merchants upload at least one promotional content to the interactive terminal, and the interactive terminal adds these promotional contents to the local resource configuration list. Then the resource configuration options for each promotional content are displayed, including push path options (such as mini program push, social circle push, official account push) and path status options (activated status and closed status). After the merchant selects the resource configuration option, the interactive terminal generates the promotional resources corresponding to the promotional content based on the selected candidate push path and path status. This solution provides a systematic promotion resource configuration method for the interactive terminal, which facilitates merchants to customize promotional content and push paths according to their own needs, making promotional resources more targeted and diverse.

[0230] The path status options in the local resource configuration list include active and inactive states, and only one candidate push path in the list has an active path status. The interactive terminal searches the candidate push paths in the local resource configuration list for an active push path and selects the promotional resource corresponding to that active push path as the selected promotional resource. This method quickly determines the promotional resource to be pushed, improving the efficiency and accuracy of resource selection and enabling merchants to more accurately push promotional information.

[0231] The interactive terminal obtains the order data of the interacting party. For example, the interacting party scans a product barcode and allows the interactive terminal to obtain order data. Order data includes information such as product category and price. Based on this order data, the interactive terminal searches for scenario-related resources associated with the order data from the promotional resources in the local resource configuration list. The scenario-related resources are compared with the previously selected promotional resources, and the selected promotional resources are updated based on the comparison results. This solution takes into account the actual consumption of the interacting party, making the pushed promotional resources more in line with user needs, thereby improving the effectiveness and conversion rate of promotional resources.

[0232] If the scenario-related resources are the same as the selected promotional resources, the selected promotional resources are retained; if they are different, the selected promotional resources are updated to the scenario-related resources. During the update, the associated promotional content corresponding to the scenario-related resources is used as the target promotional content. The associated push paths corresponding to the associated promotional content and the associated path status of each path are displayed. In response to the merchant's adjustment of the associated path status, the associated push path corresponding to the activated state specified in the adjustment is used as the active push path. This solution ensures that the pushed promotional resources always match the needs of the interacting party, while providing merchants with flexible resource adjustment methods and enhancing the adaptability of promotional resources.

[0233] After receiving the communication connection request from the requesting terminal, the interactive terminal receives the second public key returned by the requesting terminal, encrypts the second data using the public key to obtain second encrypted data, and sends the encrypted data to the requesting terminal. The requesting terminal decrypts the second decrypted data and returns it. If the decrypted data matches the second data, the interactive terminal determines that the communication connection with the requesting terminal is secure and uses it as the user terminal. This adds a verification method for the interactive terminal to determine the connected user terminal, improving the security and reliability of the communication connection.

[0234] After determining the user terminal to which the interactive terminal is connected, the interactive terminal and the user terminal perform key negotiation using a symmetric encryption algorithm. Each party generates a random number, calculates an intermediate value using its own private key and the other party's public key, and then exchanges the intermediate value. This intermediate value is then calculated again to obtain the final shared key. Based on this shared key, the two parties conduct encrypted communication. Symmetric encryption algorithms improve the security and efficiency of data transmission, ensuring the confidentiality and integrity of data transmitted between the interactive terminal and the user terminal.

[0235] The interactive terminal displays the selected promotional resources and generates a push notification based on this information, which is then sent to the user terminal. If the user terminal responds with a notification agreeing to the push, the interactive terminal sends the selected promotional resources to the user terminal. This approach gives users the ability to choose whether to receive promotional resources, improving the user experience while ensuring the effective delivery of promotional resources.

[0236] The interactive terminal sends the interactive adjustment resources corresponding to the selected promotional resources and the order data of the interacting party to the backend server. The backend server settles the target account corresponding to the interacting party based on this data and returns the settlement result to the interactive terminal, which then sends the result to the user terminal. This achieves automated transaction settlement and result feedback, improves transaction processing efficiency and transparency, and provides users with a more convenient transaction experience.

[0237] The user terminal obtains the login user ID and broadcasts a communication connection request to determine the connected interactive terminal. Upon receiving the interactive party ID returned by the interactive terminal, it compares it with the login user ID. If the two are identical, an authentication result is sent to the interactive terminal. Upon receiving the selected promotional resources returned by the interactive terminal, the resources are displayed. This enables efficient information exchange and resource synchronization between the user terminal and the interactive terminal, ensuring timely access to the merchant's promotional resources.

[0238] The user terminal broadcasts a communication connection request. Upon receiving a connection approval message from the requesting terminal, the user terminal sends the second public key to the requesting terminal, receives the second encrypted data returned, decrypts it, and sends the decrypted data back for comparison. If the results match, the communication connection with the requesting terminal is determined to be secure and the terminal is designated as the interactive terminal. This provides a secure and reliable method for the user terminal to determine the interactive terminal to connect to, ensuring the security of communication between the two parties.

[0239] The user terminal broadcasts a communication connection request. Upon receiving the connection consent information and the first public key from the requesting terminal, the user terminal encrypts the first data using the first public key and sends the encrypted data to the requesting terminal. The requesting terminal decrypts the data and returns the first decrypted data. If the decrypted data matches the first data, the user terminal determines that the communication connection with the requesting terminal is secure and uses it as an interactive terminal. This further enriches the verification methods used by the user terminal to determine the interactive terminal, improving the security of the communication connection.

[0240] After determining the interactive terminal to which the user terminal is connected, the two terminals negotiate a key using a symmetric encryption algorithm to obtain a shared key. This key is then used for encrypted communication. This ensures the security and efficiency of data transmission between the user terminal and the interactive terminal, preventing data from being eavesdropped or tampered with during transmission.

[0241] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0242] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any resource synchronization method provided in an embodiment of the present application. For example, the instructions can execute the following steps:

[0243] Acquire characteristic information of the interactive party of the interactive terminal and determine the user terminal to which the interactive terminal is connected; identify the interactive party based on the characteristic information and obtain the interactive party identifier of the interactive party; send the interactive party identifier to the user terminal and receive the verification result of the user terminal authenticating the interactive party based on the interactive party identifier; in response to the verification result indicating that the identity authentication of the interactive party is successful, select the selected promotion resource to be pushed from the local resource configuration list; push the selected promotion resource to the user terminal so that the user terminal displays the selected promotion resource. Alternatively, obtain the login user identifier logged in at the user terminal and determine the interactive terminal to which the user terminal is connected; receive the interactive party identifier of the interactive party returned by the interactive terminal and compare the interactive party identifier with the login user identifier; if the interactive party identifier is the same as the login user identifier, send the identity authentication result to the interactive terminal; after receiving the selected promotion resource returned by the interactive terminal, display the selected promotion resource.

[0244] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0245] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0246] Since the instructions stored in the computer-readable storage medium can execute the steps in any resource synchronization method provided in the embodiments of the present application, the beneficial effects that can be achieved by any resource synchronization method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0247] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in various optional implementations of the aforementioned data access aspects.

[0248] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0249] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A resource synchronization method, executed by an interactive terminal, comprising: Acquiring characteristic information of an interacting party of an interactive terminal, and determining a user terminal to which the interactive terminal is connected; Identifying the interacting party based on the characteristic information to obtain an interacting party identifier of the interacting party; sending the interacting party identifier to the user terminal, and receiving a verification result of the user terminal performing identity authentication on the interacting party based on the interacting party identifier; In response to the verification result indicating that the identity authentication of the interacting party is passed, selecting a selected promotion resource to be pushed from a local resource configuration list; and The selected promotional resource is pushed to the user terminal, where the selected promotional resource is used to instruct the user terminal to display the selected promotional resource.

2. The resource synchronization method according to claim 1, wherein the local resource configuration list includes at least one promotional resource, and the method further comprises: In response to an upload operation of at least one promotional content, adding the promotional content to the local resource configuration list; Displaying resource configuration options for each promotional content in the local resource configuration list, the resource configuration options including a push path option corresponding to the promotional content and a path status option corresponding to each push path option; In response to a selection operation on the resource configuration option, a promotion resource corresponding to the promotion content is generated based on a candidate push path and a path state corresponding to the selection operation.

3. The resource synchronization method according to claim 2, wherein the path status options include an active state and a closed state, and the local resource configuration list includes a candidate push path whose path status is the active state. The step of selecting the selected promotional resources to be pushed from the local resource configuration list includes: Searching for an activated push path whose path status is the activated state from the candidate push paths in the local resource configuration list; The promotion resource corresponding to the activated push path is used as the selected promotion resource.

4. The resource synchronization method according to claim 3, wherein the step of selecting the selected promotional resource to be pushed from the local resource configuration list further comprises: Obtaining order data of the interacting party; Based on the order data, searching for a scene-related resource associated with the order data from the promotion resources in the local resource configuration list; The scenario-related resources are compared with the selected promotional resources, and the selected promotional resources are updated based on the comparison result.

5. The resource synchronization method according to claim 4, wherein updating the selected promotional resources based on the comparison result comprises: If the comparison result shows that the scene-related resource is the same as the selected promotion resource, retaining the selected promotion resource; If the comparison result shows that the scene-related resource is different from the selected promotion resource, the selected promotion resource is updated to the scene-related resource.

6. The resource synchronization method according to claim 5, wherein the selected promotional resources include target promotional content and an activation push path corresponding to the target promotional content, and the scenario-related resources include associated promotional content and an associated push path corresponding to the associated promotional content. Updating the selected promotion resource to the scene-related resource includes: Using the associated promotion content corresponding to the scene-related resources as the target promotion content; Displaying the associated push path corresponding to the associated promotion content and the associated path status of each associated push path; In response to an adjustment operation on the associated path state, an associated push path corresponding to an activation state specified by the adjustment operation is used as an activated push path.

7. The resource synchronization method according to any one of claims 1 to 5, wherein determining the user terminal to which the interactive terminal is connected comprises: receiving a communication connection request sent by a request-sending terminal, and sending a first public key to the request-sending terminal so that the request-sending terminal encrypts first data based on the first public key, where the first public key is a public key of the interaction terminal and the first data is a piece of random data; receiving first encrypted data returned by the request sending terminal, and decrypting the first encrypted data using a first private key to obtain first decrypted data, where the first private key is a private key of the interactive terminal; sending the first decrypted data to the request-sending terminal so that the request-sending terminal compares the first decrypted data with the first data; When a comparison result returned by the request sending terminal is received, the communication connection with the request sending terminal is determined to be a secure connection, and the request sending terminal is used as the user terminal.

8. The resource synchronization method according to any one of claims 1 to 7, wherein determining the user terminal to which the interactive terminal is connected comprises: receiving a communication connection request sent by a request-sending terminal, receiving a second public key returned by the request-sending terminal, and encrypting second data based on the second public key to obtain second encrypted data, where the second public key is the public key of the request-sending terminal and the second data is a segment of random data; sending the second encrypted data to the request-sending terminal so that the request-sending terminal decrypts the second encrypted data using a second private key, where the second private key is a private key of the request-sending terminal; Receive second decrypted data returned by the request sending terminal, and if the second decrypted data is consistent with the second data, determine that the communication connection with the request sending terminal is a secure connection, and use the request sending terminal as the user terminal.

9. The resource synchronization method according to claim 7 or 8, further comprising, after determining the user terminal to which the interactive terminal is connected: Using a symmetric encryption algorithm, performing key negotiation with the user terminal to obtain a shared key; Perform encrypted communication with the user terminal based on a shared key.

10. The resource synchronization method according to any one of claims 1 to 9, wherein the step of pushing the selected promotional resource to the user terminal comprises: Displaying the selected promotional resources and generating push notification information based on the selected promotional resources; Sending the push prompt information to the user terminal; When the push consent message returned by the user terminal is received, the selected promotion resource is sent to the user terminal.

11. The resource synchronization method according to any one of claims 1 to 10, further comprising: Sending the interaction adjustment resource corresponding to the selected promotion resource and the order data of the interacting party to a backend server, so that the backend server settles the target account corresponding to the interacting party based on the interaction adjustment resource and the order data; The settlement result returned by the backend server is received, and the settlement result is sent to the user terminal.

12. A resource synchronization method, executed by a user terminal, comprising: Obtaining a login user identifier logged in at a user terminal, and determining an interactive terminal to which the user terminal is connected; receiving an interacting party identifier of the interacting party returned by the interacting terminal, and comparing the interacting party identifier with the login user identifier; If the interaction party identifier is the same as the login user identifier, sending an identity verification result to the interaction terminal; and After receiving the selected promotional resources returned by the interactive terminal, the selected promotional resources are displayed.

13. The resource synchronization method according to claim 12, wherein determining the interactive terminal to which the user terminal is connected comprises: broadcasting a communication connection request, and upon receiving connection consent information fed back by the request receiving terminal, sending a second public key to the request receiving terminal, so that the request receiving terminal encrypts the second data based on the second public key, where the second public key is the public key of the user terminal; receiving second encrypted data returned by the request receiving terminal, and decrypting the second encrypted data using a second private key to obtain second decrypted data, where the second private key is a private key of the user terminal; sending the second decrypted data to the request receiving terminal so that the request receiving terminal compares the second decrypted data with the second data; When a comparison result returned by the request receiving terminal is received, the communication connection with the request receiving terminal is determined to be a secure connection, and the request receiving terminal is used as the interactive terminal.

14. The resource synchronization method according to claim 12, wherein determining the interactive terminal to which the user terminal is connected comprises: Broadcasting a communication connection request, after receiving connection consent information fed back by the request receiving terminal, receiving a first public key returned by the request receiving terminal, and encrypting first data based on the first public key to obtain first encrypted data, where the first public key is the public key of the request receiving terminal; Sending the first encrypted data to the request receiving terminal so that the request receiving terminal decrypts the first encrypted data using a first private key, where the first private key is a private key of the request receiving terminal; Receive first decrypted data returned by the request receiving terminal, and if the first decrypted data is consistent with the first data, determine that the communication connection with the request receiving terminal is a secure connection, and use the request receiving terminal as the interactive terminal.

15. The resource synchronization method according to claim 13 or 14, further comprising, after determining the interactive terminal to which the user terminal is connected: Using a symmetric encryption algorithm, perform key negotiation with the interactive terminal to obtain a shared key; Based on the shared key, encrypted communication is performed with the interactive terminal.

16. A resource synchronization device comprising: a first connection confirmation unit, configured to obtain characteristic information of an interaction party of an interaction terminal and determine a user terminal to which the interaction terminal is connected; an interacting party identifying unit, configured to identify the interacting party based on the feature information and obtain an interacting party identifier of the interacting party; a data receiving unit, configured to send the interacting party identifier to the user terminal and receive a verification result of the user terminal performing identity authentication on the interacting party based on the interacting party identifier; a resource calling unit, configured to select a selected promotion resource to be pushed from a local resource configuration list in response to the verification result indicating that the identity authentication of the interacting party is passed; and The resource synchronization unit is configured to push the selected promotion resource to the user terminal, wherein the selected promotion resource is used to instruct the user terminal to display the selected promotion resource.

17. A resource synchronization device, comprising: a second connection confirmation unit, configured to obtain a login user identifier logged in at a user terminal and determine an interactive terminal to which the user terminal is connected; an identity authentication unit, configured to receive an interacting party identifier of the interacting party returned by the interaction terminal, and compare the interacting party identifier with the login user identifier; a data sending unit, configured to send an identity verification result to the interaction terminal if the interaction party identifier is the same as the login user identifier; and The synchronous display unit is configured to display the selected promotional resources after receiving the selected promotional resources returned by the interactive terminal.

18. An electronic device comprising a processor and a memory, wherein the memory stores an application program, and the processor is configured to run the application program in the memory to execute the steps of the resource synchronization method according to any one of claims 1 to 15.

19. A computer program product, comprising a computer program or computer instructions, which implements the steps of the resource synchronization method according to any one of claims 1 to 15 when executed by a processor.

20. A computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps of the resource synchronization method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Payment processing method and device, equipment and medium

    CN115222388A

  • Data processing method and device, equipment, medium and program product

    CN116308369A

  • Information pushing method and device, computer equipment and storage medium

    CN116932876A

  • Method for adaptive authentication using a mobile device

    US8646060B1