Disclosure of Invention
The embodiment of the invention provides a transaction control method, a transaction control device, a terminal and a storage medium, and solves the problems that a transaction code in the existing transaction software cannot be automatically exited, so that the transaction is unsafe and the user experience is poor.
In a first aspect, an embodiment of the present invention provides a transaction control method, where the method includes:
receiving a starting instruction of a transaction code of terminal transaction software, and monitoring a transaction process of the transaction software;
and when a transaction completion instruction of the transaction software is received, controlling to end the display of the transaction code on the terminal screen.
Further, when a transaction completion instruction of the transaction software is received, the controlling of ending the displaying of the transaction code on the terminal screen includes:
when a transaction completion instruction of transaction software is received, starting the step number of a pedometer in a detection terminal;
and when the step number in the pedometer is increased by a preset step number value, controlling to finish the display of the transaction code on a terminal screen.
Further, when a transaction completion instruction of the transaction software is received, the controlling of ending the displaying of the transaction code on the terminal screen includes:
when a transaction completion instruction of transaction software is received, starting first positioning information of a positioning device in a detection terminal;
and after the preset time, restarting second positioning information in the positioning device in the detection terminal, and controlling to finish the display of the transaction code on the terminal screen when the distance between the first positioning information and the second positioning information is greater than a preset distance threshold value.
Further, after receiving an instruction for starting the transaction code of the terminal transaction software, the method further comprises the following steps:
and starting a preset screen-off mechanism of the terminal, wherein the preset screen-off mechanism turns off the screen under a preset gesture.
Further, the method further comprises:
initiating a calculation of walking information for a user, wherein the walking information comprises at least: the number of steps, the step length,
Walking distance and walking speed;
and determining to display the transaction code or finishing the display of the transaction code on a terminal screen according to the preset walking information.
Further, the terminal is a smart watch or a smart bracelet, and accordingly, after receiving a start instruction of a transaction code of terminal transaction software and monitoring a transaction process of the transaction software, the method further includes:
and when a transaction completion instruction of the transaction software is not received, controlling to enlarge the wrist lifting angle range of the wrist lifting bright screen of the terminal.
In a second aspect, an embodiment of the present invention further provides a transaction control device, including:
the instruction receiving module is used for receiving a starting instruction of a transaction code of the terminal transaction software and monitoring the transaction process of the transaction software;
and the display ending module is used for controlling ending of the display of the transaction code on the terminal screen when a transaction finishing instruction of the transaction software is received.
Further, the display ending module is specifically configured to:
when a transaction completion instruction of transaction software is received, starting the step number of a pedometer in a detection terminal;
and when the step number in the pedometer is increased by a preset step number value, controlling to finish the display of the transaction code on a terminal screen.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a transaction control method as in any one of the first aspects of embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements a transaction control method as described in any one of the first aspect of the embodiments of the present invention.
The embodiment of the invention controls the end of the display of the transaction code on the terminal screen by monitoring the transaction process of the transaction software after the transaction of the transaction software is completed, can avoid the insecurity of the transaction caused by the fact that the transaction code is easy to be stolen by lawless persons when the transaction code is displayed on the terminal screen after the transaction is completed, and does not need the user to manually quit the display of the transaction code when the user starts the terminal again, thereby improving the user experience.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described through embodiments with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart of a transaction control method according to an embodiment of the present invention. The technical scheme of the embodiment can be suitable for the condition that the transaction code is displayed on the screen of the terminal when the transaction is finished. The method can be executed by the transaction control device provided by the embodiment of the invention, the device can be realized in a software and/or hardware mode and is configured in a terminal for application, and the terminal can be a terminal such as a smart phone, a smart bracelet, a smart watch, a tablet computer and the like. The method specifically comprises the following operations:
and S110, receiving a starting instruction of a transaction code of the terminal transaction software, and monitoring the transaction process of the transaction software.
When a user uses the terminal transaction software to carry out transaction, a transaction code in the transaction software is started, the transaction code comprises a payment code and a collection code, can be in a bar code form or a two-dimensional code form, and is provided for a transaction party, and the transaction party uses a scanning device to scan the transaction code so as to realize the transaction. When the user starts the transaction code, a starting instruction is generated and sent to a terminal used by the user, and the terminal starts a transaction process of the monitoring transaction software.
And S120, when a transaction completion instruction of the transaction software is received, controlling to end the display of the transaction code on a terminal screen.
The transaction code finishes the transaction after being scanned by the other party of the transaction through the scanning equipment, generates a transaction finishing instruction and sends the transaction finishing instruction to the terminal, and the terminal controls to finish the display of the transaction code on a terminal screen after receiving the transaction finishing instruction.
The embodiment of the invention controls the end of the display of the transaction code on the terminal screen by monitoring the transaction process of the transaction software after the transaction of the transaction software is completed, can avoid the insecurity of the transaction caused by the fact that the transaction code is easy to be stolen by lawless persons when the transaction code is displayed on the terminal screen after the transaction is completed, and does not need the user to manually quit the display of the transaction code when the user starts the terminal again, thereby improving the user experience.
In another preferred implementation manner of this embodiment, after receiving an instruction for starting a transaction code of the terminal transaction software and monitoring a transaction progress of the transaction software, the method further includes:
and when the transaction completion instruction of the transaction software is not received, controlling and prolonging the screen-on time of the terminal.
The screen-on time of the terminal is preset by a user, when the transaction is not completed, the screen-on time set by the terminal is up, the terminal will be turned off, and the transaction can be influenced at the moment, so that when the transaction completion instruction of the transaction software is not received, namely the transaction is still in progress, the screen-on time of the terminal can be controlled and prolonged, the transaction requirement of the user is met, and the user experience is improved.
Further, the terminal is intelligent wrist-watch or intelligent bracelet, correspondingly, when not receiving transaction completion instruction of transaction software, the bright screen time of control extension terminal includes:
and when a transaction completion instruction of transaction software is not received, controlling to enlarge the wrist lifting angle range of the wrist lifting bright screen of the terminal and the time of the bright screen of the terminal, and adjusting the display angle of the transaction code on the terminal according to the detection information of the gyroscope and the gravity sensor.
The bright screen of wrist of lifting of intelligence wrist-watch or intelligent bracelet corresponds and has certain angle of predetermineeing, when the turned angle of intelligence wrist-watch and intelligent bracelet is greater than when predetermineeing the angle, then control intelligence wrist-watch or intelligent bracelet bright screen, when transaction software does not accomplish the transaction, can reduce and predetermine the angle to realize increasing the bright screen angle scope of wrist of lifting of intelligence wrist-watch or intelligent bracelet, guarantee that the user rotates intelligence wrist-watch or intelligent bracelet at a small margin and also can start bright screen. The wrist-lifting angle range of the wrist-lifting bright screen is enlarged, and the bright screen time is increased, so that the terminal is always in a bright screen state to facilitate transaction of a user when the transaction is not completed.
The visual angles of the user and the transaction opposite side are opposite, so that the display angle of the transaction code at the terminal is adjusted through the detection information of the gyroscope and the gravity sensor, the angle which is convenient for the user to check can be converted into the angle which is convenient for the transaction opposite side to check, and the scanning convenience of the transaction opposite side is improved.
Example two
Fig. 2 is a flowchart of a transaction control method according to a second embodiment of the present invention. On the basis of the embodiment, the embodiment of the invention further increases the step information of the starting calculation user; and determining whether to finish the operation of displaying the transaction code on the terminal screen or not according to the walking information.
Correspondingly, the method of the embodiment comprises the following steps:
s210, receiving a starting instruction of a transaction code of the terminal transaction software, and monitoring the transaction process of the transaction software.
After receiving the starting instruction of the transaction code of the terminal transaction software, the method further comprises the following steps:
and starting a preset screen-off mechanism of the terminal, wherein the preset screen-off mechanism turns off the screen under a preset gesture.
The terminal of this embodiment uses intelligent wrist-watch and intelligent bracelet as the example, and the mechanism of going out the screen that uses in the present terminal only can bright the screen under specific gesture, all goes out the screen under non-specific gesture. The preset screen-off mechanism in this embodiment is different from a screen-off mechanism used in a current terminal, and the screen is turned off only under a specific gesture, and is turned on under other gestures, so that the screen-on range is enlarged, wherein the specific gesture may be, for example, a hand-down angle. The screen-on mechanism is started along with the starting of the payment software, so that the multi-angle operation of a user when using the payment software is facilitated, and the condition that the screen of a terminal is turned off cannot be caused.
S220, starting to calculate walking information of the user, wherein the walking information at least comprises: number of steps, step size, walking distance, and walking speed.
And S230, determining to display the transaction code or finish the display of the transaction code on the terminal screen according to the preset walking information.
Wherein, S220 and S230 and S210 can be performed synchronously. The walking information may be, for example, the number of steps, step size, distance, and speed. The preset walking information may be, for example, walking information of the user while in line, or walking information of the user after the user transaction is completed. The walking speed and the walking step length of the user are different when the user is in queue and after the transaction is completed, so that the user can distinguish whether the user opens the software in the queuing process for payment in advance or leaves at a normal speed after the payment. Thus, whether to continuously open the software or close the software is confirmed. Specifically, when the user is determined to open the software in advance in the queuing process, the transaction code continues to be displayed, and when a transaction completion instruction of the transaction software is received and the user is detected to leave at a normal speed, the transaction code is displayed on the terminal.
And S240, when a transaction completion instruction of the transaction software is received, controlling to end the display of the transaction code on a terminal screen.
According to the technical scheme of the embodiment, whether the display of the transaction code on the terminal is finished or not is determined according to the walking information of the user, so that the accurate judgment of the user state is realized, the timeliness of finishing the transaction code is improved, and the transaction safety is ensured.
EXAMPLE III
Fig. 3 is a flowchart of a transaction control method according to a third embodiment of the present invention. On the basis of the embodiment, the embodiment of the invention further optimizes the operation of controlling and ending the display of the transaction code on the terminal screen when the transaction completion instruction of the transaction software is received.
Correspondingly, the method of the embodiment comprises the following steps:
s310, receiving a starting instruction of a transaction code of the terminal transaction software, and monitoring the transaction process of the transaction software.
And S320, starting the step number of the pedometer in the detection terminal when receiving a transaction completion instruction of the transaction software.
When the user finishes the transaction, the user leaves the transaction place, the step number of the pedometer in the terminal is increased, and therefore the step number of the pedometer in the detection terminal can indicate that the transaction is finished without displaying a transaction code.
S330, when the step number in the pedometer is increased by a preset step number value, controlling to end the display of the transaction code on a terminal screen.
When the step number of the pedometer is increased by a preset step number value, wherein the preset step number value can be 10 steps, for example, the user can be determined to leave the transaction place, the transaction is completed or quit the display of the transaction code on a terminal screen at the moment, so that the transaction code can be prevented from being illegally stolen or the user is prevented from using other application programs, and the user experience is improved.
According to the embodiment of the invention, after the transaction is completed, when the step number of the pedometer in the terminal is increased by the preset value, the display of the transaction code is controlled to be finished, so that the transaction code is accurately quitted, the transaction code is prevented from being illegally stolen or other application programs are prevented from being used by a user, and the user experience is improved.
Example four
Fig. 4 is a flowchart of a transaction control method according to a fourth embodiment of the present invention. On the basis of the above embodiment, the embodiment of the present invention further optimizes the operation of controlling to end the display of the transaction code on the terminal screen when the transaction completion instruction of the transaction software is received.
S410, receiving a starting instruction of a transaction code of the terminal transaction software, and monitoring the transaction process of the transaction software.
And S420, when a transaction completion instruction of the transaction software is received, starting first positioning information of a positioning device in the detection terminal.
The positioning device may be, for example, a GPS module in the terminal, and the transaction location of the user may be determined by the positioning device, and the completion of the user transaction may be further determined by the change of the location of the user, and the transaction code may be exited.
And S430, after the preset time, restarting second positioning information in the positioning device in the detection terminal, and when the distance between the first positioning information and the second positioning information is greater than a preset distance threshold value, controlling to finish the display of the transaction code on the terminal screen.
After the preset time, when the distance between the position of the user and the position of the user transaction is greater than the preset distance threshold, the user can be shown to leave the transaction place after the transaction is completed, the display of the transaction code is controlled, the transaction code can be prevented from being illegally stolen or the user is prevented from using other application programs, and the user experience is improved.
According to the embodiment of the invention, after the transaction is completed, the user is further determined to finish the transaction through the positioning information of the positioning device in the terminal, the transaction code is not required to be continuously displayed on the terminal screen, the transaction code is accurately exited, the transaction code is prevented from being illegally stolen or the user is prevented from using other application programs, and the user experience is improved.
EXAMPLE five
Fig. 5 is a flowchart of a transaction control method according to a fifth embodiment of the present invention. On the basis of the above embodiment, the embodiment of the present invention further optimizes the operation of controlling to end the display of the transaction code on the terminal screen when the transaction completion instruction of the transaction software is received.
And S510, receiving a starting instruction of a transaction code of the terminal transaction software, and monitoring the transaction process of the transaction software.
And S520, starting the screen state of the detection terminal when receiving a transaction completion instruction of the transaction software.
The screen of the terminal is set by a user for displaying time, when the terminal misoperation exceeds the set displaying time of the user, the screen state of the terminal is a screen-off state, and when the terminal is screen-off, the user does not need to perform transaction, and the transaction two-dimensional code does not need to be displayed on the screen of the terminal.
And S530, when the screen state of the terminal is a screen-off state, controlling to end the display of the transaction code on the screen of the terminal.
When the screen state of the terminal is the screen-off state, the user does not need to perform transaction, the transaction code is controlled to be displayed on the screen of the terminal, the transaction code can be only quitted from being displayed, the transaction software continues to run in the background, and the convenience of reusing the transaction software by the user is ensured.
According to the embodiment of the invention, after the transaction is finished, the transaction is further determined to be finished by detecting the screen state of the terminal without continuously displaying the transaction code on the screen of the terminal, so that the transaction code is accurately exited, the transaction code is prevented from being illegally stolen or the user is prevented from using other application programs, and the user experience is improved.
EXAMPLE six
Fig. 6 is a block diagram of a transaction control device according to a sixth embodiment of the present invention. The device is used for executing a transaction control method provided by any embodiment. The device includes:
the instruction receiving module 610 is configured to receive a starting instruction of a transaction code of the terminal transaction software and monitor a transaction process of the transaction software;
and a display ending module 620, configured to control ending of the display of the transaction code on the terminal screen when a transaction completion instruction of the transaction software is received.
Further, the display ending module 620 is specifically configured to:
when a transaction completion instruction of transaction software is received, starting the step number of a pedometer in a detection terminal;
and when the step number in the pedometer is increased by a preset step number value, controlling to finish the display of the transaction code on a terminal screen.
Further, the display ending module 620 is specifically configured to:
when a transaction completion instruction of transaction software is received, starting first positioning information of a positioning device in a detection terminal;
and after the preset time, restarting second positioning information in the positioning device in the detection terminal, and controlling to finish the display of the transaction code on the terminal screen when the distance between the first positioning information and the second positioning information is greater than a preset distance threshold value.
Further, the apparatus further comprises: the preset screen-off mechanism starting module is used for starting a preset screen-off mechanism of the terminal after receiving a starting instruction of a transaction code of the terminal transaction software, and the preset screen-off mechanism turns off the screen under a preset gesture.
Further, the apparatus further comprises: a walking information calculation module to:
initiating a calculation of walking information for a user, wherein the walking information comprises at least: the number of steps, the step length,
Walking distance and walking speed;
and determining to display the transaction code or finishing the display of the transaction code on a terminal screen according to the preset walking information.
Further, the terminal is intelligent wrist-watch or intelligent bracelet, and correspondingly, the device still includes: the screen-lighting time control module is specifically configured to: after a starting instruction of a transaction code of the terminal transaction software is received and the transaction progress of the transaction software is monitored, when a transaction completion instruction of the transaction software is not received, the wrist-lifting angle range of the wrist-lifting bright screen of the terminal is controlled to be enlarged.
The transaction control device provided by the sixth embodiment of the invention improves the transaction security and improves the user experience.
The transaction control device provided by the embodiment of the invention can execute the transaction control method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a terminal according to a seventh embodiment of the present invention, as shown in fig. 7, the terminal includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the terminal may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70, the memory 71, the input device 72 and the output device 73 in the terminal may be connected by a bus or other means, as exemplified by a bus connection in fig. 7.
The memory 71 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the instruction receiving module 710 and the display ending module 720) corresponding to the transaction control method in the embodiment of the present invention. The processor 70 executes various functional applications and data processing of the terminal by running software programs, instructions and modules stored in the memory 71, that is, implements the above-described transaction control method.
The memory 71 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 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 non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 73 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a transaction control method, the method including:
receiving a starting instruction of a transaction code of terminal transaction software, and monitoring a transaction process of the transaction software;
and when a transaction completion instruction of the transaction software is received, controlling to end the display of the transaction code on the terminal screen.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the transaction control method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.