One kind transaction control method, device, terminal and storage medium
Technical field
The present embodiments relate to control technology, more particularly to a kind of transaction control method, device, terminal and storage to be situated between
Matter.
Background technology
At present, the use of intelligent terminal is more and more frequent, and compared with cash transaction, people increasingly tend to electronics friendship
Easily, the frequency of use of the electronic transaction software thus in intelligent terminal is higher and higher.How to ensure that the safety of electronic transaction enjoys
Concern.
During electronic transaction, people commonly use the transaction code in electronic transaction software, and transaction code includes transaction two
Tie up code and transaction bar code.When user completes to merchandise, except non-user exits transaction software manually, otherwise transaction code will not be automatic
Exit, transaction code is shown on the display interface of intelligent terminal always, thus causes transaction code to be easily stolen, and brings the peace of transaction
Full property is poor, unlocks again after user's screen locking, and transaction code is still displayed on the screen, and disturbs normal use of the user to terminal,
Bring poor user experience.
The content of the invention
The embodiment of the present invention provides a kind of transaction control method, device, terminal and storage medium, solves current transaction software
In transaction code cannot automatically exit from, bring transaction dangerous, the problem of poor user experience.
In a first aspect, an embodiment of the present invention provides one kind transaction control method, this method includes:
The enabled instruction of the transaction code of receiving terminal transaction software, and the transaction process of monitoring trading software;
When instruction is completed in the transaction for receiving transaction software, control terminates the transaction code on a terminal screen aobvious
Show.
Further, described when instruction is completed in the transaction for receiving transaction software, control terminates the transaction code at end
The display on screen is held, including:
When instruction is completed in the transaction for receiving transaction software, start the step number of the pedometer in detection terminal;
When the default step Numerical of the step number increase in the pedometer, control terminates the transaction code on a terminal screen
Display.
Further, described when instruction is completed in the transaction for receiving transaction software, control terminates the transaction code at end
The display on screen is held, including:
When instruction is completed in the transaction for receiving transaction software, start the first positioning letter of the positioner in detection terminal
Breath;
By the second location information in preset time and then the secondary positioner started in detection terminal, when first
When the distance between location information and the second location information are more than pre-determined distance threshold value, control terminates the transaction code in end panel
Display on curtain.
Further, after the enabled instruction of the transaction code of receiving terminal transaction software, further include:
Start the default screen mechanism of going out of terminal, the default screen mechanism of going out is gone out screen under default gesture.
Further, this method further includes:
Start the walking information for calculating user, wherein the walking information includes at least:Step number, step-length,
Walking distance and walking speed;
According to default walking information, display transaction code or the display of code on a terminal screen of closing the trade are determined.
Further, the terminal is intelligent watch or Intelligent bracelet, correspondingly in the transaction of receiving terminal transaction software
The enabled instruction of code, and after the transaction process of monitoring trading software, further include:
When instruction is completed in the transaction for not receiving transaction software, the lift wrist angle model of the lift bright screen of wrist of control increase terminal
Enclose.
Second aspect, the embodiment of the present invention additionally provide a kind of transaction control device, which includes:
Command reception module, for the enabled instruction of the transaction code of receiving terminal transaction software, and monitoring trading software
Transaction process;
Terminate module is shown, for when instruction is completed in the transaction for receiving transaction software, control to terminate the transaction code
Display on a terminal screen.
Further, the display terminate module, is specifically used for:
When instruction is completed in the transaction for receiving transaction software, start the step number of the pedometer in detection terminal;
When the default step Numerical of the step number increase in the pedometer, control terminates the transaction code on a terminal screen
Display.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, and the terminal includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processing
Device realizes the transaction control method as described in any in first aspect of the embodiment of the present invention.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer
Program, realizes the transaction control method as described in any in first aspect of the embodiment of the present invention when which is executed by processor.
The embodiment of the present invention is by the transaction process of monitoring trading software, and after transaction software transaction is completed, control is tied
The display of beam transaction code on a terminal screen, can also show easily quilt on a terminal screen after the transaction has been completed to avoid transaction code
Criminal, which steals, brings the dangerous of transaction, and when user is again started up terminal, transaction code is not present on terminal screen,
It is not required user to exit the display of transaction code manually, improves user experience.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow diagram for transaction control method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of control method of merchandising provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for transaction control method that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow diagram for transaction control method that the embodiment of the present invention four provides;
Fig. 5 is a kind of flow diagram for transaction control method that the embodiment of the present invention five provides;
Fig. 6 is a kind of structure diagram for transaction control device that the embodiment of the present invention six provides;
Fig. 7 is a kind of structure diagram for terminal that the embodiment of the present invention seven provides.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, technical scheme is clearly and completely described by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under the premise of creative work, belong to the scope of protection of the invention.
Embodiment one
Fig. 1 is a kind of flow chart for transaction control method that the embodiment of the present invention one provides.The technical solution of the present embodiment
It can be adapted for when merchandising completion, the situation for the display of code on a terminal screen of closing the trade.This method can be by the present invention
One kind that embodiment provides merchandises control device to perform, which can be realized by the way of software and/or hardware, and be matched somebody with somebody
It is placed in terminal and applies, terminal terminal such as can be smart mobile phone, Intelligent bracelet, intelligent watch, tablet computer.This method
Specifically include following operation:
S110, receiving terminal transaction software transaction code enabled instruction, and the transaction process of monitoring trading software.
User can start the transaction code in transaction software, transaction code when using terminal transaction software is traded
Including payment code and gathering code, it can be the form of bar code or the form of Quick Response Code, transaction code is supplied to transaction
Other side, counterpart are scanned transaction code using scanning device to realize transaction.Generation starts when user starts transaction code
Instruction, which is sent to terminal used by a user, terminal, starts the transaction process of monitoring trading software.
S120, when receive transaction software transaction complete instruction when, control terminate the transaction code on a terminal screen
Display.
Transaction code is completed to merchandise after being completed by scanning device scanning by counterpart, and instruction hair is completed in generation transaction
Send to terminal, terminal receives the transaction and completes after instructing, and control terminates the display of the transaction code on a terminal screen.
The embodiment of the present invention is by the transaction process of monitoring trading software, and after transaction software transaction is completed, control is tied
The display of beam transaction code on a terminal screen, can also show easily quilt on a terminal screen after the transaction has been completed to avoid transaction code
Criminal, which steals, brings the dangerous of transaction, and when user is again started up terminal, transaction code is not present on terminal screen,
It is not required user to exit the display of transaction code manually, improves user experience.
In another preferred embodiment of the present embodiment, in the enabled instruction of the transaction code of receiving terminal transaction software,
And after the transaction process of monitoring trading software, further include:
When instruction is completed in the transaction for not receiving transaction software, control extends the bright screen time of terminal.
The bright screen time of terminal is that user is set in advance, when transaction has not been completed, the bright screen time of terminal profile
It has been arriving that, terminal will go out screen, can influence the progress of transaction at this time, thus, detecting that the transaction for not receiving transaction software is complete
Into during instruction, that is, merchandise and also carrying out, the bright screen time for extending terminal can be controlled, to meet needs that user is traded,
Improve user experience.
Further, the terminal is intelligent watch or Intelligent bracelet, correspondingly, described to receive transaction software
When instruction is completed in transaction, the bright screen time that control extends terminal includes:
When instruction is completed in the transaction for not receiving transaction software, the lift wrist angle model of the lift bright screen of wrist of control increase terminal
Enclose the time with the bright screen of terminal, and according to the detection information of gyroscope and gravity sensor, display of the adjustment transaction code in terminal
Angle.
Intelligent watch or the bright screen of lift wrist of Intelligent bracelet are corresponding with certain predetermined angle, when intelligent watch and Intelligent bracelet
Rotational angle when being more than predetermined angle, then intelligent watch or the bright screen of Intelligent bracelet are controlled, when transaction software is not completed to merchandise
When, predetermined angle can be reduced, to realize the bright screen angular range of lift wrist of increase intelligent watch or Intelligent bracelet, ensure that user exists
Bright screen can also be started by rotating intelligent watch or Intelligent bracelet by a small margin.Increase is lifted the lift wrist angular range of the bright screen of wrist and is increased
The bright screen time can fully ensure that terminal facilitates user to be handed in bright screen state all the time when no completion transaction
Easily.
The visual angle of user and counterpart are opposite, thus by the detection information of gyroscope and gravity sensor, are adjusted
Angles of display of the whole transaction code in terminal, it is possible to achieve checked by the angular transition for facilitating user to check for convenience of counterpart
Angle, improves the scanning convenience of counterpart.
Embodiment two
Fig. 2 is a kind of flow chart of control method of merchandising provided by Embodiment 2 of the present invention.The embodiment of the present invention is above-mentioned
On the basis of embodiment, the walking information for starting and calculating user is further increased;According to the walking information, it is determined whether knot
The operation of the display of beam transaction code on a terminal screen.
Correspondingly, the method for the present embodiment includes:
S210, receiving terminal transaction software transaction code enabled instruction, and the transaction process of monitoring trading software.
After the enabled instruction of the transaction code of receiving terminal transaction software, further include:
Start the default screen mechanism of going out of terminal, the default screen mechanism of going out is gone out screen under default gesture.
For the terminal of the present embodiment by taking intelligent watch and Intelligent bracelet as an example, the screen mechanism of going out used at present in terminal only has spy
Determine the bright screen of ability under gesture, be the screen that goes out under nonspecific gesture.In default go out screen mechanism and current terminal in the present embodiment
The screen mechanism difference of going out used, only can just go out screen under certain gestures, be bright screen under other gestures, increase bright screen
Scope, wherein certain gestures for example can be the angles that hand hangs down.The bright screen mechanism is opened with the startup with payment facility
It is dynamic, facilitate multi-angle of user when using payment facility to operate, without causing terminal to be gone out the situation of screen.
S220, start the walking information for calculating user, wherein the walking information includes at least:Step number, step-length, walking away from
From and walking speed.
The default walking information of S230, basis, determines display transaction code or the display of code on a terminal screen of closing the trade.
Wherein, S220 and S230 and S210 can be carried out synchronously.Walking information for example can be step number, step-length, distance and
Speed.Default walking information for example can be that walking information or customer transaction of the user when being lined up are completed
The walking information walked afterwards.The speed walked and step-length of the user when being lined up and after the completion of transaction are all different
, it is possible to it is to open software preparation payment in advance in queuing process to differentiate user, or after payment, normal speed
Degree leaves.With this come confirm to be to continue with open software, or close software.Specifically, when definite user is in queuing process
Software is opened in advance, then continues to show transaction code, when instruction is completed in the transaction for receiving transaction software, and detects user
Left with normal speed, then display of the code in terminal of closing the trade.
S240, when receive transaction software transaction complete instruction when, control terminate the transaction code on a terminal screen
Display.
The technical solution of the present embodiment, determines whether code showing in terminal of closing the trade according to the walking information of user
Show, realize the accurate judgement to User Status, improve the promptness that transaction code terminates, ensure transaction security.
Embodiment three
Fig. 3 is a kind of flow chart for transaction control method that the embodiment of the present invention three provides.The embodiment of the present invention is above-mentioned
On the basis of embodiment, further optimize described when instruction is completed in the transaction for receiving transaction software, control terminates described
The operation of the display of transaction code on a terminal screen.
Correspondingly, the method for the present embodiment includes:
S310, receiving terminal transaction software transaction code enabled instruction, and the transaction process of monitoring trading software.
S320, when receive transaction software transaction complete instruction when, start detection terminal in pedometer step number.
When user completes to merchandise, loco can be left, therefore the step number of the pedometer in terminal can increase, because
The step number of pedometer in this detection terminal can represent that user this time merchandises completion, without showing transaction code.
S330, when the default step Numerical of the step number increase in the pedometer, control terminates the transaction code in end panel
Display on curtain.
When the default step Numerical of step number increase of pedometer, it for example can be 10 steps to preset step Numerical, then can determine user
Loco is left, transaction is completed or, exits the display of transaction code on a terminal screen at this time, can be illegal to avoid transaction code
Steal or hinder user to use other applications, improve user experience.
The embodiment of the present invention is by after completion of transactions, when the step number of the pedometer in terminal increases default value, controlling
Close the trade the display of code, realize and the accurate of transaction code is exited, avoid transaction code from illegally being stolen or hindered user's use
Other applications, improve user experience.
Example IV
Fig. 4 is a kind of flow chart for transaction control method that the embodiment of the present invention four provides.The embodiment of the present invention is above-mentioned
On the basis of embodiment, further optimize described when instruction is completed in the transaction for receiving transaction software, control terminates described
The operation of the display of transaction code on a terminal screen.
S410, receiving terminal transaction software transaction code enabled instruction, and the transaction process of monitoring trading software.
S420, when receive transaction software transaction complete instruction when, start detection terminal in positioner first
Location information.
Positioner for example can be the GPS module in terminal, and the loco of user can be determined by positioner,
By the change of user locations, it may further determine that customer transaction is completed, transaction code can be exited.
S430, by preset time and then it is secondary start detection terminal in positioner in the second location information, when
When the distance between first location information and the second location information are more than pre-determined distance threshold value, control terminates the transaction code at end
Hold the display on screen.
After preset time, when the distance between the position of user and the position of customer transaction are more than pre-determined distance threshold value,
It may indicate that user completes transaction and have left loco, control the display of transaction code, can illegally be stolen to avoid transaction code
Or hinder user to use other applications, improve user experience.
The embodiment of the present invention by the location information of the positioner in terminal by after completion of transactions, being further determined that
User finishes to merchandise, it is not necessary to which transaction code continues display on a terminal screen, realizes and the accurate of transaction code is exited, avoid
Transaction code is illegally stolen or is hindered user to use other applications, improves user experience.
Embodiment five
Fig. 5 is a kind of flow chart for transaction control method that the embodiment of the present invention five provides.The embodiment of the present invention is above-mentioned
On the basis of embodiment, further optimize described when instruction is completed in the transaction for receiving transaction software, control terminates described
The operation of the display of transaction code on a terminal screen.
S510, receiving terminal transaction software transaction code enabled instruction, and the transaction process of monitoring trading software.
S520, when instruction is completed in the transaction for receiving transaction software, start the screen state of detection terminal.
The screen of terminal is set by the user the display time, after the setting that terminal maloperation exceedes user shows the time,
Terminal screen state is the state of screen of going out, terminal for go out screen when, may indicate that user without be traded again, transaction Quick Response Code is not
Need to be then displayed on terminal screen.
S530, when the terminal screen state for go out screen state when, control terminate the transaction code on a terminal screen
Display.
The screen state of terminal is when going out screen state, and for user without be traded again, control closes the trade code in end panel
Display on curtain, can simply exit the display of transaction code, and transaction software continues running background, ensures that user reuses transaction
The convenience of software.
The embodiment of the present invention is by after completion of transactions, by the screen state of detection terminal, further determining that and having merchandised
Into, it is not necessary to transaction code continues display on a terminal screen, realizes and the accurate of transaction code is exited, avoid transaction code illegal
Steal or hinder user to use other applications, improve user experience.
Embodiment six
Fig. 6 is a kind of structure diagram for transaction control device that the embodiment of the present invention six provides.The device is used to perform
State a kind of transaction control method that any embodiment is provided.The device includes:
Command reception module 610, for the enabled instruction of the transaction code of receiving terminal transaction software, and monitoring trading software
Transaction process;
Terminate module 620 is shown, for when instruction is completed in the transaction for receiving transaction software, control to terminate the transaction
The display of code on a terminal screen.
Further, the display terminate module 620, is specifically used for:
When instruction is completed in the transaction for receiving transaction software, start the step number of the pedometer in detection terminal;
When the default step Numerical of the step number increase in the pedometer, control terminates the transaction code on a terminal screen
Display.
Further, the display terminate module 620, is specifically additionally operable to:
When instruction is completed in the transaction for receiving transaction software, start the first positioning letter of the positioner in detection terminal
Breath;
By the second location information in preset time and then the secondary positioner started in detection terminal, when first
When the distance between location information and the second location information are more than pre-determined distance threshold value, control terminates the transaction code in end panel
Display on curtain.
Further, which further includes:Default screen mechanism starting module of going out, for the friendship in receiving terminal transaction software
After the enabled instruction of easy code, start the default screen mechanism of going out of terminal, the default screen mechanism of going out is gone out screen under default gesture.
Further, which further includes:Walking information computing module, is used for:
Start the walking information for calculating user, wherein the walking information includes at least:Step number, step-length,
Walking distance and walking speed;
According to default walking information, display transaction code or the display of code on a terminal screen of closing the trade are determined.
Further, the terminal is intelligent watch or Intelligent bracelet, and correspondingly, which further includes:Bright screen time control
Molding block is specifically used for:In the enabled instruction of the transaction code of receiving terminal transaction software, and the transaction process of monitoring trading software
Afterwards, when instruction is completed in the transaction for not receiving transaction software, the lift wrist angular range of the lift bright screen of wrist of control increase terminal.
The transaction control device that the embodiment of the present invention six provides, improves transaction security, improves user experience.
The transaction control device that the embodiment of the present invention is provided can perform the transaction control that any embodiment of the present invention is provided
Method processed, possesses the corresponding function module of execution method and beneficial effect.
Embodiment seven
Fig. 7 is a kind of structure diagram for terminal that the embodiment of the present invention seven provides, as shown in fig. 7, the terminal includes place
Manage device 70, memory 71, input unit 72 and output device 73;The quantity of processor 70 can be one or more in terminal,
In Fig. 7 by taking a processor 70 as an example;Processor 70, memory 71, input unit 72 and output device 73 in terminal can be with
Connected by bus or other modes, in Fig. 7 exemplified by being connected by bus.
Memory 71 is used as a kind of computer-readable recording medium, and journey is can perform available for storage software program, computer
Sequence and module, if the corresponding programmed instruction/module of transaction control method in the embodiment of the present invention is (for example, command reception mould
Block 710 and display terminate module 720).Processor 70 is stored in software program, instruction and mould in memory 71 by operation
Block, so as to perform various function application and the data processing of terminal, that is, realizes above-mentioned transaction control method.
Memory 71 mainly includes storing program area and storage data field, wherein, storing program area can storage program area,
Application program needed at least one function;Storage data field can be stored uses created data etc. according to terminal.In addition,
Memory 71 can include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 71 can be wrapped further
Network connection to equipment can be passed through relative to the remotely located memory of processor 70, these remote memories by including.Above-mentioned net
The example of network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 72 can be used for the numeral or character information for receiving input, and produce with the user setting of equipment and
The related key signals input of function control.Output device 73 may include the display devices such as display screen.
Embodiment eight
The embodiment of the present invention eight also provides a kind of storage medium for including computer executable instructions, and the computer can be held
Row instruction is used to perform a kind of transaction control method when being performed by computer processor, and this method includes:
The enabled instruction of the transaction code of receiving terminal transaction software, and the transaction process of monitoring trading software;
When instruction is completed in the transaction for receiving transaction software, control terminates the transaction code on a terminal screen aobvious
Show.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The method operation that executable instruction is not limited to the described above, can also carry out the transaction control that any embodiment of the present invention is provided
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior art
Part can be embodied in the form of software product, which can be stored in computer-readable recording medium
In, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the present invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.