The content of the invention
The purpose of the application is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the application is to propose a kind of synchronous method of transaction.This process simplify transaction flow,
The speed for triggering the transaction that places an order is improved, while the feedback speed of transaction is also improved, so that user can obtain preferably
Judge, also, while user time is saved, also can more accurately ensure the correctness that user data is safeguarded.
Second purpose of the application is to propose a kind of synchronization system of transaction.
The 3rd purpose of the application is to propose a kind of security server.
For up to above-mentioned purpose, the synchronous method of the transaction of the embodiment of the application first aspect comprises the following steps:Receive visitor
The transaction request at family end;It is traded according to the transaction request;To transaction data of the client in preset time period
Collected and generate synchronous documents;And the synchronous documents are sent to the client in the nontransaction time synchronized.
The synchronous method of the transaction of the embodiment of the present application, security server is traded after the transaction request of client is received,
And transaction data of the client in preset time period is collected and synchronous documents are generated, and will be same in the nontransaction time
Step file sends to client and synchronized.By above-mentioned technical proposal, compared with conventional transaction flow, transaction is optimized
Flow, that is, the step of eliminating in the process of exchange that places an order to data maintenance so that the client transaction flow that places an order is more simple,
The transaction that places an order is triggered more quick, while also make it that the feedback of transaction is quicker, so that user can preferably be sentenced
It is disconnected, also, in the nontransaction time with file synchronization by way of realize data syn-chronization, save user time while,
Also the correctness that user data is safeguarded can more accurately be ensured.
For up to above-mentioned purpose, the synchronization system of the transaction of the application second aspect embodiment, including:Client and security service
Device, wherein, the client for sending transaction request to the security server, and receives the security server
The synchronous documents of transmission are simultaneously synchronized;The security server, for being traded according to the transaction request, and to institute
Transaction data of the client in preset time period is stated to be collected and generate synchronous documents, and will be described in the nontransaction time
Synchronous documents are sent to the client.
The transaction synchronization system of the embodiment of the present application, the transaction request of client is received by security server, and according to the friendship
Easily request is traded, and transaction data of the client in preset time period is collected and synchronous documents are generated, and
Synchronous documents are sent to client in the nontransaction time.It is excellent compared with conventional transaction flow by above-mentioned technical proposal
Transaction flow is changed, that is, the step of eliminating in the process of exchange that places an order to data maintenance so that client places an order transaction flow
It is more simple, triggering place an order transaction it is more quick, while also cause transaction feedback it is quicker so that user can obtain
To more preferable judgement, also, in the nontransaction time with file synchronization by way of realize data syn-chronization, saving user
While time, it also can more accurately ensure the correctness that user data is safeguarded.
For up to above-mentioned purpose, the security server of the application third aspect embodiment, including:First receiving module, for connecing
Receive the transaction request of client;Transaction modules, for being traded according to the transaction request;Generation module, for institute
Transaction data of the client in preset time period is stated to be collected and generate synchronous documents;First sending module, for non-
The synchronous documents are sent to the client and synchronized by exchange hour.
The security server of the embodiment of the present application, the transaction of the client received by transaction modules according to the first receiving module
Request is traded, and generation module is collected to transaction data of the client in preset time period and generates synchronous documents,
Synchronous documents are sent to client and synchronized by the first sending module in the nontransaction time.By above-mentioned technical proposal, with biography
System transaction flow compares, and optimizes transaction flow, that is, the step of eliminating in the process of exchange that places an order to data maintenance makes
The client transaction flow that places an order is more simple, the triggering transaction that places an order is more quick, while also causing the feedback of transaction more to accelerate
Speed so that user can preferably be judged, also, in the nontransaction time with file synchronization by way of realize
Data syn-chronization, while user time is saved, also can more accurately ensure the correctness that user data is safeguarded.
The aspect and advantage that the application is added will be set forth in part in the description, and partly will become bright from the following description
It is aobvious, or recognized by the practice of the application.
Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein identical from beginning to end
Or similar label represents same or similar element or the element with same or like function.Retouched below with reference to accompanying drawing
The embodiment stated is exemplary, it is intended to for explaining the application, and it is not intended that limitation to the application.
Below with reference to the accompanying drawings synchronous method, system and the security server of the transaction of the embodiment of the present application described.
Fig. 1 is the flow chart of the synchronous method of the transaction according to the application one embodiment.It should be noted that the application is real
Applying the synchronous method of the transaction of example can be described from security server side.
As shown in figure 1, the synchronous method of the transaction includes:
S110, receives the transaction request of client.
For example, it is assumed that the synchronous method of transaction is applied to security server, for convenience customer transaction, the security server institute
The client for merchandising and checking the functions such as Transaction Information with placing an order can be provided the user in system, the client can be installed
, can be with mobile terminal the hardware device of various operating systems (such as mobile phone, tablet personal computer, personal digital assistant have)
It is installed on terminal (such as PC (Personal Computer, personal computer) ends) etc..User can be by mobile terminal
Client in client or terminal carries out the transactional operation that places an order, and client receives the transaction request of user (for example, security
Transaction request) after, the transaction request can be sent to security server.Security server can receive visitor by network connection
The transaction request that family end is sent.
S120, is traded according to transaction request.
Specifically, after the transaction request of client is received, security server can perform corresponding according to the transaction request
Transactional operation, for example, buy the amount of money of certain branch stock, share etc., and after merchandising successfully, security server can be real-time
Successful information of merchandising is returned to client.
It is appreciated that in embodiments herein, while being traded according to transaction request, security server may be used also
In real time the status information that user has placed an order is returned to client.Client receive security server return feedback information when,
The feedback information can be supplied to user in real time so that user can recognize current stateful transaction in real time.
S130, is collected to transaction data of the client in preset time period and generates synchronous documents.
It should be noted that in the embodiment of the present application, preset time period can be any time section of same day securities trading,
For example, by taking Chinese Shanghai and Shenzhen share of market exchange hour as an example, the 9 of the same day:30-11:30,13:00-15:00.That is,
The preset time period can be some period of same day securities trading, can also be all periods of same day securities trading.
All periods of the embodiment of the present application using preset time period as same day securities trading are that example is described below.
In order to more accurately ensure the uniformity of user data, further, in one embodiment of the application,
The synchronous method of the transaction may also include:Record will it be sent to transaction file server per transaction, so that transaction file takes
Business device is collected to generate transaction data to transaction record;The synchronization request that reception transaction file server is sent, and according to
Synchronization request receives the transaction data that transaction file server is sent.
In order to simplify transaction flow, it is preferable that user data can be safeguarded in the nontransaction time, e.g., it can be handed on the same day
After the easy time terminates, security server record will be sent to transaction file server per transaction, wherein, this every friendship
Easily record can the mark comprising client, Transaction Information (such as transaction id, the amount of money, share).Transaction file server with
Client is designated unit, and All Activity record of each client within the day trade transaction time is collected, worked as
Transaction data in the Day Trading time.Transaction file server can send same after transaction data is obtained to security server
Step request, security server can connect after the synchronization request of transaction file server transmission is received according to the synchronization request
The transaction data that transaction file server is sent is received, wherein it is possible to understand, the transaction data can be comprising in the day trade transaction time
The transaction record of all clients with transactional operation.Thus, security server can be facilitated to be generated according to the transaction data same
Step file.
In embodiments herein, transaction data of the client in preset time period is collected and synchronous documents are generated
The process that implements may include:Extract the mark of the client in the transaction data that transaction file server is returned;According to visitor
The mark at family end is classified and collected to transaction data respectively, and the corresponding synchronous documents of each client are directed to generate.Its
In, in embodiments herein, the mark of the client can be user name ID (IDentity, identity number),
Or network identity (MAC (Media Access Control, media access control layer) address of such as client of client
Deng) etc..
For example, after day trade transaction terminates, the transaction data that security server can be returned first from transaction file server
In extract the mark of client, afterwards, dimension can be designated with client, be found out from the transaction data and belong to the visitor
The transaction data at family end, so as to obtain being directed to the corresponding synchronous documents of each client.
S140, synchronous documents are sent to client synchronize in the nontransaction time.
Wherein, in embodiments herein, the nontransaction time is the time after day trade transaction terminates.
For example, after day trade transaction terminates, synchronous documents are sent to corresponding client and carried out together by security server
Step.That is, after day trade transaction terminates, the same day can be traded the synchronization of the client of operation by security server
File is sent to the client, and the client is after the synchronous documents of itself are received, according to the synchronous documents by the client
The data at end are synchronized.It should be noted that in embodiments herein, during file synchronization, if should
There is mistake in the data of data and the client in synchronous documents, then the data directly in the synchronous documents, which are defined, is entangled
Just.
Thus, by after closing the transaction, being synchronized by the transaction record of all clients in the way of file, no
It only ensure that the synchronization of customer transaction data, it is thus also avoided that data are safeguarded during placing an order, simplify client and place an order transaction
Flow, save the customer transaction time, improve trading efficiency.
The synchronous method of the transaction of the embodiment of the present application, security server is traded after the transaction request of client is received,
And transaction data of the client in preset time period is collected and synchronous documents are generated, and will be same in the nontransaction time
Step file sends to client and synchronized.By above-mentioned technical proposal, compared with conventional transaction flow, transaction is optimized
Flow, that is, the step of eliminating in the process of exchange that places an order to data maintenance so that the client transaction flow that places an order is more simple,
The transaction that places an order is triggered more quick, while also make it that the feedback of transaction is quicker, so that user can preferably be sentenced
It is disconnected, also, in the nontransaction time with file synchronization by way of realize data syn-chronization, save user time while,
Also the correctness that user data is safeguarded can more accurately be ensured.
In order to realize above-described embodiment, the application also proposed a kind of synchronization system of transaction.
Fig. 2 is the structural representation of the synchronization system of the transaction according to the application one embodiment.As shown in Fig. 2 the transaction
Synchronization system include:Client 100 and security server 200.It is appreciated that the client 100 can be the application
The client for merchandising and checking the functions such as Transaction Information with placing an order that the synchronization system of the transaction of embodiment is provided the user,
The client 100 can be installed on mobile terminal, and (such as mobile phone, tablet personal computer, personal digital assistant have various operation systems
The hardware device of system), terminal (such as PC ends) can also be installed on.
Specifically, client 100 can be used for sending transaction request to security server 200, and receive security server 200
The synchronous documents of transmission are simultaneously synchronized.
Security server 200 can be used for being traded according to transaction request, and the friendship to client 100 in preset time period
Easy data are collected and generate synchronous documents, and send the synchronous documents to client 100 in the nontransaction time.
It should be noted that in the embodiment of the present application, preset time period can be any time section of same day securities trading, for example,
By taking Chinese Shanghai and Shenzhen share of market exchange hour as an example, the 9 of the same day:30-11:30,13:00-15:00.That is, this is pre-
If the period can be some period of same day securities trading, all periods of same day securities trading are can also be.Below
All periods of the embodiment of the present application using preset time period as same day securities trading are that example is described.
For example, user can carry out the transactional operation that places an order by the client 100 in the client 100 or terminal on mobile terminal,
Client 100 is received after the transaction request (for example, securities trading request) of user, can be sent to the transaction request
Security server 200.Security server 200 can receive the transaction request that client 100 is sent by network connection.Security
Server 200 can perform corresponding transactional operation after the transaction request of client 100 is received according to the transaction request,
For example, buying the amount of money of certain branch stock, share etc., and after merchandising successfully, it can return and merchandise into client 100 in real time
The information of work(.It is appreciated that in embodiments herein, while being traded according to transaction request, security service
Device 200 can also return to the status information that user has placed an order to client 100 in real time.Client 100 is receiving security service
During the feedback information that device 200 is returned, the feedback information can be supplied to user in real time so that user can recognize in real time to be worked as
Preceding stateful transaction.
In order to more accurately ensure the uniformity of user data, further, in one embodiment of the application,
Security server 200 can send the record per transaction to transaction file server, so that transaction file server is to transaction
Record is collected to generate transaction data, and receives the synchronization request that transaction file server is sent, and is asked according to synchronous
Ask and receive the transaction data that transaction file server is sent.
In order to simplify transaction flow, it is preferable that security server 200 can safeguard in the nontransaction time to user data,
Such as, can be after the day trade transaction time terminate, security server 200 record will be sent to transaction file service per transaction
Device, wherein, per transaction, record can include mark, Transaction Information (such as transaction id, the amount of money, the share of client 100 for this
Deng).Transaction file server is designated unit with client 100, to each client 100 within the day trade transaction time
All Activity record is collected, and obtains the transaction data in the day trade transaction time.Transaction file server is obtaining number of deals
After, synchronization request can be sent to security server 200, security server 200 is receiving transaction file server hair
After the synchronization request sent, the transaction data that transaction file server is sent can be received according to the synchronization request, wherein it is possible to
Understand, the transaction data can include the transaction record of all clients 100 with transactional operation in the day trade transaction time.By
This, can facilitate security server to generate synchronous documents according to the transaction data.
In embodiments herein, security server 200 is carried out to transaction data of the client 100 in preset time period
The process that implements for collecting and generating synchronous documents can be as follows:Extract the institute in the transaction data that transaction file server is returned
The mark of client 100 is stated, and transaction data is classified and collected respectively according to the mark of client 100, to generate
For the corresponding synchronous documents of each client 100.Wherein, in embodiments herein, the mark of the client
Can be user name ID or the network identity (MAC Address of such as client) of client etc..
For example, after day trade transaction terminates, the transaction that security server 200 can be returned first from transaction file server
Extracting data goes out the mark of client 100, afterwards, dimension can be designated with client 100, from the transaction data
The transaction data for belonging to the client 100 is found out, so as to obtain being directed to the corresponding synchronous documents of each client 100.
Finally, in the nontransaction time (time after such as terminating in day trade transaction), security server 200 can be carried out the same day
The synchronous documents of the client 100 of transactional operation are sent to the client 100.The client 100 is receiving the same of itself
After step file, the data of the client 100 are synchronized according to the synchronous documents.It should be noted that in the application
Embodiment in, during file synchronization, if the data of data in the synchronous documents and the client 100 are present
Mistake, then the data that client 100 can be directly in the synchronous documents, which are defined, is corrected.
The transaction synchronization system of the embodiment of the present application, the transaction request of client is received by security server, and according to the friendship
Easily request is traded, and transaction data of the client in preset time period is collected and synchronous documents are generated, and
Synchronous documents are sent to client in the nontransaction time.It is excellent compared with conventional transaction flow by above-mentioned technical proposal
Transaction flow is changed, that is, the step of eliminating in the process of exchange that places an order to data maintenance so that client places an order transaction flow
It is more simple, triggering place an order transaction it is more quick, while also cause transaction feedback it is quicker so that user can obtain
To more preferable judgement, also, in the nontransaction time with file synchronization by way of realize data syn-chronization, saving user
While time, it also can more accurately ensure the correctness that user data is safeguarded.
Synchronous method with the transaction that above-mentioned several embodiments are provided is corresponding, and a kind of embodiment of the invention also provides a kind of card
Certificate server, due to the synchronous method for the transaction that security server provided in an embodiment of the present invention is provided with above-mentioned several embodiments
It is corresponding, therefore the embodiment of the synchronous method in foregoing transaction is also applied for the security server that the present embodiment is provided,
It is not described in detail in the present embodiment.Fig. 3 is the structural representation of the security server according to the application one embodiment.Such as
Shown in Fig. 3, the security server can include:First receiving module 110, transaction modules 120, generation module 130 and
One sending module 140.
Specifically, the first receiving module 110 can be used for the transaction request for receiving client.
Wherein, in the embodiment of the present application, client can be but not limited to cell-phone customer terminal and computer client.
Transaction modules 120 can be used for being traded according to transaction request.
Generation module 130 can be used for collecting transaction data of the client in preset time period and generating synchronous documents.
It should be noted that in the application is embodiment, any time section when preset time can be day trade transaction.
In order to more accurately ensure the uniformity of user data, further, in one embodiment of the application,
As shown in figure 4, the security server can also include:Second sending module 150 and the second receiving module 160.
Wherein, the second sending module 150 can be used for record sending to transaction file server per transaction, so that transaction
File server is collected to generate transaction data to the transaction record.
Second receiving module 160 can be used for receiving the synchronization request that transaction file server is sent, and be received according to synchronization request
The transaction data that transaction file server is sent.
In embodiments herein, as shown in figure 4, the generation module 130 can include:Extracting sub-module 131 and life
Into submodule 132.
Wherein, extracting sub-module 131 can be used for the mark for extracting the client in the transaction data that transaction file server is returned.
Generation submodule 132 can be used for transaction data is classified and collected respectively according to the mark of client, to generate pin
Synchronous documents corresponding to each client.
First sending module 140 can be used for sending synchronous documents to client in the nontransaction time synchronizing.Wherein, exist
In the application embodiment, the nontransaction time can be the time after day trade transaction terminates.
The security server of the embodiment of the present application, the transaction of the client received by transaction modules according to the first receiving module
Request is traded, and generation module is collected to transaction data of the client in preset time period and generates synchronous documents,
Synchronous documents are sent to client and synchronized by the first sending module in the nontransaction time.By above-mentioned technical proposal, with biography
System transaction flow compares, and optimizes transaction flow, that is, the step of eliminating in the process of exchange that places an order to data maintenance makes
The client transaction flow that places an order is more simple, the triggering transaction that places an order is more quick, while also causing the feedback of transaction more to accelerate
Speed so that user can preferably be judged, also, in the nontransaction time with file synchronization by way of realize
Data syn-chronization, while user time is saved, also can more accurately ensure the correctness that user data is safeguarded.At this
In the description of application, it is to be understood that term " first ", " second " are only used for describing purpose, and it is not intended that indicating
Or imply relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, " first ", " second " are defined
Feature can express or implicitly include at least one this feature.In the description of the present application, " multiple " be meant that to
It is few two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ",
Or the description of " some examples " etc. means to combine specific features, structure, material or the feature bag that the embodiment or example are described
It is contained at least one embodiment of the application or example.In this manual, to the schematic representation of above-mentioned term necessarily
It is directed to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
Combined in an appropriate manner in individual or multiple embodiments or example.In addition, in the case of not conflicting, the skill of this area
Not be the same as Example or the feature of example and non-be the same as Example or example described in this specification can be combined by art personnel
And combination.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes one
Or more be used for executable instruction the step of realize specific logical function or process code module, fragment or part,
And the scope of the preferred embodiment of the application includes other realization, wherein order that is shown or discussing can not be pressed,
Including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application's
Embodiment person of ordinary skill in the field is understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered for real
The order list of the executable instruction of existing logic function, may be embodied in any computer-readable medium, for instruction
Execution system, device or equipment (such as computer based system including the system of processor or other can be performed from instruction
The system of system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating
Or transmission procedure uses for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment
Device.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With one or more cloth
The electrical connection section (electronic installation) of line, portable computer diskette box (magnetic device), random access memory (RAM), only
Reading memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and
Portable optic disk read-only storage (CDROM).In addition, computer-readable medium, which can even is that, to print described thereon
The paper of program or other suitable media, because can then be carried out for example by carrying out optical scanner to paper or other media
Edit, interpret or handled electronically to obtain described program with other suitable methods if necessary, then stored
In computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.In above-mentioned reality
Apply in mode, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage or
Firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA) is existing
Field programmable gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method is carried is can
To instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable recording medium,
The program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in the application each embodiment can be integrated in a processing module or each
Individual unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated module was both
It can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module with
The form of software function module realize and as independent production marketing or in use, can also be stored in one it is computer-readable
Take in storage medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and described above
Embodiments herein, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limitation to the application,
One of ordinary skill in the art can be changed to above-described embodiment, change, replacing and modification within the scope of application.