Movatterモバイル変換


[0]ホーム

URL:


CN112905163A - Form submitting method and equipment - Google Patents

Form submitting method and equipment
Download PDF

Info

Publication number
CN112905163A
CN112905163ACN202110277507.1ACN202110277507ACN112905163ACN 112905163 ACN112905163 ACN 112905163ACN 202110277507 ACN202110277507 ACN 202110277507ACN 112905163 ACN112905163 ACN 112905163A
Authority
CN
China
Prior art keywords
target form
target
information
duplication
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110277507.1A
Other languages
Chinese (zh)
Other versions
CN112905163B (en
Inventor
孙燕臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Wanwu Xinsheng Information Technology Group Co.,Ltd.
Original Assignee
Shanghai Yueyi Network Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yueyi Network Information Technology Co LtdfiledCriticalShanghai Yueyi Network Information Technology Co Ltd
Priority to CN202110277507.1ApriorityCriticalpatent/CN112905163B/en
Publication of CN112905163ApublicationCriticalpatent/CN112905163A/en
Application grantedgrantedCritical
Publication of CN112905163BpublicationCriticalpatent/CN112905163B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The method comprises the steps that a client side responds to a request for opening a target list and a one-way server side sends a repeat prevention request; a duplicate prevention component is established in a server, generates duplicate prevention information for a target form, stores the opening time and the duplicate prevention information of the target form, and returns the duplicate prevention information to a client, so that the client acquires the service data of the target form and sends a form submission request to the server; the server checks whether the target form is repeatedly submitted or not based on the anti-duplication information, the opening time and the submitting time, if not, the service data is processed, and the service processing result of the target form is returned to the client, so that the anti-duplication component is created by taking out the anti-duplication information for the form from the service, and the anti-duplication component is packaged into an independently deployed component system, a simple and easy-to-use access mode is provided, no service code is invaded, and the anti-duplication service is stably and safely provided with high multiplexing.

Description

Form submitting method and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a form submission method and device.
Background
In order to prevent the problems of server overload and resource waste caused by repeated submission of forms within a certain time, in the prior art, the problem of repeated submission of forms can be solved through front-end control and back-end programmer control. When the front-end control is adopted, modes such as delayed submission or popup confirmation are used, but the front-end and the back-end are already mainstream in the industry, and the control cannot really solve the problem of repeated submission, such as the situation that the front-end is directly bypassed to submit a form; when the method is controlled by a back-end programmer, for example, the method is firstly queried and compared, and then storage or other additional development is carried out to solve the problem, but the back-end control can increase development cost, pollute service codes, and have poor reusability and portability.
Disclosure of Invention
An object of the present application is to provide a form submission method and apparatus, which can provide a simple and easy-to-use access method, no service code intrusion, high-multiplexing, stable and safe anti-replay service.
According to one aspect of the application, a form submission method is provided, which is applied to a server, wherein the method comprises the following steps:
creating a recombination-preventing part;
receiving a re-proof request sent by a client in response to the target form being opened, wherein the re-proof request comprises an identifier of the target form and an opening time;
the anti-duplication component generates anti-duplication information for the target form, and stores the opening time and the anti-duplication information of the target form;
returning the anti-duplication information of the target form to the client;
receiving a form submission request of the target form sent by the client, wherein the form submission request comprises the service data, the anti-duplication information and submission time;
the anti-recombination component acquires the opening time based on the anti-recombination information, and verifies whether the target form is repeatedly submitted or not based on the opening time and the submission time;
and if not, processing the service data and returning a service processing result of the target form to the client.
Further, in the above method, after checking whether the target form is repeatedly submitted based on the opening time and the submission time, the method further includes:
and if so, returning response information for indicating the repeated submission of the target form to the client.
Further, in the above method, the method further includes:
presetting a cache database, wherein the cache database is independent from the anti-recombination component;
wherein storing the open time and the anti-duplication information of the target form comprises:
storing the opening time and the anti-duplication information of the target form to the cache database;
wherein the anti-reassembly component acquires the open time based on the anti-duplication information, comprising:
the anti-reassembly component obtains the opening time corresponding to the anti-reassembly information from the cache database based on the anti-reassembly information.
Further, in the above method, the checking, by the anti-reassembly component, whether the target form is repeatedly submitted based on the opening time and the submission time includes:
inquiring and acquiring a target anti-duplication time length threshold corresponding to the target form;
calculating a time difference between the opening time and the commit time;
judging whether the time difference is larger than the target anti-weight duration threshold value or not,
if yes, indicating the target form to be repeatedly submitted;
if not, indicating that the target form is not repeatedly submitted.
Further, in the above method, the method further includes:
presetting anti-reconfiguration information, wherein the anti-reconfiguration information comprises at least one preset form and a first anti-reconfiguration time length threshold corresponding to each easily preset form;
wherein, the querying and obtaining the target anti-duplication duration threshold corresponding to the target form comprises:
inquiring whether a first anti-repeating time length threshold corresponding to the target form exists in the anti-reconfiguring information,
if the target form exists, determining a first anti-duplication time length threshold corresponding to the target form in the anti-reconfiguration information as the target anti-duplication time length threshold;
and if the target anti-duplication time length does not exist, determining a preset second anti-duplication time length threshold as the target anti-duplication time length threshold, wherein the second anti-duplication time length threshold is suitable for any form.
According to another aspect of the present application, there is also provided a form submission method applied to a client, where the method includes:
responding to the opening of a target form, and sending a re-protection request to a server, wherein the re-protection request comprises an identifier and an opening time of the target form, so that a re-protection component created in the server generates re-protection information for the target form and stores the opening time and the re-protection information of the target form;
receiving the anti-duplication information of the target form returned by the server;
acquiring the service data of the target form;
sending a form submission request to the server, wherein the form submission request comprises the business data, the anti-duplication information and submission time, so that the server checks whether the target form is repeatedly submitted or not based on the anti-duplication information, the opening time and the submission time;
and when the target form is not repeatedly submitted, receiving a service processing result of the target form returned by the server.
Further, in the above method, the method further includes:
and when the target form is repeatedly submitted, receiving response information returned by the server and used for indicating the repeated submission of the target form.
According to another aspect of the present application, there is also provided a non-volatile storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to implement the form submission method as described above.
According to another aspect of the present application, there is also provided a server for form submission, wherein the server includes:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a form submission method for a server as described above.
According to another aspect of the present application, there is also provided a client for form submission, wherein the client includes:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a form submission method for a client as described above
Compared with the prior art, the client side sends the anti-replay request to the server side in response to the target form being opened, wherein the anti-replay request comprises the identifier and the opening time of the target form; a duplicate prevention component is created in a server, the duplicate prevention component generates duplicate prevention information for the target form, the opening time and the duplicate prevention information of the target form are stored, and the server returns the duplicate prevention information of the target form to the client; the client receives the anti-duplication information of the target form returned by the server, acquires the service data of the target form, and sends a form submission request to the server, wherein the form submission request comprises the service data, the anti-duplication information and submission time; and the server checks whether the target form is repeatedly submitted or not based on the anti-duplication information, the opening time and the submitting time, and if not, the server processes the business data and returns the business processing result of the target form to the client so that the client receives the business processing result of the target form returned by the server. The anti-duplication component is created by taking out the anti-duplication part for the form from the service, and the anti-duplication component is packaged into the independently deployed component system, so that a simple and easy-to-use access mode is provided, no service code is invaded, and the high-multiplexing and stable and safe anti-duplication service is provided.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates an interactive flow diagram of a form submission method in accordance with an aspect of the subject application;
FIG. 2 illustrates an interactive view of an actual application scenario in a form submission method in accordance with an aspect of the subject application;
FIG. 3 illustrates a flow diagram of a component interceptor in a form submission method in accordance with an aspect of the subject application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Fig. 1 shows an interaction flow diagram of a form submission method according to an aspect of the present application, where the method includes steps S11, S12, S13, S14, S15, and S16 executed by a client, and steps S21, S22, S23, S24, S25, S26, S27, and S28 executed by a server, and specifically includes the following steps:
at the server, in order to verify whether the form is submitted repeatedly, in step S21, the server creates an anti-reassembly component, so that the anti-reassembly component is independent from the business processes corresponding to the form, i.e., is extracted from the business processes of the form, thereby avoiding mutual interference and intrusion between the codes of the business processes and the anti-reassembly component submitted by the form.
Step S11, the client sends a request for preventing duplication to the server in response to the target form being opened, the request for preventing duplication includes the identifier and the opening time of the target form, so that a duplication preventing component created in the server generates duplication preventing information for the target form and stores the opening time and the duplication preventing information of the target form; as shown in fig. 2, when a client (corresponding to the front end in fig. 2) opens a target form, the client calls a server (corresponding to the background application in fig. 2) that creates an anti-duplication component.
Step S22, the server receives a request for preventing the re-sending of the client responding to the opening of the target form, the request for preventing the re-sending includes the identifier and the opening time of the target form; here, the opening time is used to indicate a corresponding real-time when the client opens the target form.
Step S23, the anti-reassembly component of the server generates anti-duplication information for the target form, and stores the opening time and the anti-duplication information of the target form. For example, after receiving a request for preventing duplication of a target form sent by a client, a server obtains, by means of an interface provided by a duplication prevention component and used for generating duplication prevention information, duplication prevention information generated by the duplication prevention component for the request for preventing duplication of the target form, where the duplication prevention information includes, but is not limited to, information for preventing duplication, such as a character string for preventing duplication, an duplication prevention code, and a duplication prevention password, in a preferred embodiment of the present application, the duplication prevention information is preferably a duplication prevention code, as shown in fig. 2.
And step S24, the server returns the anti-duplication information of the target form to the client.
Step S12, the client receives the anti-duplication information of the target form returned by the server.
Step S13, the client obtains the service data of the target form, and as shown in fig. 2, after obtaining the duplication prevention information of the target form, enters the service data of the target form.
Step S14, the client sends a form submission request to the server, where the form submission request includes the service data, the anti-duplication information and the submission time, so that the server checks whether the target form is repeatedly submitted based on the anti-duplication information, the opening time and the submission time; here, the anti-duplication information setting may be encapsulated in a request header of the form submission request, where a definition rule in the request header is: and the X-duplication-code is used for judging whether to pass or prevent the re-verification of the form submission request through the request header in the following process.
Step S25, the server receives a form submission request of the target form sent by the client, where the form submission request includes the service data, the duplication prevention information, and a submission time. Here, the server intercepts a form submission request sent by the client by using an interceptor of a spring framework, such as a component interceptor shown in fig. 3, where the component interceptor is defined in an SDK package provided by an accessed background system (corresponding to the server), and also provides an interception description and an interception configuration, so as to select various function configurations provided by the component according to the interception description and the interception configuration. For example, when the component interceptor intercepts, it first determines whether a request header exists in a form submission request, and if no request header exists, it indicates that the target form does not need to be subjected to anti-replay verification, and the anti-replay component does not perform any intervention on the form submission request, so that the server can directly pass the form submission request so as to enter a subsequent application interface, as shown in fig. 3; and if the form submission request carries a request header, performing anti-recheck on the form request.
Step S26, the server side obtains the opening time based on the anti-duplication information through the anti-duplication component, and verifies whether the target form is repeatedly submitted based on the opening time and the submission time;
if not, go to step S27; if yes, go to step S28.
In step S27, the server processes the service data and returns a service processing result of the target form to the client, that is, when the target form is not repeatedly submitted, the server can process the service data corresponding to the target form, as shown in fig. 2, and returns the service processing result of the target form to the client, so that the client performs step S15, receives the service processing result of the target form returned by the server, and implements service processing on the target form that is not repeatedly submitted.
In step S28, the server returns response information indicating that the target form is repeatedly submitted to the client, that is, when the target form is repeatedly submitted, the server cannot process the service data corresponding to the target form, and needs to return response information indicating that the target form is repeatedly submitted to the client, as shown in fig. 2, response information such as submission failure is returned to the client, so that the client performs step S16, receives the response information returned by the server and indicating that the target form is repeatedly submitted, and implements response processing on the repeatedly submitted target form, so that the client can know that the target form is repeatedly submitted in time through the response information.
Through the steps S11 to S16 and S21 to S28, the present application provides a simple and easy-to-use access method, and no service code intrusion, so that the anti-duplication service is provided with high multiplexing and stable security by extracting the anti-duplication for the form from the service, creating an anti-duplication component, and packaging the anti-duplication component into an independently deployed component system.
Further, a method for submitting a form of a server provided by an embodiment of the present application further includes:
presetting a cache database, wherein the cache database is independent from the anti-recombination component;
wherein storing the open time and the anti-duplication information of the target form comprises:
storing the opening time and the anti-duplication information of the target form to the cache database;
wherein the anti-reassembly component acquires the open time based on the anti-duplication information, comprising:
the anti-reassembly component obtains the opening time corresponding to the anti-reassembly information from the cache database based on the anti-reassembly information.
For example, at a server, in order to store the anti-duplication information for a form with an anti-duplication request, the server presets a cache database, such as a Redis cache database, etc., wherein the cache database and the anti-duplication component are independent from each other at the server; in step S23, the server stores the opening time of the target form and the duplication preventing information into the cache database in a form of a mapping relationship, that is, the duplication preventing information is used as a key, the opening time of the target form is used as a value, and the opening time of the target form is stored into the cache database in a (key, value) form, so that the opening time of the target form can be found through the duplication preventing information in the subsequent step; in step S26, after the service receives the form submission request, the anti-reassembly component obtains the opening time corresponding to the anti-reassembly information from the cache database based on the anti-reassembly information carried in the request header in the form submission request, and queries the opening time of the target form corresponding to the form submission request through the cache database and the anti-reassembly information.
Further, the S26 restructuring-prevention component checks whether the target form is repeatedly submitted based on the opening time and the submission time, specifically including:
inquiring and acquiring a target anti-duplication time length threshold corresponding to the target form;
calculating a time difference between the opening time and the commit time;
judging whether the time difference is larger than the target anti-weight duration threshold value or not,
if yes, indicating the target form to be repeatedly submitted;
if not, indicating that the target form is not repeatedly submitted.
For example, when a service segment performs a re-proof check on a target form, first obtaining a target re-proof duration threshold T corresponding to the target form a, and calculating a time difference T 'between an opening time T1 of the target form and a submission time T2 of the target form, to determine whether the time difference T' is greater than the target re-proof duration threshold T, if so, the re-proof check of the target form fails, and the re-proof check is used to indicate that the target form is submitted repeatedly; and if not, indicating that the anti-duplication verification of the target form is passed, and indicating that the target form is not repeatedly submitted to verify whether the form submission request of the target form is effective in anti-duplication.
Further, a method for submitting a form of a server provided by an embodiment of the present application further includes:
presetting anti-reconfiguration information, wherein the anti-reconfiguration information comprises at least one preset form and a first anti-reconfiguration time length threshold corresponding to each easily preset form;
wherein, the querying and obtaining the target anti-duplication duration threshold corresponding to the target form comprises:
inquiring whether a first anti-repeating time length threshold corresponding to the target form exists in the anti-reconfiguring information,
if the target form exists, determining a first anti-duplication time length threshold corresponding to the target form in the anti-reconfiguration information as the target anti-duplication time length threshold;
and if the target anti-duplication time length does not exist, determining a preset second anti-duplication time length threshold as the target anti-duplication time length threshold, wherein the second anti-duplication time length threshold is suitable for any form.
For example, anti-reconfiguration information is preset, and includes a first anti-duplication duration threshold corresponding to each form in one or more preset forms, when inquiring effective anti-duplication duration, first, whether a first anti-duplication duration threshold corresponding to the target form exists in the anti-reconfiguration information is inquired, and if yes, the first anti-duplication duration threshold corresponding to the target form in the anti-reconfiguration information is determined as the target anti-duplication duration threshold; and if the target form does not exist, determining the second anti-duplication time length threshold which is set by default by the system as the target anti-duplication time length threshold, and searching and determining the anti-duplication effective time length of the target form.
According to another aspect of the present application, there is also provided a non-volatile storage medium having computer readable instructions stored thereon, which, when executed by a processor, cause the processor to implement the form submission method as described above.
According to another aspect of the present application, there is also provided a server for form submission, wherein the server includes:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement the server-side form submission method described above.
Here, the details of each embodiment in the server for submitting the form may specifically refer to the corresponding part of the embodiment of the server form submitting method, and are not described herein again.
According to another aspect of the present application, there is also provided a client for form submission, wherein the client includes:
one or more processors;
a computer-readable medium for storing one or more computer-readable instructions,
when executed by the one or more processors, cause the one or more processors to implement a client form submission method as described above.
Here, the details of each embodiment in the client for form submission may specifically refer to the corresponding part of the embodiment of the client form submission method, and are not described herein again
In summary, the client side sends a repeat prevention request to the server side in response to the target form being opened, where the repeat prevention request includes an identifier of the target form and an opening time; a duplicate prevention component is created in a server, the duplicate prevention component generates duplicate prevention information for the target form, the opening time and the duplicate prevention information of the target form are stored, and the server returns the duplicate prevention information of the target form to the client; the client receives the anti-duplication information of the target form returned by the server, acquires the service data of the target form, and sends a form submission request to the server, wherein the form submission request comprises the service data, the anti-duplication information and submission time; and the server checks whether the target form is repeatedly submitted or not based on the anti-duplication information, the opening time and the submitting time, and if not, the server processes the business data and returns the business processing result of the target form to the client so that the client receives the business processing result of the target form returned by the server. The anti-duplication component is created by taking out the anti-duplication part for the form from the service, and the anti-duplication component is packaged into the independently deployed component system, so that a simple and easy-to-use access mode is provided, no service code is invaded, and the high-multiplexing and stable and safe anti-duplication service is provided.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

Translated fromChinese
1.一种表单提交方法,应用于服务端,其中,所述方法包括:1. A form submission method, applied to a server, wherein the method comprises:创建一防重组件;Create an anti-weight component;接收客户端响应于打开目标表单发送的防重请求,所述防重请求包括所述目标表单的标识符和打开时间;receiving an anti-duplication request sent by the client in response to opening the target form, the anti-duplication request including the identifier of the target form and the opening time;所述防重组件为所述目标表单生成防重信息,存储所述目标表单的所述打开时间和所述防重信息;The anti-weight component generates anti-weight information for the target form, and stores the open time and the anti-weight information of the target form;将所述目标表单的防重信息返回至所述客户端;Return the anti-duplication information of the target form to the client;接收所述客户端发送的所述目标表单的表单提交请求,所述表单提交请求包括所述业务数据、所述防重信息及提交时间;receiving a form submission request of the target form sent by the client, where the form submission request includes the business data, the anti-weight information and the submission time;所述防重组件基于所述防重信息获取所述打开时间,并基于所述打开时间和所述提交时间,校验所述目标表单是否重复提交;The anti-weight component obtains the opening time based on the anti-weight information, and verifies whether the target form is repeatedly submitted based on the opening time and the submission time;若否,则处理所述业务数据,并向所述客户端返回所述目标表单的业务处理结果。If not, the business data is processed, and the business processing result of the target form is returned to the client.2.根据权利要求1所述的方法,其中,所述基于所述打开时间和所述提交时间,校验所述目标表单是否重复提交之后,还包括:2. The method according to claim 1, wherein after verifying whether the target form is repeatedly submitted based on the opening time and the submitting time, the method further comprises:若是,则向所述客户端返回用于指示所述目标表单重复提交的响应信息。If yes, return response information to the client for indicating repeated submission of the target form.3.根据权利要求1所述的方法,其中,所述方法还包括:3. The method of claim 1, wherein the method further comprises:预置一缓存数据库,所述缓存数据库与所述防重组件相互独立;Preset a cache database, the cache database and the anti-weight component are independent of each other;其中,存储所述目标表单的所述打开时间和所述防重信息,包括:Wherein, storing the opening time and the anti-weight information of the target form includes:将所述目标表单的所述打开时间和所述防重信息存储至所述缓存数据库;storing the open time and the anti-duplication information of the target form in the cache database;其中,所述防重组件基于所述防重信息获取所述打开时间,包括:Wherein, the anti-weight component obtains the opening time based on the anti-weight information, including:所述防重组件基于所述防重信息,从所述缓存数据库获取与所述防重信息对应的所述打开时间。The anti-duplication component acquires the open time corresponding to the anti-duplication information from the cache database based on the anti-duplication information.4.根据权利要求1所述的方法,其中,所述防重组件基于所述打开时间和所述提交时间,校验所述目标表单是否重复提交,包括:4. The method according to claim 1, wherein, based on the open time and the submission time, the anti-weight component verifies whether the target form is repeatedly submitted, comprising:查询并获取与所述目标表单对应的目标防重时长阈值;Query and obtain the target weight prevention duration threshold corresponding to the target form;计算所述打开时间与所述提交时间之间的时间差;calculating the time difference between the opening time and the committing time;判断所述时间差是否大于所述目标防重时长阈值,judging whether the time difference is greater than the target weight prevention duration threshold,若是,则指示所述目标表单重复提交;If so, instruct the target form to be submitted repeatedly;若否,则指示所述目标表单未重复提交。If not, it indicates that the target form is not submitted repeatedly.5.根据权利要求4所述的方法,其中,所述方法还包括:5. The method of claim 4, wherein the method further comprises:预置防重配置信息,所述防重配置信息包括至少一种预设表单及每种易预设表单对应的第一防重时长阈值;Preset anti-reconfiguration information, the anti-reconfiguration information includes at least one preset form and a first anti-reconfiguration duration threshold corresponding to each easily preset form;其中,所述查询并获取与所述目标表单对应的目标防重时长阈值,包括:Wherein, the querying and obtaining the target weight prevention duration threshold corresponding to the target form includes:查询所述防重配置信息中是否存在与所述目标表单对应的第一防重时长阈值,query whether there is a first anti-reload duration threshold corresponding to the target form in the anti-reconfiguration information,若存在,则将所述防重配置信息中的、与所述目标表单对应的第一防重时长阈值确定为所述目标防重时长阈值;If there is, determining the first anti-weight duration threshold corresponding to the target form in the anti-reconfiguration information as the target anti-weight duration threshold;若不存在,则将预设的第二防重时长阈值确定为所述目标防重时长阈值,其中,所述第二防重时长阈值适用于任何一种表单。If it does not exist, the preset second anti-weight duration threshold is determined as the target anti-weight duration threshold, wherein the second anti-weight duration threshold is applicable to any form.6.一种表单提交方法,应用于客户端,其中,所述方法包括:6. A form submission method, applied to a client, wherein the method comprises:响应于打开目标表单,向服务端发送防重请求,所述防重请求包括所述目标表单的标识符和打开时间,以使所述服务端中创建的一防重组件为所述目标表单生成防重信息并存储所述目标表单的所述打开时间和所述防重信息;In response to opening the target form, send an anti-replication request to the server, where the anti-replication request includes the identifier of the target form and the opening time, so that an anti-replication component created in the server is generated for the target form Anti-weight information and store the opening time of the target form and the anti-weight information;接收所述服务端返回的所述目标表单的防重信息;receiving the anti-duplication information of the target form returned by the server;获取所述目标表单的业务数据;obtain business data of the target form;向所述服务端发送表单提交请求,所述表单提交请求包括所述业务数据、所述防重信息及提交时间,以使所述服务端基于所述防重信息、所述打开时间及所述提交时间,校验所述目标表单是否重复提交;Send a form submission request to the server, where the form submission request includes the business data, the anti-weight information and the submission time, so that the server can base the server on the anti-weight information, the opening time and the Submit time, check whether the target form is submitted repeatedly;当所述目标表单未重复提交时,接收所述服务端返回的所述目标表单的业务处理结果。When the target form is not repeatedly submitted, the business processing result of the target form returned by the server is received.7.根据权利要求6所述的方法,其中,所述方法还包括:7. The method of claim 6, wherein the method further comprises:当所述目标表单重复提交时,接收所述服务端返回的用于指示所述目标表单重复提交的响应信息。When the target form is submitted repeatedly, the response information returned by the server and used to instruct the target form to be submitted repeatedly is received.8.一种非易失性存储介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行时,使所述处理器实现如权利要求1至7中任一项所述的方法。8. A non-volatile storage medium having computer-readable instructions stored thereon which, when executable by a processor, cause the processor to implement the process as claimed in any one of claims 1 to 7 method described.9.一种用于表单提交的服务端,其中,该服务端包括:9. A server for form submission, wherein the server comprises:一个或多个处理器;one or more processors;计算机可读介质,用于存储一个或多个计算机可读指令,a computer-readable medium for storing one or more computer-readable instructions,当所述一个或多个计算机可读指令被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1至5中任一项所述的方法。The one or more computer readable instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1 to 5.10.一种用于表单提交的客户端,其中,该客户端包括:10. A client for form submission, wherein the client comprises:一个或多个处理器;one or more processors;计算机可读介质,用于存储一个或多个计算机可读指令,a computer-readable medium for storing one or more computer-readable instructions,当所述一个或多个计算机可读指令被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求6或7所述的方法。The one or more computer readable instructions, when executed by the one or more processors, cause the one or more processors to implement the method of claim 6 or 7.
CN202110277507.1A2021-03-152021-03-15Form submitting method and deviceActiveCN112905163B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110277507.1ACN112905163B (en)2021-03-152021-03-15Form submitting method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110277507.1ACN112905163B (en)2021-03-152021-03-15Form submitting method and device

Publications (2)

Publication NumberPublication Date
CN112905163Atrue CN112905163A (en)2021-06-04
CN112905163B CN112905163B (en)2024-04-16

Family

ID=76105126

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110277507.1AActiveCN112905163B (en)2021-03-152021-03-15Form submitting method and device

Country Status (1)

CountryLink
CN (1)CN112905163B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113610259A (en)*2021-08-242021-11-05中国银行股份有限公司Redis database-based repeat-proof ordering method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106372174A (en)*2016-08-312017-02-01东软集团股份有限公司Method and device for preventing repeated submission of form
WO2017214665A1 (en)*2016-06-142017-12-21Ip Now Pty LtdImprovements in or relating to forms
CN108037920A (en)*2017-11-032018-05-15福建省华渔教育科技有限公司Client customizing form generation method, storage medium
CN108804399A (en)*2017-05-042018-11-13腾讯科技(北京)有限公司The method of calibration and device of list
CN109408761A (en)*2018-10-162019-03-01翟红鹰A kind of filter method of repetitive requests, system, equipment and storage medium
US20190114592A1 (en)*2017-10-132019-04-18Jeremy MacDonoughApparatus, system, and method for simultaneous application and assimilation of a plurality of persons
CN109922132A (en)*2019-01-182019-06-21深圳壹账通智能科技有限公司Method, apparatus, electronic equipment and the storage medium of form request processing
WO2019200701A1 (en)*2018-04-172019-10-24平安科技(深圳)有限公司Configuration management method and apparatus, terminal device and storage medium
CN111078206A (en)*2019-11-252020-04-28贝壳技术有限公司Form submitting method and system
CN111385256A (en)*2018-12-282020-07-07中国移动通信集团辽宁有限公司 Method, apparatus, device and medium for migrating batch applications
CN112256776A (en)*2020-10-162021-01-22武汉悦学帮网络技术有限公司Form repeated submission detection method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2017214665A1 (en)*2016-06-142017-12-21Ip Now Pty LtdImprovements in or relating to forms
CN106372174A (en)*2016-08-312017-02-01东软集团股份有限公司Method and device for preventing repeated submission of form
CN108804399A (en)*2017-05-042018-11-13腾讯科技(北京)有限公司The method of calibration and device of list
US20190114592A1 (en)*2017-10-132019-04-18Jeremy MacDonoughApparatus, system, and method for simultaneous application and assimilation of a plurality of persons
CN108037920A (en)*2017-11-032018-05-15福建省华渔教育科技有限公司Client customizing form generation method, storage medium
WO2019200701A1 (en)*2018-04-172019-10-24平安科技(深圳)有限公司Configuration management method and apparatus, terminal device and storage medium
CN109408761A (en)*2018-10-162019-03-01翟红鹰A kind of filter method of repetitive requests, system, equipment and storage medium
CN111385256A (en)*2018-12-282020-07-07中国移动通信集团辽宁有限公司 Method, apparatus, device and medium for migrating batch applications
CN109922132A (en)*2019-01-182019-06-21深圳壹账通智能科技有限公司Method, apparatus, electronic equipment and the storage medium of form request processing
CN111078206A (en)*2019-11-252020-04-28贝壳技术有限公司Form submitting method and system
CN112256776A (en)*2020-10-162021-01-22武汉悦学帮网络技术有限公司Form repeated submission detection method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张慧翔;张新家;: "一种业务逻辑可重构的三层应用服务器设计与实现", 计算机应用, no. 04, pages 103 - 106*
朱国辉;周琪云;朱文生;: "Web应用中重复提交的探讨", 计算机与现代化, no. 07, pages 79 - 81*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113610259A (en)*2021-08-242021-11-05中国银行股份有限公司Redis database-based repeat-proof ordering method and device

Also Published As

Publication numberPublication date
CN112905163B (en)2024-04-16

Similar Documents

PublicationPublication DateTitle
US11354447B2 (en)Data authorization information acquisition methods, apparatuses, and devices
JP4615096B2 (en) Method and apparatus for providing customizable security and logging protocols for a servlet engine
US11562090B2 (en)Enforcing sensitive data protection in security systems
US20080215677A1 (en)Method, system and program product for providing a status of a transaction with an application on a server
CN108989355B (en) A kind of vulnerability detection method and device
US10936581B2 (en)Blockchain transaction processing method and apparatus
CN112131205A (en)Database blocking method and device
US20200233866A1 (en)Blockchain transaction query method and system
US10903989B2 (en)Blockchain transaction processing method and apparatus
US11606209B2 (en)Blockchain based access control using time-dependent obfuscation of access tokens
US12063246B2 (en)Security mechanisms for preventing retry or replay attacks
CN113114794A (en)Method and device for processing domain name based on secondary proxy
CN116319026A (en)Trust assessment method and device in zero-trust architecture and electronic equipment
CN113849555A (en)Non-invasive method, server and medium for combining block chain and application system
CN103971059B (en)Cookie local storage and usage method
CN112905163A (en)Form submitting method and equipment
US20160196149A1 (en)Milestone based dynamic multiple watchdog timeouts and early failure detection
CN108600259B (en)Authentication and binding method of equipment, computer storage medium and server
CN119515384A (en) A transaction verification method, program product, electronic device and storage medium
CN116488897A (en)Method, system, electronic equipment and storage medium for deploying privately-owned items
US11223650B2 (en)Security system with adaptive parsing
CN115640259A (en)File management method and device, readable storage medium and electronic equipment
WO2018166365A1 (en)Method and device for recording website access log
CN112134705B (en)Data authentication method and device, storage medium and electronic device
CN112437036B (en)Data analysis method and equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant after:Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd.

Address before:Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Applicant before:SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd.

GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Patentee after:Shanghai Wanwu Xinsheng Information Technology Group Co.,Ltd.

Country or region after:China

Address before:Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai

Patentee before:Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp