CN107230065B - Two-dimensional code display method and device and computer readable storage medium - Google Patents

Two-dimensional code display method and device and computer readable storage medium Download PDF

Info

Publication number
CN107230065B
CN107230065B CN201710370705.6A CN201710370705A CN107230065B CN 107230065 B CN107230065 B CN 107230065B CN 201710370705 A CN201710370705 A CN 201710370705A CN 107230065 B CN107230065 B CN 107230065B
Authority
CN
China
Prior art keywords
dimensional code
payment
initial
target
icon
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.)
Active
Application number
CN201710370705.6A
Other languages
Chinese (zh)
Other versions
CN107230065A (en
Inventor
郑懿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710370705.6A priority Critical patent/CN107230065B/en
Publication of CN107230065A publication Critical patent/CN107230065A/en
Application granted granted Critical
Publication of CN107230065B publication Critical patent/CN107230065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device

Abstract

The invention discloses a two-dimensional code display method, two-dimensional code display equipment and a computer readable storage medium, wherein the method comprises the following steps: the payment instruction is received, and the initial two-dimensional code in the current desktop background is read; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement.

Description

Two-dimensional code display method and device and computer readable storage medium
Technical Field
The invention relates to the field of mobile payment, in particular to a two-dimensional code display method, two-dimensional code display equipment and a computer-readable storage medium.
Background
In the prior art, along with the development of mobile payment, more and more users can realize the convenience of mobile payment, and particularly in the payment link of mobile payment, the payment operation of the users is greatly facilitated.
In a mobile payment environment, a typical payment medium is a payment two-dimensional code, and a merchant can acquire payment information of a user in a code scanning mode, so that on one hand, the merchant can execute a code scanning (for example, the two-dimensional code) payment instruction without swiping a card, and on the other hand, the user can display a self-dedicated payment code (for example, the two-dimensional code) through a mobile terminal (a mobile phone, a tablet computer and the like) in the hand without providing a consumption card.
Just because the payment code is proprietary to each payer of each user, the payment code needs a certain security measure, and generally, the payment code can be called by inputting a password or a fingerprint, but because of different processing performances of the mobile terminal, different network qualities, and different actual use scenes of the user, the mobile terminal has the following inconveniences to call the payment code:
1. due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long;
2. under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called;
3. because the user has more payment software installed, for example, there are four or five payment software, the time for selecting one of the payment software is often longer, and if the user has more programs installed, the time for finding a specific payment software is also longer.
In summary, in the prior art, there is no technical scheme that can facilitate a user to call a payment code quickly, conveniently and accurately in response to a payment requirement.
Disclosure of Invention
In order to solve the problem that no technical scheme which can facilitate a user to call a payment code quickly, conveniently and accurately under the payment requirement exists in the prior art, the invention provides a two-dimensional code display method, which comprises the following steps:
receiving a payment instruction, and reading an initial two-dimensional code in a current desktop background;
judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code;
if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code.
Optionally, receiving the payment instruction and reading the initial two-dimensional code in the current desktop background includes:
acquiring an initial payment source corresponding to the initial two-dimensional code;
and determining an initial code scanning function corresponding to the initial two-dimensional code.
Optionally, determining whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code includes:
judging whether a target payment source corresponding to the target two-dimensional code is consistent with the initial payment source;
if so, further judging whether the target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function;
if so, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
Optionally, if yes, moving an icon in the desktop background to display the initial two-dimensional code, if no, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon, and then displaying the target two-dimensional code, further including:
judging whether the payment is successful;
if the payment is successful, restoring the icon to the original position;
and if the payment fails, displaying an alternative payment source in the two-dimensional code area.
Optionally, the method further includes:
after payment is successful or the payment is cancelled, restoring the icon to the original position, and carrying out Gaussian fuzzy processing on the desktop background;
and if a payment instruction is received, canceling the Gaussian blur of the desktop background.
The invention also provides a two-dimensional code display device, which is characterized in that the device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program realizes that:
receiving a payment instruction, and reading an initial two-dimensional code in a current desktop background;
judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not;
if so, moving an icon in a desktop background to display the initial two-dimensional code, otherwise, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon, and displaying the target two-dimensional code.
Optionally, the computer program further implements, when executed by the processor:
acquiring an initial payment source corresponding to the initial two-dimensional code;
and determining an initial code scanning function corresponding to the initial two-dimensional code.
Optionally, the computer program further implements, when executed by the processor:
judging whether a target payment source corresponding to the target two-dimensional code is consistent with the initial payment source;
if so, further judging whether a target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function;
if yes, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
Optionally, the computer program further implements, when executed by the processor:
judging whether the payment is successful;
if the payment is successful, restoring the icon to the original position;
if the payment fails, displaying a substitute payment source in the two-dimensional code area;
after payment is successful or the payment is cancelled, restoring the icon to the original position, and carrying out Gaussian fuzzy processing on the desktop background;
and if the payment instruction is received, canceling the Gaussian blur of the desktop background.
The invention also provides a computer readable storage medium, wherein a two-dimensional code display program is stored on the computer readable storage medium, and the two-dimensional code display program realizes the steps of the two-dimensional code display method when being executed by a processor.
By implementing the two-dimension code display method, the two-dimension code display equipment and the computer readable storage medium, the payment instruction is received, and the initial two-dimension code in the current desktop background is read; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement. The problems in the prior art are solved: due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long; under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called; the technical defects that the time for selecting a certain payment software is long due to the fact that the number of payment software installed by a user is large, for example, four or five payment software exist, and the time for finding a specific payment software is long if the number of programs installed by the user is large are also overcome.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a communication network system architecture diagram provided by an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a two-dimensional code display method according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a two-dimensional code display method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a two-dimensional code display method according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a two-dimensional code display method according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of a two-dimensional code display method according to a fifth embodiment of the 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 Rules Function) 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.
Example one
A two-dimensional code display method comprises the following steps:
s1, receiving a payment instruction, and reading an initial two-dimensional code in the current desktop background;
s2, judging whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code;
and S3, if yes, moving the icon in the desktop background to display the initial two-dimensional code, and if not, replacing the initial two-dimensional code with the target two-dimensional code, and moving the icon to display the target two-dimensional code.
In this embodiment, a two-dimensional bar code/two-dimensional bar code (2-dimensional bar code) records data symbol information by using black and white alternate patterns of a certain specific geometric figure distributed on a plane (two-dimensional direction) according to a certain rule; the concept of '0' and '1' bit stream which forms the internal logic base of computer is skillfully utilized in coding, a plurality of geometric shapes corresponding to binary system are used for representing literal numerical information, and the information is automatically read by an image input device or an optoelectronic scanning device so as to realize the automatic processing of the information: it has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Meanwhile, the method also has the function of automatically identifying information of different rows and processing the graph rotation change points.
In this embodiment, the wallpaper of the terminal desktop is processed to display the initial two-dimensional code. It is understood that the present embodiment is not limited to wallpaper of the terminal desktop, lock screen wallpaper of the terminal desktop, screen protection wallpaper, etc.
In this embodiment, the payment instruction may be a payment instruction triggered by an external device or triggered by an own device.
In this embodiment, the payment instruction may be a payment medium response of the mobile terminal system itself, or a payment medium response of a third party of the mobile terminal.
In step S1, a payment instruction is received, and the initial two-dimensional code in the current desktop background is read. Taking a mobile phone as an example, in a current desktop background, there is an initial two-dimensional code covered by a desktop icon, and since the initial two-dimensional code is covered by the desktop icon and the desktop background is subjected to preset image processing, the initial two-dimensional code cannot be identified in the current desktop background.
When the mobile phone receives a payment instruction, the payment instruction can be triggered, namely, the payment two-dimensional code is called, and before the payment two-dimensional code is triggered and called, the initial two-dimensional code in the current desktop background is read. It will be appreciated that the initial two-dimensional code is a default, or user-used, payment code.
Optionally, the initial two-dimensional code is determined according to the user-defined requirement;
optionally, determining the initial two-dimensional code according to the maximum balance of the user account;
optionally, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code according to the use frequency of the payment software used by the user;
optionally, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code according to the last payment instruction responded by the user.
In step S2 of this embodiment, it is determined whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code, specifically:
the payment instruction is originated from various payment software, for example, the existing payment software includes a payment two-dimensional code corresponding to the payment of the kyoto, a payment treasure, a payment of WeChat, a payment two-dimensional code corresponding to the payment of the WeChat, a payment two-dimensional code corresponding to the payment treasure, a payment two-dimensional code corresponding to the payment of WeChat, a payment two-dimensional code corresponding to the payment of the three stars, a payment two-dimensional code corresponding to the payment of the apple, and the like.
Because different payment two-dimensional codes only support specific payment software, the specific payment two-dimensional codes can only respond to payment instructions supported by the corresponding payment software.
In this step, whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged. Further:
determining the initial two-dimensional code according to the user-defined requirement, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, determining the initial two-dimensional code according to the maximum balance of the user account, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code according to the mark;
optionally, according to the use frequency of the payment software used by the user, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, according to the last payment instruction responded by the user, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code, the mark of the initial two-dimensional code is recorded, and whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged through the mark.
In step S3 of this embodiment, if the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code, the icon in the desktop background is moved to display the initial two-dimensional code, and if the target two-dimensional code corresponding to the payment instruction is inconsistent with the initial two-dimensional code, the initial two-dimensional code is replaced with the target two-dimensional code, and the icon is moved to display the target two-dimensional code.
If the wallpaper of the terminal desktop exists, moving an icon of background wallpaper of the desktop;
if the terminal desktop is the screen locking wallpaper, moving small parts of the screen locking, such as icons of time, weather and the like;
if the wallpaper is a screen protection wallpaper, the protection wallpaper can be unfolded from the middle and can be unfolded outwards.
Specifically, taking the first case as an example, the wallpaper of the desktop of the terminal is moved to the icon of the background wallpaper of the desktop:
when the desktop has a plurality of pages, the number of icons and the sequence of icon arrangement of each page may be different, so on one hand, the displacement of icon movement is also different in different scenes. For example, rotary deployment, helical deployment, translational deployment, step deployment, and the like; on the other hand, in different expansion modes, the stacking modes between icons are also different, for example, transparency superposition may be changed successively according to different image layers, transparency superposition may not be changed, and the like.
The method has the advantages that the payment instruction is received, and the initial two-dimensional code in the current desktop background is read; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement. The problems in the prior art are solved: due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long; under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called; the technical defects that the time for selecting a certain payment software is long due to the fact that the number of payment software installed by a user is large, for example, four or five payment software exist, and the time for finding a specific payment software is long if the number of programs installed by the user is large are also overcome.
Example two
Based on the above embodiment, receiving a payment instruction and reading an initial two-dimensional code in a current desktop background includes:
and S11, acquiring an initial payment source corresponding to the initial two-dimensional code. As described in the above example, the payment instruction is originated from various payment software, for example, the existing payment software includes a kyoto payment, a payment treasure payment, a WeChat payment, a three-star payment, an apple payment, and so on, and therefore, the payment two-dimensional code corresponding to the kyoto payment, the payment two-dimensional code corresponding to the payment treasure payment, the payment two-dimensional code corresponding to the WeChat payment, the payment two-dimensional code corresponding to the three-star payment, the payment two-dimensional code corresponding to the apple payment, and so on correspond.
Because different payment two-dimensional codes only support specific payment software, the specific payment two-dimensional codes can only respond to payment instructions supported by the corresponding payment software.
Therefore, before responding to the payment instruction, the initial payment source corresponding to the initial two-dimensional code needs to be acquired first.
And S12, determining an initial code scanning function corresponding to the initial two-dimensional code.
On one hand: the payment instruction is originated from various payment software, for example, the existing payment software includes a payment two-dimensional code corresponding to the payment of the kyoto, a payment treasure, a payment of WeChat, a payment two-dimensional code corresponding to the payment of the WeChat, a payment two-dimensional code corresponding to the payment treasure, a payment two-dimensional code corresponding to the payment of WeChat, a payment two-dimensional code corresponding to the payment of the three stars, a payment two-dimensional code corresponding to the payment of the apple, and the like.
On the other hand: the same payment software, e.g. the payment bank of the alibama, may have different payment mediums, e.g. payment by the payment bank of the alibama, payment invoked by the panning software, payment invoked by the tianmao software, etc.
Therefore, after obtaining the initial payment source corresponding to the initial two-dimensional code, it is further required to determine the initial code-scanning function corresponding to the initial two-dimensional code, which is also a specific payment medium, such as the pan payment of the ariba, the face-to-face payment in the payment bank, the ping payment in the payment bank, and the like.
The beneficial effects of this embodiment lie in, through obtaining the initial payment source that initial two-dimensional code corresponds, confirm that the code function is swept to the initial that initial two-dimensional code corresponds, for the follow-up user that can be convenient for under the payment demand, can call the payment sign indicating number fast, conveniently, accurately provide the technological basis.
EXAMPLE III
Based on the above embodiment, determining whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code includes:
and S21, judging whether the target payment source corresponding to the target two-dimensional code is consistent with the initial payment source. As described in the above example, the payment instruction is originated from various payment software, for example, the existing payment software includes a kyoto payment, a payment treasure payment, a WeChat payment, a three-star payment, an apple payment, and so on, and therefore, the payment two-dimensional code corresponding to the kyoto payment, the payment two-dimensional code corresponding to the payment treasure payment, the payment two-dimensional code corresponding to the WeChat payment, the payment two-dimensional code corresponding to the three-star payment, the payment two-dimensional code corresponding to the apple payment, and so on correspond.
The target payment source is payment software used by the device which generates the payment instruction externally, such as payment treasure, WeChat and the like, or the payment instruction is generated by consumption software (software of Jingdong shopping, Sunning shopping and the like) in the terminal.
And S22, if yes, further judging whether the target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function. Because different payment two-dimensional codes only support specific payment software, the specific payment two-dimensional codes can only respond to payment instructions supported by the corresponding payment software.
And S23, if yes, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
Optionally, determining the initial two-dimensional code according to the maximum balance of the user account, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code according to the mark;
optionally, according to the use frequency of the payment software used by the user, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, according to the last payment instruction responded by the user, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code, the mark of the initial two-dimensional code is recorded, and whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged through the mark.
The beneficial effects of this embodiment lie in that, through judging whether the target payment source that the target two-dimensional code corresponds is unanimous with initial payment source, if, further judge whether the target code scanning function that the target two-dimensional code corresponds is unanimous with initial code scanning function, if, confirm that the target two-dimensional code that payment instruction corresponds is unanimous with initial two-dimensional code. The technical basis is provided for the following convenience that the user can call the payment code quickly, conveniently and accurately under the payment requirement.
Example four
Based on the above embodiment, if yes, the icon in the desktop background is moved to display the initial two-dimensional code, if no, the initial two-dimensional code is replaced by the target two-dimensional code, and the icon is moved to further include after the target two-dimensional code is displayed:
and S41, judging whether the payment is successful.
And S42, if the payment is successful, restoring the icon to the original position. The manner of icon restoration may be performed in reverse order of the manner of icon expansion. As described in the above example, on the one hand, the displacement of the icon movement is different under different scenes. For example, rotary deployment, helical deployment, translational deployment, step deployment, and the like; on the other hand, in different expansion modes, the stacking modes between icons are also different, for example, transparency superposition may be changed successively according to different image layers, transparency superposition may not be changed, and the like.
And S43, if the payment fails, displaying an alternative payment source in the two-dimensional code area.
In this embodiment, the initial two-dimensional code that fails to pay may be replaced in the wallpaper of the terminal desktop, the screen locking wallpaper of the terminal desktop, and the screen protection wallpaper.
The beneficial effect of the embodiment is that the icon is restored to the original position by judging whether the payment is successful or not and if the payment is successful. The manner of icon restoration may be performed in reverse order of the manner of icon expansion. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement. The problems in the prior art are solved: due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long; under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called.
EXAMPLE five
Based on the above embodiment, the method further includes:
and S51, restoring the icon to the original position after the payment is successful or cancelled, and performing Gaussian blur processing on the desktop background. In the principle of gaussian blurring, it adjusts the pixel color values according to a gaussian curve, which selectively blurs the image. It can be understood that the color values of pixels around a certain point of the two-dimensional code are counted according to a gaussian curve through gaussian blurring, the color value of the curve is obtained by a mathematical weighted average calculation method, and finally the outline of the two-dimensional code can be left.
And S52, if the payment instruction is received, eliminating the Gaussian blur of the desktop background. As described in the above example, the gaussian blur state is present before payment, the gaussian blur is removed at the time of payment, and the gaussian blur state is restored after payment is completed.
The method has the advantages that the icon is restored to the original position after payment is successful or payment is cancelled, Gaussian blur processing is conducted on the desktop background, and Gaussian blur of the desktop background is cancelled if the payment instruction is received. As described in the above example, the gaussian blur state is present before payment, the gaussian blur is removed at the time of payment, and the gaussian blur state is restored after payment is completed. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement.
EXAMPLE six
Based on the foregoing embodiments, the present invention further provides a two-dimensional code display device, which is characterized in that the device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the computer program implements:
receiving a payment instruction, and reading an initial two-dimensional code in a current desktop background;
judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not;
if so, moving an icon in a desktop background to display the initial two-dimensional code, otherwise, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon, and displaying the target two-dimensional code.
In this embodiment, a two-dimensional bar code/two-dimensional bar code (2-dimensional bar code) records data symbol information by using black and white alternate patterns of a certain specific geometric figure distributed on a plane (two-dimensional direction) according to a certain rule; the concept of '0' and '1' bit stream which forms the internal logic base of computer is skillfully utilized in coding, a plurality of geometric shapes corresponding to binary system are used for representing literal numerical information, and the information is automatically read by an image input device or an optoelectronic scanning device so as to realize the automatic processing of the information: it has some commonality of barcode technology: each code system has its specific character set; each character occupies a certain width; has certain checking function and the like. Meanwhile, the method also has the function of automatically identifying information of different rows and processing the graph rotation change points.
In this embodiment, the wallpaper of the terminal desktop is processed to display the initial two-dimensional code. It is understood that the present embodiment is not limited to wallpaper of the terminal desktop, lock screen wallpaper of the terminal desktop, screen protection wallpaper, etc.
In this embodiment, the payment instruction may be a payment instruction triggered by an external device or triggered by an own device.
In this embodiment, the payment instruction may be a payment medium response of the mobile terminal system itself, or a payment medium response of a third party of the mobile terminal.
In step S1, a payment instruction is received, and the initial two-dimensional code in the current desktop background is read. Taking a mobile phone as an example, in a current desktop background, there is an initial two-dimensional code covered by a desktop icon, and since the initial two-dimensional code is covered by the desktop icon and the desktop background is subjected to preset image processing, the initial two-dimensional code cannot be identified in the current desktop background.
When the mobile phone receives a payment instruction, the payment instruction can be triggered, namely, the payment two-dimensional code is called, and before the payment two-dimensional code is triggered and called, the initial two-dimensional code in the current desktop background is read. It will be appreciated that the initial two-dimensional code is a default, or user-used, payment code.
Optionally, the initial two-dimensional code is determined according to the user-defined requirement;
optionally, determining the initial two-dimensional code according to the maximum balance of the user account;
optionally, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code according to the use frequency of the payment software used by the user;
optionally, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code according to the last payment instruction responded by the user.
In step S2 of this embodiment, it is determined whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code, specifically:
the payment instruction is originated from various payment software, for example, the existing payment software includes a payment two-dimensional code corresponding to the payment of the kyoto, a payment treasure, a payment of WeChat, a payment two-dimensional code corresponding to the payment of the WeChat, a payment two-dimensional code corresponding to the payment treasure, a payment two-dimensional code corresponding to the payment of WeChat, a payment two-dimensional code corresponding to the payment of the three stars, a payment two-dimensional code corresponding to the payment of the apple, and the like.
Because different payment two-dimensional codes only support specific payment software, the specific payment two-dimensional codes can only respond to payment instructions supported by the corresponding payment software.
In this step, whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged. Further:
determining the initial two-dimensional code according to the user-defined requirement, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, determining the initial two-dimensional code according to the maximum balance of the user account, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code according to the mark;
optionally, according to the use frequency of the payment software used by the user, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, according to the last payment instruction responded by the user, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code, the mark of the initial two-dimensional code is recorded, and whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged through the mark.
In step S3 of this embodiment, if the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code, the icon in the desktop background is moved to display the initial two-dimensional code, and if the target two-dimensional code corresponding to the payment instruction is inconsistent with the initial two-dimensional code, the initial two-dimensional code is replaced with the target two-dimensional code, and the icon is moved to display the target two-dimensional code.
If the wallpaper of the terminal desktop exists, moving an icon of background wallpaper of the desktop;
if the terminal desktop is the screen locking wallpaper, moving small parts of the screen locking, such as icons of time, weather and the like;
if the wallpaper is a screen protection wallpaper, the protection wallpaper can be unfolded from the middle and can be unfolded outwards.
Specifically, taking the first case as an example, the wallpaper of the desktop of the terminal is moved to the icon of the background wallpaper of the desktop:
when the desktop has a plurality of pages, the number of icons and the sequence of icon arrangement of each page may be different, so on one hand, the displacement of icon movement is also different in different scenes. For example, rotary deployment, helical deployment, translational deployment, step deployment, and the like; on the other hand, in different expansion modes, the stacking modes between icons are also different, for example, transparency superposition may be changed successively according to different image layers, transparency superposition may not be changed, and the like.
The method has the advantages that the payment instruction is received, and the initial two-dimensional code in the current desktop background is read; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement. The problems in the prior art are solved: due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long; under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called; the technical defects that the time for selecting a certain payment software is long due to the fact that the number of payment software installed by a user is large, for example, four or five payment software exist, and the time for finding a specific payment software is long if the number of programs installed by the user is large are also overcome.
EXAMPLE seven
Based on the above embodiments, the computer program further realizes when executed by the processor:
acquiring an initial payment source corresponding to the initial two-dimensional code;
and determining an initial code scanning function corresponding to the initial two-dimensional code.
On one hand: the payment instruction is originated from various payment software, for example, the existing payment software includes a payment two-dimensional code corresponding to the payment of the kyoto, a payment treasure, a payment of WeChat, a payment two-dimensional code corresponding to the payment of the WeChat, a payment two-dimensional code corresponding to the payment treasure, a payment two-dimensional code corresponding to the payment of WeChat, a payment two-dimensional code corresponding to the payment of the three stars, a payment two-dimensional code corresponding to the payment of the apple, and the like.
On the other hand: the same payment software, e.g. the payment bank of the alibama, may have different payment mediums, e.g. payment by the payment bank of the alibama, payment invoked by the panning software, payment invoked by the tianmao software, etc.
Therefore, after obtaining the initial payment source corresponding to the initial two-dimensional code, it is further required to determine the initial code-scanning function corresponding to the initial two-dimensional code, which is also a specific payment medium, such as the pan payment of the ariba, the face-to-face payment in the payment bank, the ping payment in the payment bank, and the like.
The beneficial effects of this embodiment lie in, through obtaining the initial payment source that initial two-dimensional code corresponds, confirm that the code function is swept to the initial that initial two-dimensional code corresponds, for the follow-up user that can be convenient for under the payment demand, can call the payment sign indicating number fast, conveniently, accurately provide the technological basis.
Example eight
Based on the above embodiments, the computer program further realizes when executed by the processor:
judging whether a target payment source corresponding to the target two-dimensional code is consistent with the initial payment source;
if so, further judging whether a target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function;
if yes, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
Optionally, determining the initial two-dimensional code according to the maximum balance of the user account, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code according to the mark;
optionally, according to the use frequency of the payment software used by the user, determining the two-dimensional code corresponding to the payment software as an initial two-dimensional code, recording the mark of the initial two-dimensional code, and judging whether the target two-dimensional code corresponding to the instruction needing payment is consistent with the initial two-dimensional code or not through the mark;
optionally, according to the last payment instruction responded by the user, the two-dimensional code corresponding to the last payment software is determined as the initial two-dimensional code, the mark of the initial two-dimensional code is recorded, and whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not is judged through the mark.
The beneficial effects of this embodiment lie in that, through judging whether the target payment source that the target two-dimensional code corresponds is unanimous with initial payment source, if, further judge whether the target code scanning function that the target two-dimensional code corresponds is unanimous with initial code scanning function, if, confirm that the target two-dimensional code that payment instruction corresponds is unanimous with initial two-dimensional code. The technical basis is provided for the following convenience that the user can call the payment code quickly, conveniently and accurately under the payment requirement.
Example nine
Based on the above embodiments, the computer program further realizes when executed by the processor:
judging whether the payment is successful;
if the payment is successful, restoring the icon to the original position;
if the payment fails, displaying a substitute payment source in the two-dimensional code area;
after payment is successful or the payment is cancelled, restoring the icon to the original position, and carrying out Gaussian fuzzy processing on the desktop background;
and if the payment instruction is received, canceling the Gaussian blur of the desktop background.
In this embodiment, the initial two-dimensional code that fails to pay may be replaced in the wallpaper of the terminal desktop, the screen locking wallpaper of the terminal desktop, and the screen protection wallpaper.
The method has the advantages that the icon is restored to the original position after payment is successful or payment is cancelled, Gaussian blur processing is conducted on the desktop background, and Gaussian blur of the desktop background is cancelled if the payment instruction is received. As described in the above example, the gaussian blur state is present before payment, the gaussian blur is removed at the time of payment, and the gaussian blur state is restored after payment is completed. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement.
Example ten
Based on the foregoing embodiment, the present invention further provides a computer-readable storage medium, where a two-dimensional code display program is stored, and when executed by a processor, the two-dimensional code display program implements the steps of the two-dimensional code display method as described above.
The method comprises the steps of receiving a payment instruction and reading an initial two-dimensional code in a current desktop background; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement.
By implementing the two-dimension code display method, the two-dimension code display equipment and the computer readable storage medium, the payment instruction is received, and the initial two-dimension code in the current desktop background is read; judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code; if the two-dimensional code is the target two-dimensional code, moving an icon in the desktop background to display the initial two-dimensional code, and if the two-dimensional code is not the target two-dimensional code, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon to display the target two-dimensional code. The technical scheme is convenient for a user to call the payment code quickly, conveniently and accurately under the payment requirement. The problems in the prior art are solved: due to the fact that the mobile terminal has different processing performances and the payment software is limited in operation, the waiting time for calling the payment code is possibly long; under the conditions of different processing performances and poor network quality of the mobile terminal, the waiting time for calling the payment code is long, and even the payment code cannot be called; the technical defects that the time for selecting a certain payment software is long due to the fact that the number of payment software installed by a user is large, for example, four or five payment software exist, and the time for finding a specific payment software is long if the number of programs installed by the user is large are also overcome.
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 (9)

1. A two-dimensional code display method is characterized by comprising the following steps:
receiving a payment instruction, and reading an initial two-dimensional code in a current desktop background;
judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not;
if so, moving an icon in a desktop background to display the initial two-dimensional code, otherwise, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon and displaying the target two-dimensional code;
wherein the method further comprises:
after payment is successful or the payment is cancelled, restoring the icon to the original position, and carrying out Gaussian fuzzy processing on the desktop background;
and if the payment instruction is received, canceling the Gaussian blur of the desktop background.
2. The two-dimensional code display method according to claim 1, wherein the receiving a payment instruction and reading the initial two-dimensional code in the current desktop background comprises:
acquiring an initial payment source corresponding to the initial two-dimensional code;
and determining an initial code scanning function corresponding to the initial two-dimensional code.
3. The two-dimensional code display method according to claim 2, wherein the determining whether the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code comprises:
judging whether a target payment source corresponding to the target two-dimensional code is consistent with the initial payment source;
if so, further judging whether a target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function;
if yes, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
4. The two-dimensional code display method according to claim 3, wherein if yes, moving an icon in a desktop background to display the initial two-dimensional code, and if no, replacing the initial two-dimensional code with the target two-dimensional code and moving the icon, and after displaying the target two-dimensional code, further comprising:
judging whether the payment is successful;
if the payment is successful, restoring the icon to the original position;
and if the payment fails, displaying an alternative payment source in the two-dimensional code area.
5. A two-dimensional code display device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing:
receiving a payment instruction, and reading an initial two-dimensional code in a current desktop background;
judging whether a target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code or not;
if so, moving an icon in a desktop background to display the initial two-dimensional code, otherwise, replacing the initial two-dimensional code with the target two-dimensional code, moving the icon and displaying the target two-dimensional code;
wherein the computer program further implements, when executed by the processor:
after payment is successful or the payment is cancelled, restoring the icon to the original position, and carrying out Gaussian fuzzy processing on the desktop background;
and if the payment instruction is received, canceling the Gaussian blur of the desktop background.
6. The two-dimensional code display device according to claim 5, wherein the computer program when executed by the processor further implements:
acquiring an initial payment source corresponding to the initial two-dimensional code;
and determining an initial code scanning function corresponding to the initial two-dimensional code.
7. The two-dimensional code display device according to claim 6, wherein the computer program when executed by the processor further implements:
judging whether a target payment source corresponding to the target two-dimensional code is consistent with the initial payment source;
if so, further judging whether a target code scanning function corresponding to the target two-dimensional code is consistent with the initial code scanning function;
if yes, determining that the target two-dimensional code corresponding to the payment instruction is consistent with the initial two-dimensional code.
8. The two-dimensional code display device according to claim 7, wherein the computer program when executed by the processor further implements:
judging whether the payment is successful;
if the payment is successful, restoring the icon to the original position;
and if the payment fails, displaying an alternative payment source in the two-dimensional code area.
9. A computer-readable storage medium, characterized in that a two-dimensional code display program is stored thereon, which when executed by a processor implements the steps of the two-dimensional code display method according to any one of claims 1 to 4.
CN201710370705.6A 2017-05-23 2017-05-23 Two-dimensional code display method and device and computer readable storage medium Active CN107230065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710370705.6A CN107230065B (en) 2017-05-23 2017-05-23 Two-dimensional code display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710370705.6A CN107230065B (en) 2017-05-23 2017-05-23 Two-dimensional code display method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107230065A CN107230065A (en) 2017-10-03
CN107230065B true CN107230065B (en) 2020-11-10

Family

ID=59934670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710370705.6A Active CN107230065B (en) 2017-05-23 2017-05-23 Two-dimensional code display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107230065B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831185A (en) * 2018-02-12 2020-10-27 创新先进技术有限公司 Application identification code display method and device
CN108550033B (en) * 2018-03-01 2020-07-28 阿里巴巴集团控股有限公司 Method and device for displaying unique identifier of digital object
CN108629579B (en) * 2018-04-10 2021-04-30 维沃移动通信有限公司 Payment method and mobile terminal
WO2019227462A1 (en) * 2018-06-01 2019-12-05 福建联迪商用设备有限公司 Scan code payment and test method and system controlling barcode
CN109756621A (en) * 2018-12-25 2019-05-14 维沃移动通信有限公司 A kind of two-dimensional code display method and terminal device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365543A (en) * 2013-07-08 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code display method
CN106022762A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Payment method and terminal
CN106341530A (en) * 2016-08-26 2017-01-18 维沃移动通信有限公司 Payment page switching method and mobile terminal
CN106372894A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Payment method and mobile terminal
CN106384043A (en) * 2015-07-29 2017-02-08 阿里巴巴集团控股有限公司 2D code safety protection method and related equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365543A (en) * 2013-07-08 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code display method
CN106384043A (en) * 2015-07-29 2017-02-08 阿里巴巴集团控股有限公司 2D code safety protection method and related equipment
CN106022762A (en) * 2016-05-13 2016-10-12 广东欧珀移动通信有限公司 Payment method and terminal
CN106341530A (en) * 2016-08-26 2017-01-18 维沃移动通信有限公司 Payment page switching method and mobile terminal
CN106372894A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Payment method and mobile terminal

Also Published As

Publication number Publication date
CN107230065A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN107230065B (en) Two-dimensional code display method and device and computer readable storage medium
CN108196922B (en) Method for opening application, terminal and computer readable storage medium
CN107730260B (en) Method, equipment and terminal for realizing two-dimensional code payment
CN109471571B (en) Display method of suspension control, mobile terminal and computer readable storage medium
CN108198150B (en) Method for eliminating image dead pixel, terminal and storage medium
CN108182668B (en) Amplified image processing method, terminal and computer readable storage medium
CN110278481B (en) Picture-in-picture implementation method, terminal and computer readable storage medium
CN111381762A (en) Double-screen switching method and device and computer readable storage medium
CN109710168B (en) Screen touch method and device and computer readable storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN112153305A (en) Camera starting method, mobile terminal and computer storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109711850B (en) Secure payment method, device and computer readable storage medium
CN107562304B (en) Control method, mobile terminal and computer readable storage medium
CN107566607B (en) Notification display method, mobile terminal and computer readable storage medium
CN114040073A (en) Starry sky image shooting processing method and equipment and computer readable storage medium
CN109683793B (en) Content turning display method and device and computer readable storage medium
CN113485667A (en) Method for screen projection display of terminal, terminal and storage medium
CN109215004B (en) Image synthesis method, mobile terminal and computer readable storage medium
CN113222850A (en) Image processing method, device and computer readable storage medium
CN108335301B (en) Photographing method and mobile terminal
CN110058761B (en) Copy selection method, mobile terminal and computer readable storage medium
CN108549648B (en) Character picture processing method, terminal and computer readable storage medium
CN112860207A (en) Screen projection method, system, device for initiating screen projection and 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
GR01 Patent grant
GR01 Patent grant