CN107590656A - A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code - Google Patents
A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code Download PDFInfo
- Publication number
- CN107590656A CN107590656A CN201710898483.5A CN201710898483A CN107590656A CN 107590656 A CN107590656 A CN 107590656A CN 201710898483 A CN201710898483 A CN 201710898483A CN 107590656 A CN107590656 A CN 107590656A
- Authority
- CN
- China
- Prior art keywords
- dimensional code
- terminal
- transfer
- dimensional
- safe
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012546 transfer Methods 0.000 claims abstract description 187
- 230000015654 memory Effects 0.000 claims description 29
- 238000012163 sequencing technique Methods 0.000 claims description 23
- 238000012216 screening Methods 0.000 claims description 9
- 238000011451 sequencing strategy Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 238000000926 separation method Methods 0.000 description 10
- 230000003993 interaction Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code, wherein this method includes:When terminal, which receives Quick Response Code, obtains instruction, the positional information of itself is obtained;Obtain at least one safe Quick Response Code associated with the positional information;After being ranked up according to default ordering strategy at least one safe Quick Response Code, Quick Response Code recommendation list is generated;Transferred accounts Quick Response Code according to the determination that puts in order of Quick Response Code in the Quick Response Code recommendation list;It is described transfer accounts Quick Response Code be used for make the terminal transferred accounts according to Quick Response Code execution transfer operation.In this way, reducing transfer operation step, the security and agility for obtaining Quick Response Code operation are improved.
Description
Technical Field
The present invention relates to computer technologies, and in particular, to a method for acquiring a two-dimensional code, a terminal, and a computer-readable storage medium.
Background
With the rapid development of mobile payment, "cashless transaction" has become an increasingly favored transaction method in everyday transaction activities. The two-dimensional code payment mode is the most common mode of cashless transaction, and the payment from a roadside booth to a superstore and then to overseas shopping brings unprecedented convenience for the life of people.
Although the two-dimension code payment is convenient, the following problems still exist when the user uses the two-dimension code, and when potential safety hazards exist in the scanned two-dimension code, property loss of the user can be caused after scanning; when the terminal executes scanning operation, the operation process is complex, and the user experience is not high.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method, a terminal, and a computer-readable storage medium for acquiring a two-dimensional code, so as to improve the security and the rapidity of the operation of acquiring the two-dimensional code.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a method for acquiring a two-dimensional code, which comprises the following steps:
when the terminal receives a two-dimensional code acquisition instruction, acquiring the position information of the terminal;
acquiring at least one secure two-dimensional code associated with the location information;
after the at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated;
determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
In the foregoing solution, the acquiring at least one secure two-dimensional code associated with the location information includes:
determining the area where the terminal is located according to the position information;
determining all transfer two-dimensional codes of the terminal in the area, wherein the transfer two-dimensional codes can execute transfer operation;
screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code;
the transfer two-dimensional code comprises at least one of the following: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
In the foregoing solution, the preset ordering policy includes: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
In the foregoing solution, the preset ordering policy includes:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
In the above scheme, the two-dimensional code recommendation list includes: payee information corresponding to the two-dimensional code;
the determining the transfer two-dimensional codes according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list comprises the following steps: and determining the transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list and payee information corresponding to the two-dimensional codes.
The embodiment of the invention also provides a terminal, which comprises: a processor and a memory; wherein,
the processor is used for executing the two-dimension code acquisition program stored in the memory so as to realize the following steps:
when the terminal receives a two-dimensional code acquisition instruction, acquiring the position information of the terminal;
acquiring at least one secure two-dimensional code associated with the location information;
after the at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated;
determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
In the foregoing solution, the processor is specifically configured to implement the following steps:
determining the area where the terminal is located according to the position information;
determining all transfer two-dimensional codes of the terminal in the area, wherein the transfer two-dimensional codes can execute transfer operation;
screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code;
the transfer two-dimensional code comprises at least one of the following: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
In the foregoing solution, the processor is specifically configured to implement the following steps: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
In the foregoing solution, the processor is specifically configured to implement the following steps:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
Embodiments of the present invention also provide a computer readable storage medium, and the computer program realizes the steps of any one of the above methods when executed by a processor.
According to the method, the terminal and the computer-readable storage medium for acquiring the two-dimension code, provided by the embodiment of the invention, when the terminal receives the two-dimension code acquisition instruction, the position information of the terminal is acquired; acquiring at least one secure two-dimensional code associated with the location information; after at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated; determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
By adopting the technical scheme, at least one safe two-dimensional code is pushed to the terminal according to the area where the terminal is located, so that the terminal directly selects the two-dimensional code for executing the transfer operation from the safe two-dimensional code to execute the transfer operation, and the transfer two-dimensional code information can be acquired without scanning the two-dimensional code. Therefore, the transfer operation steps are reduced, and the safety and the rapidness of the two-dimension code obtaining operation are improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of a method for acquiring a two-dimensional code according to a first embodiment of the present invention;
fig. 4 is an interaction diagram of a terminal according to a first embodiment of the present invention;
fig. 5 is a flowchart of a method for acquiring a two-dimensional code according to a second embodiment of the present invention;
fig. 6A is a schematic diagram of a first interaction of a terminal according to a second embodiment of the present invention;
fig. 6B is a second interaction diagram of the terminal according to the second embodiment of the present invention;
fig. 6C is a third interaction diagram of the terminal according to the second embodiment of the present invention;
fig. 7 is a flowchart of a method for acquiring a two-dimensional code according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
First embodiment
The first embodiment of the invention provides a method for acquiring a two-dimensional code, which can be applied to a terminal with a function of acquiring the two-dimensional code.
Here, the terminal described above may be a fixed terminal having a display screen, or may be a mobile terminal having a display screen.
The above-mentioned fixed terminal may be a computer, and the above-mentioned mobile terminal includes but is not limited to a mobile phone, a notebook computer, a camera, a PDA, a PAD, a PMP, a navigation device, and the like. The terminal can be connected to the internet, wherein the connection can be made through a mobile internet network provided by an operator, or through accessing a wireless access point.
Here, if the mobile terminal has an operating system, the operating system may be UNIX, Linux, Windows, Android (Android), Windows Phone, or the like.
The type, shape, size, and the like of the display screen on the terminal are not limited, and the display screen on the terminal may be a liquid crystal display screen, for example.
In the first embodiment of the present invention, the display screen described above is used to provide a human-computer interaction interface for a user.
Fig. 3 is a flowchart of a first embodiment of a method for acquiring a two-dimensional code in the embodiment of the present invention, as shown in fig. 3, the method includes:
step 301: and when the terminal receives the two-dimension code acquisition instruction, acquiring the position information of the terminal.
Illustratively, when the payer terminal executes the transfer operation, the transfer operation interface has a touch key for indicating the operation of scanning the two-dimensional code, such as: and scanning character indication or image indication, and clicking the touch key by a user to start to execute the operation of acquiring the two-dimensional code.
Illustratively, acquiring the location information of itself includes: the terminal starts a Global Positioning System (GPS) to perform positioning, so as to obtain its own location information, where the location information at least includes latitude information and longitude information of the location of the terminal.
Step 302: at least one secure two-dimensional code associated with the location information is obtained.
Here, the associated secure two-dimensional code refers to a secure two-dimensional code whose separation distance from the position where the payer terminal is located is smaller than a separation threshold, for example, the value range of the separation threshold may be an integer smaller than 100 m.
In practical implementation, the steps may specifically include the following:
step A1: determining the area where the terminal is located according to the position information; illustratively, a circular area with a radius of 10m is taken as the area where the terminal is located, with the location of the terminal as the center.
Step A2: determining all transfer two-dimensional codes of which the terminal can execute transfer operation in the area; here, the transfer two-dimensional code of the transfer operation executable by the terminal refers to a two-dimensional code of the transfer operation executable after being recognized by the current transfer application, for example: when the transfer application A can only identify the transfer two-dimensional code generated by the transfer application A and perform transfer operation, all transfer two-dimensional codes of which the terminal can perform transfer operation only contain the transfer two-dimensional code generated by the transfer application A and do not contain two-dimensional codes generated by other transfer applications.
Step A3: and screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code. For example, the method for screening all determined transfer two-dimensional codes may be as follows: judging whether the determined two-dimensional code is subjected to real-name authentication in the transfer application or not, and determining the two-dimensional code subjected to real-name authentication as a safe two-dimensional code; otherwise, determining the two-dimension code as a non-safe two-dimension code, and recommending the safe two-dimension code to the user.
Illustratively, the transfer two-dimensional code includes at least one of: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
When the terminal needs to perform the transfer operation by scanning the two-dimensional code, the two-dimensional code information is acquired firstly, the transfer object is determined by identifying the acquired two-dimensional code information, and finally the specified amount is transferred out. Therefore, the separation distance between the scanned two-dimensional code and the terminal is smaller than the maximum scanning distance, or the separation distance is smaller than the separation threshold, so that the two-dimensional code to be scanned is necessarily located in the area where the terminal is located.
For example, the method for the terminal to obtain the at least one secure two-dimensional code may be: the terminal obtains at least one safe two-dimensional code through a mobile operator network, a WIFI wireless network or Bluetooth.
Specifically, the terminal firstly carries out terminal positioning according to a connected WIFI wireless network and obtains at least one safe two-dimensional code; when the WIFI wireless network connection fails, obtaining the WIFI wireless network connection through Bluetooth; and when the WIFI wireless network and the Bluetooth are failed to be connected, the mobile operator network is used finally.
Here, the terminal can actively connect with the WIFI wireless network in the area when reaching the current area, when the network signal of the detection side is poor, the Bluetooth connection or the mobile operator network connection is directly carried out when the two-dimensional code scanning operation is executed, and the time waste caused by the fact that the WIFI wireless network connection is tried is avoided.
Step 303: and sequencing at least one safe two-dimensional code according to a preset sequencing strategy to generate a two-dimensional code recommendation list.
The preset ordering strategy comprises the following steps: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
In practical implementation, the distance between the terminal and each secure two-dimensional code may be the distance between the terminal and a store in the area where the secure two-dimensional code belongs, or the distance between the terminal and a terminal in the area where the secure two-dimensional code belongs.
Illustratively, the area range of the terminal comprises two shops, the terminal acquires the transfer two-dimensional codes of the two shops and sorts the transfer two-dimensional codes according to the spacing distance between the terminal and the shop to which each transfer two-dimensional code belongs, and the transfer two-dimensional codes with the smaller spacing distance are positioned at the front end of the list.
It is understood that when the terminal is ready to perform the operation of scanning the two-dimensional code, the transfer two-dimensional code to be scanned from the payee will be spaced from the payer terminal by a distance smaller than the maximum scanning distance, for example, the maximum scanning distance is 1m, and the smaller the spacing distance, the more likely the transfer two-dimensional code to be scanned from the terminal will be. Therefore, in practical implementation, the secure two-dimensional codes can be sorted according to the spacing distance between the terminal and the two-dimensional codes, and the two-dimensional codes are arranged in a front order as the spacing distance is smaller.
Another optional preset ordering policy may include:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
Here, when the influence of the interval distance and the historical scanning times on the arrangement sequence of the two-dimensional codes is comprehensively considered, corresponding weight values can be respectively set according to the influence programs of the interval distance and the historical scanning times, and the most probable transfer two-dimensional codes, namely the two-dimensional codes arranged at the first position in the two-dimensional code recommendation list, are determined after weight operation.
Illustratively, a first weight value is set to be f1, and a second weight value is set to be f 2;
sequencing according to the spacing distance between the terminal and each safe two-dimensional code, and determining the arrangement serial number Si of the spacing distance corresponding to each safe two-dimensional code; si is an arrangement serial number of the interval distance corresponding to the ith safe two-dimensional code, and i is a positive integer;
sequencing the historical scanning times of each safe two-dimensional code according to the terminal, and determining the arrangement serial number Ni of the historical scanning times corresponding to each safe two-dimensional code; ni is the arrangement serial number of the historical scanning times corresponding to the ith safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value, wherein the weighted summation formula is (f1 multiplied by Ni + f2 multiplied by Si)/2, and Pi is the weighted summation result of each safe two-dimensional code;
and sequencing the safe two-dimensional codes according to the value Pi of the weighted sum of each safe two-dimensional code to generate a two-dimensional code recommendation list.
Step 304: and determining the transfer two-dimensional codes according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list.
Here, the transfer two-dimensional code is used to cause the terminal to perform a transfer operation according to the transfer two-dimensional code.
The method can further comprise the following steps: and displaying the two-dimension codes in the recommendation list.
Illustratively, the two-dimensional codes are sequentially and independently displayed on a terminal from top to bottom according to the arrangement sequence of the two-dimensional codes in a two-dimensional code recommendation list, and when the transfer two-dimensional codes are determined, the two-dimensional codes are stopped to be displayed; or all the two-dimension codes are displayed on the terminal from top to bottom according to the arrangement sequence of the two-dimension codes in the two-dimension code recommendation list.
Specifically, when the two-dimensional codes are sequentially and independently displayed and when the user determines that the two-dimensional codes are transferred, the two-dimensional codes after the arrangement sequence are stopped being displayed.
In practical implementation, the two-dimensional code recommendation list may include: payee information corresponding to the two-dimensional code; and determining the transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list and payee information corresponding to the two-dimensional codes. Here, not only can show the safe two-dimensional code that obtains according to the array order of two-dimensional code, still can show the payee information that each two-dimensional code corresponds simultaneously, make the payer user can more accurate definite account transfer two-dimensional code, avoid the mistake to transfer accounts for other people.
For example, the payee information corresponding to the two-dimensional code may be: the user name, user avatar, or other identifying information of the transfer object. For example: when the terminal displays the two-dimension code recommendation list, only payee information corresponding to each two-dimension code can be displayed, or corresponding payee information is displayed below the image information when the image information of the two-dimension codes is displayed.
Fig. 4 is an interaction schematic diagram of a terminal in a first embodiment of the present invention, and as shown in fig. 4, when the terminal receives a two-dimensional code acquisition instruction, a display interface displays a two-dimensional code recommendation list, where the two-dimensional code recommendation list includes: the 1 st two-dimensional code and the corresponding user name 1, the user name 2 corresponding to the 2 nd two-dimensional code, and the user name 3 corresponding to the 3 rd two-dimensional code. The 1 st two-dimensional code is the two-dimensional code closest to the terminal and most probably the transfer two-dimensional code to be acquired by the terminal, a user finally confirms whether the 1 st two-dimensional code is the transfer two-dimensional code or not through displayed payee information, namely a user name 1, if so, the user clicks the 1 st two-dimensional code to input a transfer confirmation instruction to the terminal, and the terminal executes transfer operation after acquiring the transfer confirmation instruction; otherwise, the user checks whether the user name 2 of the 2 nd two-dimensional code and the user name 3 of the 3 rd two-dimensional code are transfer two-dimensional codes in sequence, and the operation mode of the 2 nd two-dimensional code and the 3 rd two-dimensional code is the same as that of the 1 st two-dimensional code. And when the transfer two-dimensional codes do not exist in the two-dimensional code recommendation list, clicking the 'update list' to acquire a new two-dimensional code recommendation list, or clicking 'scanning and scanning' to scan the transfer two-dimensional code information through a camera.
In order to further embody the object of the present invention, the above-mentioned scheme is further exemplified on the basis of the first embodiment of the present invention.
Second embodiment
Fig. 5 is a flowchart of a second embodiment of a method for acquiring a two-dimensional code in the embodiment of the present invention, and as shown in fig. 5, the flowchart includes:
step 501: and the terminal receives the two-dimension code acquisition instruction.
In practical implementation, the terminal may include a transfer application, and the two-dimensional code obtaining instruction may be an open transfer application instruction. And when the terminal opens the transfer application, executing the operation of acquiring the two-dimension code in the embodiment of the invention.
Or, a touch key for indicating the two-dimensional code scanning operation is arranged on a transfer operation interface of the terminal, and a user clicks the touch key to start executing the two-dimensional code obtaining operation.
Step 502: and acquiring the current position information of the terminal.
Step 503: and determining the area of the terminal according to the current position information of the terminal.
Step 504: and acquiring at least one safe two-dimensional code in the area range of the terminal.
Exemplarily, taking the position of the terminal as a center, taking a circular area with the radius of 10m as an area where the terminal is located, and searching for the transfer two-dimensional codes of all terminals executing transfer operation in the area;
and acquiring the transfer two-dimensional codes of all terminals executing transfer operation.
It should be noted that when the transfer is performed to the other party by scanning the transfer two-dimensional code of the other party between the user and the user, the account receiver opens the two-dimensional code image of the user, and the user of the account receiver clicks the two-dimensional code scanning operation to acquire the two-dimensional code image of the account receiver.
Specifically, the obtaining of one secure two-dimensional code in the area range where the terminal is located may include the following steps:
step B1: the first terminal searches all second terminals which are executing the transfer operation in the area where the first terminal is located; the first terminal is a transfer party terminal, and the second terminal is an account receiving party terminal;
step B2: the method comprises the steps that a first terminal sends a request for obtaining a transfer two-dimensional code to a second terminal;
step B3: the second terminal sends the self account-receiving two-dimensional code to the first terminal;
step B4: the first terminal detects whether the transfer two-dimensional code sent by the second terminal is safe or not; and if the safe first terminal determines that the transfer two-dimensional code is the safe two-dimensional code, otherwise, the first terminal refuses to receive the transfer two-dimensional code.
And B1-B4 are carried out by the first terminal on all second terminals which are executing the transfer operation in the area, so that all the safe two-dimensional codes in the area where the first terminal is located are obtained.
Step 505: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code to generate a two-dimensional code recommendation list.
Illustratively, the area range of the terminal comprises two transfer two-dimensional codes of the terminal executing the transfer operation, the terminal obtains the transfer two-dimensional codes of the two terminals and sorts the transfer two-dimensional codes according to the spacing distance between the terminal and each terminal, and the transfer two-dimensional codes with the smaller spacing distance are positioned at the front end of the list.
Step 506: judging whether the two-dimension code recommendation list contains a transfer two-dimension code, if so, executing step 507; if not, step 508 is performed.
Illustratively, the user judges whether the two-dimensional code recommendation list contains the transfer two-dimensional codes according to the payee information corresponding to each transfer two-dimensional code, wherein the corresponding payee information can be a user name.
Step 507: and determining the transfer two-dimensional code from the two-dimensional code recommendation list, and executing transfer operation according to the transfer two-dimensional code.
Step 508: and the terminal scans the transfer two-dimensional code and executes transfer operation.
Fig. 6A, 6B, and 6C are interaction diagrams of the terminal in the second embodiment, respectively, and fig. 6A shows that a user clicks a "scan" key on the terminal to enable the terminal to receive a two-dimensional code acquisition instruction.
Fig. 6B shows that, after the two-dimensional code acquisition instruction is received by the terminal, a two-dimensional code recommendation list is displayed, where the two-dimensional code recommendation list includes: the user confirms the transfer two-dimensional code through the displayed user name 1 and the user name 2. If the two-dimension code recommendation list contains the transfer two-dimension code, the user clicks the corresponding two-dimension code image to input a transfer confirmation instruction, and the terminal is instructed to execute transfer operation; and if not, clicking the 'update list' to acquire a new two-dimension code recommendation list, or clicking a 'scanning and scanning' button to scan the transfer two-dimension code information through a camera.
As shown in FIG. 6C, after the user clicks 'scan', a two-dimensional code scanning view-finding frame appears on the display interface, a transfer two-dimensional code image to be scanned is placed in the view-finding frame, and the transfer two-dimensional code image is acquired through the camera.
In order to further embody the object of the present invention, the above-mentioned scheme is further exemplified on the basis of the first embodiment of the present invention.
Third embodiment
To further illustrate the object of the present invention, the first embodiment of the present invention is further exemplified.
Fig. 7 is a flowchart of a third embodiment of a method for acquiring a two-dimensional code in the embodiment of the present invention, and as shown in fig. 7, the flowchart includes:
step 701: and when the terminal receives the two-dimension code acquisition instruction, acquiring the current position information of the terminal.
Step 702: and determining the area of the terminal according to the current position information of the terminal.
Step 703: and determining all transfer two-dimensional codes of the transfer operation executable by the terminal in the area.
Step 704: and screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code.
Exemplarily, searching all shops in a region by taking the position of a terminal as a center and taking a circular region with the radius of 10m as the region of the terminal; the transfer two-dimensional codes of the shops can be stored in the server side in advance, and the user terminal obtains the transfer two-dimensional codes of the corresponding shops from the server side.
Determining transfer two-dimensional codes of all shops in the area; here, the two-dimensional code of the store may be regarded as a two-dimensional code that passes security authentication, that is, a secure two-dimensional code that passes filtering.
Step 705: and sequencing all the obtained safe two-dimension codes according to a preset sequencing strategy to generate a two-dimension code recommendation list.
Illustratively, the preset ordering policy includes: setting a corresponding first weight value for the distance between the terminal and each safe two-dimensional code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code; carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value; and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
Specifically, sequencing is carried out according to the spacing distance between the terminal and each safe two-dimensional code, and the arrangement serial number Si of the spacing distance corresponding to each safe two-dimensional code is determined; si is the arrangement sequence of the spacing distances corresponding to the ith safe two-dimensional code, and i is a positive integer;
sequencing the historical scanning times of each safe two-dimensional code according to the terminal, and determining the arrangement serial number Ni of the historical scanning times corresponding to each safe two-dimensional code; ni is the arrangement serial number of the historical scanning times corresponding to the ith safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to a first weight value and a second weight value, wherein the weighted summation formula is Pi ═ f1 × Ni + f2 × Si)/2, wherein Pi is the weighted summation result of each safe two-dimensional code, f1 is the first weight value, and f2 is the second weight value;
and sequencing all the obtained weighted sum values Pi according to the order of arrival from the beginning to generate a two-dimensional code recommendation list.
Illustratively, acquiring 3 secure two-dimensional codes includes: the two-dimensional code comprises a two-dimensional code 1, a two-dimensional code 2 and a two-dimensional code 3;
table 1 shows an arrangement order of the weighted sum results of the secure two-dimensional codes, where the arrangement order obtained according to the distance intervals in table 1 is: the two-dimensional code comprises a two-dimensional code 2, a two-dimensional code 1 and a two-dimensional code 3; the arrangement sequence obtained by sequencing according to the historical scanning times is as follows: the two-dimensional code comprises a two-dimensional code 1, a two-dimensional code 2 and a two-dimensional code 3; obtaining a weighted summation result Pi of each safety two-dimensional code according to a weighted summation formula Pi ═ f1 × Ni + f2 × Si)/2, wherein a first weight value f1 is equal to 0.6, a second weight value f2 is equal to 0.4, Ni is an arrangement serial number of the historical scanning times of the ith safety two-dimensional code, and Si is an arrangement serial number of the interval distance of the ith safety two-dimensional code; the weighted summation result of each secure two-dimensional code is obtained as follows: 0.8, 0.9, 1.3; sorting the weighted summation results from small to large, wherein the obtained sorting order is as follows: two-dimensional code 1, two-dimensional code 2 and two-dimensional code 3
TABLE 1
Permutation number | Sorting by separation distance | Sorting by number of scans | Sorting by weighted sum result |
1 | Two-dimensional code 2 | Two-dimensional code 1 | Two-dimensional code 1 |
2 | Two-dimensional code 1 | Two-dimensional code 3 | Two-dimensional code 2 |
3 | Two-dimensional code 3 | Two-dimensional code 2 | Two-dimensional code 3 |
It can be understood that when the terminals are sorted by the spacing distance only, the situation of inaccurate calculation is avoided, and the sorting accuracy can be increased by considering the historical operation times of the two-dimensional code. For example, two shops with close distances, a first shop is frequently visited by a user, a second shop is rarely visited by the user or never visited by the user, if the two-dimensional code recommendation list is generated only by the separation distance, when the terminal detects the separation distance from the surrounding shops, the measured separation distance is probably that the second shop is smaller than the first shop, so that the accuracy of the two-dimensional code recommendation list pushed to the user is not high, and a redundant screening process is brought to the user. By carrying out weight operation on the interval distance and the historical scanning times, influence factors are considered in multiple directions, and the accuracy of obtaining the two-dimensional code can be improved.
Step 706: judging whether the two-dimension code recommendation list contains a transfer two-dimension code, if so, executing step 707; if not, step 708 is performed.
For example, the user determines whether the two-dimensional code recommendation list includes the transfer two-dimensional codes according to payee information corresponding to each transfer two-dimensional code, where the corresponding payee information may be set as the name of the store to which the user belongs.
Step 707: and determining the transfer two-dimensional code from the two-dimensional code recommendation list, and executing transfer operation according to the transfer two-dimensional code.
In practical application, a user can search the transfer two-dimensional code from the first position in the two-dimensional code recommendation list according to the information of the terminal to which the two-dimensional code belongs, and after the transfer two-dimensional code is determined, the user clicks a two-dimensional code image to input a transfer confirmation instruction so as to indicate the terminal to execute transfer operation.
Step 708: and the terminal scans the transfer two-dimensional code and executes transfer operation.
According to the method, the terminal and the computer-readable storage medium for acquiring the two-dimension code, provided by the embodiment of the invention, when the terminal receives the two-dimension code acquisition instruction, the position information of the terminal is acquired; acquiring at least one secure two-dimensional code associated with the location information; after at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated; determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
By adopting the technical scheme, at least one safe two-dimensional code is pushed to the terminal according to the area where the terminal is located, so that the terminal directly selects the two-dimensional code for executing the account transfer operation from the safe two-dimensional code to execute the account transfer operation, and account transfer two-dimensional code information can be acquired without scanning the two-dimensional code operation.
Fourth embodiment
Based on the same inventive concept, the embodiment of the invention also provides a terminal. Fig. 8 is a schematic diagram of a composition structure of a terminal in an embodiment of the present invention, and as shown in fig. 8, the terminal 80 includes: a processor 801 and a memory 802, wherein,
the processor 801 is configured to execute the two-dimensional code acquisition program stored in the memory 802 to implement the following steps:
when the terminal receives a two-dimensional code acquisition instruction, acquiring the position information of the terminal;
acquiring at least one secure two-dimensional code associated with the location information;
after at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated;
determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
In practical implementation, the processor 801 is specifically configured to implement the following steps:
determining the area where the terminal is located according to the position information;
determining all transfer two-dimensional codes of which the terminal can execute transfer operation in the area;
screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code;
the transfer two-dimensional code comprises at least one of the following: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
In practical implementation, the processor 801 is specifically configured to implement the following steps: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
In practical implementation, the processor 801 is specifically configured to implement the following steps:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code terminal; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
In practical implementation, the two-dimensional code recommendation list includes: payee information corresponding to the two-dimensional code;
the processor 801 is specifically configured to implement the following steps: and determining the transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list and the information of the two-dimensional code terminal.
In practical implementation, the terminal 80 may be the mobile terminal 100 shown in fig. 1, the processor 801 may be the processor 110 in the mobile terminal 100, and the memory 802 may be the memory 109 in the mobile terminal 100.
In practical applications, the processor 801 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), an FPGA, a DSP, a CPU, a controller, a microcontroller, and a microprocessor. It is to be understood that the electronic devices for implementing the functions of the processor 801 may be other devices, and the embodiments of the present invention are not limited in particular.
The Memory 802 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 801.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Fifth embodiment
Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium, such as a memory including a computer program, which is executable by a processor of a terminal to perform the method steps in one or more of the foregoing embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A method for acquiring a two-dimensional code is characterized by comprising the following steps:
when the terminal receives a two-dimensional code acquisition instruction, acquiring the position information of the terminal;
acquiring at least one secure two-dimensional code associated with the location information;
after the at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated;
determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
2. The method of claim 1, wherein the obtaining at least one secure two-dimensional code associated with the location information comprises:
determining the area where the terminal is located according to the position information;
determining all transfer two-dimensional codes of the terminal in the area, wherein the transfer two-dimensional codes can execute transfer operation;
screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code;
the transfer two-dimensional code comprises at least one of the following: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
3. The method of claim 1, wherein the predetermined ordering policy comprises: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
4. The method of claim 1, wherein the predetermined ordering policy comprises:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
5. The method of claim 1, wherein the two-dimensional code recommendation list comprises: payee information corresponding to the two-dimensional code;
the determining the transfer two-dimensional codes according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list comprises the following steps: and determining the transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list and payee information corresponding to the two-dimensional codes.
6. A terminal, characterized in that the terminal comprises: a processor and a memory; wherein,
the processor is used for executing the two-dimension code acquisition program stored in the memory so as to realize the following steps:
when the terminal receives a two-dimensional code acquisition instruction, acquiring the position information of the terminal;
acquiring at least one secure two-dimensional code associated with the location information;
after the at least one safe two-dimensional code is sequenced according to a preset sequencing strategy, a two-dimensional code recommendation list is generated;
determining a transfer two-dimensional code according to the arrangement sequence of the two-dimensional codes in the two-dimensional code recommendation list; and the transfer two-dimensional code is used for enabling the terminal to execute transfer operation according to the transfer two-dimensional code.
7. The terminal of claim 6, wherein the processor is further configured to implement the following steps:
determining the area where the terminal is located according to the position information;
determining all transfer two-dimensional codes of the terminal in the area, wherein the transfer two-dimensional codes can execute transfer operation;
screening all determined transfer two-dimensional codes to obtain at least one safe two-dimensional code;
the transfer two-dimensional code comprises at least one of the following: the account transfer two-dimensional codes of all shops in the area and the account transfer two-dimensional codes of all terminals executing account transfer operation in the area.
8. The terminal of claim 6, wherein the processor is further configured to implement the following steps: and sequencing according to the spacing distance between the terminal and each safe two-dimensional code.
9. The terminal of claim 6, wherein the processor is further configured to implement the following steps:
setting a corresponding first weight value for the distance between the terminal and each safe two-dimension code; setting a corresponding second weighted value for the historical scanning times of each safe two-dimensional code;
carrying out weighted summation on each safe two-dimensional code according to the first weight value and the second weight value;
and sequencing all the safe two-dimensional codes according to the weighted sum result to generate a two-dimensional code recommendation list.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710898483.5A CN107590656A (en) | 2017-09-28 | 2017-09-28 | A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710898483.5A CN107590656A (en) | 2017-09-28 | 2017-09-28 | A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107590656A true CN107590656A (en) | 2018-01-16 |
Family
ID=61048082
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710898483.5A Pending CN107590656A (en) | 2017-09-28 | 2017-09-28 | A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107590656A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600525A (en) * | 2018-03-30 | 2018-09-28 | 维沃移动通信有限公司 | A kind of information processing method and mobile terminal |
CN109034314A (en) * | 2018-08-13 | 2018-12-18 | 珠海格力电器股份有限公司 | Display method and device, terminal and readable storage medium |
CN113128995A (en) * | 2021-05-18 | 2021-07-16 | 中国银行股份有限公司 | Two-dimensional code recommendation method and device based on mobile banking |
CN114495299A (en) * | 2022-02-27 | 2022-05-13 | 重庆长安汽车股份有限公司 | Vehicle parking automatic payment method, system and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710407A (en) * | 2009-12-29 | 2010-05-19 | 江西科技师范学院 | Payment method capable of consumption payment by mobile phone on basis of two-dimension code and payment system thereof |
CN102075861A (en) * | 2011-01-25 | 2011-05-25 | 徐进 | Method and system for realizing data positioning delivery |
US20130073539A1 (en) * | 2011-09-21 | 2013-03-21 | Armedzilla, Inc. | System and Method for Collectively Describing Events and Connecting Individuals Based Upon Commonly Shared Experiences to Control Social Network |
US20130138518A1 (en) * | 2011-11-30 | 2013-05-30 | At&T Intellectual Property I, L.P. | Wireless Transactions for Enhancing Customer Experience |
CN104850871A (en) * | 2014-02-19 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for providing code scanning result information |
CN105339962A (en) * | 2013-08-30 | 2016-02-17 | 贝宝公司 | Payment application with merchant physical location personalization |
CN106372887A (en) * | 2016-08-30 | 2017-02-01 | 上海卓易科技股份有限公司 | Quick payment method, quick receiving method and server |
-
2017
- 2017-09-28 CN CN201710898483.5A patent/CN107590656A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710407A (en) * | 2009-12-29 | 2010-05-19 | 江西科技师范学院 | Payment method capable of consumption payment by mobile phone on basis of two-dimension code and payment system thereof |
CN102075861A (en) * | 2011-01-25 | 2011-05-25 | 徐进 | Method and system for realizing data positioning delivery |
US20130073539A1 (en) * | 2011-09-21 | 2013-03-21 | Armedzilla, Inc. | System and Method for Collectively Describing Events and Connecting Individuals Based Upon Commonly Shared Experiences to Control Social Network |
US20130138518A1 (en) * | 2011-11-30 | 2013-05-30 | At&T Intellectual Property I, L.P. | Wireless Transactions for Enhancing Customer Experience |
CN105339962A (en) * | 2013-08-30 | 2016-02-17 | 贝宝公司 | Payment application with merchant physical location personalization |
CN104850871A (en) * | 2014-02-19 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for providing code scanning result information |
CN106372887A (en) * | 2016-08-30 | 2017-02-01 | 上海卓易科技股份有限公司 | Quick payment method, quick receiving method and server |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600525A (en) * | 2018-03-30 | 2018-09-28 | 维沃移动通信有限公司 | A kind of information processing method and mobile terminal |
CN108600525B (en) * | 2018-03-30 | 2021-01-26 | 维沃移动通信有限公司 | Information processing method and mobile terminal |
CN109034314A (en) * | 2018-08-13 | 2018-12-18 | 珠海格力电器股份有限公司 | Display method and device, terminal and readable storage medium |
CN113128995A (en) * | 2021-05-18 | 2021-07-16 | 中国银行股份有限公司 | Two-dimensional code recommendation method and device based on mobile banking |
CN114495299A (en) * | 2022-02-27 | 2022-05-13 | 重庆长安汽车股份有限公司 | Vehicle parking automatic payment method, system and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107133797B (en) | Payment abnormity automatic detection method, terminal and computer readable storage medium | |
CN110321474B (en) | Recommendation method and device based on search terms, terminal equipment and storage medium | |
CN109195143B (en) | Network access method, mobile terminal and readable storage medium | |
CN107566980B (en) | Mobile terminal positioning method and mobile terminal | |
CN107273035B (en) | Application program recommendation method and mobile terminal | |
CN110180181B (en) | Method and device for capturing wonderful moment video and computer readable storage medium | |
CN109005574B (en) | Cell selection method, mobile terminal and computer readable storage medium | |
CN107547741B (en) | Information processing method and device and computer readable storage medium | |
CN107730260B (en) | Method, equipment and terminal for realizing two-dimensional code payment | |
CN107423238B (en) | Screen projection connection method and device and computer readable storage medium | |
CN109714483B (en) | Screen locking interface message processing method and device, mobile terminal and storage medium | |
CN108322611B (en) | Screen locking information pushing method and device and computer readable storage medium | |
CN107862217B (en) | Position information acquisition method, mobile terminal and computer storage medium | |
CN110213765A (en) | APN information acquisition methods, terminal, server and storage medium | |
CN107590656A (en) | A kind of method, terminal and computer-readable recording medium for obtaining Quick Response Code | |
CN108601004B (en) | NFC use guide method, mobile terminal and computer readable storage medium | |
CN107124708B (en) | Display method and device of international roaming service and computer readable storage medium | |
CN109522276B (en) | Application icon management method, terminal and computer-readable storage medium | |
CN108810262B (en) | Application configuration method, terminal and computer readable storage medium | |
CN108038362B (en) | Unread information display method and device and computer readable storage medium | |
CN109711850B (en) | Secure payment method, device and computer readable storage medium | |
CN108566476B (en) | Information processing method, terminal and computer readable storage medium | |
CN108900696B (en) | Data processing method, terminal and computer readable storage medium | |
CN108876387B (en) | Payment verification method, payment verification equipment and computer-readable storage medium | |
CN107222933B (en) | Communication method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180116 |