The method, apparatus and system that control table substance is submitted again
Technical field
The present invention relates to internet areas, in particular to a kind of method, apparatus that control table substance is submitted again and are
System.
Background technique
In recent years, with the development of mobile internet, more and more things can be come by internet in life and work
It completes.
In the development process to background management system, some functions have very strict requirements to data consistency.For example,
Entered account between general voucher list, multiple account numbers by list carry out turn, reimbursement business operation, to enrollment form into
Row submits, pay the bill etc. by network operation when, although client, which has only carried out a list to list, submits operation, sometimes
Because network delay, client repeatedly click submitting button or client refreshes the reasons such as forms pages by force, server end is but connect
Identical operation requests more than twice are received, form data repetition or inconsistent is caused.
Wherein, in a kind of currently existing scheme, it can realize that anti-user repeats to mention by controlling the submitting button of list
Hand over list.Specifically, can be removed by control (js control) and submitting button after user clicks the button of submission form
Corresponding click event makes user not carry out clicking operation to it again, to prevent from repeating because of user clicking submitting button, makes
At the same list repeatedly submit operation.
Although user's weight can be prevented by the above-mentioned method for removing click event corresponding with submitting button, Lai Shixian
It is multiple to submit.But it can not be prevented simply by the submitting button of simple control submission form to prevent the mode for repeating to submit
Because clicking list caused by the reasons such as browser back button or network repeating transmission to repeat to submit.
To solve the above-mentioned problems, the prior art provides a kind of by placing token frame (token in form data packet
Token method) prevents the repetition to list from submitting.
Specifically, server end can return to form data packet to client in user when accessing forms pages
While, return to a token frame (token), while this frame value being placed on corresponding with the user complete in back-end system
In local (session).For user after submission form, back-end system can compare token frame (token) and global field in list
(session) whether identical.If the same list is submitted successfully, while by the token frame in global field (session)
(token) value is deleted or is generated new token frame (token) and covers original token frame (token);If different or global field
(session) token frame (token) value not corresponding with the frame in, then list submits failure.
Although token frame (token) can be placed in form data packet by above-mentioned, to prevent the repetition of list from submitting
Method, Lai Shixian prevent user repeat submit.But if it is almost in the request of submission twice carried out to the same list
When being simultaneously emitted by next, server end can inquire token frame (token) corresponding with two, i.e., do not delete in token
Before removing or covering, two submission requests may all find the same mark token, to cause two lists being simultaneously emitted by
The form data of request can submit success, and the repetition that still will cause list is submitted.
It is effectively monitored for above-mentioned can not be submitted to the repetition of the same list, leads to the form data submitted not
Unique problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of method, apparatus and system that control table substance is submitted again, at least solve by
It is submitted in the repetition of the same list, the technical problem for causing the form data submitted not unique.
According to an aspect of an embodiment of the present invention, a kind of method that control table substance is submitted again is provided, comprising: receive
The access form request that client is sent generates form parameters and index data corresponding to access form request, wherein index
Data are to access the unique identification of form request;The corresponding form parameters of form request will be accessed and index data is back to client
End;At least two form data packets that client returns are received, each form data packet includes: the table generated according to form parameters
It is single, and index data corresponding with list;Save at least two form data packets, wherein in any two or more lists
In the identical situation of the index data for including in data packet, one of form data packet is only saved.
According to another aspect of an embodiment of the present invention, a kind of device that control table substance is submitted again is additionally provided, comprising: place
Module is managed, for receiving the access form request of client transmission, generates form parameters and rope corresponding to access form request
Argument evidence, wherein index data is the unique identification for accessing form request;Return module, it is corresponding for form request will to be accessed
Form parameters and index data be back to client;Receiving module, for receiving at least two list numbers of client return
According to packet, each form data packet includes: the list generated according to form parameters, and index data corresponding with list;Storage
Module, for saving at least two form data packets, wherein the index number for including in any two or more form data packets
According in identical situation, only saving one of form data packet.
According to another aspect of an embodiment of the present invention, a kind of method that control table substance is submitted again is additionally provided, comprising: hair
Send access form request to server;Receive form parameters and index number corresponding to the access form request that server generates
According to, wherein index data is the unique identification for accessing form request;According to form parameters and rope corresponding to access form request
Argument evidence generates at least two form data packets, and each form data packet includes: the list generated according to form parameters, and
Index data corresponding with list;At least two form data packets are sent to server, wherein in any two or more lists
In the identical situation of the index data for including in data packet, server only saves one of form data packet.
According to another aspect of an embodiment of the present invention, a kind of device that control table substance is submitted again is additionally provided, comprising: the
One sending module, for sending access form request to server;First receiving module, for receiving the access of server generation
Form parameters corresponding to form request and index data, wherein index data is the unique identification for accessing form request;First
Generation module generates at least two form datas for form parameters and index data according to corresponding to access form request
Packet, each form data packet include: the list generated according to form parameters, and index data corresponding with list;Second hair
Module is sent, for sending at least two form data packets to server, wherein wrap in any two or more form data packets
In the identical situation of the index data contained, server only saves one of form data packet.
According to another aspect of an embodiment of the present invention, a kind of system that control table substance is submitted again, the system are additionally provided
It include: client, for sending access form request;Server is communicated with client foundation, for receiving client transmission
Form request is accessed, form parameters and index data corresponding to access form request are generated, it is corresponding form request will be accessed
Form parameters and index data be back to after client, receive client return at least two form data packets, wherein
In the identical situation of index data for including in any two or more form data packets, one of form data is only saved
Packet;Wherein, client form parameters and index data according to corresponding to access form request, generates at least two form datas
Packet, each form data packet include: the list generated according to form parameters, and index data corresponding with list, index number
According to the unique identification to access form request.
In embodiments of the present invention, the access form request sent using client is received generates access form request institute
Corresponding form parameters and index data, wherein index data is the unique identification for accessing form request;Form request will be accessed
Corresponding form parameters and index data are back to client;At least two form data packets that client returns are received, each
Form data packet includes: the list generated according to form parameters, and index data corresponding with list;Save at least two tables
Single packet, wherein in the identical situation of index data for including in any two or more form data packets, only save it
In a form data packet mode, by sending index number with while accessing form request corresponding form parameters sending
According to client is when returning to form data packet simultaneously by the list generated according to form parameters and and rope corresponding with form parameters
According to server end is returned, whether verifying index data duplicates argument, to judge whether form data packet repeats, has reached logical
Cross for form data add index data, come guarantee save form data purpose with uniqueness, and then solve due to
The repetition of the same list is submitted, the technical problem for causing the form data submitted not unique.List is submitted to realize
The effective monitoring of process, and effectively prevent list and repeat to submit.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the hardware of the terminal for the method submitted again according to a kind of operation control table substance of inventive embodiments
Structural block diagram;
Fig. 2 is according to embodiments of the present invention one flow chart of method submitted again of control table substance;
Fig. 3 is the detail flowchart for the method that control table substance according to an embodiment of the present invention is submitted again;
Fig. 4 is according to embodiments of the present invention two schematic diagram of device submitted again of control table substance;
Fig. 5 is the signal of memory module in device that according to embodiments of the present invention two preferred control table substances are submitted again
Figure;
Fig. 6 is the schematic diagram for the device that according to embodiments of the present invention two preferred control table substances are submitted again;
Fig. 7 is the signal of processing module in device that according to embodiments of the present invention two preferred control table substances are submitted again
Figure;
Fig. 8 is according to embodiments of the present invention three flow chart of method submitted again of control table substance;
Fig. 9 is according to embodiments of the present invention four schematic diagram of device submitted again of control table substance;
Figure 10 is the schematic diagram for the device that according to embodiments of the present invention four preferred control table substances are submitted again;And
Figure 11 is a kind of structural block diagram of according to embodiments of the present invention five system that control table substance is submitted again.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method that control table substance is submitted again is provided, it should be noted that
Step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, and
It, in some cases, can be to be different from sequence execution institute herein and although logical order is shown in flow charts
The step of showing or describing.
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on computer terminals, Fig. 1 is that a kind of control table substance of the embodiment of the present invention is submitted again
Method terminal hardware block diagram.As shown in Figure 1, terminal 10 may include one or more (figures
In only show one) (processor 102 can include but is not limited to Micro-processor MCV or programmable logic device to processor 102
The processing unit of FPGA etc.), memory 104 for storing data and the transmission module 106 for communication function.Ability
Domain those of ordinary skill is appreciated that structure shown in FIG. 1 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device
It is fixed.For example, terminal 10 may also include than shown in Fig. 1 more perhaps less component or have with shown in Fig. 1 not
Same configuration.
Memory 104 can be used for storing the software program and module of application software, such as the control in the embodiment of the present invention
List repeats the corresponding program instruction/module of method submitted, and processor 102 is stored in soft in memory 104 by operation
Part program and module realize the loophole inspection of above-mentioned application program thereby executing various function application and data processing
Survey method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise
The memory remotely located relative to processor 102, these remote memories can pass through network connection to terminal 10.
The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of terminal 10 provide.In an example, transmitting device 106 includes that a network is suitable
Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to
Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Under above-mentioned running environment, this application provides the method that control table substance as shown in Figure 2 is submitted again, this method
Applied to server end.Fig. 2 is according to embodiments of the present invention one flow chart of method submitted again of control table substance.
As shown in Fig. 2, the terminal 10 that the method submitted is repeated for executing the list can be server, it is a kind of
Optional scheme includes that step is implemented as follows:
Step S21 receives the access form request that client is sent, and generates form parameters corresponding to access form request
And index data, wherein index data is the unique identification for accessing form request.
The access form request that reception client in the application above-mentioned steps S21 is sent, can be and sent out by website web
The forms pages access request sent is also possible to the forms pages access request sent by mobile phone, computer client.For example,
Forms pages request, when by the Internet bank paid transmission of the access sent in shopping at network for indent goods
Access for fill in account information forms pages request, in registration of website account access be used for filling registration information table
Single-page request etc..
When server end receives the access forms pages request that above-mentioned client issues every time, server end can root
Corresponding form parameters are called according to the access form request received, and send form parameters to client, is generating and is accessing
While form request corresponding form parameters, a unique index data is generated.Form parameters are for constructing forms pages
Particular content, and index data is then as unique identification information corresponding with form parameters.
For example, being asked with the access sent when being paid by the Internet bank for filling in the forms pages of account information
For asking, when the solicited message of forms pages of the received server-side to the access sent from client for filling in account information
When, while generating the particular content of forms pages corresponding with solicited message, while generating a unique index data
As identification information, unique identification is carried out as the forms pages.When received server-side is to sending from the same client
A plurality of access forms pages solicited message when, while generating multiple form parameters, for each form parameters generate with
Corresponding unique index data.
Step S23, will access the corresponding form parameters of form request and index data is back to client.
In the application above-mentioned steps S23, server end will generate one group of corresponding form parameters for the access form request,
And index data corresponding with each access form request, it is back to the client for sending form request.When client is sent
When access form request to the server end, server end will return to the unique index data of access form request.
After form parameters and index data are back to client, client can convert form parameters server end
It is shown for specific forms pages.After the login user of client fills in work to forms pages completion, by client
The index data corresponding with form data holding the form data that will fill in and being generated before by server end, is encapsulated as one
A form data packet, is back to server end.
As a result, in a kind of optinal plan provided by the present application, server end can be in the visit for receiving client transmission
After asking form request, generates and sends and access the corresponding form parameters of form request and unique index data to client
End.Client may be implemented to carry out form parameters rendering processing, generate forms pages for filling in list content.When filling in table
After the completion of single content, list is generated, the list that client generates after the completion of will fill in encloses index data and is committed to service together
Device end.
Step S25 receives at least two form data packets that client returns, and each form data packet includes: according to table
The list that one-parameter generates, and index data corresponding with list.Wherein, the client in the step is according to form parameters
After generating list, the list being currently generated is submitted, repeats the case where submitting if there is the list, then will lead to client hair
Send at least two form data packets.
In the application above-mentioned steps S25, received server-side is after multiple form data packets that client returns, often
The list and index data corresponding with list generated according to form parameters is all contained in a form data packet.Further
Ground, when client because repeat to refresh, form parameters caused by network delay or other reasons repeat to submit when, server
It terminates in the form data packet that the repetition received is submitted, can include identical index data, server end can pass through index number
According to judging which current form data packet is the form data packet for repeating submission.
Herein it should be noted that receiving the corresponding form parameters of current accessed form request and index number in client
According to the list generated according to form parameters later, can be submitted, in submission form, because a variety of causes, such as continuous submission are same
One list at least twice, may will generate multiple form data packets to the same list and be submitted to server, although alternatively,
It submits a list, but still almost while receiving the two of the same list since network blockage causes network to retransmit server-side
A form data packet.It should be noted that being unique in each form data packet comprising the index data for including.Therefore, exist
Whether the form data packet that receives of server end identification repeats, only by judge index data it is whether identical it is achieved that
Have the characteristics that method is easy and accuracy is high.
Step S27 saves at least two form data packets, wherein includes in any two or more form data packets
The identical situation of index data under, only save one of form data packet.
In the application above-mentioned steps S27, server end, can be by that will own after receiving all form data packets
Form data packet deposit database come realize save list scheme.During saving list, by detecting each table
Whether index data in single packet is identical to determine whether to save the form data packet, if any two or multiple lists
Corresponding index data is identical in data packet, then can determine any two or multiple form data packets are the tables for repeating to submit
It is single.When there is more than two form data packets with same index data, only retain one of form data packet, thus
Avoid the defect of repetition submission form, likewise, if the index data carried in the form data packet of subsequent submission with
The index data for the form data packet being saved is identical, then can determine the form data packet that current subsequent is submitted to repeat to submit
Data packet, abandon the form data packet.
In a kind of optinal plan, server end can be after the form data packet for receiving client transmission, and unified pair
The form data packet received is stored, and is then come again by the way that the index data in each form data packet is compared
It is confirmed whether the form data packet for having repetition to submit.When the form data packet for thering is repetition to submit, at random in the table for repeating to submit
One is selected in single packet to be saved.After saving successfully, other are deleted with the form data packet and repeats the list submitted
Data packet, to improve reliability.
In practical application, if user, when accessing some websites for the first time, this website usually may require that user infuses
Volume personal information, the email address or phone number in user's registration information can be directly extracted in this web site server end
Index data as uniqueness index.After submitting the form data packet comprising registration information by client, server end meeting
The form data packet of user is put into database to store.If user repeats to submit the form data comprising registration information
Packet (such as: repeating to click submitting button, click browser back button, network repeating transmission can all cause list to submit), due to having only
The index data that one sex cords draws, it is rear repeat submit include same registration information enrollment form be impossible to enter data
Library, to ensure that the uniqueness of data.
From the foregoing, it will be observed that scheme provided by the above embodiments of the present application one, by corresponding with access form request in transmission
Form parameters while send index data, client will be generated when returning to form data packet according to form parameters simultaneously
List and and index data corresponding with form parameters return server end, verifying index data whether duplicate, to judge
Whether form data packet repeats, to solve the repetition submission due to the same list, leads to the form data submitted not only
One the technical issues of, to realize the effective monitoring for submitting process to list, and effectively prevents list and repeats to submit.
The above method has done uniqueness control by index data in database level, due to each access form request pair
The index data that should be generated is uniquely, i.e., can not to repeat, and therefore, can thoroughly avoid the generation for repeating to submit phenomenon, not
It is leaky.If when not can be used as the scene of value of uniqueness index, such as general tune account, simply generate a flowing water
It records, there is no anything to can be used as uniqueness index data in list.At this moment, so that it may by being sent out in server end to client
While sending form parameters, a unique index data being randomly generated by server end is sent, can be realized in list
In the case where there is no service fields to can be used as uniqueness index data, it can also accomplish to prevent list from repeating the technology submitted effect
Fruit.
Example as shown in connection with fig. 3 is it is found that the technical solution that the above embodiments of the present application step S21 is realized to step S27
In, after the login user of client submits access form request to server end, before server end enters and saves list,
The corresponding unique index data of the access form request can be first generated, which can be an index sequence
Sequence, index sequence sequence can carry out uniqueness control to the preservation process for the list that subsequent client is submitted
System is directed to an index sequence sequence, only allow to save a list to database or other can do uniqueness control
The system (such as caching system) of system, by uniqueness index data or multi version control protocol in data plane guarantee and each
The corresponding form parameters of index sequence sequence can only be saved once, if later to index sequence sequence's
The preservation request of corresponding form parameters can all store failure.
In a kind of alternative embodiment provided by the present application, preservation at least two that the step S27 in above-described embodiment is realized
The step of a form data packet may include that scheme is implemented as follows:
Step S271 receives at least two form data packets.
Whether identical step S273 detects the index data for including in each form data packet, wherein each detecting
In the case that index data in form data packet is different from, each form data packet is saved;
In the case where detecting the identical situation of index data in any two or multiple form data packets, from identical rope
A form data packet is selected to be saved in the form data packet of argument evidence.
Above-mentioned steps S271 is into step S273, and server end is by each of at least two form data packets received
Index data is compared, and repeats the case where submitting by the way that whether detection index data is identical to be confirmed whether to exist.Work as appearance
When index data in multiple form data packets is identical, illustrates to have and repeat the case where submitting to same form data packet and send out
It is raw, at this point, being saved to the form data packet with different index data.
In a kind of preferred embodiment, server end preferentially selects the form data packet being initially received to be saved, rear continued access
In the form data packet received, if the index data of subsequently received form data packet and the list number saved before
It is identical according to the index data of packet, then abandon subsequently received form data packet.
In practical application, index data table can be set in server end.Index data table is for storing as only
The index data of one mark.Specifically, when whether the index data for including in detecting each form data packet identical, first by table
Index data in single packet is inquired in index data table.If not comprising this index number in index data table
According to then the index data is recorded in index data table.If included this index data in index data table,
Explanation includes that the form data coating of this index data repeats to be transmitted across.
Preferably, whether executing above-mentioned steps S273, to detect the index data that includes in each form data packet identical
When, if in the case where detecting the identical situation of index data in any two or multiple form data packets, from identical rope
Selecting a form data packet save in the form data packet of argument evidence may include any one following scheme:
Scheme one: it is stabbed according to the first time carried in form data packet, from the form data with same index data
The form data packet requesting list at first and getting is selected to be saved in packet, wherein stamp is to receive client at the first time
The timestamp generated when holding the access form request sent.
In scheme one, the access list for marking received server-side to send to client is added for form data packet
The timestamp generated when request, thus according to the tandem of timestamp, to select the form data packet to be saved.When receiving
When multiple form data packets with same index data, in each timestamp, select corresponding with time preceding timestamp
Form data packet saved.
Scheme two: according to the second timestamp carried in form data packet, from the form data with same index data
Selection generates the earliest form data packet of list and is saved in packet, wherein the second timestamp is client according to form parameters
The timestamp generated simultaneously when generating list.
In scheme two, the timestamp generated when for the addition of form data packet for marking client generation list, thus
According to the tandem of timestamp, to select the form data packet to be saved.It is multiple with same index data when receiving
When form data packet, in each timestamp, form data packet corresponding with time preceding timestamp is selected to be saved.
Scheme three: according to the third timestamp carried in form data packet, from the form data with same index data
The form data packet being initially received is selected to be saved in packet, wherein third timestamp is the table for receiving client return
The timestamp generated when single packet.
In scheme three, the form data Bao Shisheng for marking server end to be initially received is added for form data packet
At timestamp, thus according to the tandem of timestamp, to select the form data packet to be saved.Multiple have when receiving
When the form data packet of same index data, in each timestamp, list number corresponding with time preceding timestamp is selected
It is saved according to packet.
Scheme four: according to the predetermined priority of form data packet, from the form data Bao Zhongxuan with same index data
The highest form data packet of priority is selected to be saved.
In scheme four, three kind timestamps of the above scheme one into scheme three can be added to each form data packet,
And assignment operation is carried out to form data packet according to three kinds of timestamps, weighted value is calculated, according to the size of weighted value, setting
The priority of form data packet.By the size of form data packet weighted value, to select the form data packet to be saved.Work as reception
When to multiple form data packets with same index data, the form data packet of highest priority is selected to be saved.
In addition to this it is possible to be divided by other conditions to the priority of form data packet.For example, list number
According to the integrated degree etc. of form parameters in the size of packet, form data packet.The above is only example, scheme provided by the present application is unlimited
In this.
In another alternative embodiment provided by the present application, step S27 in the above-described embodiments saves at least two
Before form data packet, method further include:
Step S261 verifies the list in each form data packet, obtains check results.
Step S263 is executed in the case where it is effective list that check results, which are list, and is saved at least two form datas
The step of packet.
Step S265 abandons the list number with invalid list in the case where it is invalid list that check results, which are list,
According to packet;Wherein, effective list refers to that the attributive character of list meets preset condition, and attributive character includes: the format of list, list
Character length, the character types for including.
S261 to step S265 through the above steps, before saving at least two form data reports, to each list number
It is verified according to the validity of packet.Only the form data packet that check results are effective list is saved.For check results
It for the form data packet of invalid list, then directly abandons, does not execute the step of saving at least two form data packets.
It can in advance accordingly include format, the character of list for the setting of each form data packet in practical application
The standard attribute of length and character types.By the way that the attributive character of each form data packet to be compared with standard attribute, come
Judge whether form data packet is effective.When attributive character is matched with standard attribute, then determine that the form data packet is effective
Form data packet.
By taking the format qualifications of list as an example, if the character types received in code data frame in current form are pre-
First be limited to need include: number, symbol combination, if the password of the list received is only number combinatorics on words, at this time table
Security requirement is not met singly, and the list submitted at this time is invalid list.In the value data frame of network payment list, format
It can be defined as number.If currently there is the character other than number in the value data frame of payment list, then it is assumed that this table
But it is undesirable, determine that time list is invalid list.It is, of course, also possible in different form types and list
The attribute of data frame passes through the word for determining to input in data frame to be defined to the data type inputted in data frame
Whether symbol type meets pre-set rule, to determine whether current form is effective.
In another alternative embodiment provided by the present application, the corresponding list ginseng of form request will be accessed in step S23
Several and index data is back to after client, method further include:
Step S241, client call list render function treatment form parameters, generate the corresponding table of access form request
Single input interface.
In the implementation of the application above-mentioned steps S241, list rendering function can be realized using list renderer.
Wherein, list renderer can be according to the location parameter for the table-layout parameter and input frame and button that server is sent, directly
It connects and is rendered to forms pages for display.It can also be directed to every kind of list, a cascading style sheets css file is set.Stacking
The layout content of list input interface corresponding with access form request is contained in style sheet css file.Client passes through reading
The content for taking cascading style sheets constructs the forms pages for soldier.
Step S243, client receive list content by list input interface, generate list to be committed.
Index data corresponding to the list of generation and accessed form request is combined into list by step S245, client
Data packet, and send form data packet.
Specifically, client renders forms pages after receiving form parameters, according to form parameters, generate with
Form request is corresponding for receiving the input interface of list content.Then client is generated by receiving list content wait mention
The form parameters of friendship.Form parameters and index data to be committed are combined into form data packet by last client, are sent to clothes
Business device end.
In practical applications, form parameters can be included at least for constituting the template parameter of forms pages frame, being used for
Prompt the prompt parameter of input content and the functional parameter for constituting submitting button.Client according to above-mentioned form parameters,
Generate list input interface corresponding with access form request.
In another alternative embodiment provided by the present application, rope corresponding to access form request is generated in step S21
In, step includes: argument
Step S211 extracts the characteristic in access form request.
Step S213 is handled characteristic using random number generator, using the random code of generation as index number
According to.
Herein it should be noted that the method for generating random code, can be the time that client is proposed to access form request
Cell-phone number with user is combined in a specific way as characteristic, Lai Shengcheng random code.It can also be by proposing to service
Device receives the time of access form request as characteristic, is combined with the random number of fixed digit, it is random to generate
Code.It is, of course, also possible to be client propose access time of form request, server receive access form request time,
The cell-phone number of user, user email address etc. wherein any one or more characteristics combine, Lai Shengcheng random code.
Time server to be received to access form request carries out as characteristic with the random number of fixed digit
Combination, the mode of Lai Shengcheng random code are illustrated.By reading the attribute of form data packet, server receives access list
The time of request, such as " character of time type is converted by type, is converted to character string class by 20150210,18:00:00 "
Type.Simultaneously by random function, the number of a fixed digit is generated.Above-mentioned character string and number are merged, thus
To final random code.Certainly, the specific digit of random code can be depending on the demand to list generation quantity.
In another alternative embodiment provided by the present application, the access list that client is sent is received in step S21 and is asked
While asking, server end also receives the registration information of the current user for logging in client, wherein is extracting from registration information
After user attribute data, index data corresponding to access form request, user property number are set by user attribute data
According to the unique identification information for the current user for logging in client.
Server end by judgement send access form request client user's logging state, come be confirmed whether using
The registration information of user is as index data.If user's logging state of active client is then to extract user's note when logging in
User attribute data in volume information is as index data.
In practical application, it is illustrated by taking electronic business transaction website as an example.If sent in client
When access clearing form request, obtain whether active client is user's logging state.If being to log in user's logging state
When, directly extract the E-mail address or cell-phone number bound in the registration information of user, the index as current balance list
Data.
It can in conjunction with Fig. 3 by taking the payment function that the Internet bank is realized by Webpage as an example in conjunction with above-described embodiment one
Know, embodiment provided by the present application may comprise steps of:
Step A sends access form request by client, which can be for accessing
Pay the access request of the page.
Step B, the access form request that server end is sent according to client are being generated for constituting the payment page
While form parameters, unique index data corresponding with the access request for paying the page can be generated, which can be
One index sequence sequence, index sequence sequence can to subsequent client submit list preservation process into
The control of row uniqueness.
Step C, server end return to index sequence sequence together with the form parameters for being used to constitute the payment page
Send the client of access request.
Step D, client render the form parameters that server is sent using list renderer, generate payment page
Face.And complete to fill in complete payment information on the payment page, generate list.
Step E, the index corresponding with the payment page that client is generated by the list of generation and before by server end
Sequence sequence is encapsulated as a form data packet, is back to server end, completes the submission work of list.
Step F, server verify the index sequence sequence for including in the form data packet received, verifying
Index sequence sequence in the form data packet is in the index sequence sequence of all form data packets received
It is whether unique.
Step G is stored in number to the payment page info in the form data packet if index sequence sequence is unique
According to library.
Step H is not carried out table by the payment page info in data packet if index sequence sequence is not unique
It is stored in database manipulation.
Above-mentioned steps may be implemented, and for an index sequence sequence, only allow to save a list to database
Or other systems (such as caching system) that can do uniqueness control, existed by uniqueness index data or multi version control protocol
Data plane guarantees that corresponding with each index sequence sequence form parameters can only be saved once, if later to
The preservation request of the corresponding form parameters of index sequence sequence can all store failure.
In conclusion being directed to above scheme through the invention, reach by adding index data for form data, to protect
Demonstrate,prove the form data purpose with uniqueness saved.It solves that the repetition of list can not be submitted and effectively monitors, lead
The not unique technical problem of the form data submitted caused.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of for implementing the Installation practice of above method embodiment, this Shen is additionally provided
It device can please run on computer terminals provided by above-described embodiment.
Fig. 4 is the structural schematic diagram for the device submitted again according to the control table substance of this law embodiment two.As shown in figure 4,
The device includes: processing module 31, return module 33, receiving module 35, memory module 37.
Wherein, it is right to generate access form request institute for receiving the access form request of client transmission for processing module 31
The form parameters and index data answered, wherein index data is the unique identification for accessing form request;Return module 33, is used for
The corresponding form parameters of form request will be accessed and index data is back to client;Receiving module 35, for receiving client
At least two form data packets returned, each form data packet include: the list generated according to form parameters, and and list
Corresponding index data;Memory module 37, for saving at least two form data packets, wherein in any two or more tables
In the identical situation of the index data for including in single packet, one of form data packet is only saved.
In practical application, if client when accessing some websites for the first time, this website usually may require that user
Personal information is registered, the email address or cell-phone number in user's registration information can be directly extracted in this web site server end
Index data of the code as uniqueness index.After submitting the form data packet comprising registration information by client, server end
The form data packet of user database can be put into store.If user repeats to submit the list number comprising registration information
According to packet (such as: repeating to click submitting button, click browser back button, network repeating transmission can all cause list to submit), due to having
Uniqueness index index data, it is rear repeat submit include same registration information enrollment form be impossible to enter number
According to library, to ensure that the uniqueness of data.
The above method has done uniqueness control by index data in database level, due to each access form request pair
The index data that should be generated is uniquely, i.e., can not to repeat, and therefore, can thoroughly avoid the generation for repeating to submit phenomenon, not
It is leaky.If when not can be used as the scene of value of uniqueness index, such as general tune account, simply generate a flowing water
It records, there is no anything to can be used as uniqueness index data in list.At this moment, so that it may by being sent out in server end to client
While sending form parameters, a unique index data being randomly generated by server end is sent, can be realized in list
In the case where there is no service fields to can be used as uniqueness index data, it can also accomplish to prevent list from repeating the technology submitted effect
Fruit.
Example as shown in connection with fig. 3 it is found that by processing module 31 in the above embodiments of the present application, return module 33,
In the technical solution that receiving module 35, memory module 37 are realized, submit access form request to clothes in the login user of client
It is engaged in behind device end, before server end enters and saves list, can first generate the corresponding unique index data of the access form request,
The index data can be an index sequence sequence, what index sequence sequence can submit subsequent client
The preservation process of list carries out uniqueness control, that is, is directed to an index sequence sequence, only allows to save a list extremely
Database or other systems (such as caching system) that can do uniqueness control, are controlled by uniqueness index data or multi version
Agreement guarantees that form parameters corresponding with each index sequence sequence can only be saved once in data plane, if it
Failure can all be stored to the preservation request with the corresponding form parameters of index sequence sequence afterwards.
Herein it should be noted that above-mentioned processing module 31, return module 33, receiving module 35, memory module 37 are corresponding
Step S21 to step S27 in embodiment one, the example and application scenarios phase that four modules are realized with corresponding step
Together, but it is not limited to the above embodiments a disclosure of that.It should be noted that above-mentioned module can be with as a part of device
It operates in the terminal 10 of the offer of embodiment one.
As shown in figure 5, above-mentioned memory module 37 includes: sub- reception mould in a kind of alternative embodiment provided by the present application
Block 371, detection module 373, the first preserving module 375, the second preserving module 377.
Wherein, sub- receiving module 371, for receiving at least two form data packets;Detection module 373, it is every for detecting
Whether the index data for including in a form data packet is identical;First preserving module 375, for detecting each form data
In the case that index data in packet is different from, each form data packet is saved;Second preserving module 377, for detecting
To in the identical situation of index data in any two or more form data packets, from the list number with same index data
A form data packet is selected to be saved according in packet.
By in above-mentioned sub- receiving module 371, detection module 373, the first preserving module 375, the second preserving module 377,
Each index data in at least two form data packets received is compared server end, by detecting index data
It is whether identical come the case where being confirmed whether to exist repetition submission.When the index data in the multiple form data packets of appearance is identical,
Illustrate to have and same form data packet is carried out to repeat the case where submitting, at this point, to the list number with different index data
It is saved according to packet.
In a kind of preferred embodiment, server end preferentially selects the form data packet being initially received to be saved, rear continued access
In the form data packet received, if the index data of subsequently received form data packet and the list number saved before
It is identical according to the index data of packet, then abandon subsequently received form data packet.
In practical application, index data table can be set in server end.Index data table is for storing as only
The index data of one mark.Specifically, when whether the index data for including in detecting each form data packet identical, first by table
Index data in single packet is inquired in index data table.If not comprising this index number in index data table
According to then the index data is recorded in index data table.If included this index data in index data table,
Explanation includes that the form data coating of this index data repeats to be transmitted across.
Herein it should be noted that above-mentioned sub- receiving module 371 corresponds to the step S271 in embodiment one, above-mentioned detection
Module 373, the first preserving module 375, the second preserving module 377 correspond to the step S273 in embodiment one, four modules with
The example that corresponding step is realized is identical with application scenarios, but is not limited to the above embodiments a disclosure of that.It needs
Bright, above-mentioned module is may operate in as a part of device in the terminal 10 of the offer of embodiment one.
Preferably, in the above embodiments of the present application, the second preserving module 377 includes any one following functional module: the
One selecting module 377a, the second selecting module 377b, third selecting module 377c and the 4th selecting module 377d.
Wherein, first choice module 377a, for being stabbed according to the first time carried in form data packet, from identical
The form data packet requesting list at first and getting is selected to be saved in the form data packet of index data, wherein first
Timestamp is the timestamp generated when receiving the access form request of client transmission;
Second selecting module 377b, for according to the second timestamp carried in form data packet, from same index
Selection generates the earliest form data packet of list and is saved in the form data packet of data, wherein the second timestamp is client
The timestamp that end generates simultaneously when generating list according to form parameters;
Third selecting module 377c, for according to the third timestamp carried in form data packet, from same index
The form data packet being initially received is selected to be saved in the form data packet of data, wherein third timestamp is to receive
The timestamp generated when the form data packet that client returns;
4th selecting module 377d, for the predetermined priority according to form data packet, from same index data
The form data packet of highest priority is selected to be saved in form data packet.
In addition to this it is possible to be divided by other conditions to the priority of form data packet.For example, list number
According to the integrated degree etc. of form parameters in the size of packet, form data packet.The above is only example, scheme provided by the present application is unlimited
In this.
Herein it should be noted that above-mentioned first choice module 377a, the second selecting module 377b, third selecting module
377c or the 4th selecting module 377d corresponds to four kinds of schemes in embodiment one in step S273, four modules with it is corresponding
The example that the step of scheme is included is realized is identical with application scenarios, but is not limited to the above embodiments a disclosure of that.
It should be noted that above-mentioned module is may operate in as a part of device in the terminal 10 of the offer of embodiment one.
Preferably, as shown in fig. 6, in the above embodiments of the present application, device further include: correction verification module 361, first handles mould
Block 363 and Second processing module 365.
Wherein, correction verification module 361 obtain check results for verifying to the list in each form data packet;The
One processing module 363, for executing and saving at least two form datas in the case where it is effective list that check results, which are list,
The step of packet;Second processing module 365 has in vain for abandoning in the case where it is invalid list that check results, which are list,
The form data packet of list;Wherein, effective list refers to that the attributive character of list meets preset condition, and attributive character includes: table
Character length, the character types that format, the list of list include.
By above-mentioned correction verification module 361, first processing module 363 and Second processing module 365, at least two tables are being saved
Before forms data report, the validity of each form data packet is verified.It is only the list number of effective list to check results
It is saved according to packet.It is the form data packet of invalid list for check results, then directly abandons, do not execute preservation at least two
The step of form data packet.
It can in advance accordingly include format, the character of list for the setting of each form data packet in practical application
The standard attribute of length and character types.By the way that the attributive character of each form data packet to be compared with standard attribute, come
Judge whether form data packet is effective.When attributive character is matched with standard attribute, then determine that the form data packet is effective
Form data packet.
By taking the format qualifications of list as an example, if the character types received in code data frame in current form are pre-
First be limited to need include: number, symbol combination, if the password of the list received is only number combinatorics on words, at this time table
Security requirement is not met singly, and the list submitted at this time is invalid list.In the value data frame of network payment list, format
It can be defined as number.If currently there is the character other than number in the value data frame of payment list, then it is assumed that this table
But it is undesirable, determine that time list is invalid list.It is, of course, also possible in different form types and list
The attribute of data frame passes through the word for determining to input in data frame to be defined to the data type inputted in data frame
Whether symbol type meets pre-set rule, to determine whether current form is effective.
Herein it should be noted that above-mentioned correction verification module 261, first processing module 263 and Second processing module 265 are corresponding
Example that the step of step S261 to step S265 in embodiment one, three modules and included corresponding scheme is realized and
Application scenarios are identical, but are not limited to the above embodiments a disclosure of that.It should be noted that above-mentioned module is as device
A part may operate in the terminal 10 of the offer of embodiment one.
Further, it is returned by return module 33 by the corresponding form parameters of each access form request and index data
It is back to after client, device can also be performed following steps and include:
Client call list renders function treatment form parameters, generates the corresponding list of access form request and inputs boundary
Face.In turn, list content is received by list input interface, generates list to be committed.Finally, by the list of generation and institute
Index data corresponding to access form request is combined into form data packet, and sends form data packet.
In practical applications, form parameters can be included at least for constituting the template parameter of forms pages frame, being used for
Prompt the prompt parameter of input content and the functional parameter for constituting submitting button.Client according to above-mentioned form parameters,
Generate list input interface corresponding with access form request.
Preferably, as shown in fig. 7, in the above embodiments of the present application, processing module 31 includes: the first subprocessing module 311
Or the second subprocessing module 313.
Wherein, the first subprocessing module 311 for extracting the characteristic in access form request, and uses random code
Generator handles characteristic, using the random code of generation as index data;Or the second subprocessing module 313, it is used for
While receiving the access form request that client is sent, the registration information of the current user for logging in client is received, and will
The user attribute data extracted in registration information is set as index data corresponding to access form request, user attribute data
For currently log in client user unique identification information.
The method for generating random code by above-mentioned first subprocessing module 311 or the second subprocessing module 313, can be by
Client proposes to access the time of form request and the cell-phone number of user as characteristic, is combined, comes in a specific way
Generate random code.It can also be by proposing that server receives the time of access form request as characteristic, with fixed bit
Several random numbers are combined, Lai Shengcheng random code.It is, of course, also possible to be that client proposes the time of access form request, clothes
It is wherein any one or more that business device receives the access time of form request, the cell-phone number of user, the email address etc. of user
Characteristic combines, Lai Shengcheng random code.
Herein it should be noted that above-mentioned first subprocessing module 311 or the second subprocessing module 313 correspond respectively to reality
Apply step S211 or step S213 in example one, the example and application that the step of three modules and included corresponding scheme is realized
Scene is identical, but is not limited to the above embodiments a disclosure of that.It should be noted that one as device of above-mentioned module
Divide in the terminal 10 that the offer of embodiment one is provided.
Embodiment 3
According to embodiments of the present invention, a kind of embodiment of the method that control table substance is submitted again is additionally provided, needs to illustrate
It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions,
Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein
Shown or described step.
This application provides the method that control table substance as shown in Figure 8 is submitted again, this method is applied to client.Fig. 8
It is according to embodiments of the present invention three flow chart of method submitted again of control table substance.
As shown in figure 8, the terminal 10 that the method submitted is repeated for executing the list can be server, it is a kind of
Optional scheme includes that step is implemented as follows:
Step S41 sends access form request to server.
Client in the application above-mentioned steps S41 sends access form request, can be and passes through website
The forms pages access request that web is sent is also possible to the forms pages access request sent by mobile phone, computer client.
For example, the access sent in shopping at network is paid for the forms pages request of indent goods, by the Internet bank
When the access that sends requested for filling in the forms pages of account information, in registration of website account access for filling in registration letter
Forms pages request of breath etc..
Step S43 receives form parameters and index data corresponding to the access form request that server generates, wherein
Index data is the unique identification for accessing form request.
In the application above-mentioned steps S43, it is each one for accessing form request and generating that client, which is received through server end,
The corresponding form parameters of group, and index data corresponding with each access form request.When client sends multiple access tables
When single request to server end, server end will return to same amount of index data, the index number of each access form request
According to different.
Step S45 generates at least two list numbers according to form parameters and index data corresponding to access form request
According to packet, each form data packet includes: the list generated according to form parameters, and index data corresponding with list.
In the application above-mentioned steps S45, to server end send include according to form parameters generate list and with
The corresponding index data of list.Further, refresh because of repetition, caused by network delay or other reasons when client
Form parameters repeat submit when, received server-side to repetition submit form data packet in, can include identical index number
According to server end can judge which current form data packet by index data to repeat the form data packet submitted.
Herein it should be noted that receiving the corresponding form parameters of current accessed form request and index number in client
According to the list generated according to form parameters later, can be submitted, in submission form, because a variety of causes, such as continuous submission are same
One list at least twice, may will generate multiple form data packets to the same list and be submitted to server, although alternatively,
It submits a list, but still almost while receiving the two of the same list since network blockage causes network to retransmit server-side
A form data packet.It should be noted that being unique in each form data packet comprising the index data for including.Therefore, exist
Whether the form data packet that receives of server end identification repeats, only by judge index data it is whether identical it is achieved that
Have the characteristics that method is easy and accuracy is high.
Step S47 sends at least two form data packets to server, wherein in any two or more form datas
In the identical situation of the index data for including in packet, server only saves one of form data packet.
In the application above-mentioned steps S47, server end after receiving all form data packets for being sent by client,
The scheme for saving list can be realized by the way that all form data packets are stored in database.During saving list,
Whether index data in each form data packet is identical to determine whether to save the form data packet by detecting, if arbitrarily
Corresponding index data is identical in two or more form data packets, then can determine any two or multiple form data packets are
Repeat the list submitted.When there is more than two form data packets with same index data, only retain one of table
Single packet, so as to avoid the defect for repeating submission form, likewise, if carrying in the form data packet of subsequent submission
Index data is identical as the index data for the form data packet being saved, then can determine the form data that current subsequent is submitted
Packet abandons the form data packet to repeat the data packet submitted.
In a kind of optinal plan, server end can be after the form data packet for receiving client transmission, and unified pair
The form data packet received is stored, and is then come again by the way that the index data in each form data packet is compared
It is confirmed whether the form data packet for having repetition to submit.When the form data packet for thering is repetition to submit, at random in the table for repeating to submit
One is selected in single packet to be saved.After saving successfully, other are deleted with the form data packet and repeats the list submitted
Data packet, to improve reliability.
In practical application, if client when accessing some websites for the first time, this website usually may require that user
Personal information is registered, the email address or cell-phone number in user's registration information can be directly extracted in this web site server end
Index data of the code as uniqueness index.After submitting the form data packet comprising registration information by client, server end
The form data packet of user database can be put into store.If user repeats to submit the list number comprising registration information
According to packet (such as: repeating to click submitting button, click browser back button, network repeating transmission can all cause list to submit), due to having
Uniqueness index index data, it is rear repeat submit include same registration information enrollment form be impossible to enter number
According to library, to ensure that the uniqueness of data.
The above method has done uniqueness control by index data in database level, due to each access form request pair
The index data that should be generated is uniquely, i.e., can not to repeat, and therefore, can thoroughly avoid the generation for repeating to submit phenomenon, not
It is leaky.If when not can be used as the scene of value of uniqueness index, such as general tune account, simply generate a flowing water
It records, there is no anything to can be used as uniqueness index data in list.At this moment, so that it may by being sent out in server end to client
While sending form parameters, a unique index data being randomly generated by server end is sent, can be realized in list
In the case where there is no service fields to can be used as uniqueness index data, it can also accomplish to prevent list from repeating the technology submitted effect
Fruit.
Example as shown in connection with fig. 3 is it is found that the technical solution that the above embodiments of the present application step S41 is realized to step S47
In, after the login user of client submits access form request to server end, before server end enters and saves list,
The corresponding unique index data of the access form request can be first generated, which can be an index sequence
Sequence, index sequence sequence can carry out uniqueness control to the preservation process for the list that subsequent client is submitted
System is directed to an index sequence sequence, only allow to save a list to database or other can do uniqueness control
The system (such as caching system) of system, by uniqueness index data or multi version control protocol in data plane guarantee and each
The corresponding form parameters of index sequence sequence can only be saved once, if later to index sequence sequence's
The preservation request of corresponding form parameters can all store failure.
In a kind of optinal plan, form parameters corresponding to the access form request that server generates are received in step S43
After index data, method further include:
Step S441 calls list to render function treatment form parameters, generates the corresponding list input of access form request
Interface.
In the implementation of the application above-mentioned steps S441, list rendering function can be realized using list renderer.
Wherein, the location parameter of list renderer is used to be sent according to server table-layout parameter and input frame and button, directly
It connects and is rendered to forms pages for display.It can also be directed to every kind of list, a cascading style sheets css file is set.Stacking
The layout content of list input interface corresponding with access form request is contained in style sheet css file.Client passes through reading
The content for taking cascading style sheets constructs forms pages for display.
Step S443 receives list content by list input interface, generates list to be committed.
Index data corresponding to the list of generation and accessed form request is combined into form data by step S445
Packet, and send form data packet.
Specifically, client renders forms pages after receiving form parameters, according to form parameters, generate with
Form request is corresponding for receiving the input interface of list content.Then client is generated by receiving list content wait mention
The form parameters of friendship.Form parameters and index data to be committed are combined into form data packet by last client, are sent to clothes
Business device end.
In practical applications, form parameters can be included at least for constituting the template parameter of forms pages frame, being used for
Prompt the prompt parameter of input content and the functional parameter for constituting submitting button.Client according to above-mentioned form parameters,
Generate list input interface corresponding with access form request.
In conclusion being directed to above scheme through the invention, reach by adding index data for form data, to protect
Demonstrate,prove the form data purpose with uniqueness saved.It solves that the repetition of list can not be submitted and effectively monitors, lead
The not unique technical problem of the form data submitted caused.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 4
According to embodiments of the present invention, a kind of for implementing the Installation practice of above method embodiment, this Shen is additionally provided
It device please can be run in arithmetic unit on computer terminals, similar provided by above-described embodiment.
Fig. 9 is the structural schematic diagram for the device submitted again according to the control table substance of this law example IV.As shown in figure 9,
The device includes: the first sending module 51, the first receiving module 53, the first generation module 55, the second sending module 57.
Wherein, the first sending module 51, for sending access form request to server;First receiving module 53, is used for
Receive form parameters and index data corresponding to the access form request that server generates, wherein index data is access table
The unique identification singly requested;First generation module 55, for form parameters and index number according to corresponding to access form request
According at least two form data packets of generation, each form data packet includes: the list generated according to form parameters, and and table
Single corresponding index data;Second sending module 57, for sending at least two form data packets to server, wherein in office
It anticipates in the identical situation of index data for including in two or more form data packets, server only saves one of list number
According to packet.
In practical application, if client when accessing some websites for the first time, this website usually may require that user
Personal information is registered, the email address or cell-phone number in user's registration information can be directly extracted in this web site server end
Index data of the code as uniqueness index.After submitting the form data packet comprising registration information by client, server end
The form data packet of user database can be put into store.If user repeats to submit the list number comprising registration information
According to packet (such as: repeating to click submitting button, click browser back button, network repeating transmission can all cause list to submit), due to having
Uniqueness index index data, it is rear repeat submit include same registration information enrollment form be impossible to enter number
According to library, to ensure that the uniqueness of data.
The above method has done uniqueness control by index data in database level, due to each access form request pair
The index data that should be generated is uniquely, i.e., can not to repeat, and therefore, can thoroughly avoid the generation for repeating to submit phenomenon, not
It is leaky.If when not can be used as the scene of value of uniqueness index, such as general tune account, simply generate a flowing water
It records, there is no anything to can be used as uniqueness index data in list.At this moment, so that it may by being sent out in server end to client
While sending form parameters, a unique index data being randomly generated by server end is sent, can be realized in list
In the case where there is no service fields to can be used as uniqueness index data, it can also accomplish to prevent list from repeating the technology submitted effect
Fruit.
Example as shown in connection with fig. 3 is it is found that the technical solution that the above embodiments of the present application step S41 is realized to step S47
In, after the login user of client submits access form request to server end, before server end enters and saves list,
The corresponding unique index data of the access form request can be first generated, which can be an index sequence
Sequence, index sequence sequence can carry out uniqueness control to the preservation process for the list that subsequent client is submitted
System is directed to an index sequence sequence, only allow to save a list to database or other can do uniqueness control
The system (such as caching system) of system, by uniqueness index data or multi version control protocol in data plane guarantee and each
The corresponding form parameters of index sequence sequence can only be saved once, if later to index sequence sequence's
The preservation request of corresponding form parameters can all store failure.
Herein it should be noted that above-mentioned first sending module 51, the first receiving module 53, the first generation module 55,
One preserving module 57 corresponds to the step S41 to step S47 in embodiment three, and four modules are shown with what corresponding step was realized
Example is identical with application scenarios, but is not limited to the above embodiments three disclosure of that.It should be noted that above-mentioned module is as dress
The a part set may operate in the terminal 10 of the offer of embodiment three.
In a kind of optinal plan, as shown in Figure 10, after the function of executing the first receiving module 53, device further include:
Calling module 541, generation module 543 and composite module 545.
Wherein, calling module 541 generate access form request pair for calling list to render function treatment form parameters
The list input interface answered;Generation module 543 generates table to be committed for receiving list content by list input interface
It is single;Composite module 545, for index data corresponding to the list of generation and accessed form request to be combined into form data
Packet, and send form data packet.
Specifically, list rendering function treatment can directly realize list rendering function by list renderer.Wherein,
The location parameter of table-layout parameter and input frame and button that list renderer is used to be sent according to server, direct wash with watercolours
Dye forms pages for display.It can also be directed to every kind of list, a cascading style sheets css file is set.Cascading style
The layout content of list input interface corresponding with access form request is contained in table css file.Client passes through reading layer
The content of stacking style table constructs forms pages for display.
Specifically, client renders forms pages after receiving form parameters, according to form parameters, generate with
Form request is corresponding for receiving the input interface of list content.Then client is generated by receiving list content wait mention
The form parameters of friendship.Form parameters and index data to be committed are combined into form data packet by last client, are sent to clothes
Business device end.
In practical applications, form parameters can be included at least for constituting the template parameter of forms pages frame, being used for
Prompt the prompt parameter of input content and the functional parameter for constituting submitting button.Client according to above-mentioned form parameters,
Generate list input interface corresponding with access form request.
In conclusion being directed to above scheme through the invention, reach by adding index data for form data, to protect
Demonstrate,prove the form data purpose with uniqueness saved.It solves that the repetition of list can not be submitted and effectively monitors, lead
The not unique technical problem of the form data submitted caused.
Herein it should be noted that above-mentioned calling module 541, generation module 543 and composite module 545 correspond to embodiment
Step S441 to step S445 in three, above three module is identical as example and application scenarios that corresponding step is realized,
But it is not limited to the above embodiments three disclosure of that.It should be noted that above-mentioned module can be transported as a part of of device
Row is in the terminal 10 that embodiment three provides.
Embodiment 5
Figure 11 is a kind of structural block diagram of according to embodiments of the present invention five system that control table substance is submitted again.
As shown in figure 11, the system which submits again may include: client 101 and server 102.
Wherein, client 101, for sending access form request;
Server 102 is communicated with the foundation of client 101, for receiving the access form request of client transmission, is generated and is visited
It asks form parameters corresponding to form request and index data, the corresponding form parameters of form request and index data will accessed
It is back to after client, receives at least two form data packets that client returns, wherein in any two or more lists
In the identical situation of the index data for including in data packet, one of form data packet is only saved;
Wherein, client form parameters and index data according to corresponding to access form request, generates at least two tables
Single packet, each form data packet include: the list generated according to form parameters, and index data corresponding with list,
Index data is the unique identification for accessing form request.
In scheme provided by above system, server can be saved form data packet to database, it can be realized
Uniqueness control is carried out by index data in database level, due to each corresponding index data generated of access form request
It is that uniquely, i.e., can not repeat, therefore, can thoroughly avoids the generation for repeating to submit phenomenon, it is not leaky.If not having
When can be used as the scene of the value of uniqueness index, such as general tune account simply generates a Flow Record, not assorted in list
It can be used as uniqueness index data.At this moment, so that it may by server end to client send form parameters while,
A unique index data being randomly generated by server end is sent, can be realized does not have service fields that can make in list
In the case where for uniqueness index data, it can also accomplish to prevent list from repeating the technical effect submitted.
Herein it should be noted that system embodiment involved by the embodiment of the present application 5 may include multiple optional
Or preferred embodiment, the preferred or optional implementation that optional or preferred embodiment can be provided with embodiment 1 or embodiment 3
Example is identical, but is not limited to the above embodiments the preferred or alternative embodiment of 1 or the offer of embodiment 3.
Embodiment 6
The embodiment of the present invention can provide a kind of terminal, which can be applied to server end
Terminal group in any one computer terminal.
Optionally, in the present embodiment, above-mentioned terminal can be located in multiple network equipments of computer network
At least one network equipment.
In the present embodiment, above-mentioned terminal can be with following steps in the leak detection method of executing application
Program code: receiving the access form request that client is sent, and generates form parameters and index corresponding to access form request
Data, wherein index data is the unique identification for accessing form request;The corresponding form parameters of form request and index will be accessed
Data are back to client;At least two form data packets that client returns are received, each form data packet includes: according to table
The list that one-parameter generates, and index data corresponding with list;Save at least two form data packets, wherein any
In the identical situation of index data for including in two or more form data packets, one of form data packet is only saved.
Optionally, which may include: one or more processors, memory and transmitting device.
Wherein, memory can be used for storing software program and module, such as the security breaches detection in the embodiment of the present invention
Corresponding program instruction/the module of method and apparatus, the software program and module that processor is stored in memory by operation,
Thereby executing various function application and data processing, that is, realize the detection method of above-mentioned system vulnerability attack.Memory can
Can also include nonvolatile memory including high speed random access memory, as one or more magnetic storage device, flash memory,
Or other non-volatile solid state memories.In some instances, memory can further comprise remotely setting relative to processor
The memory set, these remote memories can pass through network connection to terminal A.The example of above-mentioned network is including but not limited to mutual
Networking, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device is used to that data to be received or sent via a network.Above-mentioned network specific example can wrap
Include cable network and wireless network.In an example, transmitting device includes a network adapter (Network
Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection
Net or local area network are communicated.In an example, transmitting device is radio frequency (Radio Frequency, RF) module, is used for
Wirelessly communicated with internet.
Wherein, specifically, memory is used to store the information of deliberate action condition and default access user and using journey
Sequence.
Processor can call the information and application program of memory storage by transmitting device, to execute following step:
The access form request that client is sent is received, form parameters and index data corresponding to access form request are generated, wherein
Index data is the unique identification for accessing form request;The corresponding form parameters of form request will be accessed and index data is back to
Client;At least two form data packets that client returns are received, each form data packet includes: to generate according to form parameters
List, and index data corresponding with list;Save at least two form data packets, wherein any two or more
In the identical situation of the index data for including in form data packet, one of form data packet is only saved.
Optionally, the program code of following steps can also be performed in above-mentioned processor: receiving at least two form data packets;
Whether identical detect the index data for including in each form data packet, wherein detecting the rope in each form data packet
Argument saves each form data packet according in the case where being different from;In detecting any two or multiple form data packets
The identical situation of index data under, select form data packet to carry out from the form data packet with same index data
It saves.
Optionally, the program code of following steps can also be performed in above-mentioned processor: according to what is carried in form data packet
Stab at the first time, select to request list at first from the form data packet with same index data and the form data that gets
Packet is saved, wherein stamp is the timestamp generated when receiving the access form request of client transmission at the first time;According to
The second timestamp carried in form data packet, it is earliest to generate list for selection from the form data packet with same index data
Form data packet saved, wherein the second timestamp be client according to form parameters generate list when simultaneously generate
Timestamp;According to the third timestamp carried in form data packet, selected from the form data packet with same index data
The form data packet being initially received is saved, wherein third timestamp is the form data packet for receiving client return
When the timestamp that generates;According to the predetermined priority of form data packet, from the form data Bao Zhongxuan with same index data
The highest form data packet of priority is selected to be saved.
Optionally, the program code of following steps can also be performed in above-mentioned processor: to the table in each form data packet
It is singly verified, obtains check results;In the case where it is effective list that check results, which are list, executes and save at least two tables
The step of single packet;In the case where it is invalid list that check results, which are list, the form data with invalid list is abandoned
Packet;Wherein, effective list refers to that the attributive character of list meets preset condition, and attributive character includes: the format of list, list packet
Character length, the character types contained.
Optionally, the program code of following steps: client call list rendering function can also be performed in above-mentioned processor
Form parameters are handled, the corresponding list input interface of access form request is generated;Client receives table by list input interface
Single content generates list to be committed;Client is by index data group corresponding to the list of generation and accessed form request
Form data packet is synthesized, and sends form data packet.
Optionally, the program code of following steps can also be performed in above-mentioned processor: extracting the spy in access form request
Levy data;Characteristic is handled using random number generator, using the random code of generation as index data.
Optionally, the program code of following steps can also be performed in above-mentioned processor: user attribute data is set as visiting
Ask index data corresponding to form request, user attribute data is the unique identification information of the current user for logging in client.
Using the embodiment of the present invention, a kind of scheme that control table substance is submitted again is provided.It is sent by receiving client
Access form request, generate access form request corresponding to form parameters and index data, wherein index data be access
The unique identification of form request;The corresponding form parameters of form request will be accessed and index data is back to client;Receive visitor
At least two form data packets that family end returns, each form data packet include: the list generated according to form parameters, Yi Jiyu
The corresponding index data of list;Save at least two form data packets, wherein wrap in any two or more form data packets
In the identical situation of the index data contained, one of form data packet is only saved, to reach by adding for form data
Data are indexed, to guarantee the form data saved purpose with uniqueness, and then are solved due to the same list
It repeats to submit, the technical problem for causing the form data submitted not unique.
It will appreciated by the skilled person that terminal be also possible to smart phone (such as Android phone,
IOS mobile phone etc.), tablet computer, applause computer and mobile internet device (Mobile Internet Devices, MID),
The terminal devices such as PAD.But the structure of above-mentioned electronic device is not caused to limit.For example, terminal 10 may also include ratio
The more perhaps less component of above-mentioned electronic device (such as network interface, display device) has and above-mentioned electronic device
Different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 7
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
For saving program code performed by the method that control table substance is submitted again provided by above-described embodiment one.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: connecing
The access form request that client is sent is received, generates form parameters and index data corresponding to access form request, wherein rope
Argument is according to the unique identification for access form request;The corresponding form parameters of form request will be accessed and index data is back to visitor
Family end;At least two form data packets that client returns are received, each form data packet includes: to generate according to form parameters
List, and index data corresponding with list;Save at least two form data packets, wherein in any two or more tables
In the identical situation of the index data for including in single packet, one of form data packet is only saved.
Optionally, storage medium is arranged to store the program code for executing following steps: receiving at least two tables
Single packet;Whether identical detect the index data for including in each form data packet, wherein detecting each form data
In the case that index data in packet is different from, each form data packet is saved;Detecting any two or multiple lists
In the identical situation of index data in data packet, a list number is selected from the form data packet with same index data
It is saved according to packet.
Optionally, storage medium is arranged to store the program code for executing following steps: according to form data packet
The first time of middle carrying stabs, and selects to request list at first and get from the form data packet with same index data
Form data packet is saved, wherein at the first time stamp for receive client transmission access form request when generate when
Between stab;According to the second timestamp carried in form data packet, life is selected from the form data packet with same index data
It is saved at the earliest form data packet of list, wherein when the second timestamp is that client generates list according to form parameters
The timestamp generated simultaneously;According to the third timestamp carried in form data packet, from the list number with same index data
According to selecting the form data packet being initially received to be saved in packet, wherein third timestamp is to receive what client returned
The timestamp generated when form data packet;According to the predetermined priority of form data packet, from the list with same index data
The form data packet of highest priority is selected to be saved in data packet.
Optionally, storage medium is arranged to store the program code for executing following steps: to each form data
List in packet is verified, and check results are obtained;In the case where it is effective list that check results, which are list, executes and save extremely
The step of few two form data packets;In the case where it is invalid list that check results, which are list, abandon with invalid list
Form data packet;Wherein, effective list refers to that the attributive character of list meets preset condition, and attributive character includes: the lattice of list
Character length that formula, list include, character types.
Optionally, storage medium is arranged to store the program code for executing following steps: client call list
Function treatment form parameters are rendered, the corresponding list input interface of access form request is generated;Client inputs boundary by list
Face receives list content, generates list to be committed;Client is by rope corresponding to the list of generation and accessed form request
Argument evidence is combined into form data packet, and sends form data packet.
Optionally, storage medium is arranged to store the program code for executing following steps: extracting access list and asks
Characteristic in asking;Characteristic is handled using random number generator, using the random code of generation as index data.
Optionally, storage medium is arranged to store the program code for executing following steps: by user attribute data
It is set as index data corresponding to access form request, user attribute data is unique mark of the current user for logging in client
Know information.
Herein it should be noted that any one in above-mentioned terminal group can be with Website server and scanner
Correspondence is established, scanner can be with the value order of the weblication executed of php in scanning computer terminal.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed server end can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
Embodiment 8
The embodiment of the present invention can provide a kind of terminal, which can be applied to client
Any one computer terminal in terminal group.Optionally, in the present embodiment, above-mentioned terminal can also
To replace with the terminal devices such as mobile terminal.
Optionally, in the present embodiment, above-mentioned terminal can be located in multiple network equipments of computer network
At least one network equipment.
In the present embodiment, above-mentioned terminal can be with following steps in the leak detection method of executing application
Program code: access form request is sent to server;Receive the ginseng of list corresponding to the access form request that server generates
Several and index data, wherein index data is the unique identification for accessing form request;According to table corresponding to access form request
One-parameter and index data generate at least two form data packets, and each form data packet includes: to be generated according to form parameters
List, and index data corresponding with list;Save at least two form data packets, wherein in any two or more tables
In the identical situation of the index data for including in single packet, one of form data packet is only saved.
Optionally, terminal A may include: one or more processors, memory and transmitting device.
Wherein, memory can be used for storing software program and module, such as the security breaches detection in the embodiment of the present invention
Corresponding program instruction/the module of method and apparatus, the software program and module that processor is stored in memory by operation,
Thereby executing various function application and data processing, that is, realize the detection method of above-mentioned system vulnerability attack.Memory can
Can also include nonvolatile memory including high speed random access memory, as one or more magnetic storage device, flash memory,
Or other non-volatile solid state memories.In some instances, memory can further comprise remotely setting relative to processor
The memory set, these remote memories can pass through network connection to terminal A.The example of above-mentioned network is including but not limited to mutual
Networking, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device is used to that data to be received or sent via a network.Above-mentioned network specific example can wrap
Include cable network and wireless network.In an example, transmitting device includes a network adapter (Network
Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection
Net or local area network are communicated.In an example, transmitting device is radio frequency (Radio Frequency, RF) module, is used for
Wirelessly communicated with internet.
Wherein, specifically, memory is used to store the information of deliberate action condition and default access user and using journey
Sequence.
Processor can call the information and application program of memory storage by transmitting device, to execute following step:
Access form request is sent to server;Receive form parameters and index number corresponding to the access form request that server generates
According to, wherein index data is the unique identification for accessing form request;According to form parameters and rope corresponding to access form request
Argument evidence generates at least two form data packets, and each form data packet includes: the list generated according to form parameters, and
Index data corresponding with list;Save at least two form data packets, wherein in any two or more form data packets
In the identical situation of the index data for including, one of form data packet is only saved.
Optionally, the program code of following steps can also be performed in above-mentioned processor: calling list rendering function treatment table
One-parameter generates the corresponding list input interface of access form request;By list input interface receive list content, generate to
The list of submission;Index data corresponding to the list of generation and accessed form request is combined into form data packet, concurrently
Send form data packet.
Using the embodiment of the present invention, a kind of scheme that control table substance is submitted again is provided.It is asked by sending access list
It asks to server;Receive form parameters and index data corresponding to the access form request that server generates, wherein index number
According to the unique identification to access form request;According to form parameters and index data corresponding to access form request, generate extremely
Few two form data packets, each form data packet include: the list generated according to form parameters, and rope corresponding with list
Argument evidence;Save at least two form data packets, wherein the index data for including in any two or more form data packets
In identical situation, one of form data packet is only saved, to reach by adding index data for form data, is come
Guarantee the form data purpose with uniqueness saved, and then solve the repetition submission due to the same list, causes to mention
The not unique technical problem of the form data of friendship.
It will appreciated by the skilled person that terminal be also possible to smart phone (such as Android phone,
IOS mobile phone etc.), tablet computer, applause computer and mobile internet device (Mobile Internet Devices, MID),
The terminal devices such as PAD.But the structure of above-mentioned electronic device is not caused to limit.For example, terminal 10 may also include ratio
The more perhaps less component of above-mentioned electronic device (such as network interface, display device) has and above-mentioned electronic device
Different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 9
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
For saving program code performed by the method that control table substance is submitted again provided by above-described embodiment three.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps: can
Choosing, storage medium is arranged to store the program code for executing following steps: sending access form request to server;
Receive form parameters and index data corresponding to the access form request that server generates, wherein index data is access table
The unique identification singly requested;According to form parameters and index data corresponding to access form request, at least two lists are generated
Data packet, each form data packet include: the list generated according to form parameters, and index data corresponding with list;It protects
Deposit at least two form data packets, wherein the identical feelings of index data for including in any two or more form data packets
Under condition, one of form data packet is only saved.
Optionally, storage medium is arranged to store the program code for executing following steps: calling list rendering function
Form parameters can be handled, the corresponding list input interface of access form request is generated;It is received in list by list input interface
Hold, generates list to be committed;Index data corresponding to the list of generation and accessed form request is combined into list number
According to packet, and send form data packet.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: USB flash disk, read-only memory (mono- Only Memory of ROM, Read), arbitrary access
Memory (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. are various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.