Interface control method and apparatus, device, medium, and program product
By establishing a short-distance communication connection between the first terminal and the second terminal, the QR code display is received and controlled according to the display interface information of the second terminal, which solves the problems of biometric leakage and incorrect binding of identity information and achieves higher security.
Patent Information
- Application Number
- PCT/CN2025/082216
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-07
- Filing Date
- 2025-03-12
- Publication Date
- 2025-10-16
AI Technical Summary
The QR codes displayed by biometric-based payment devices can easily be scanned by other terminals, leading to the risk of biometric leakage and misbinding of identity information.
A connection is established between the first terminal and the second terminal with a short-range communication signal turned on nearby, and the display of the target QR code on the first terminal is controlled based on the current display interface information of the second terminal, and the display strategy is flexibly adjusted to reduce the risk of leakage.
It effectively reduces the risk of biometric leakage and misbinding of identity information, and improves security by adjusting the QR code display strategy according to the interface conditions of the second terminal.
Smart Images

Figure CN2025082216_16102025_PF_FP_ABST
Abstract
Description
Interface control method, device, equipment, medium and program product
[0001] The present application claims priority to the Chinese patent application No. 202410425562.4, filed on April 7, 2024, and entitled "Interface control method, device, equipment, medium and program product", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the technical field of Internet, and in particular, to an interface control method, device, equipment, medium and program product. BACKGROUND
[0003] For a payment device based on biological characteristics, such as a palm swiping device, it can collect a biological characteristic image of an object and send the biological characteristic image to a background server corresponding to a payment application. The background server can extract features from the biological characteristic image to obtain biological characteristics. For a historical object, the background server can obtain identity information of the object on the payment application based on the biological characteristics of the object and complete payment. For a new object, since the background server does not store the identity information of the object on the payment application, the background server sends a two-dimensional code for opening a payment function through biological characteristics of the object to the biological characteristic payment device, so that the new object scans the two-dimensional code through a terminal to authorize and open, based on which the background server can establish a corresponding relationship between the identity information of the object on the payment application and the biological characteristics of the object, and subsequently realize payment based on the biological characteristics of the object.
[0004] However, the above-mentioned two-dimensional code currently displayed by the payment device has the risk of being scanned by other terminals, thereby causing biological characteristic leakage. SUMMARY
[0005] Embodiments of the present application provide an interface control method, device, equipment, medium and program product, thereby reducing the risk of biological characteristic leakage.
[0006] In a first aspect, embodiments of the present application provide an interface control method, which is applied to a first terminal. The method comprises: obtaining a target two-dimensional code, the target two-dimensional code being associated with biological characteristics of an object; determining a second terminal in at least one terminal device in which a short-distance communication signal is currently enabled, and establishing a short-distance communication connection with the second terminal; receiving current display interface information from the second terminal through the short-distance communication connection; and controlling display of the target two-dimensional code on the first terminal based on the current display interface information of the second terminal.
[0007] In a second aspect, an embodiment of the present application provides an interface control method, which is applied to a second terminal, the second terminal being a terminal currently starting a short-distance communication signal, and a first terminal currently obtaining a target two-dimensional code, the target two-dimensional code being associated with an object biological feature; the method comprises: establishing a short-distance communication connection with the first terminal; determining current display interface information of the second terminal; and sending the current display interface information of the second terminal to the first terminal through the short-distance communication connection; the current display interface information of the second terminal being used to control display of the target two-dimensional code on the first terminal.
[0008] In a third aspect, an embodiment of the present application provides an interface control device, which comprises: an acquisition module, a processing module and a communication module; wherein the acquisition module is configured to acquire a target two-dimensional code, the target two-dimensional code being associated with an object biological feature; the processing module is configured to determine a second terminal in at least one terminal device currently starting a short-distance communication signal, and establish a short-distance communication connection with the second terminal; the communication module is configured to receive current display interface information of the second terminal through the short-distance communication connection; and the processing module is further configured to control display of the target two-dimensional code on a first terminal based on the current display interface information of the second terminal.
[0009] In some implementable manners, the processing module is specifically configured to: if the current display interface information is payment code interface information of a target application, stop displaying the target two-dimensional code on the first terminal; and the target application is logged in with an object account.
[0010] In some implementable manners, the processing module is specifically configured to: control a display duration of the target two-dimensional code on the first terminal based on the current display interface information.
[0011] In some implementable manners, the processing module is specifically configured to: if the current display interface information is scan code interface information of a target application, extend an original display duration of the target two-dimensional code on the first terminal by a first preset duration; and the target application is logged in with an object account.
[0012] In some implementable manners, the processing module is specifically configured to: if the current display interface information is scan code interface information of a target application, keep the original display duration of the target two-dimensional code on the first terminal unchanged.
[0013] In some implementable manners, the processing module is specifically configured to: if the current display interface information is first interface information, the first interface information being different from scan code interface information or payment code interface information of a target application, extend an original display duration of the target two-dimensional code on the first terminal by a second preset duration.
[0014] In some implementable manners, the processing module is specifically configured to: if the current display interface information is first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the display duration of the target two-dimensional code on the first terminal is kept unchanged.
[0015] In some implementable manners, the processing module is further configured to: push prompt information; and the prompt information is used to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to the scan interface.
[0016] In some implementable manners, the processing module is further configured to: periodically detect the short-distance communication signal strength of the second terminal; and based on the adjacent two short-distance communication signal strengths of the second terminal, control the display of the target two-dimensional code on the first terminal.
[0017] In some implementable manners, the processing module is specifically configured to: if the last short-distance communication signal strength in the adjacent two short-distance communication signal strengths of the second terminal is weaker than the previous short-distance communication signal strength, stop displaying the target two-dimensional code on the first terminal.
[0018] In some implementable manners, before the communication module receives the current display interface information from the second terminal, the processing module is further configured to generate an asymmetric key; the communication module is further configured to send a public key in the asymmetric key to the second terminal through the short-distance communication connection; the public key is used to encrypt the current display interface information of the second terminal; and correspondingly, after the communication module receives the current display interface information from the second terminal, the processing module is further configured to decrypt the current display interface information of the second terminal through a private key in the asymmetric key.
[0019] In some implementable manners, the processing module is specifically configured to:
[0020] In the available device list of the first terminal, the second terminal with the strongest current short-distance communication signal is acquired, and the available device list includes the identification of at least one terminal device currently starting the short-distance communication signal.
[0021] In a fourth aspect, an embodiment of the present application provides an interface control device, which is a device currently starting a short-distance communication signal, and a target two-dimensional code is currently acquired by a first terminal, and the target two-dimensional code is associated with an object biological feature; the interface control device comprises a processing module and a communication module; the processing module is configured to establish a short-distance communication connection with the first terminal; the processing module is further configured to determine current display interface information of the interface control device; and the communication module is configured to send the current display interface information of the interface control device to the first terminal through the short-distance communication connection; and the current display interface information of the interface control device is used to control the display of the target two-dimensional code on the first terminal.
[0022] In some implementable manners, the processing module is specifically configured to: acquire foreground process or task information of the second terminal; and determine interface information corresponding to the foreground process or task information of the second terminal as the current display interface information of the second terminal.
[0023] In a fifth aspect, an electronic device is provided, including a processor and a memory, the memory being configured to store a computer program, and the processor being configured to invoke and run the computer program stored in the memory to execute the method in the first aspect to the second aspect or the implementation manners thereof.
[0024] In a sixth aspect, a computer readable storage medium is provided, configured to store a computer program, and the computer program is configured to enable a computer to execute the method in the first aspect to the second aspect or the implementation manners thereof.
[0025] In a seventh aspect, a computer program product is provided, including computer program instructions, and the computer program instructions are configured to enable a computer to execute the method in the first aspect to the second aspect or the implementation manners thereof.
[0026] In an eighth aspect, a computer program is provided, and the computer program is configured to enable a computer to execute the method in the first aspect to the second aspect or the implementation manners thereof.
[0027] Through the technical solutions provided in the present application, the first terminal determines the second terminal in at least one terminal device currently starting the short-distance communication signal, and establishes a short-distance communication connection with the second terminal, and then receives the current display interface information of the second terminal through the short-distance communication connection, and controls the display of the target two-dimensional code on the first terminal based on the current display interface information. Compared with the related scheme of generating the target two-dimensional code and directly displaying the target two-dimensional code, the present application controls the display of the target two-dimensional code on the first terminal based on the current display interface information of the second terminal, which can be beneficial to flexibly adjusting the display strategy of the two-dimensional code according to the current interface situation of the second terminal, thereby reducing the risk of biological feature leakage. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0029] FIG. 1 is a schematic diagram of a system architecture related to an embodiment of the present application;
[0030] FIG. 2 is an interactive flowchart of an interface control method provided by an embodiment of the present application;
[0031] FIG. 3 is an interaction flowchart of another interface control method provided by an embodiment of the present application;
[0032] FIG. 4 is an interaction flowchart of another interface control method provided by an embodiment of the present application;
[0033] FIG. 5 is a schematic diagram of an interface control apparatus 500 provided by an embodiment of the present application;
[0034] FIG. 6 is a schematic diagram of an interface control apparatus 600 provided by an embodiment of the present application;
[0035] FIG. 7 is a schematic diagram of an interface control apparatus 700 provided by an embodiment of the present application;
[0036] FIG. 8 is a schematic diagram of an interface control apparatus 800 provided by an embodiment of the present application;
[0037] FIG. 9 is a schematic block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0039] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or server including a series of steps or units does not necessarily have to include those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product, or device.
[0040] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an integral module or unit that includes the functions of the module or unit.
[0041] The embodiments of the present application can relate to mobile payment in Internet technology.
[0042] Internet technology refers to an information technology developed and established on the basis of computer technology, which connects individual computers or networks together to form a specific network system and realize information transmission and sharing.
[0043] Mobile payment refers to the use of mobile phones and other electronic products for electronic currency payment. Mobile payment effectively combines the Internet, terminal devices and financial institutions to form a new payment system. Mobile payment has created a new payment method and made electronic currency popular.
[0044] In the embodiments of the present application, mobile payment can be implemented between the first terminal, the second terminal and the background server corresponding to the payment application.
[0045] The related knowledge involved in the present application will be described below:
[0046] I. Instant messaging client is a communication tool based on Internet technology, which allows users to communicate in real time through text, voice, video and other means. These communication tools usually provide instant messaging, voice calls, video calls, file transfer and other functions, allowing users to easily communicate and collaborate.
[0047] II. Biometric identification technology is a technology that uses a user's biometric features for identity authentication. Biometric features include, but are not limited to, at least one of the following: user's fingerprint, palm print, face, iris, voiceprint, etc.
[0048] Three, three-dimensional (3Dimensional, 3D) camera, can include depth camera and infrared camera, but not limited to. Among them, the depth camera is a kind of camera that can obtain the depth information of the object, which obtains the three-dimensional coordinates of the object by measuring the distance between the object and the camera, i.e. depth, so as to obtain the stereoscopic shape and size information of the object. The infrared camera is a special camera that can capture infrared spectrum images that cannot be observed by the human eye. Infrared spectrum refers to electromagnetic waves with a wavelength of 700 nanometers to 1 millimeter, located between visible light and microwave. The infrared camera can capture this part of electromagnetic waves emitted or reflected by the object through special lenses and photosensitive elements, thereby forming images that cannot be seen by the naked eye.
[0049] Four, traditional camera refers to the camera other than 3D camera, so it is also called non-3D camera.
[0050] The technical problems, inventive concepts and system architecture to be solved by the embodiments of the present application will be described below:
[0051] As described above, the above-mentioned two-dimensional code currently displayed by the payment device based on biological characteristics has the risk of being scanned by other terminals, thereby causing the situation of misbinding of identity information and biological characteristics.
[0052] In order to solve the above technical problems, the first terminal of the present application, i.e. the device based on biological characteristic authentication, considers that the second terminal which starts the short distance communication signal at the current time is the terminal that needs to be scanned, so it can control the display of the two-dimensional code on the first terminal based on the current display interface information of the second terminal, thereby reducing the risk of biological characteristic leakage.
[0053] In some implementable ways, the system architecture of the embodiments of the present application is shown in Figure 1.
[0054] Figure 1 is a schematic diagram of a system architecture related to an embodiment of the present application, including a first terminal 110, a second terminal 120 and a background server 130.
[0055] Among them, the first terminal 110 and the second terminal 120 can have a short distance communication connection. Among them, the short distance communication connection refers to the connection using short distance communication mode, which includes but is not limited to Bluetooth, ZigBee, near field communication (Near Field Communication, NFC), infrared data transmission (Infrared Data Association, IrDA), wireless fidelity (Wireless Fidelity, WiFi), ultra wideband (Ultra Wideband, UWB) and other communication modes.
[0056] The first terminal 110 and the second terminal 120 and the background server 130 can be directly or indirectly connected through wired or wireless communication, which is not limited in the present application.
[0057] For example, the first terminal 110, also known as a biometric-based payment device, is located at the merchant side and can collect the biometric image of the object. For example, it can be a point of sale (POS) terminal, a cash register, a self-checkout system, a code scanning (payment code) box, a smart phone, a tablet computer, a smart watch, a virtual reality (VR) device, an augmented reality (AR) device, etc., but is not limited thereto.
[0058] In some embodiments, a camera can be installed on the first terminal to collect the biometric image.
[0059] In other embodiments, the first terminal can collect the biometric image through an external camera. The external camera can be a separate camera or a camera on another device other than the first terminal, and the present application does not limit the embodiments.
[0060] In some embodiments, the camera can be a 3D camera or a traditional camera.
[0061] In some embodiments, the first terminal 110 can be installed with a payment application that can call the camera to collect the biometric of the object.
[0062] In some embodiments, the payment application can be an instant messaging client with payment function, or other payment application, and the present application does not limit the embodiments.
[0063] In the present application, the second terminal 120 refers to the terminal that opens a short-distance communication signal around the first terminal 110, such as the terminal with the strongest short-distance communication signal, which is located on the object side.
[0064] In some embodiments, the second terminal 120 can be installed with a payment application, and the object can realize code scanning, etc. through the scan function on the payment application.
[0065] In some embodiments, the second terminal 120 can be a smart phone, a tablet computer, a smart watch, a VR device, an AR device, etc., but is not limited thereto.
[0066] In some implementable manners, the background server 130 can be a background server corresponding to the payment application, which can be a physical server, a server cluster composed of multiple physical servers or a distributed system, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (CDN), and big data and artificial intelligence platform.
[0067] In some embodiments, the first terminal 110 can collect a biometric image of the object and send the biometric image to the background server 130, and the background server 130 can perform feature extraction on the biometric image to obtain a biometric feature. For a historical object, the background server 130 can obtain the identity information of the object on the payment application based on the biometric feature of the object and perform verification, and after successful verification, deduct the payment order sent by the first terminal 110 from the account of the second terminal 110 and transfer the payment to the account of the first terminal 110 to complete the payment. For a new object, since the background server 130 does not store the identity information of the object on the payment application, the background server 130 first caches the obtained biometric image or biometric feature of the object, and sends a two-dimensional code for opening the payment function based on the biometric feature of the object to the first terminal 110, so that the new object scans the two-dimensional code through the second terminal 120 to authorize the opening, based on which the background server 130 can establish the correspondence between the identity information of the object on the payment application and the biometric feature of the object, and subsequently realize payment based on the biometric feature of the object.
[0068] In some implementable manners, the first terminal 110 can collect multiple biometric images of the same object through the camera to form a stream media, and the first terminal 110 selects an optimal biometric image in the stream media based on at least one of the biometric feature size, angle, image contrast, image brightness, and image definition, and sends the optimal biometric image to the background server 130.
[0069] For example, taking the palmprint as an example, the first terminal 110 can collect multiple palm images of the same object through the camera to form a stream media, and the first terminal 110 selects an optimal palm image in the stream media based on at least one of the palm size, palm angle, image contrast, image brightness, and image definition, and sends the optimal palm image to the background server 130.
[0070] In some implementable manners, the background server 130 can perform feature extraction on the obtained biometric image to obtain a biometric feature.
[0071] In some implementable manners, the background server 130 can extract features in the biometric feature image by using any one of the following feature extraction algorithms, but is not limited thereto: an edge detection algorithm, a corner detection algorithm, a feature point detection algorithm, a region segmentation algorithm, and a texture analysis algorithm.
[0072] In some implementable manners, for a new object, before the background server 130 sends a two-dimensional code for opening a payment function implemented by the biometric feature of the object, the background server 130 can encrypt the biometric feature of the object to form encrypted information, and accordingly, the encrypted information can be associated with or carried in the two-dimensional code.
[0073] In some implementable manners, the encryption algorithm used in the present application can be a Message-Digest Algorithm (MD) 5, but is not limited thereto.
[0074] It should be noted that FIG. 1 is only a schematic diagram of a system architecture provided by an embodiment of the present application, and the system architecture involved in the embodiment of the present application is not limited to the system architecture shown in FIG. 1. For example, in some implementable manners, on the basis of the system architecture shown in FIG. 1, the system architecture involved in the embodiment of the present application can further include: another terminal, which can be connected with the background server 130 to implement mobile payment.
[0075] Before introducing the embodiment of the present application, it should be noted that the information involved in the embodiment of the present application includes: information exchanged between the first terminal and the second terminal, information exchanged between the first terminal, the second terminal and the background server, and information processed by the first terminal, the second terminal and the background server before and after the processing, such as biometric feature images and biometric features, which are authorized by the relevant object or fully authorized by each party, and the collection, use and processing of the relevant information comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0076] The embodiments of the present application can be used in any scenario that needs to authenticate based on the biological characteristics of the object, such as a payment scenario, an access control scenario, a smart terminal unlocking scenario, and the like, without limitation. In these scenarios, the target two-dimensional code obtained by the first terminal is associated with the biological characteristics of the object, and the second terminal is determined in at least one terminal device currently enabled with a short-distance communication signal, a short-distance communication connection is established with the second terminal, the current display interface information of the second terminal is then received through the short-distance communication connection, and then the target two-dimensional code is displayed on the first terminal based on the current display interface information of the second terminal. In the embodiments of the present application, the target two-dimensional code is displayed on the first terminal based on the current display interface information of the second terminal, which can be beneficial to flexibly adjusting the display strategy of the two-dimensional code according to the current interface of the second terminal, thereby reducing the risk of the target two-dimensional code being scanned by other terminals and reducing the risk of biological characteristics being misbound with the identity information of the object logged in by other terminals. For example, when the target two-dimensional code is used to bind the identity information of the object logged in by the target application, the embodiments of the present application can reduce the risk of biological characteristics being misbound with the identity information of the object logged in by other terminals by reducing the risk of the target two-dimensional code being scanned by other terminals.
[0077] The embodiments of the present application will be described in detail below:
[0078] FIG. 2 is an interaction flowchart of an interface control method provided by the embodiments of the present application, which involves the execution subjects including a first terminal and a second terminal. The first terminal can be the first terminal 110 shown in FIG. 1, and the second terminal can be the second terminal 120 shown in FIG. 1. As shown in FIG. 2, the method can include the following steps.
[0079] S210: The first terminal obtains a target two-dimensional code, which is associated with the biological characteristics of the object.
[0080] It should be understood that the second terminal scans the target two-dimensional code, thereby authorizing the binding of the biological characteristics of the associated object and the identity information of the object account logged in by the target application, so that the background server can establish the correspondence between the biological characteristics of the object and the identity information of the object on the target application. Alternatively, the target two-dimensional code is also referred to as a registration two-dimensional code or an authorization two-dimensional code, and the like.
[0081] For example, in a payment scenario, the target application can include a payment application, and the second terminal can scan the target two-dimensional code through the scan interface of the payment application, thereby being able to authorize the binding of the biological characteristics of the associated object and the identity information of the payment application, so as to realize the opening of the payment function through the target two-dimensional code.
[0082] In some implementable manners, the identity information of the object on the target application can include an object account of the object on the target application, and the like, but is not limited thereto.
[0083] It should be noted that the object corresponding to the second terminal is a new object, and for the new object, since the target application corresponding background server does not store the identity information of the object on the target application, the background server first caches the biological feature image or biological feature of the object obtained, and sends the above target two-dimensional code to the first terminal. Correspondingly, the first terminal acquires the target two-dimensional code.
[0084] S220: The first terminal determines the second terminal in at least one terminal device currently starting the short-distance communication signal;
[0085] It should be understood that the current short-distance communication signal refers to the current communication signal generated based on the current short-distance communication mode, which can be Bluetooth, ZigBee, NFC, IrDA, WiFi, UWB, etc. The embodiments of the present application do not limit this.
[0086] In some implementable manners, step S220 can be implemented as acquiring the second terminal with the strongest current short-distance communication signal in the available device list of the first terminal, and the available device list includes the identification of at least one terminal device currently starting the short-distance communication signal.
[0087] In some implementable manners, for other terminals except the first terminal, an opening operation for the short-distance communication mode can be acquired, and in response to the operation, the short-distance communication mode is started, and then the short-distance communication signal can be broadcasted.
[0088] In some implementable manners, the other terminal can broadcast the short-distance communication signal continuously, but is not limited thereto.
[0089] Correspondingly, the first terminal can acquire the available device list, which includes the identification of at least one terminal device currently starting the short-distance communication signal, and acquire the second terminal with the strongest current short-distance communication signal in the available device list.
[0090] In some implementable manners, in the available device list, the identification of the at least one terminal device currently starting the short-distance communication signal is sequentially sorted according to the strength of the current short-distance communication signal, such as the identification of the terminal with the strongest current short-distance communication signal is sorted first in the available device list. That is, the first terminal can detect the short-distance communication signal around it, and determine the terminal with the strongest short-distance communication signal around it as the second terminal.
[0091] In some implementable manners, the first terminal can also determine the terminal as the second terminal in response to the selection operation of the object on the identification of a terminal device in the available device list, and the embodiments of the present application do not limit this.
[0092] In some implementable manners, the second terminal can acquire the starting operation after the first terminal acquires the target two-dimensional code, or can acquire the starting operation before the first terminal acquires the target two-dimensional code, which is not limited in the embodiments of the present application.
[0093] S230: The first terminal establishes a short-distance communication connection with the second terminal.
[0094] In some implementable manners, the establishment of the short-distance communication connection between the first terminal and the second terminal is performed in a case where the second terminal allows the first terminal to establish the short-distance communication connection with the second terminal.
[0095] Taking a Bluetooth communication connection as an example, the Bluetooth connection establishment process of the first terminal and the second terminal can include:
[0096] 1. Broadcasting and discovery: first, the second terminal broadcasts a Bluetooth signal as a broadcaster, and the first terminal discovers and receives the Bluetooth signal in a scanning process.
[0097] 2. Connection request: once the first terminal successfully receives the Bluetooth signal of the second terminal, the first terminal is ready to initiate a connection. Wherein, after a preset time period, the first terminal sends a connection request command, i.e., an A2 data packet, to the second terminal, notifying the second terminal that it is ready to connect.
[0098] 3. Preparation for receiving: the second terminal makes receiving preparation according to the information in the connection request command. Wherein, once the second terminal makes receiving preparation according to the information in the connection request command, it indicates that the second terminal allows the first terminal to establish a short-distance communication connection with the second terminal.
[0099] 4. Exchange of data packets: the second terminal sends a first synchronization packet P1 to the first terminal. After receiving the synchronization packet P1, the first terminal replies to the second terminal with an acknowledgement packet P2 after a preset time period.
[0100] 5. Connection establishment: once the second terminal receives the acknowledgement packet P2 of the first terminal, the connection is considered to be successfully established.
[0101] S240: The second terminal determines current display interface information of the second terminal.
[0102] In some implementable manners, the second terminal can acquire foreground process information of the second terminal; and determine interface information corresponding to the foreground process of the second terminal as the current display interface information of the second terminal.
[0103] For example, for the second terminal installed with an Android operating system, the second terminal can obtain the foreground process information of the second terminal by calling a function ActivityManager.getRunningAppProcesses(). The process information includes at least one of the following, but is not limited thereto: a process name, a process identifier, importance of the process, and the like.
[0104] In some other implementable manners, the second terminal can obtain foreground task information of the second terminal, and determine interface information corresponding to the foreground task of the second terminal as the current display interface information of the second terminal.
[0105] For example, for the second terminal installed with an Android operating system, the second terminal can obtain the foreground task information of the second terminal by calling a function ActivityManager.getRunningTasks(). The task information includes at least one of the following, but is not limited thereto: a task identifier, a task description, an Activity of the task, and the like.
[0106] S250: The second terminal sends the current display interface information of the second terminal to the first terminal through the short-distance communication connection.
[0107] In some implementable manners, the second terminal can directly send the current display interface information of the second terminal to the first terminal through the short-distance communication connection.
[0108] In some other implementable manners, the first terminal can generate an asymmetric key, send a public key in the asymmetric key to the second terminal through the short-distance communication connection, and the second terminal encrypts the current display interface information of the second terminal by using the public key. Further, the first terminal can decrypt the current display interface information of the second terminal by using a private key in the asymmetric key.
[0109] It should be understood that the security of information transmission can be ensured by encrypting the current display interface information of the second terminal.
[0110] In some implementable manners, the current display interface information of the second terminal includes at least one of the following, but is not limited thereto: an identifier of the current display interface of the second terminal, an interface element of the current display interface, and the like. As long as the current display interface information can uniquely determine the current display interface.
[0111] For example, the payment application code interface information is 01, and the scan code interface information is 02. When the first terminal obtains 01, it can determine that the current display interface is the payment application code interface. When the first terminal obtains 02, it can determine that the current display interface is the payment application scan code interface.
[0112] S260: The first terminal controls the display of the target two-dimensional code on the first terminal based on the current display interface information of the second terminal.
[0113] It should be understood that the first terminal can flexibly adjust the display strategy of the target two-dimensional code on the first terminal based on the current page situation of the second terminal based on the current display interface information of the second terminal. For example, the first terminal can determine the willingness of the object corresponding to the second terminal to open the payment function implemented by the object biological characteristics based on the current display interface information of the second terminal, and control the display of the target two-dimensional code on the first terminal based on the willingness.
[0114] In some implementable manners, if the current display interface information is the payment code interface information of the target application, the first terminal stops displaying the target two-dimensional code, and the object account is logged in the target application.
[0115] It should be understood that if the current display interface information is the payment code interface information of the target application, it means that the object corresponding to the second terminal has little willingness to open the payment function implemented by the object biological characteristics, and at this time the first terminal stops displaying the target two-dimensional code, in other words, the target two-dimensional code is directly exited.
[0116] In some implementable manners, the first terminal controls the display duration of the target two-dimensional code on the first terminal based on the current display interface information. For example, if the current display interface information is not the payment code interface information of the payment application, the first terminal controls the display duration of the target two-dimensional code on the first terminal based on the current display interface information.
[0117] It should be understood that if the current display interface information is not the payment code interface information of the target application, it means that the object corresponding to the second terminal has a certain willingness to open the payment function implemented by the object biological characteristics, and at this time the first terminal can control the display duration of the target two-dimensional code on the first terminal based on the current display interface information.
[0118] In some implementable manners, if the current display interface information is the scan interface information of the target application, the first terminal prolongs the original display duration of the target two-dimensional code on the first terminal by a first preset duration.
[0119] It should be understood that if the current display interface information is the scan interface information of the target application, it means that the object corresponding to the second terminal has a certain willingness to open the payment function implemented by the object biological characteristics, and at this time the first terminal prolongs the original display duration of the target two-dimensional code on the first terminal by a first preset duration.
[0120] In some implementable manners, the value of the first preset duration can be 3 seconds, 4 seconds, 5 seconds, etc., and the embodiments of the present application do not limit this.
[0121] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, the first preset duration is 5 seconds, and the current display interface information is the scan interface information of the payment application, the first terminal extends the display duration of the target two-dimensional code from 10 seconds to 15 seconds.
[0122] In some implementable manners, if the current display interface information is the scan interface information of the target application, the first terminal keeps the original display duration of the target two-dimensional code on the first terminal unchanged.
[0123] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, if the current display interface information is the scan interface information of the payment application, the first terminal keeps the display duration of the target two-dimensional code as 10 seconds.
[0124] In some implementable manners, if the current display interface information is the first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the first terminal can extend the original display duration of the target two-dimensional code on the first terminal by a second preset duration.
[0125] For example, if the current display interface information is other interface information than the scan interface information and the payment code interface information of the payment application, the first terminal can extend the original display duration of the target two-dimensional code by the second preset duration.
[0126] In some implementable manners, the value of the second preset duration can be 1 second, 2 seconds, 3 seconds, etc., and the embodiments of the present application do not limit this.
[0127] In some implementable manners, the second preset duration can be less than the first preset duration, for example, the value of the first preset duration is 5 seconds, and the value of the second preset duration is 2 seconds. The reason why the second preset duration can be less than the first preset duration is that if the current display interface information is the scan interface information of the payment application, it means that the object corresponding to the second terminal has a high probability of willingness to open the payment function realized by the object biological characteristics, and if the current display interface information is other interface information than the scan interface information and the payment code interface information of the payment application, it means that the object corresponding to the second terminal has a certain willingness to open the payment function realized by the object biological characteristics, but in this case, the willingness of the object to open the payment function is weaker than the previous case. Based on this, the second preset duration can be less than the first preset duration.
[0128] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, the second preset duration is 2 seconds, and the current display interface information is other interface information of the payment application, the first terminal extends the display duration of the target two-dimensional code from 10 seconds to 12 seconds.
[0129] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, the second preset duration is 2 seconds, and the current display interface information is the interface information of other applications, the first terminal extends the display duration of the target two-dimensional code from 10 seconds to 12 seconds.
[0130] In some implementable manners, if the current display interface information is the first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the first terminal keeps the display duration of the target two-dimensional code unchanged on the first terminal.
[0131] For example, if the current display interface information is other interface information except the scan interface information and the payment code interface information of the payment application, the first terminal keeps the display duration of the target two-dimensional code unchanged.
[0132] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, if the current display interface information is other interface information of the payment application, the first terminal keeps the display duration of the target two-dimensional code as 10 seconds.
[0133] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, if the current display interface information is the interface information of other applications, the first terminal keeps the display duration of the target two-dimensional code as 10 seconds.
[0134] In some implementable manners, the first terminal can also push the prompt information, where the prompt information is used to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to the scan interface.
[0135] For example, if the current display interface information is other interface information except the scan interface information or the payment code interface information of the payment application, the first terminal can also push the prompt information. For another example, if the current display interface information is the interface information of other applications except the payment application, the first terminal can also push the prompt information.
[0136] In some implementable manners, the prompt information can be in the form of single modality or multi-modality such as voice, text, video, etc., which is not limited in the embodiments of the present application.
[0137] For example, if the current display interface information is other interface information of the payment application, the first terminal can play a guide voice to guide the object to switch the current interface of the second terminal to the scan interface.
[0138] In some embodiments, the interface information other than the payment code interface information and the scan interface information of the target application includes: other interface information of the target application and interface information of other applications. For the other interface information of the target application and the interface information of other applications, the first terminal can extend the original display duration of the target two-dimensional code on the first terminal by a second preset duration, or keep the display duration of the target two-dimensional code unchanged, and can also push a prompt information. For example, in the embodiments of the present application, for the other interface information of the payment application, the first terminal can push a prompt information without considering the duration of the target two-dimensional code. For the interface information of other applications, the first terminal can extend the original display duration of the target two-dimensional code by a second preset duration, or keep the display duration of the target two-dimensional code unchanged, but can not push a prompt information.
[0139] In some embodiments, the display of the target two-dimensional code on the first terminal is controlled based on the current display interface information of the second terminal, including: the first terminal can input the current display interface information of the second terminal into the target model to obtain a control instruction for controlling the display of the target two-dimensional code, and further, the first terminal controls the display of the target two-dimensional code on the first terminal based on the control instruction.
[0140] In some embodiments, the control instruction can control the target two-dimensional code to be stopped displaying, or control the display duration of the target two-dimensional code, for example, extend or shorten the display duration of the target two-dimensional code. The control instruction can carry or not carry the extended or shortened duration, if the control instruction does not carry the extended or shortened duration, the first terminal can extend or shorten the preset duration by default, for example, extend or shorten the display duration of the target two-dimensional code by 2 seconds.
[0141] In some embodiments, the target model can be trained by training samples. Each training sample can include: display interface information and a control instruction corresponding to the display interface information, wherein the display interface information can be payment code interface information of a payment application, scan interface information of a payment application, other interface information of a payment application, or interface information of other applications, etc. The control instruction can be used as a sample label, and its role can be referred to the above, which will not be repeated here. The training device can use a supervised training method, for example, it can input the display interface information in a certain training sample into the target model, and output the control instruction corresponding to the display interface information. Further, the training device can calculate the loss based on the actual control instruction and the predicted control instruction included in all training samples, adjust the parameters of the target model based on the loss, until the training times reach a preset number, or the loss reaches a minimum value, stop training.
[0142] In some implementable manners, when training the target model, the loss function utilized by the training device can be any one of, but not limited to, an L1 loss function, a Mean Squared Error (MSE) loss function, a Cross Entropy Loss function, and the like.
[0143] In some implementable manners, the first terminal controls the display of the target two-dimensional code on the first terminal based on the control instruction, including that the first terminal directly controls the display of the target two-dimensional code on the first terminal based on the control instruction. For example, if the control instruction is used to control the target two-dimensional code to be stopped from being displayed on the first terminal, the first terminal stops displaying the target two-dimensional code. For another example, if the control instruction is used to control the display duration of the target two-dimensional code on the first terminal to be extended by 2 seconds, where the original display duration of the target two-dimensional code is 3 seconds, the first terminal controls the display duration of the target two-dimensional code to be 5 seconds. For another example, if the control instruction is used to control the display duration of the target two-dimensional code to be shortened by 1 second, where the original display duration of the target two-dimensional code is 3 seconds, the first terminal controls the display duration of the target two-dimensional code to be 2 seconds.
[0144] In some implementable manners, the first terminal controls the display of the target two-dimensional code on the first terminal based on the control instruction, including that the first terminal controls the display of the target two-dimensional code on the first terminal based on the control instruction and the current interface information.
[0145] In some implementable manners, if the current display interface information is the payment application payment code interface information, and / or the control instruction is used to control the target two-dimensional code to be stopped from being displayed, the first terminal stops displaying the target two-dimensional code.
[0146] In some implementable manners, if the current display interface information is other interface information than the payment application payment code interface information, and the control instruction is used to control the target two-dimensional code to be extended or shortened in display, the first terminal determines a first display duration of the target two-dimensional code for the other interface information, determines a second display duration of the target two-dimensional code based on the control instruction, and controls the display of the target two-dimensional code on the first terminal based on the first display duration and the second display duration of the target two-dimensional code.
[0147] In some implementable manners, the display of the target two-dimensional code on the first terminal based on the first display duration and the second display duration of the target two-dimensional code, including determining an average display duration of the first display duration and the second display duration, and the first terminal controls the display duration of the target two-dimensional code to be the average display duration.
[0148] For example, if the current display interface information is the scan interface information of the payment application, the first terminal determines to extend the original display time length of the target two-dimensional code by 2 seconds, and the first display time length of the target two-dimensional code is 5 seconds. Assuming that the control instruction is used to indicate that the original display time length of the target two-dimensional code is extended by 4 seconds, the second display time length of the target two-dimensional code is 7 seconds. Further, the first terminal can calculate the average of the first display time length and the second display time length, that is, the average display time length of the two is 6 seconds, and the display time length of the target two-dimensional code is controlled to be 6 seconds.
[0149] In some other implementable manners, the display of the target two-dimensional code on the first terminal is controlled based on the first display time length and the second display time length of the target two-dimensional code, including: selecting a longer time length from the first display time length and the second display time length, and the first terminal controls the display time length of the target two-dimensional code to be the longer time length.
[0150] For example, if the current display interface information is the scan interface information of the payment application, the first terminal determines to extend the original display time length of the target two-dimensional code by 2 seconds, and the first display time length of the target two-dimensional code is 5 seconds. Assuming that the control instruction is used to indicate that the original display time length of the target two-dimensional code is extended by 4 seconds, the second display time length of the target two-dimensional code is 7 seconds. Further, the first terminal can control the display time length of the target two-dimensional code to be 7 seconds.
[0151] In some other implementable manners, the display of the target two-dimensional code on the first terminal is controlled based on the first display time length and the second display time length of the target two-dimensional code, including: selecting a longer time length from the first display time length and the second display time length, and the first terminal controls the display time length of the target two-dimensional code to be the longer time length.
[0152] For example, if the current display interface information is the scan interface information of the payment application, the first terminal determines to extend the original display time length of the target two-dimensional code by 2 seconds, and the first display time length of the target two-dimensional code is 5 seconds. Assuming that the control instruction is used to indicate that the original display time length of the target two-dimensional code is extended by 4 seconds, the second display time length of the target two-dimensional code is 7 seconds. Further, the first terminal can control the display time length of the target two-dimensional code to be 5 seconds.
[0153] An embodiment of the present application provides an interface control method, which comprises: a first terminal acquires a target two-dimensional code, the target two-dimensional code being associated with an object biological feature; the first terminal determines a second terminal in at least one terminal device currently starting a short-distance communication signal; the first terminal establishes a short-distance communication connection with the second terminal; the second terminal determines current display interface information of the second terminal; the second terminal sends the current display interface information of the second terminal to the first terminal through the short-distance communication connection; and the first terminal controls display of the target two-dimensional code on the first terminal based on the current display interface information of the second terminal. The embodiment of the present application controls the display of the target two-dimensional code based on the current display interface information of the second terminal, which can facilitate flexibly adjusting the display strategy of the two-dimensional code according to the current interface of the second terminal, thereby reducing the risk of the target two-dimensional code being scanned by other terminals, and further reducing the risk of biological feature leakage. For example, when the target two-dimensional code is used to bind the identity information of the object logged in the target application, the embodiment of the present application can reduce the risk of biological feature and the identity information of the object logged in other terminals being misbound by reducing the risk of the target two-dimensional code being scanned by other terminals.
[0154] For example, the first terminal can determine the willingness of the object corresponding to the second terminal to open the payment function implemented by the object biological feature based on the current display interface information of the second terminal, and control the display of the target two-dimensional code based on the willingness, thereby reducing the risk of other terminals scanning the code, and further reducing the risk of the identity information and the biological feature being misbound. For example, when the object has a high probability of not having the willingness to open the payment function implemented by the object biological feature, the display of the target two-dimensional code can be stopped, when the object has a certain willingness to open the payment function implemented by the object biological feature, the display duration of the target two-dimensional code can be extended or maintained, and a prompt information can be pushed to prompt the object to switch from the current display interface to a scan interface, and the like.
[0155] FIG. 3 is an interaction flowchart of another interface control method provided by an embodiment of the present application, which involves an execution subject comprising a first terminal and a second terminal, wherein the first terminal can be the first terminal 110 shown in FIG. 1, and the second terminal can be the second terminal 120 shown in FIG. 1. As shown in FIG. 3, the method can comprise:
[0156] S310: The first terminal acquires a target two-dimensional code, the target two-dimensional code being associated with an object biological feature;
[0157] S320: The first terminal determines a second terminal in at least one terminal device currently starting a short-distance communication signal;
[0158] S330: The first terminal establishes a short-distance communication connection with the second terminal;
[0159] S340: The second terminal determines current display interface information of the second terminal;
[0160] It should be understood that S310-S340 are the same as S210-S240, and the explanatory description regarding S310-S340 can refer to the explanatory description of S210-S240, and the embodiments of the present application will not be repeated here.
[0161] S350: The second terminal generates an interface control instruction based on the current display interface information of the second terminal;
[0162] It should be understood that the second terminal can flexibly adjust the display strategy of the target two-dimensional code on the first terminal based on the current display interface information of the second terminal, and generate an interface control instruction. For example, the first terminal determines the willingness of the object corresponding to the second terminal to open the payment function realized by the object biological characteristics based on the current display interface information of the second terminal, and generates an interface control instruction based on the willingness, wherein the interface control instruction is used to control the display of the target two-dimensional code on the first terminal.
[0163] In some implementable manners, if the current display interface information is the payment code interface information of the target application, the second terminal generates a first interface control instruction, which is used to instruct to stop displaying the target two-dimensional code on the first terminal.
[0164] For example, if the current display interface information is the payment code interface information of the payment application, it indicates that the object corresponding to the second terminal has no intention to open the payment function realized by the object biological characteristics, at this time, the second terminal can generate the above-mentioned first interface control instruction to instruct the first terminal to stop displaying the target two-dimensional code, in other words, the target two-dimensional code is directly exited.
[0165] In some implementable manners, the second terminal can generate a second interface control instruction according to the current display interface information, and the second interface control instruction is used to instruct the display duration of the target two-dimensional code on the first terminal. For example, if the current display interface information is not the payment code interface information of the payment application, a second interface control instruction is generated, which is used to instruct the display duration of the target two-dimensional code on the first terminal.
[0166] For example, if the current display interface information is not the payment code interface information of the payment application, it indicates that the object corresponding to the second terminal has a certain intention to open the payment function realized by the object biological characteristics, at this time, the second terminal can generate the second interface control instruction to instruct the display duration of the target two-dimensional code.
[0167] In some embodiments, if the current display interface information is the scan interface information of the target application, the second interface control instruction indicates that the original display duration of the target two-dimensional code on the first terminal is extended by a first preset duration.
[0168] For example, if the current display interface information is the scan interface information of the payment application, it is highly probable that the object corresponding to the second terminal has the intention to open the payment function realized by the object biological characteristics. At this time, the second interface control instruction can indicate that the original display duration of the target two-dimensional code on the first terminal is extended by a first preset duration.
[0169] In some embodiments, the value of the first preset duration can be 3 seconds, 4 seconds, 5 seconds, etc., and the embodiments of the present application do not limit this.
[0170] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, the first preset duration is 5 seconds, and if the current display interface information is the scan interface information of the payment application, the second terminal instructs the first terminal to extend the display duration of the target two-dimensional code from 10 seconds to 15 seconds through the second interface control instruction.
[0171] In some embodiments, if the current display interface information is the scan interface information of the target application, the second interface control instruction indicates that the original display duration of the target two-dimensional code on the first terminal remains unchanged.
[0172] For example, assuming that the original display duration of the target two-dimensional code is 10 seconds, if the current display interface information is the scan interface information of the payment application, the second terminal instructs to keep the display duration of the target two-dimensional code as 10 seconds through the second interface control instruction.
[0173] In some embodiments, if the current display interface information is the first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the second interface control instruction indicates that the original display duration of the target two-dimensional code on the first terminal is extended by a second preset duration.
[0174] For example, if the current display interface information is other interface information except the scan interface information and the payment code interface information of the payment application, the second interface control instruction indicates that the original display duration of the target two-dimensional code on the first terminal is extended by a second preset duration.
[0175] In some embodiments, the value of the second preset duration can be 1 second, 2 seconds, 3 seconds, etc., and the embodiments of the present application do not limit this.
[0176] In some implementable manners, the second preset time length can be less than the first preset time length. For example, the first preset time length is 5 seconds, and the second preset time length is 2 seconds. The reason why the second preset time length can be less than the first preset time length is that if the current display interface information is the scan interface information of the payment application, it means that the object corresponding to the second terminal has a high probability of willingness to open the payment function realized by the object biological characteristics. If the current display interface information is other interface information except the scan interface information and the payment code interface information of the payment application, it means that the object corresponding to the second terminal has a certain willingness to open the payment function realized by the object biological characteristics, but in this case, the willingness of the object to open the payment function is weaker than the previous case. Therefore, the second preset time length can be less than the first preset time length.
[0177] For example, assuming that the original display time length of the target two-dimensional code is 10 seconds, the second preset time length is 2 seconds, and the current display interface information is other interface information of the payment application, the second terminal instructs the first terminal to extend the display time length of the target two-dimensional code on the first terminal from 10 seconds to 12 seconds through the second interface control instruction.
[0178] For example, assuming that the original display time length of the target two-dimensional code is 10 seconds, the second preset time length is 2 seconds, and the current display interface information is interface information of other applications, the second terminal instructs the first terminal to extend the display time length of the target two-dimensional code on the first terminal from 10 seconds to 12 seconds through the second interface control instruction.
[0179] In some implementable manners, if the current display interface information is the first interface information, the first interface information is different from the scan interface information or the payment code interface information of the target application, the second interface control instruction instructs to keep the display time length of the target two-dimensional code on the first terminal unchanged.
[0180] For example, if the current display interface information is other interface information except the scan interface information and the payment code interface information of the payment application, the second interface control instruction instructs to keep the display time length of the target two-dimensional code unchanged.
[0181] For example, assuming that the original display time length of the target two-dimensional code is 10 seconds, if the current display interface information is other interface information of the payment application, the second interface control instruction instructs to keep the display time length of the target two-dimensional code as 10 seconds.
[0182] For example, assuming that the original display time length of the target two-dimensional code is 10 seconds, if the current display interface information is interface information of other applications, the second interface control instruction instructs to keep the display time length of the target two-dimensional code as 10 seconds.
[0183] S360: The second terminal sends an interface control instruction to the first terminal through a short-distance communication connection;
[0184] It should be understood that the explanation of the interface control instruction can refer to the above, and the embodiments of the present application will not be repeated.
[0185] S370: The first terminal controls the display of the target two-dimensional code on the first terminal based on the interface control instruction.
[0186] In some implementable manners, the interface control instruction can be a first interface control instruction, which is used to instruct to stop displaying the target two-dimensional code on the first terminal.
[0187] In some implementable manners, the interface control instruction can be a second interface control instruction, which is used to instruct the display duration of the target two-dimensional code on the first terminal.
[0188] In some implementable manners, the second interface control instruction can instruct to extend the original display duration of the target two-dimensional code on the first terminal by a first preset duration.
[0189] In some implementable manners, the second interface control instruction can instruct to keep the original display duration of the target two-dimensional code on the first terminal unchanged.
[0190] In some implementable manners, the second interface control instruction can instruct to extend the original display duration of the target two-dimensional code on the first terminal by a second preset duration.
[0191] In some implementable manners, the second terminal can also push a prompt information, wherein the prompt information is used to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to the scan interface. For example, if the current display interface information is other interface information than the scan interface information and the payment code interface information of the payment application, the second terminal can also push the prompt information.
[0192] In some implementable manners, the prompt information can be in the form of single mode or multi-mode such as voice, text, video, etc., and the embodiments of the present application do not limit this.
[0193] For example, if the current display interface information is other interface information of the payment application, the second terminal can play a guide voice to guide the object to switch the current interface of the second terminal to the scan interface.
[0194] It should be understood that the difference between the embodiments corresponding to FIG. 3 and the embodiments corresponding to FIG. 2 is that in the embodiments corresponding to FIG. 3, the second terminal itself generates the interface control instruction based on the current interface information, and sends the interface control instruction to the first terminal, and the first terminal controls the display of the target two-dimensional code on the first terminal based on the interface control instruction, while in the embodiments corresponding to FIG. 2, the first terminal controls the display of the target two-dimensional code on the first terminal based on the current interface control information.
[0195] An embodiment of the present application provides an interface control method, which comprises: a first terminal acquiring a target two-dimensional code, the target two-dimensional code being associated with an object biological feature; the first terminal determining a second terminal in at least one terminal device currently starting a short-distance communication signal; the first terminal establishing a short-distance communication connection with the second terminal; the second terminal determining current display interface information of the second terminal; the second terminal generating an interface control instruction based on the current display interface information of the second terminal; the second terminal sending the interface control instruction to the first terminal through the short-distance communication connection; and the first terminal controlling display of the target two-dimensional code on the first terminal based on the interface control instruction. An embodiment of the present application controls display of the target two-dimensional code based on current display interface information of the second terminal, which can facilitate flexible adjustment of display strategy of the two-dimensional code according to current interface information of the second terminal, thereby reducing the risk of the target two-dimensional code being scanned by other terminals, and further reducing the risk of biological feature leakage. For example, when the target two-dimensional code is used to bind identity information of an object logged in by a target application, an embodiment of the present application can reduce the risk of biological feature misbinding with identity information of an object logged in by other terminals by reducing the risk of the target two-dimensional code being scanned by other terminals.
[0196] For example, the first terminal can receive the interface control instruction of the second terminal, control display of the target two-dimensional code on the first terminal based on the interface control instruction, and the interface control instruction is generated by the second terminal based on the current display interface information, which reflects the willingness of the object corresponding to the second terminal to open a payment function implemented by the object biological feature, thereby reducing the risk of scanning by other terminals, and further reducing the risk of identity information misbinding with the biological feature. For example, when the object has a high probability of not having the willingness to open the payment function implemented by the object biological feature, display of the target two-dimensional code on the first terminal can be stopped, and when the object has a certain willingness to open the payment function implemented by the object biological feature, the display duration of the target two-dimensional code on the first terminal can be extended or maintained.
[0197] FIG. 4 is an interaction flowchart of another interface control method provided by an embodiment of the present application, which involves execution subjects including a first terminal and a second terminal. The first terminal can be the first terminal 110 shown in FIG. 1, and the second terminal can be the second terminal 120 shown in FIG. 1. As shown in FIG. 4, the method can comprise:
[0198] S410: The first terminal periodically detects a short-distance communication signal strength of the second terminal.
[0199] S420: The first terminal controls display of the target two-dimensional code based on adjacent two short-distance communication signal strengths of the second terminal.
[0200] In some implementable manners, if the second terminal's signal strength of the latter of the two adjacent short-distance communication signal strengths is weaker than the former, the first terminal stops displaying the target two-dimensional code.
[0201] Taking Bluetooth communication as an example, the first terminal can call the function BluetoothAdapter. getBondedDevices() to obtain a Bluetooth device list composed of Bluetooth devices currently connected to the first terminal, and call bondedDevices.iterator().next() to obtain a Bluetooth device, such as the second terminal in the embodiment of the present application. Further, the first terminal can call the function BluetoothDevice. getRssi() to obtain the signal strength of the second terminal and other connected Bluetooth devices, wherein the function returns an integer representing the signal strength of the Bluetooth device, and the specific implementation is as follows:
[0202] It should be understood that if the second terminal's signal strength of the latter of the two adjacent short-distance communication signal strengths is weaker than the former, it indicates that the object corresponding to the second terminal is likely to be leaving the current payment site, and in this case, in order to prevent other terminals from scanning the code, the first terminal can stop displaying the target two-dimensional code. Thus, the risk of other terminals scanning the code can be reduced, and the risk of misbinding of identity information and biological characteristics can be further reduced.
[0203] In some implementable manners, if the second terminal's signal strength of the latter of the two adjacent short-distance communication signal strengths is weaker than the former, and the duration of the latter short-distance communication signal strength being weaker than the former reaches a third preset duration, the first terminal stops displaying the target two-dimensional code.
[0204] In some implementable manners, the third preset duration can be 3 seconds, 4 seconds, 5 seconds, etc., and the embodiment of the present application does not limit the same.
[0205] For example, assuming that the first terminal detects the short-distance communication signal strength of the second terminal once per second, and the value of the third preset time length is 3 seconds, assuming that the RSSI value collected by the first terminal in the first second is 10 dBm, the RSSI value collected by the first terminal in the second second is 8 dBm, the RSSI value collected by the first terminal in the third second is 7 dBm, and the RSSI value collected by the first terminal in the fourth second is 6 dBm, wherein the RSSI value collected by the first terminal in the second second is less than the RSSI value collected in the first second, the RSSI value collected by the first terminal in the third second is less than the RSSI value collected in the second second, and the RSSI value collected by the first terminal in the fourth second is less than the RSSI value collected in the third second, it can be known that the duration that the RSSI value of the latter time is weaker than the RSSI value of the former time reaches 3 seconds, and based on this, the first terminal stops displaying the target two-dimensional code.
[0206] It should be understood that if the short-distance communication signal strength of the latter time is weaker than the short-distance communication signal strength of the former time, and the duration that the short-distance communication signal strength of the latter time is weaker than the short-distance communication signal strength of the former time reaches the third preset time length, it means that the object corresponding to the second terminal is probably leaving the current payment site, and in this case, in order to prevent other terminals from scanning the code, the first terminal can stop displaying the target two-dimensional code, so as to reduce the risk of scanning the code by other terminals, and further reduce the risk of misbinding of the identity information and the biological characteristics.
[0207] It should be noted that the method embodiment corresponding to FIG. 4 can be combined with the method embodiments corresponding to FIGS. 2 and 3, and of course, the method embodiment corresponding to FIG. 4 can also be executed independently, and the embodiments of the present application do not limit this.
[0208] The preferred embodiments of the present application are described in detail above in combination with the drawings, but the present application is not limited to the specific details in the above-described embodiments. Within the technical concept range of the present application, the technical solutions of the present application can be subjected to various simple modifications, and these simple modifications all belong to the protection range of the present application. For example, in the above-described specific embodiments, various specific technical features described in the embodiments can be combined in any appropriate manner without contradiction, and in order to avoid unnecessary repetition, the present application does not further describe various possible combination manners. For another example, the various different embodiments of the present application can also be combined in any manner, as long as it does not violate the idea of the present application, and it should also be considered as the disclosed content of the present application.
[0209] It should also be understood that the size of the sequence number of each process described above does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0210] The method provided by the embodiments of the present application is described above, and the interface control device provided by the embodiments of the present application is described below.
[0211] FIG. 5 is a schematic diagram of an interface control device 500 provided by an embodiment of the present application. As shown in FIG. 5, the interface control device 500 includes an acquisition module 510, a processing module 520, and a communication module 530. The acquisition module 510 is configured to acquire a target two-dimensional code, the target two-dimensional code being associated with an object biological feature. The processing module 520 is configured to determine a second terminal in at least one terminal device currently enabled with a short-distance communication signal, and establish a short-distance communication connection with the second terminal. The communication module 530 is configured to receive current display interface information from the second terminal through the short-distance communication connection. The processing module 520 is further configured to control display of the target two-dimensional code on a first terminal based on the current display interface information of the second terminal.
[0212] In some implementable manners, the processing module 520 is specifically configured to: if the current display interface information is payment code interface information of the target application, stop displaying the target two-dimensional code on the first terminal, and the target application is logged in with an object account.
[0213] In some implementable manners, the processing module 520 is specifically configured to: control a display duration of the target two-dimensional code on the first terminal based on the current display interface information.
[0214] In some implementable manners, the processing module 520 is specifically configured to: if the current display interface information is scan code interface information of the target application, extend an original display duration of the target two-dimensional code by a first preset duration, or keep the original display duration of the target two-dimensional code on the first terminal unchanged.
[0215] In some implementable manners, the processing module 520 is specifically configured to: if the current display interface information is first interface information, the first interface information being different from the scan code interface information or the payment code interface information of the target application, extend an original display duration of the target two-dimensional code by a second preset duration, or keep the display duration of the target two-dimensional code on the first terminal unchanged.
[0216] In some implementable manners, the processing module 520 is further configured to: push prompt information; wherein the prompt information is used to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to the scan code interface.
[0217] In some embodiments, the processing module 520 is further configured to periodically detect the short-range communication signal strength of the second terminal, and control the display of the target two-dimensional code based on the adjacent two short-range communication signal strengths of the second terminal.
[0218] In some embodiments, the processing module 520 is specifically configured to stop displaying the target two-dimensional code if the latter short-range communication signal strength of the adjacent two short-range communication signal strengths of the second terminal is weaker than the former short-range communication signal strength.
[0219] In some embodiments, before the communication module 530 receives the current display interface information from the second terminal, the processing module 520 is further configured to generate an asymmetric key, and the communication module 530 is further configured to send the public key in the asymmetric key to the second terminal through the short-range communication connection, and the public key is used to encrypt the current display interface information of the second terminal. Correspondingly, after the communication module 530 receives the current display interface information from the second terminal, the processing module 520 is further configured to decrypt the current display interface information of the second terminal through the private key in the asymmetric key.
[0220] In some embodiments, the processing module 520 is specifically configured to:
[0221] In the available device list of the first terminal, the second terminal with the strongest current short-range communication signal is obtained, and the available device list includes the identification of at least one terminal device with a currently turned-on short-range communication signal.
[0222] It should be understood that the device embodiments and the method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, no further description is given here. Specifically, the interface control device 500 shown in FIG. 5 can execute the corresponding first terminal side method embodiments of FIG. 2 and FIG. 4, and the aforementioned and other operations and / or functions of each module in the device 500 are respectively to realize the corresponding flow in the first terminal side method embodiments of FIG. 2 and FIG. 4, and for the sake of brevity, no further description is given here.
[0223] The interface control apparatus 500 of the embodiments of the present application is described above from the perspective of functional modules in combination with the drawings. It should be understood that the functional modules can be implemented in the form of hardware, or in the form of instructions of software, or in the form of a combination of hardware and software modules. Specifically, the steps of the method embodiments in the embodiments of the present application can be completed by integrated logic circuits of hardware in a processor and / or instructions of software. The steps of the method disclosed in the embodiments of the present application can be directly embodied as hardware code processing for execution by a processor, or be executed by a combination of hardware and software modules in a code processing processor. Alternatively, the software modules can be located in mature storage media in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, etc. The storage media is located in a storage, and a processor reads information in the storage and completes the steps of the above method embodiments in combination with hardware thereof.
[0224] FIG. 6 is a schematic diagram of an interface control apparatus 600 provided by the embodiments of the present application. As shown in FIG. 6, the interface control apparatus 600 is a device currently open for short-distance communication signals, and a first terminal currently acquires a target two-dimensional code associated with an object biological feature. The interface control apparatus 600 comprises a processing module 610 and a communication module 620. The processing module 610 is configured to establish a short-distance communication connection with the first terminal. The processing module 610 is further configured to determine current display interface information of the interface control apparatus. The communication module 620 is configured to send the current display interface information of the interface control apparatus to the first terminal through the short-distance communication connection. The current display interface information of the interface control apparatus is used to control display of the target two-dimensional code on the first terminal.
[0225] In some implementable manners, the processing module 610 is specifically configured to acquire foreground process or task information of the second terminal, and determine interface information corresponding to the foreground process or task information of the second terminal as the current display interface information of the second terminal.
[0226] It should be understood that the apparatus embodiments and the method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, no longer description is made here. Specifically, the interface control apparatus 600 shown in FIG. 6 can execute the second terminal side method embodiments corresponding to FIG. 2, and the foregoing and other operations and / or functions of each module in the apparatus 600 are respectively for implementing the corresponding processes in the second terminal side method embodiments corresponding to FIG. 2. For brevity, no longer description is made here.
[0227] The interface control apparatus 600 of the embodiments of the present application is described above from the perspective of functional modules in combination with the drawings. It should be understood that the functional modules can be implemented in the form of hardware, or in the form of instructions of software, or in the form of a combination of hardware and software modules. Specifically, the steps of the method embodiments in the embodiments of the present application can be completed by integrated logic circuits of hardware in a processor and / or instructions of software. The steps of the method disclosed in the embodiments of the present application can be directly embodied as hardware code processing for execution by a processor, or be executed by a combination of hardware and software modules in a code processing processor. Alternatively, the software modules can be located in mature storage media in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, etc. The storage media is located in a storage, and a processor reads information in the storage and completes the steps of the above method embodiments in combination with hardware thereof.
[0228] FIG. 7 is a schematic diagram of an interface control apparatus 700 provided by the embodiments of the present application. As shown in FIG. 7, the interface control apparatus 700 includes an acquisition module 710, a processing module 720, and a communication module 730. The acquisition module 710 is configured to acquire a target two-dimensional code, the target two-dimensional code being associated with an object biological feature. The processing module 720 is configured to determine a second terminal in at least one terminal device currently enabled with a short-distance communication signal, and establish a short-distance communication connection with the second terminal. The communication module 730 is configured to receive an interface control instruction from the second terminal, the current display interface information being sent through the short-distance communication connection. The processing module 720 is further configured to control display of the target two-dimensional code on the first terminal based on the interface control instruction.
[0229] In some implementable manners, if the current display interface information is payment code interface information of the target application, the interface control instruction is a first interface control instruction, the first interface control instruction being used to instruct to stop displaying the target two-dimensional code on the first terminal.
[0230] In some implementable manners, the interface control instruction is a second interface control instruction, the second interface control instruction being used to instruct a display duration of the target two-dimensional code on the first terminal.
[0231] In some implementable manners, if the current display interface information is scan code interface information of the target application, the second interface control instruction instructs to extend an original display duration of the target two-dimensional code on the first terminal by a first preset duration, or the second interface control instruction instructs to keep the original display duration of the target two-dimensional code on the first terminal unchanged.
[0232] In some embodiments, if the current display interface information is the first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the second interface control instruction indicates that the original display time length of the target two-dimensional code on the first terminal is extended by a second preset time length, or the second interface control instruction indicates that the display time length of the target two-dimensional code on the first terminal is kept unchanged.
[0233] In some embodiments, before the communication module 730 is configured to receive the interface control instruction sent by the second terminal through the short-distance communication connection, the processing module 720 is further configured to generate an asymmetric key; the communication module 730 is further configured to send a public key in the asymmetric key to the second terminal through the short-distance communication connection; the public key is used to encrypt the interface control instruction of the second terminal; correspondingly, after the communication module 730 is configured to receive the interface control instruction sent by the second terminal through the short-distance communication connection, the processing module 720 is further configured to decrypt the interface control instruction of the second terminal by using a private key in the asymmetric key.
[0234] It should be understood that the device embodiments and the method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, the details are not described here. Specifically, the interface control device 700 shown in FIG. 7 can perform the corresponding first terminal side method embodiments of FIGS. 3 and 4, and the aforementioned and other operations and / or functions of each module in the device 700 are respectively used to implement the corresponding processes in the first terminal side method embodiments of FIGS. 3 and 4, and for the sake of brevity, the details are not described here.
[0235] The interface control device 700 of the embodiments of the present application is described above in the functional module perspective. It should be understood that the functional module can be implemented by hardware, or by software instructions, or by a combination of hardware and software modules. Specifically, the steps of the method embodiments in the embodiments of the present application can be completed by the integrated logic circuit of hardware in the processor and / or software instructions. The steps of the method disclosed in the embodiments of the present application can be directly embodied as hardware code processor execution completion, or executed by a combination of hardware and software modules in the code processor. Alternatively, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps in the above method embodiments.
[0236] Fig. 8 is a schematic diagram of an interface control apparatus 800 according to an embodiment of the present application. As shown in Fig. 8, the interface control apparatus 800 is a device currently open a short-distance communication signal, and a first terminal currently acquires a target two-dimensional code associated with an object biological feature. The interface control apparatus 800 comprises a processing module 810 and a communication module 820. The processing module 810 is configured to establish a short-distance communication connection with the first terminal. The processing module 810 is further configured to determine current display interface information of the interface control apparatus, and generate an interface control instruction based on the current interface information. The communication module 820 is configured to send the interface control instruction to the first terminal through the short-distance communication connection. The interface control instruction is configured to control display of the target two-dimensional code on the first terminal.
[0237] In some implementations, the processing module 810 is specifically configured to acquire foreground process or task information of the second terminal, and determine interface information corresponding to the foreground process or task information of the second terminal as the current display interface information of the second terminal.
[0238] In some implementations, the processing module 810 is further configured to push prompt information. The prompt information is configured to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to a scan-to-scan interface.
[0239] It should be understood that the apparatus embodiments and the method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, no further description is given here. Specifically, the interface control apparatus 800 shown in Fig. 8 can perform the second terminal side method embodiment corresponding to Fig. 3, and the aforementioned and other operations and / or functions of each module in the apparatus 800 are respectively configured to implement the corresponding processes in the second terminal side method embodiment corresponding to Fig. 3. For brevity, no further description is given here.
[0240] The interface control apparatus 800 of the embodiments of the present application is described above in the perspective of functional modules. It should be understood that the functional modules can be implemented in the form of hardware, or in the form of instructions of software, or in the form of a combination of hardware and software modules. Specifically, each step of the method embodiments in the embodiments of the present application can be completed by integrated logic circuits of hardware in a processor and / or instructions in the form of software, and the steps of the method disclosed in the embodiments of the present application can be directly embodied as hardware code processing performed by a processor, or a combination of hardware and software modules in the code processing processor. Alternatively, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps in the above method embodiments.
[0241] FIG. 9 is a schematic block diagram of an electronic device according to an embodiment of the present application. The electronic device can be the first terminal or the second terminal described above.
[0242] As shown in FIG. 9, the electronic device can include:
[0243] The memory 910 is configured to store a computer program and transmit the program code to the processor 920. In other words, the processor 920 can call and run the computer program from the memory 910 to implement the method in the embodiments of the present application.
[0244] For example, the processor 920 can be configured to execute the method embodiments described above according to the instructions in the computer program.
[0245] In some embodiments of the present application, the processor 920 can include but is not limited to:
[0246] A general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and the like.
[0247] In some embodiments of the present application, the memory 910 includes but is not limited to:
[0248] The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0249] In some embodiments of the present application, the computer program can be divided into one or more modules, which are stored in the memory 910 and executed by the processor 920 to complete the method provided by the present application. The one or more modules can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program in the electronic device.
[0250] As shown in FIG. 9, the electronic device can further include:
[0251] The transceiver 930 can be connected to the processor 920 or the memory 910.
[0252] The processor 920 can control the transceiver 930 to communicate with other devices, specifically, can send information or data to other devices, or receive information or data sent by other devices. The transceiver 930 can include a transmitter and a receiver. The transceiver 930 can further include an antenna, and the number of antennas can be one or more.
[0253] It should be understood that various components in the electronic device are connected through a bus system, wherein the bus system includes a data bus, a power supply bus, a control bus, and a state signal bus in addition to a data bus.
[0254] The application further provides a computer storage medium, which stores a computer program. The computer program is executed by a computer to enable the computer to perform the method of the method embodiments described above. Alternatively, the application embodiments further provide a computer program product comprising instructions. The instructions are executed by a computer to enable the computer to perform the method of the method embodiments described above.
[0255] When implemented by using software, the embodiments can be implemented in the form of a computer program product entirely or partially. The computer program product comprises one or more computer instructions. When the computer instructions are loaded and executed on a computer, the flow or function according to the embodiments is entirely or partially generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transferred from one website, computer, server or data center to another website, computer, server or data center through a wired (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, digital video disc (DVD)), or a semiconductor medium (for example, solid state disk (SSD)), etc.
[0256] Those skilled in the art can realize that the modules and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solutions. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.
[0257] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the division of the above-described device embodiments is only a logical function division, and there can be another division manner for the actual implementation, for example, multiple devices or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different parts can be indirect couplings or communication connections through some interfaces, devices or modules, and can be electrical, mechanical or in other forms.
[0258] The modules explained as separated components can or can not be physically separated, and the components shown as modules can or can not be physical modules, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments. For example, the functional modules in the embodiments of the present application can be integrated into a processing module, or each module can be physically present separately, or two or more modules can be integrated into one module.
[0259] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A control method for interface information display, characterized in that: The method is applied to a first terminal, and includes: Obtaining a target QR code, wherein the target QR code is associated with a biometric feature of an object; Determining a second terminal in at least one terminal device that currently opens a short-range communication signal, and establishing a short-range communication connection with the second terminal; receiving current display interface information from the second terminal via the short-range communication connection; Based on the current display interface information of the second terminal, the display of the target QR code on the first terminal is controlled.
2. The method according to claim 1, characterized in that The controlling the display of the target QR code on the first terminal based on the current display interface information of the second terminal includes: If the currently displayed interface information is the payment code interface information of the target application, then the target QR code is stopped from being displayed on the first terminal; and the target application has a target account logged in.
3. The method according to claim 1, characterized in that The controlling the display of the target QR code on the first terminal based on the current display interface information of the second terminal includes: The display duration of the target QR code on the first terminal is controlled based on the current display interface information.
4. The method according to claim 3, characterized in that The controlling the display duration of the target QR code on the first terminal based on the current display interface information includes: If the current display interface information is the scan interface information of the target application, the original display time of the target QR code on the first terminal is extended by a first preset time, or the original display time of the target QR code on the first terminal is kept unchanged; the target application is logged in with the target account.
5. The method according to claim 3, characterized in that The controlling the display duration of the target QR code on the first terminal based on the current display interface information includes: If the currently displayed interface information is the first interface information, and the first interface information is different from the scan interface information or the payment code interface information of the target application, the original display time of the target QR code on the first terminal is extended by a second preset time, or the display time of the target QR code on the first terminal is kept unchanged.
6. The method according to any one of claims 1 to 5, characterized in that Also includes: Push prompt information, where the prompt information is used to prompt the object corresponding to the second terminal to switch the current interface of the second terminal to the scan interface.
7. The method according to any one of claims 1 to 6, characterized in that Also includes: Periodically detecting the short-range communication signal strength of the second terminal; Based on two adjacent short-distance communication signal strengths of the second terminal, the display of the target two-dimensional code on the first terminal is controlled.
8. The method according to claim 7, characterized in that The controlling the display of the target QR code on the first terminal based on two adjacent short-range communication signal strengths of the second terminal includes: If the latter short-distance communication signal strength of two adjacent short-distance communication signal strengths of the second terminal is weaker than the former short-distance communication signal strength, the target QR code is stopped from being displayed on the first terminal.
9. The method according to any one of claims 1 to 8, characterized in that Before receiving the current display interface information from the second terminal through the short-range communication connection, the method further includes: Generate asymmetric keys; Sending a public key in the asymmetric key to the second terminal through the short-range communication connection; the public key is used to encrypt current display interface information of the second terminal; After receiving the current display interface information from the second terminal, the method further includes: The current display interface information of the second terminal is decrypted using the private key in the asymmetric key.
10. The method according to any one of claims 1 to 9, characterized in that The determining the second terminal in at least one terminal device that currently enables the short-range communication signal includes: The second terminal with the strongest current short-range communication signal is obtained from the available device list of the first terminal, where the available device list includes an identifier of at least one terminal device that currently has a short-range communication signal turned on.
11. An interface control method, characterized in that: The method is applied to a second terminal, where the second terminal is a terminal that currently activates a short-range communication signal, and the first terminal currently obtains a target QR code, where the target QR code is associated with a biometric feature of an object; the method includes: establishing a short-range communication connection with the first terminal; Determining current display interface information of the second terminal; The current display interface information of the second terminal is sent to the first terminal via the short-range communication connection; the current display interface information of the second terminal is used to control the display of the target QR code on the first terminal.
12. The method according to claim 11, characterized in that The determining the current display interface information of the second terminal includes: Obtaining foreground process or task information of the second terminal; The interface information corresponding to the foreground process or task information of the second terminal is determined as the current display interface information of the second terminal.
13. An interface control device, characterized in that: include: Acquisition module, processing module and communication module; The acquisition module is used to acquire a target QR code, wherein the target QR code is associated with a biometric feature of an object; The processing module is used to determine a second terminal in at least one terminal device that currently opens a short-range communication signal, and establish a short-range communication connection with the second terminal; The communication module is used to receive current display interface information from the second terminal through the short-range communication connection; The processing module is further configured to control display of the target QR code on the first terminal based on current display interface information of the second terminal.
14. An interface control device, characterized in that: The interface control device is a device that currently starts a short-range communication signal, and the first terminal currently obtains a target QR code, and the target QR code is associated with a biometric feature of the object; The interface control device includes: a processing module and a communication module; The processing module is used to establish a short-range communication connection with the first terminal; The processing module is further configured to determine current display interface information of the interface control device; The communication module is used to send the current display interface information of the interface control device to the first terminal through the short-range communication connection; the current display interface information of the interface control device is used to control the display of the target QR code on the first terminal.
15. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 12.
16. A computer-readable storage medium, characterized in that Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 12.
17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Near-field magnetic communication and proximity relation detection based mobile phone payment system and method
CN107194689A
Proximity relation detection-based two-dimensional code payment system and method
CN107392586A
Two-dimensional code display method based on user behavior model and related equipment
CN113572896A
Payment mode switching method, intelligent payment equipment and storage medium
CN113592483A
Code scanning payment method and device, electronic equipment and storage medium
CN115392902A