A kind of data interactive method, device and equipment
Technical field
This specification is related to field of computer technology more particularly to a kind of data interactive method, device and equipment.
Background technique
There are mass data interactions in dynamic web website, and above-mentioned interaction data mainly can be from browser
Data interaction between server, in addition, it is mutual that login, shopping or inquiry etc. can be used in user by above-mentioned data interaction
The Internet services.
In general, the mathematical logic in script data and webpage in webpage in dynamic web website be it is visible to user,
Therefore, other users (such as hacker) may crack user data or the business based on script data and mathematical logic
And replacement, so that the personal information etc. of user is carried out or gone to the true operation of analog subscriber.In general, can be obscured by front-end code
Scheme protects front-end business logical code, the data content of transmission is protected by encrypting and encoding, still, due to submitting to
The data format protocol of server end is fixed and appoints in advance, will lead to the business when the hack business in this way
After logic and Encryption Algorithm, user data is directly forged by exploitation attack script on a large scale, with spoofing server, to cause
Large-scale loss.Therefore, in data exchange process, a kind of safer data interaction solution is needed.
Summary of the invention
The purpose of this specification embodiment is to provide a kind of data interactive method, device and equipment, a kind of is more pacified with providing
Full data interaction scheme.
To realize that above-mentioned technical proposal, this specification embodiment are achieved in that
A kind of data interactive method that this specification embodiment provides, which comprises
The service request that receiving terminal apparatus is sent;
According to scheduled data protocol create-rule, data transmission rule corresponding with the service request is generated, it is described
Data transmission rule is used to the format to interaction data being converted into the data format that can be parsed by predetermined analysis mode
Except format;
The data transmission rule based on generation carries out data interaction with the terminal device.
It optionally, include service identification in the service request,
It is described that data transmission rule corresponding with the service request is generated according to scheduled data protocol create-rule,
Include:
It is raw according to scheduled data protocol create-rule if the service identification is the service identification of intended service
At data transmission rule corresponding with the service request.
Optionally, the data transmission rule includes that first data transmission sub-rule and the second data transmission are regular,
The data transmission rule based on generation carries out data interaction with the terminal device, comprising:
The first data transmission sub-rule is sent to the terminal device, so that the terminal device is according to described
One data transmission rule carries out data processing to data to be transmitted, and sends treated data to be transmitted;
When data to be transmitted that treated described in receive the terminal device and send, passed according to second data
Treated that data to be transmitted is parsed to described for defeated sub-rule, obtains the data to be transmitted.
It is optionally, described that the first data transmission sub-rule is sent to the terminal device, comprising:
Obtain the corresponding business datum of the service request;
The data of the first data transmission sub-rule are inserted into the business datum, it will be inserted with first number
The terminal device is sent to according to the business datum of transmission sub-rule.
Optionally, described according to scheduled data protocol create-rule, it generates data corresponding with the service request and passes
After defeated rule, the method also includes:
Determine the effective period of time of the data transmission rule;
The data transmission rule based on generation carries out data interaction with the terminal device, comprising:
It is and described if current time is in the effective period of time, the data transmission rule based on generation
Terminal device carries out data interaction.
Optionally, the first data transmission sub-rule includes mark transformation rule, data packet transformation rule, serializing rule
Then, one or more of interface configuration rule and redundant data rule.
Optionally, the data transmission rule further includes third data transmission rule,
When treated described in receive the terminal device and the send data to be transmitted, according to second number
According to transmission sub-rule, treated that data to be transmitted is parsed to described, obtains the data to be transmitted, comprising:
When data to be transmitted that treated described in receive the terminal device and send, passed according to the third data
Treated that data to be transmitted is formatted by described for defeated sub-rule, obtains the data to be transmitted of predetermined format;
The data to be transmitted of the predetermined format is parsed according to the second data transmission rule, is obtained described
Data to be transmitted.
A kind of data interactive method that this specification embodiment provides, which comprises
Service request is sent to service server;
Receive the data transmission rule corresponding with the service request that the service server is sent, the data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula;
The data transmission rule based on generation carries out data interaction with the service server.
Optionally, the data transmission rule includes first data transmission sub-rule,
The data transmission rule based on generation carries out data interaction with the service server, comprising:
Data processing is carried out to data to be transmitted according to the first data transmission sub-rule, it is to be transmitted to obtain that treated
Data;
Treated the data to be transmitted is sent to the service server.
Optionally, the first data transmission sub-rule includes mark transformation rule, data packet transformation rule, serializing rule
Then, one or more of interface configuration rule and redundant data rule.
A kind of data interaction device that this specification embodiment provides, described device include:
Request receiving module, the service request sent for receiving terminal apparatus;
Rule generation module, for generating corresponding with the service request according to scheduled data protocol create-rule
Data transmission rule, the data transmission rule is used to for the format to interaction data being converted into can by predetermined analysis mode
Format except the data format parsed;
Data interaction module carries out data friendship with the terminal device for the data transmission rule based on generation
Mutually.
It optionally, include service identification, the rule generation module, if being used for the business mark in the service request
Know the service identification for intended service, then according to scheduled data protocol create-rule, generates corresponding with the service request
Data transmission rule.
Optionally, the data transmission rule includes first data transmission sub-rule and the second data transmission rule, institute
State data interaction module, comprising:
Regular transmission unit, for the first data transmission sub-rule to be sent to the terminal device, so that described
Terminal device carries out data processing to data to be transmitted according to the first data transmission sub-rule, and sends that treated is to be passed
Transmission of data;
Resolution unit, when for treated described in receive the terminal device and send data to be transmitted, according to
Treated that data to be transmitted is parsed to described for the second data transmission rule, obtains the data to be transmitted.
Optionally, the regular transmission unit, for obtaining the corresponding business datum of the service request;By described first
The data of data transmission rule are inserted into the business datum, by the business inserted with the first data transmission sub-rule
Data are sent to the terminal device.
Optionally, described device further include:
Validity period determining module, for determining the effective period of time of the data transmission rule;
The data interaction module, if be in the effective period of time for current time, the institute based on generation
Data transmission rule is stated, carries out data interaction with the terminal device.
Optionally, the first data transmission sub-rule includes mark transformation rule, data packet transformation rule, serializing rule
Then, one or more of interface configuration rule and redundant data rule.
Optionally, the data transmission rule further includes third data transmission rule,
The resolution unit, when for treated described in receive the terminal device and send data to be transmitted,
According to the third data transmission rule, treated that data to be transmitted is formatted by described, obtains predetermined format
Data to be transmitted;The data to be transmitted of the predetermined format is parsed according to the second data transmission rule, is obtained
The data to be transmitted.
A kind of data interaction device that this specification embodiment provides, described device include:
Request sending module, for sending service request to service server;
Regular receiving module, data corresponding with the service request transmission sent for receiving the service server
Rule, what the data transmission rule was used to be converted into the format to interaction data to parse by predetermined analysis mode
Format except data format;
Data interaction module carries out data with the service server for the data transmission rule based on generation
Interaction.
Optionally, the data transmission rule includes first data transmission sub-rule, the data interaction module, comprising:
Data processing unit, for carrying out data processing to data to be transmitted according to the first data transmission sub-rule,
The data to be transmitted that obtains that treated;
Data transmission unit, for sending treated the data to be transmitted to the service server.
Optionally, the first data transmission sub-rule includes mark transformation rule, data packet transformation rule, serializing rule
Then, one or more of interface configuration rule and redundant data rule.
A kind of data interaction equipment that this specification embodiment provides, the data interaction equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
The service request that receiving terminal apparatus is sent;
According to scheduled data protocol create-rule, data transmission rule corresponding with the service request is generated, it is described
Data transmission rule is used to the format to interaction data being converted into the data format that can be parsed by predetermined analysis mode
Except format;
The data transmission rule based on generation carries out data interaction with the terminal device.
A kind of data interaction equipment that this specification embodiment provides, the data interaction equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
Service request is sent to service server;
Receive the data transmission rule corresponding with the service request that the service server is sent, the data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula;
The data transmission rule based on generation carries out data interaction with the service server.
By the technical solution of above this specification embodiment offer as it can be seen that this specification embodiment is by receiving terminal
When the service request that equipment is sent, according to scheduled data protocol create-rule, data corresponding with the service request are generated
Transmission rule, the data transmission rule is for the format to interaction data to be converted into parse by predetermined analysis mode
Data format except format, service server can carry out data with terminal device based on the data transmission rule of generation
Interaction, in this way, whenever needing to carry out data interaction between terminal device and service server, first according to scheduled data protocol
Create-rule generation then can be with base between terminal device and service server for the data transmission rule of this service request
Data interaction is carried out in the data transmission rule of generation, since the format to interaction data can be converted into leading to by data transmission rule
The format except the data format that predetermined analysis mode can parse is crossed, therefore, during data interaction, number to be interacted
According to being reprocessed repeatedly to have obtained the character string or data packet of new data format, even if so that other users intercept above-mentioned number
According to, it is also difficult to data content is therefrom parsed, the safety of data interaction is improved.In addition, same terminal device receives every time
Service request can correspond to different data transmission rules, the received service request of different terminal devices can also correspond to not
Same data transmission rule, so as to further increase the safety of data interaction.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of data interactive method embodiment of this specification;
Fig. 2 is this specification another kind data interactive method embodiment;
Fig. 3 is another data interactive method embodiment of this specification;
Fig. 4 is a kind of generation logical schematic of data transmission rule of this specification;
Fig. 5 is a kind of data interaction device embodiment of this specification;
Fig. 6 is a kind of data interaction device embodiment of this specification;
Fig. 7 is a kind of data interaction apparatus embodiments of this specification;
Fig. 8 is a kind of data interaction apparatus embodiments of this specification.
Specific embodiment
This specification embodiment provides a kind of data interactive method, device and equipment.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to
The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of data interactive method, the executing subject of this method can be industry
Business server, wherein the service server can be independent server, be also possible to the server being made of multiple servers
Cluster is also possible to the website with multinomial business moreover, the service server can be the background server of a certain business
The background server etc. of (such as websites or payment application).This method can be used in the processing for carrying out data interaction
In, data transmission rule is generated, and carry out in the processing such as data interaction based on data transmission rule.This method can specifically include
Following steps:
In step s 102, the service request that receiving terminal apparatus is sent.
Wherein, terminal device can be the terminal device that user uses, specifically can such as mobile phone or tablet computer movement
Terminal device, or can such as laptop or personal computer terminal device.Service request can be for requesting to hold
The information of a certain business of row, a certain business therein can be any one business, such as (the specific such as payment of resource transfers business
Business etc.), registering service or inquiry business etc..
In an implementation, there are mass data interactions in dynamic web website, and above-mentioned interaction data mainly can be and come from
Data interaction between browser and server, in addition, by above-mentioned data interaction, user can be used login, shopping or
The Internet services such as inquiry.In general, the mathematical logic in script data and webpage in webpage in dynamic web website be to
Family is visible, that is to say that user can lead to when user obtains corresponding web data from dynamic web site by browser
Cross be arranged in browser check that the functions such as webpage source code or developer's tool check the web data, include in the web data
Mathematical logic in script data and webpage, therefore, other users (such as hacker) may be patrolled based on script data and data
It collects and user data or the business is cracked and replaced, so that the personal information of user is carried out or gone to the true operation of analog subscriber
Deng.In general, front-end business logical code can be protected by front-end code obfuscation schemes, biography is protected by encrypting and encoding
Defeated data content, still, the data format protocol due to submitting to server end be it is fixed and appoint in advance (such as
The Key-Value combination of JSON (JavaScript Object Notation, JS object numbered musical notation) data structure not will do it
Dynamic change), cause after the service logic and Encryption Algorithm of the hack business, it is extensive by exploitation attack script
User data is directly forged, with spoofing server, to cause to lose on a large scale.In order to protect browser and server it
Between the data of interaction will not be cracked and be replaced easily by hacker, and then can request to carry out such as with the true operation of analog subscriber
Internet services, this specification embodiments such as login, shopping or inquiry provide a kind of implementation that can solve the above problem,
It can specifically include the following contents:
The application program of browser can be installed in terminal device or installation is provided with one or more different business
The application program of service, such as the application program or instant messaging application program of shopping at network, different business or above-mentioned application
Program can be corresponding with a service server, when user needs to request a certain business service to service server, Ke Yidian
The shortcut icon of above-mentioned browser or application program is hit, terminal device can star browser or above-mentioned application program, so
Afterwards, the network address of the business service can be input in the address field of browser by user, or clicked and mentioned in application program
The option of the business service supplied, the network address of the available business service of terminal device and the mark of terminal device
((International Mobile Equipment Identity, the world are mobile by title, coding or the IMEI of such as terminal device
EIC equipment identification code) number etc.) etc., and service request can be generated by above- mentioned information, it can be by the network address to the industry
Service server where business service sends the service request, and the business that service server can receive terminal device transmission is asked
It asks.
In step S104, according to scheduled data protocol create-rule, data corresponding with above-mentioned service request are generated
Transmission rule, the data transmission rule is for the format to interaction data to be converted into parse by predetermined analysis mode
Data format except format.
Wherein, data protocol create-rule can be algorithm or rule for generating data transmission rule etc., data association
Discussing create-rule can be realized by preset one or more algorithms, can also by a kind of preset rule or
The combination of multiple rule is realized, specifically may be set according to actual conditions, this specification embodiment does not limit this.Data pass
Defeated rule can be transferred to the other end from one end for realizing certain data during, the data structure, the data that need to use
The rules such as transmission mode.Predetermined analysis mode can be in a manner of current common arbitrary page parsing, such as based on the HTML5 page
Analysis mode etc..
In an implementation, in order to guarantee data transmission safety, the technical staff of certain one or more business can basis
Data protocol create-rule is arranged in actual conditions in corresponding service server.When service server receives terminal device
After the service request of transmission, which can be analyzed, can therefrom extract the correlation of the business service of request
Data, the number as involved in the service identification (such as Business Name or coding etc.) for a certain business requested, the business service of request
According to etc., if service server determines involved in the business service of request in data comprising certain tentation datas (such as user
Personal information, the sensitive informations such as key message of business etc.), then service server can be determined for this service request,
Need to carry out interactive data such as data structural adjustment, data transfer mode setting processing, to prevent from being blocked by other users
The data of above-mentioned interaction are cut, for this purpose, the available pre-set data protocol create-rule of service server, and it is based on the number
According to agreement create-rule, data transmission rule corresponding with the service request is generated, the data transmission rule of generation may include
Data structure, data transfer mode for needing to use etc..
It should be noted that whenever receiving the service request that different terminal devices or same terminal device are sent,
Service server can generate data transmission rule corresponding with the service request according to scheduled data protocol create-rule,
Be each time service request can be corresponding with a data transmission rule.
In step s 106, the data transmission rule based on generation carries out data interaction with terminal device.
In an implementation, after service server receives the service request that terminal device is sent, the available service request
Corresponding business datum.In addition, generating data transmission corresponding with the service request by scheduled data protocol create-rule
After rule, the data transmission rule of generation can be inserted into above-mentioned business datum, and be blended with data transmission rule and
The data of business datum are sent to terminal device.It, can basis after terminal device receives data transmission rule and business datum
The business datum executes corresponding processing, after obtaining data to be transmitted based on the business datum, can be transmitted and be advised according to data
Then data to be transmitted is handled, so that data to be transmitted is presented with new data format, which be can be
Format except the data format that predetermined analysis mode can parse, that is to say can not be parsed by predetermined analysis mode
The content for data to be transmitted of stating that treated.Redundancy specifically can be such as inserted into data to be transmitted, and by treated
Data to be transmitted is divided into data packet of different sizes, at random can be sent data packet respectively by way of sending at random
To service server.After service server receives data to be transmitted, can based on data transmission rule to data to be transmitted into
Row processing, specifically such as analyzes data packet of different sizes, and is removed from it redundancy and obtains a complete data, then,
Data to be transmitted can be further processed.
For example, user needs to log in some website, then user can pass through browser or corresponding application requests
The data of the login page of the website, at this point, service request, which can be generated, in terminal device is sent to service server.Business service
After device receives the service request, it can determine that logging in the website needs user to input the sensitive informations such as the logon account of user
(or preset information), at this point, the data of the available login page of service server, and according to scheduled data
Agreement create-rule generates a data transmission rule corresponding with the service request, and the data transmission rule can be inserted
Enter into the data of login page, sends it to terminal device.Terminal device can be shown based on the data of login page and be stepped on
The page is recorded, user can input the relevant information of logon account in the login page, after the completion of input, can click log in page
Determination key or login key in face, terminal device obtain the relevant information of the logon account of user's input, and using above-mentioned
Data transmission rule handles the relevant information of logon account, such as redundancy letter is inserted into the relevant information of logon account
Breath, and the relevant information random division that will be inserted into the logon account of redundancy is to be sent at random to a data packet, and by it
Service server.It, can be according to data transmission rule to the data in data packet after service server receives above-mentioned data packet
Data splicing and data parsing are carried out, the relevant information of logon account is obtained, it is then possible to the relevant information based on logon account
Authentication is carried out to the user, if the verification passes, then can send the notification message being verified to terminal device, if
Verifying does not pass through, then the notification message for re-entering the relevant information of user's logon account can be sent to terminal device, so that
User logs in again.
As shown in Fig. 2, this specification embodiment provides a kind of data interactive method, the executing subject of this method can be for eventually
End equipment, wherein the terminal device can such as mobile phone or tablet computer mobile terminal device, can also such as laptop or
The terminal devices such as personal computer.This method can be used in the processing for carrying out data interaction, generate data transmission rule, and
It is carried out in the processing such as data interaction based on data transmission rule.This method can specifically include following steps:
In step S202, service request is sent to service server.
In step S204, the data transmission rule corresponding with above-mentioned service request that service server is sent is received, it should
Data transmission rule is used to the format to interaction data being converted into the data format that can be parsed by predetermined analysis mode
Except format.
In step S206, the above-mentioned data transmission rule based on generation carries out data interaction with service server.
Above-mentioned steps S202~step S206 concrete processing procedure may refer at the correlation of above-mentioned step shown in FIG. 1
Reason process, details are not described herein.
This specification embodiment provides a kind of data interactive method, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
Embodiment two
As shown in figure 3, this specification embodiment provides a kind of data interactive method, this method can by service server and
Terminal device executes jointly, wherein the service server can be independent server, be also possible to be made of multiple servers
Server cluster be also possible to that there is multinomial business moreover, the service server can be the background server of a certain business
Website (such as websites or payment application) background server etc..The terminal device can be such as mobile phone or plate electricity
The mobile terminal devices such as brain, can also such as laptop or personal computer terminal device.This method can be used for into
In the processing of row data interaction, data transmission rule is generated, and carry out in the processing such as data interaction based on data transmission rule.It should
Method can specifically include following steps:
In step s 302, terminal device sends service request to service server, includes business mark in the service request
Know.
Wherein, service identification can be the information such as title or the coding of certain business.Specific such as transferred account service or registering service
Deng.
The step content of above-mentioned steps S302 is identical as the step content of step S202 in above-described embodiment one, above-mentioned steps
The concrete processing procedure of S302 may refer to the related content of step S102 in above-described embodiment one, and details are not described herein.
In step s 304, if above-mentioned service identification is the service identification of intended service, service server is according to pre-
Fixed data protocol create-rule generates data transmission rule corresponding with above-mentioned service request.
Wherein, intended service can be any preset one or more business.The data transmission rule is used for will
Format to interaction data is converted into the format except the data format that can be parsed by predetermined analysis mode.
In an implementation, can according to the actual situation or actual demand preset one or more business as need using
The data transmission rule generated in real time carries out the business of data interaction, and specifically can such as determine in which business can be related to such as user
The sensitive informations such as personal information, the relevant information of account (such as account and password) and other specified relevant informations, then may be used
The business of any of the above-described kind of sensitive information or a variety of sensitive informations is set as above-mentioned intended service will include, and can be in business
It stores in server to the service identification of the intended service.When service server receives the service request of terminal device transmission
Afterwards, the service identification in the service request can be extracted, and can be by the service identification of extraction and pre-stored intended service
Service identification compare, if in the service identification of pre-stored intended service include extract service identification, can
Not include above-mentioned sensitive information in the corresponding business of the above-mentioned service request of determination, therefore, it may not be necessary to by counting in real time
Data interaction is carried out according to transmission rule.If including the service identification of extraction in the service identification of pre-stored intended service,
It can determine comprising above-mentioned sensitive information in the corresponding business of above-mentioned service request, therefore, be generated according to scheduled data protocol
Rule generates data transmission rule corresponding with above-mentioned service request, wherein raw according to scheduled data protocol create-rule
At the concrete processing procedure of data transmission rule corresponding with above-mentioned service request, the correlation in above-described embodiment one may refer to
Content, details are not described herein.
In practical applications, data interaction is related to terminal equipment side and service server side, and terminal equipment side and industry
When the data transmission rule based on generation carries out data interaction, the concrete processing procedure of the two is different server side of being engaged in,
Therefore, data transmission rule can be divided into first data transmission sub-rule and the service server side of terminal equipment side execution
The the second data transmission rule executed, i.e. data transmission rule may include that first data transmission sub-rule and the second data pass
The journey that defeated sub-rule, first data transmission sub-rule and the second data transmission rule can be write by scheduled programming language
Sequence code is realized.Wherein, first data transmission sub-rule may include mark transformation rule, data packet transformation rule, serializing
One or more of rule, interface configuration rule and redundant data rule.
Mark transformation rule (such as name translation rule) can be data structure (such as JSON data knot specified in generation
Structure etc.) in Key field rule change, such as can will move to left one by AscII " abc " and become " bcd ", or use word
The mode of allusion quotation encryption perhaps stores any group of Key mapping mode using service server side Map structure or passes through canonical table
Generate the mode of field identification (such as title) at random up to the mode of formula.Data packet transformation rule can be control transmission data
Primary data information (pdi) " abcd " is split as " abc " and " d " two data packet separately sends by length and chopping rule, meanwhile,
Data transfer sequence can also convert, such as first " abc " etc. is transmitted in transmission " d " again.Serializing rule, which can be, finally to be transmitted
Whether data will carry out single treatment, serializing using Base64 coding or other scheduled coded formats or serializing agreement
It can be and be converted into data structure or object state to take format, it is subsequent in identical or another computer environment to remain
In, the process of reset condition can be restored.Interface configuration rule can be link, port, agreement and parameter for interface can also
It is configured with further progress.In addition, it can include the rule of such as redundant data, specifically such as, increase random character string or
Object is incorporated into final data structure, can be ignored during service server parses it or be skipped superfluous
Remainder according to etc..
In practical applications, as shown in figure 4, may include a Dynamic control module and generation mould in service server
Block, Dynamic control module can be used for being combined multiple and different rules (such as by title dictionary enciphering transformation rule and
Data field random ordering rule is applied in combination) to generate first data transmission sub-rule, and determine and generate first data transmission
The validity period (such as single is effective or predetermined amount of time in effectively) of sub-rule, at the same time it can also carry out user conversation management (such as root
The dynamic aspect for returning to server-side is associated with according to user identifier or a session identification or disposable token (such as Token)).
Generation module can generate terminal equipment side according to the resolution logic of rule combination, data structure definition and service server side
First data transmission sub-rule and the second data transmission of service server side rule.In first data transmission sub-rule,
The grammer of the programming languages such as XML, C, C++, Python, Ruby or Shell can be used.In the second data transmission rule,
Other any programming languages other than JAVA programming language and JAVA programming language can be used to write.
In practical applications, a kind of data structure can be preset, which can be realized using YAML grammer,
Such as
Pass through the above-mentioned data structure of YAML syntactic constructs, it may be convenient to and JSON used in current common system
Format carries out mutual inversion of phases.Based on above-mentioned data structure, the form of the corresponding script of first data transmission sub-rule can be determined
With the data structure and logic etc. in the second data transmission rule.
For example, it is based on above-mentioned data structure, it is raw when first data transmission sub-rule is that name translation (moving to left one) is regular
At the corresponding script data of first data transmission sub-rule may is that
Correspondingly, data structure of the second data transmission rule when being write using JAVA programming language may be:
It include first data transmission sub-rule in the data transmission rule that service server generates based on above content,
First data transmission sub-rule can be sent to terminal device by service server, so that middle end equipment is in subsequent data interaction
Middle use can specifically include the processing of following step S306.
In step S306, above-mentioned first data transmission sub-rule is sent to terminal device by service server.
In practical applications, the specific processing mode of above-mentioned steps S306 can be varied, and one presented below optional
Processing mode, can specifically include following steps one and step 2.
Step 1 obtains the corresponding business datum of above-mentioned service request.
In an implementation, can not carried in above-mentioned service request the personal information of user, the relevant information of account or other
The sensitive informations such as specified relevant information, the service request can be used for the carrying page data of the above-mentioned sensitive information of request
Or the information etc. of the input prompt of above-mentioned sensitive information, such as stepped in step S106 example for requesting in above-described embodiment one
The information etc. of the page is recorded, corresponding business datum is the data of login page.
The data of first data transmission sub-rule are inserted into above-mentioned business datum by step 2, will be inserted with the first number
Terminal device is sent to according to the business datum of transmission sub-rule.
In step S308, terminal device carries out data processing to data to be transmitted according to first data transmission sub-rule,
The data to be transmitted that obtains that treated.
Wherein, data to be transmitted can be to carry out the arbitrary number in data exchange process between terminal device and service server
According to.
In an implementation, first data transmission sub-rule specifically can be a kind of data configuration code, can be used for to be passed
Transmission of data carries out structural adjustment or the processing such as structure of modification and data recombination, to obtain completely new data character string or number
According to packet.After terminal device receives business datum, the corresponding service logic of the business datum can be executed, to obtain corresponding
Implementing result (such as shows certain specified page), and user can input data to be transmitted based on the implementing result, when user needs
When sending the data to be transmitted to service server, first data transmission sub-rule can be used, data to be transmitted is become
Change, serialize and one or more operations such as data recombination, to carry out data processing to data to be transmitted, obtain that treated to
It transmits data (specifically can be data character string or data packet etc.).
In step s310, terminal device sends treated data to be transmitted to service server.
In step S312, service server is according to the second data transmission rule to treated data to be transmitted
It is parsed, obtains above-mentioned data to be transmitted.
In an implementation, the second data transmission rule specifically can be a kind of parsing code of service server side, the solution
Analysing code can be corresponding with the data configuration code of above-mentioned first data transmission sub-rule, that is to say through certain data configuration
The data of code constructs need that just needs can be parsed from the data of above-mentioned construction using matched parsing code
Real data (i.e. data to be transmitted).For the processing of above-mentioned steps S312, if terminal device passes through first data transmission
Sub-rule, redundancy is inserted into data to be transmitted, and the data to be transmitted with redundancy is sent to by terminal device
After service server, service server can by the parsing code of second data transmission rule to redundancy to
Transmission data are parsed, and can therefrom be extracted redundancy, and the redundancy of extraction is deleted, be finally obtained not comprising superfluous
The complete data to be transmitted of remaining information, to ensure that the integrality of data, and even if during data interaction, band
There is the data to be transmitted of redundancy intercepted, other users are also difficult therefrom to extract accurate data to be transmitted, ensure that
The safety of data transmission.
In addition, can be set to further increase the safety of data interaction for each data transmission rule generated
Effective period of time that is to say that in effective period of time, the data transmission rule of above-mentioned generation can be used normally, and specifically can wrap
Include the following contents: if current time is in above-mentioned effective period of time, the data transmission rule based on generation is set with terminal
It is standby to carry out data interaction.
In addition, if except effective period of time, using the data transmission rule of generation, it may be considered that being a kind of attack
Behavior can prevent to carry out data interaction.
And in practical applications, terminal device may be different from programming language used in service server, in this way, terminal
When carrying out data interaction between equipment and service server, the content of interactive data possibly can not be determined each other, for this purpose, above-mentioned
The specific processing mode of step S312 can be varied, a kind of optional processing mode presented below, can specifically include with
Lower step 1 and step 2.
Step 1 is passed when receiving the treated data to be transmitted of terminal device transmission according to third data
Treated that data to be transmitted formats by this for defeated sub-rule, obtains the data to be transmitted of predetermined format.
Wherein, third data transmission rule can be a kind of transformation rule of format, it can by the number of certain format
According to the data etc. for being converted to another format, the particular content of third data transmission rule be may be set according to actual conditions,
It is not limited this in this specification embodiment.The number to be transmitted for the arbitrary format that the data to be transmitted of predetermined format can be set
According to etc., such as the Format Object or POJO format etc. of Javascript.
In an implementation, third data transmission rule can be set in service server, by this according to the actual situation
The data of different-format can be converted to the data etc. of same format by third data transmission rule.
Based on the preset a kind of data structure mentioned in above-mentioned steps S304, it may be convenient to and it is current common
JSON format used in system carries out mutual inversion of phases, defines service server data intermediate form to be used herein, can
Easily the intermediate form is converted and be converted.Such as the format of treated data to be transmitted is NodeJS,
After service server is converted by format, the format of the data of obtained service server side can be the object of Javascript
Format, alternatively, treated data to be transmitted is write by JAVA programming language, then service server is converted by format
Afterwards, the format of the data of the service server side obtained can be POJO format etc..
Step 2 parses the data to be transmitted of predetermined format according to the second data transmission rule, obtains to be passed
Transmission of data.
It should be noted that the processing of above-mentioned generation first data transmission sub-rule and the second data transmission rule be by
What service server was completed, and in practical applications, generate data transmission rule processing can also be by service server outside
Other servers are completed, and concrete processing procedure may refer to above-mentioned related content, and details are not described herein.
This specification embodiment provides a kind of data interactive method, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
Embodiment three
The above are the data interactive methods that this specification embodiment provides, and are based on same thinking, this specification embodiment
A kind of data interaction device is also provided, as shown in Figure 5.
The data interaction device includes: request receiving module 501, rule generation module 502 and data interaction module 503,
Wherein:
Request receiving module 501, the service request sent for receiving terminal apparatus;
Rule generation module 502, for generating corresponding with the service request according to scheduled data protocol create-rule
Data transmission rule, the data transmission rule is for being converted into the format to interaction data by predetermined analysis mode energy
Format except the data format enough parsed;
Data interaction module 503 carries out data with the terminal device for the data transmission rule based on generation
Interaction.
It include service identification in the service request in this specification embodiment, the rule generation module 502 is used for
If the service identification is the service identification of intended service, according to scheduled data protocol create-rule, generate with it is described
The corresponding data transmission rule of service request.
In this specification embodiment, the data transmission rule includes first data transmission sub-rule and the transmission of the second data
Sub-rule, the data interaction module 503, comprising:
Regular transmission unit, for the first data transmission sub-rule to be sent to the terminal device, so that described
Terminal device carries out data processing to data to be transmitted according to the first data transmission sub-rule, and sends that treated is to be passed
Transmission of data;
Resolution unit, when for treated described in receive the terminal device and send data to be transmitted, according to
Treated that data to be transmitted is parsed to described for the second data transmission rule, obtains the data to be transmitted.
In this specification embodiment, the rule transmission unit, for obtaining the corresponding business datum of the service request;
The data of the first data transmission sub-rule are inserted into the business datum, it will be inserted with first data transmission
The business datum of rule is sent to the terminal device.
In this specification embodiment, described device further include:
Validity period determining module, for determining the effective period of time of the data transmission rule;
The data interaction module, if be in the effective period of time for current time, the institute based on generation
Data transmission rule is stated, carries out data interaction with the terminal device.
In this specification embodiment, the first data transmission sub-rule includes mark transformation rule, data packet transform rule
Then, one or more of serializing rule, interface configuration rule and redundant data rule.
In this specification embodiment, the data transmission rule further includes third data transmission rule, and the parsing is single
Member passes when for treated described in receive the terminal device and send data to be transmitted according to the third data
Treated that data to be transmitted is formatted by described for defeated sub-rule, obtains the data to be transmitted of predetermined format;According to institute
It states the second data transmission rule to parse the data to be transmitted of the predetermined format, obtains the data to be transmitted.
This specification embodiment provides a kind of data interaction device, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
Example IV
Based on same thinking, this specification embodiment also provides a kind of data interaction device, as shown in Figure 6.
The data interaction device includes: request sending module 601, regular receiving module 602 and data interaction module 603,
Wherein:
Request sending module 601, for sending service request to service server;
Regular receiving module 602, the data corresponding with the service request sent for receiving the service server
Transmission rule, the data transmission rule is for the format to interaction data to be converted into parse by predetermined analysis mode
The format except data format out;
Data interaction module 603 is counted for the data transmission rule based on generation with the service server
According to interaction.
In this specification embodiment, the data transmission rule includes first data transmission sub-rule, the data interaction
Module 603, comprising:
Data processing unit, for carrying out data processing to data to be transmitted according to the first data transmission sub-rule,
The data to be transmitted that obtains that treated;
Data transmission unit, for sending treated the data to be transmitted to the service server.
In this specification embodiment, the first data transmission sub-rule includes mark transformation rule, data packet transform rule
Then, one or more of serializing rule, interface configuration rule and redundant data rule.
This specification embodiment provides a kind of data interaction device, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
Embodiment five
The above are the data interaction devices that this specification embodiment provides, and are based on same thinking, this specification embodiment
A kind of data interaction equipment is also provided, as shown in Figure 7.
The data interaction equipment can be service server provided by the above embodiment.
Data interaction equipment can generate bigger difference because configuration or performance are different, may include one or one with
On processor 701 and memory 702, can store one or more storage application programs or number in memory 702
According to.Wherein, memory 702 can be of short duration storage or persistent storage.The application program for being stored in memory 702 may include one
A or more than one module (diagram is not shown), each module may include can to the series of computation machine in data interactive device
It executes instruction.Further, processor 701 can be set to communicate with memory 702, executes and deposits in data interaction equipment
Series of computation machine executable instruction in reservoir 702.Data interaction equipment can also include one or more power supplys
703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or
More than one keyboard 706.
Specifically in the present embodiment, data interaction equipment includes memory and one or more program,
In one perhaps more than one program is stored in memory and one or more than one program may include one or one
With upper module, and each module may include and being configured to the series of computation machine executable instruction in data interactive device
With by one or more than one processor execute this or more than one program include can for carrying out following computer
It executes instruction:
The service request that receiving terminal apparatus is sent;
According to scheduled data protocol create-rule, data transmission rule corresponding with the service request is generated, it is described
Data transmission rule is used to the format to interaction data being converted into the data format that can be parsed by predetermined analysis mode
Except format;
The data transmission rule based on generation carries out data interaction with the terminal device.
It include service identification in the service request in this specification embodiment,
It is described that data transmission rule corresponding with the service request is generated according to scheduled data protocol create-rule,
Include:
It is raw according to scheduled data protocol create-rule if the service identification is the service identification of intended service
At data transmission rule corresponding with the service request.
In this specification embodiment, the data transmission rule includes first data transmission sub-rule and the transmission of the second data
Sub-rule,
The data transmission rule based on generation carries out data interaction with the terminal device, comprising:
The first data transmission sub-rule is sent to the terminal device, so that the terminal device is according to described
One data transmission rule carries out data processing to data to be transmitted, and sends treated data to be transmitted;
When data to be transmitted that treated described in receive the terminal device and send, passed according to second data
Treated that data to be transmitted is parsed to described for defeated sub-rule, obtains the data to be transmitted.
It is described that the first data transmission sub-rule is sent to the terminal device in this specification embodiment, comprising:
Obtain the corresponding business datum of the service request;
The data of the first data transmission sub-rule are inserted into the business datum, it will be inserted with first number
The terminal device is sent to according to the business datum of transmission sub-rule.
It is described according to scheduled data protocol create-rule in this specification embodiment, it generates and the service request pair
After the data transmission rule answered, the method also includes:
Determine the effective period of time of the data transmission rule;
The data transmission rule based on generation carries out data interaction with the terminal device, comprising:
It is and described if current time is in the effective period of time, the data transmission rule based on generation
Terminal device carries out data interaction.
In this specification embodiment, the first data transmission sub-rule includes mark transformation rule, data packet transform rule
Then, one or more of serializing rule, interface configuration rule and redundant data rule.
In this specification embodiment, the data transmission rule further includes third data transmission rule,
When treated described in receive the terminal device and the send data to be transmitted, according to second number
According to transmission sub-rule, treated that data to be transmitted is parsed to described, obtains the data to be transmitted, comprising:
When data to be transmitted that treated described in receive the terminal device and send, passed according to the third data
Treated that data to be transmitted is formatted by described for defeated sub-rule, obtains the data to be transmitted of predetermined format;
The data to be transmitted of the predetermined format is parsed according to the second data transmission rule, is obtained described
Data to be transmitted.
This specification embodiment provides a kind of data interaction equipment, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
Embodiment six
Based on same thinking, this specification embodiment also provides a kind of data interaction equipment, as shown in Figure 8.
The data interaction equipment can be terminal device provided by the above embodiment.
Data interaction equipment can generate bigger difference because configuration or performance are different, may include one or one with
On processor 801 and memory 802, can store one or more storage application programs or number in memory 802
According to.Wherein, memory 802 can be of short duration storage or persistent storage.The application program for being stored in memory 802 may include one
A or more than one module (diagram is not shown), each module may include can to the series of computation machine in data interactive device
It executes instruction.Further, processor 801 can be set to communicate with memory 802, executes and deposits in data interaction equipment
Series of computation machine executable instruction in reservoir 802.Data interaction equipment can also include one or more power supplys
803, one or more wired or wireless network interfaces 804, one or more input/output interfaces 805, one or
More than one keyboard 806.
Specifically in the present embodiment, data interaction equipment includes memory and one or more program,
In one perhaps more than one program is stored in memory and one or more than one program may include one or one
With upper module, and each module may include and being configured to the series of computation machine executable instruction in data interactive device
With by one or more than one processor execute this or more than one program include can for carrying out following computer
It executes instruction:
Service request is sent to service server;
Receive the data transmission rule corresponding with the service request that the service server is sent, the data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula;
The data transmission rule based on generation carries out data interaction with the service server.
In this specification embodiment, the data transmission rule includes first data transmission sub-rule,
The data transmission rule based on generation carries out data interaction with the service server, comprising:
Data processing is carried out to data to be transmitted according to the first data transmission sub-rule, it is to be transmitted to obtain that treated
Data;
Treated the data to be transmitted is sent to the service server.
In this specification embodiment, the first data transmission sub-rule includes mark transformation rule, data packet transform rule
Then, one or more of serializing rule, interface configuration rule and redundant data rule.
This specification embodiment provides a kind of data interaction equipment, by the service request for receiving terminal device transmission
When, according to scheduled data protocol create-rule, generate data transmission rule corresponding with the service request, data transmission
Lattice of the rule for being converted into the format to interaction data except the data format that can be parsed by predetermined analysis mode
Formula, service server can carry out data interaction with terminal device, in this way, whenever terminal based on the data transmission rule of generation
When needing to carry out data interaction between equipment and service server, is first generated according to scheduled data protocol create-rule and be directed to this
Then the data transmission rule of service request can be transmitted based on the data of generation between terminal device and service server and be advised
Data interaction is then carried out, since can be converted into the format to interaction data can by predetermined analysis mode for data transmission rule
Therefore format except the data format parsed during data interaction, has been reprocessed repeatedly to obtain to interaction data
The character string or data packet of new data format, even if so that other users intercept above-mentioned data, it is also difficult to therefrom parse
Data content out improves the safety of data interaction.In addition, received service request can correspond to same terminal device every time
Different data transmission rules, the received service request of different terminal devices can also correspond to different data transmission rules,
So as to further increase the safety of data interaction.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification can provide as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or knot can be used in this specification one or more embodiment
The form of embodiment in terms of conjunction software and hardware.Moreover, this specification one or more embodiment can be used at one or more
A wherein includes computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
The embodiment of this specification is referring to the method, equipment (system) and computer journey according to this specification embodiment
The flowchart and/or the block diagram of sequence product describes.It should be understood that flow chart and/or box can be realized by computer program instructions
The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in figure.It can provide this
A little computer program instructions are to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Processor to generate a machine so that the finger executed by the processor of computer or other programmable data processing devices
It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program
Product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or combine software
With the form of the embodiment of hardware aspect.Moreover, this specification one or more embodiment can be used it is one or more wherein
It include computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the light of computer usable program code
Learn memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification
Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.