CN111159585B - Method, device, equipment and medium for automatically submitting data - Google Patents

Method, device, equipment and medium for automatically submitting data Download PDF

Info

Publication number
CN111159585B
CN111159585B CN201811317763.3A CN201811317763A CN111159585B CN 111159585 B CN111159585 B CN 111159585B CN 201811317763 A CN201811317763 A CN 201811317763A CN 111159585 B CN111159585 B CN 111159585B
Authority
CN
China
Prior art keywords
data
submitting
automatically
submitted
target application
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.)
Active
Application number
CN201811317763.3A
Other languages
Chinese (zh)
Other versions
CN111159585A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811317763.3A priority Critical patent/CN111159585B/en
Publication of CN111159585A publication Critical patent/CN111159585A/en
Application granted granted Critical
Publication of CN111159585B publication Critical patent/CN111159585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The application discloses a method, a device, equipment and a medium for automatically submitting data. The method comprises the following steps: acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (http) request; acquiring login information preconfigured for a plurality of target application systems, and automatically logging in the plurality of target application systems according to the preconfigured login information; acquiring a plurality of pieces of cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data to be submitted and the plurality of pieces of cookie information into a plurality of second http requests; and automatically submitting the first http request and the plurality of second http requests to a first application system and a plurality of target application systems corresponding to the requests respectively and simultaneously. According to the embodiment of the application, the data can be simultaneously and automatically submitted to each application system, so that the manual processing workload is reduced.

Description

Method, device, equipment and medium for automatically submitting data
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a medium for automatically submitting data.
Background
The current application system mainly comprises a browser/server (B/S) architecture, and a user browses information on the server through the browser and refers to relevant processing work on the browser. For general business processing, processing among a plurality of application systems is often required, for example, a purchasing requirement is completed, purchasing information is required to be firstly input in a purchasing system, and contract information is required to be input in a contract system. Completing a product sale requires that the shipment be completed in a customer relationship management system (Customer relationship management, CRM) and also in an enterprise resource planning (Enterprise Resource Planning, ERP) system. Thus, the user needs to repeatedly log in a plurality of systems, and similar data is recorded on pages of the plurality of systems.
For a service, data needs to be entered in a plurality of systems, the following two modes are generally adopted at present:
the first way is: the manual processing, i.e. the user logs in a plurality of systems requiring continuous processing respectively, and relevant data is logged in the systems respectively. The second way is: and establishing interfaces among the systems, when a user finishes data input in a first system, then the first system converts the data through the background, and then the data input interfaces provided by other systems are called to input the data into other systems.
The above two ways have a plurality of problems, and the following will be briefly described respectively:
for the first approach, the problem is as follows:
(1) The user firstly needs to log in a plurality of systems, then similar data are needed to be logged in the systems, and the efficiency is low; (2) The user inputs data in a plurality of systems, and the data is possibly inconsistent due to misoperation, for example, the input amount of an order is 1 ten thousand yuan in an order system, and the input amount of the data is changed into 2 ten thousand yuan in a contract system, so that risks are increased for later data verification and use; (3) Because the user needs to enter in a plurality of systems, for example, the user forgets to enter a certain system, for example, the user enters a product in a sales system and sells the product, but the user does not enter the product in an ERP system to go out of the warehouse, data difference is caused, and the risk is brought to the operation of enterprises.
For the second approach, the problem is as follows:
(1) When the user finishes inputting in the first system, the data are required to be transmitted to other systems, and the other systems need to develop interfaces to receive the data, so that development workload is increased due to the fact that the user depends on the third-party system for development; (2) The interfaces among the systems are too many, so that the systems are tightly coupled together, the coupling among the systems is increased, and the upgrading and maintenance of the later systems are not facilitated; (3) If the user enters data in one system, the submission is finished. In this time, the general systems adopt a timing method to transmit data to other systems through interfaces, if the data has problems or the interfaces have problems, the other systems cannot have the data if the data is not written successfully, and the user has completed the input, so that the data is inconsistent; (4) In some cases, the third party system is not developed or can not provide related interfaces, and can only be solved by a method of manual sequential input.
Disclosure of Invention
In order to solve at least one technical problem, the embodiment of the application provides a method, a device, equipment and a medium for automatically submitting data, which can simultaneously submit recorded data to each application system, reduce the manual processing workload, ensure the consistency of the data of each application system and reduce the workload of the development of a third-party system interface.
In a first aspect, an embodiment of the present application provides a method for automatically submitting data, where the method includes:
acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (http) request;
acquiring login information preconfigured for a plurality of target application systems, and automatically logging in the plurality of target application systems according to the preconfigured login information;
acquiring a plurality of pieces of cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data to be submitted and the plurality of pieces of cookie information into a plurality of second http requests;
and automatically submitting the first http request and the plurality of second http requests to the first application system and the plurality of target application systems corresponding to the requests respectively and simultaneously.
The method for automatically submitting the data provided by the embodiment of the application further comprises the following steps:
and pre-configuring login information for the target application systems.
According to the method for automatically submitting data provided by the embodiment of the application, before the data to be submitted to the first application system by the user is acquired and stored, the method further comprises the following steps:
acquiring a submitting request which is sent to the first application system and used for submitting the data;
judging whether the data need to be submitted to the target application systems or not according to the submitting request;
if yes, intercepting the submitting request, wherein the submitting request carries the data.
The method for automatically submitting the data provided by the embodiment of the application further comprises the following steps:
acquiring a plurality of first submitting results of the first application system and the plurality of target application systems;
determining a second submitting result according to the plurality of first submitting results, wherein the plurality of first submitting results are submitting successfully, the second submitting result is submitting successfully, any one of the plurality of first submitting results is submitting failure, and the second submitting result is submitting failure.
The method for automatically submitting the data provided by the embodiment of the application further comprises the following steps:
acquiring data address IDs automatically generated by the first application system and a plurality of target application systems;
and when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically according to the data ID.
The method for automatically submitting the data provided by the embodiment of the application further comprises the following steps:
and configuring data rollback addresses for the first application system and the plurality of target application systems.
According to the method for automatically submitting data provided by the embodiment of the application, when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically according to the data ID, wherein the method comprises the following steps:
and when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically by combining the data ID and the data rollback address.
The method for automatically submitting the data provided by the embodiment of the application further comprises the following steps:
and converting the data to be submitted into target data required by the target application systems according to a pre-configured data format. In a second aspect, an embodiment of the present application provides an apparatus for automatically submitting data, where the apparatus includes:
the data acquisition module is used for acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (HTTP) request;
the automatic login module is used for acquiring a plurality of cookie information after the plurality of target application systems are successfully logged in automatically, and assembling the data to be submitted and the plurality of cookie information into a plurality of second http requests;
the data conversion module is used for acquiring cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data and the cookie information into a hypertext transfer protocol (http) request;
and the automatic submitting module is used for automatically submitting the first http request and the plurality of second http requests to the first application system and the plurality of target application systems corresponding to the requests respectively and simultaneously.
The embodiment of the application provides a device for automatically submitting data, which comprises: at least one processor, at least one memory and computer program instructions stored in the memory, which when executed by the processor, implement the method as in the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect of the embodiments described above.
The method, the device, the equipment and the medium for automatically submitting the data provided by the application are characterized in that the data to be submitted to the first application system by the user and the first cookie information after the user logs in the first application system are obtained and stored, and the data to be submitted and the first cookie information are assembled into a first hypertext transfer protocol (http) request; acquiring login information preconfigured for a plurality of target application systems, and automatically logging in the plurality of target application systems according to the preconfigured login information; acquiring a plurality of pieces of cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data to be submitted and the plurality of pieces of cookie information into a plurality of second http requests; and automatically submitting the first http request and the plurality of second http requests to a first application system and a plurality of target application systems corresponding to the requests respectively and simultaneously. According to the embodiment of the application, the data can be simultaneously and automatically submitted to each application system, so that the manual processing workload is reduced, the consistency of the data among each application system is ensured, and the workload of developing a third-party system interface is reduced.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for automatically submitting data according to an embodiment of the application;
FIG. 2 is a schematic diagram of an apparatus for automatically submitting data according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for automatically submitting data according to another embodiment of the application;
fig. 4 shows a hardware configuration diagram of an apparatus for automatically submitting data according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the application and are not configured to limit the application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Methods, apparatuses, devices and media for automatically submitting data according to embodiments of the present application are described in detail below with reference to the accompanying drawings. It should be noted that these examples are not intended to limit the scope of the present disclosure.
FIG. 1 is a flow chart of a method for automatically submitting data according to an embodiment of the application. As shown in fig. 1, the method for automatically submitting data according to the embodiment of the application comprises the following steps:
s110, acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (http) request.
S120, acquiring login information preconfigured for a plurality of target application systems, and automatically logging in the plurality of target application systems according to the preconfigured login information.
S130, a plurality of pieces of cookie information after the plurality of target application systems are automatically logged in successfully are obtained, and the data to be submitted and the plurality of pieces of cookie information are assembled into a plurality of second http requests.
And S140, automatically submitting the first http request and the plurality of second http requests to a first application system and a plurality of target application systems corresponding to the requests respectively and simultaneously.
Further, the method for automatically submitting data according to the embodiment of the application further comprises the steps of obtaining a submitting request for submitting data, wherein the submitting request is sent to the first application system; judging whether data need to be submitted to a plurality of target application systems or not according to the submitting request; if yes, intercepting a submitting request, wherein the submitting request carries data. Intercepting a submitting request for submitting data to a first application system, and ensuring that the data can be submitted to each application system at the same time, thereby ensuring the consistency of the data among the application systems.
In addition, the method for automatically submitting data can also acquire a plurality of first submitting results of the first application system and a plurality of target application systems; and determining a second submitting result according to the plurality of first submitting results, wherein the plurality of first submitting results are submitting successfully, the second submitting result is submitting successfully, any one of the plurality of first submitting results is submitting failure, and the second submitting result is submitting failure.
When the second submitting result is that the submitting fails, the data submitted successfully in each application system can be deleted according to the data address. In addition, when any one of the first application system and the application system fails to commit, the return result is that the first application system fails to commit, and when any one of the first application system and the application system fails to commit, the return result is that the first application system and the application system succeed in commit, that is, synchronous data processing can be achieved, and if any one of the application systems fails to commit, all the automatically committed data can be automatically deleted.
By utilizing the embodiment of the application, the data is simultaneously and automatically submitted to each application system in the modes of data conversion and analog submission, so that the manual processing workload is reduced, meanwhile, the consistency of the data among each application system is ensured by the synchronous data processing technology, and the workload of developing a third-party system interface is reduced.
In one embodiment of the present application, as shown in fig. 2, the apparatus for automatically submitting data according to the embodiment of the present application specifically includes:
the data acquisition module 201 is configured to acquire and store data to be submitted to the first application system by a user and first cookie information after the user logs in the first application system, and assemble the data to be submitted and the first cookie information into a first hypertext transfer protocol http request;
an automatic login module 202, configured to obtain login information preconfigured for a plurality of target application systems, and automatically login the plurality of target application systems according to the preconfigured login information;
the data conversion module 203 is configured to obtain a plurality of cookie information after the plurality of target application systems automatically log in successfully, and assemble the data to be submitted and the plurality of cookie information into a plurality of second http requests;
and the automatic submitting module 204 is configured to automatically submit the first http request and the plurality of second http requests to the first application system and the plurality of target application systems corresponding to the respective requests at the same time.
In one implementation manner, the apparatus for automatically submitting data according to the embodiment of the present application further includes a configuration module 200, specifically configured to:
the login information is preconfigured for a plurality of target application systems.
In one embodiment, the data acquisition module 201 is specifically configured to:
acquiring a submitting request for submitting data, wherein the submitting request is sent to a first application system;
judging whether data need to be submitted to a plurality of target application systems or not according to the submitting request;
if yes, intercepting a submitting request, wherein the submitting request carries data.
In one embodiment, the automatic commit module 204 is specifically configured to:
acquiring a plurality of first submitting results of a first application system and a plurality of target application systems;
and determining a second submitting result according to the plurality of first submitting results, wherein the plurality of first submitting results are submitting successfully, the second submitting result is submitting successfully, any one of the plurality of first submitting results is submitting failure, and the second submitting result is submitting failure.
In one implementation manner, the apparatus for automatically submitting data according to the embodiment of the present application further includes a data consistency processing module 205, specifically configured to:
acquiring data address IDs automatically generated by a first application system and a plurality of target application systems;
and when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically according to the data ID.
In one embodiment, the configuration module 200 is specifically configured to:
data rollback addresses are configured for the first application system and the plurality of target application systems.
In one embodiment, the consistency processing module 205 is specifically configured to:
and when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically by combining the data ID and the data rollback address.
In one embodiment, the data conversion module 203 is specifically configured to:
and converting the data to be submitted into target data required by a plurality of target application systems according to a pre-configured data format.
In one embodiment, the configuration module 200 is specifically configured to: other modules of the apparatus that manage the automatic submission of data are controlled.
In the embodiment of the application, the device for automatically submitting the data comprises: a configuration module 200, a data acquisition module 201, an automatic login module 202, a data conversion module 203, an automatic submission module 204 and a data consistency processing module 205. The following detailed description is given respectively:
(1) The configuration module 200 is a control management module of the whole device of the present application, and the configuration module 200 is specifically configured to:
the data acquisition module 201 will intercept the data submitted by the website configuring the website of the application system where the user entered the data for the first time.
The configuration data needs to be converted to the data format of the other application system; for example, the amount entered by the user is in a field corresponding to the amount of data of other application systems.
Configuration of website addresses, usernames, passwords, etc. of application systems that need to automatically submit data.
Configuring a commit address that requires automatic commit of data.
In the configuration data consistency processing module 205, each application system data rollback address. For example, addresses of information list pages such as "contract for I'm to get out of the grass," order for I'm to get out of the grass, "and the like.
In the configuration data consistency processing module 205, in the information list of the rollback address, which data in the list is the matching method that is just automatically submitted can be matched through which pieces of key data, which field is the key ID that will be used when deletion is required, and in general, the key ID is automatically generated by the application system.
(2) The data acquisition module 201 is specifically configured to:
monitor the website where the user submits data at the terminal.
When it is found that the user entry of data is complete, submitting the data to the specified web site, intercepting a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) request, disallowing the HTTP request to be sent to the server.
Save the requested data while saving the user cookie for subsequent simultaneous submission of data to each application system, maintaining data consistency.
(3) The data conversion module 203 is specifically configured to:
the configuration regarding data conversion in the configuration module 200 is read.
Convert the data intercepted by the data acquisition module 201 into data structures required by other application systems. Including field conversions, such as converting an order amount to a contract amount; the fields are reduced, for example, 20 fields are recorded in the order system, and only 15 fields are needed in the contract system; the fields are added, for example 20 fields are entered in the order system in total, while the contract system requires 22 fields, wherein the added 2 fields are calculated by configuration rule addition, etc.
(4) The automatic login module 202 is specifically configured to:
the parameters of login address, user name, password, etc. of the application system in the configuration module 200 that needs to automatically submit data are read.
Simulating the user login, and acquiring a cookie after the user login for submitting the data in the next step.
(5) The automatic submitting module 204 is specifically configured to:
for an application system needing to automatically submit data, the data needing to be submitted is acquired from the data conversion module 203, and the cookie information of user login authentication is acquired from the automatic login module 202.
Assembling the data to be automatically submitted and the user cookie according to the http request format of the application system for automatically submitting the data to be automatically submitted, and simulating the data request submitted when the user is manually logged.
Waiting for receiving notification from the data consistency processing module 205, submitting the assembled http request to the server after receiving the notification, and submitting the data.
After the data is submitted, the configuration module 200 is called to acquire the data ID generated by the application system after the data is submitted, the data consistency processing module 205 waits for notification of whether the submitted data is deleted, and if the submitted data is deleted, the data is submitted again according to the submitted request.
(6) The data consistency processing module 205 is specifically configured to:
the control intercepts the first entered data of the user and other application system data after the data are converted, and after all the data have submitting conditions, the control informs the automatic submitting module 204 to simulate the user to submit data to each application system.
And recording the result information returned by the application system after each application system is submitted.
And after all the application systems return successful submission, the information is summarized and returned to the user. When the return result of any one application system is that the submission fails, the automatic submission module 204 is notified, the successful data requests submitted by all application systems are deleted, the data of all application systems are deleted, the consistency of the submitted data is maintained, and the information is returned to the user.
And returning information of successful or failed submission of the user after summarization.
The device for automatically submitting data provided by the embodiment of the application can be used as a plug-in or a module and installed in a user client.
By utilizing the embodiment of the application, the work that similar data are manually input in a plurality of application systems can be converted into the system to automatically help user authentication, data automatic conversion and automatic submission, so that the manual processing workload is reduced; the data is automatically submitted to a plurality of application systems, and all the submitted data are synchronously returned when the data of the plurality of application systems and the data of any one application system are abnormal, so that the consistency of the data can be ensured; in addition, the workload of developing the third-party system interface is reduced, and meanwhile, data inconsistency caused by abnormal third-party system interfaces is avoided. In another embodiment of the present application, in conjunction with fig. 2 and 3, a method of automatically submitting data includes the steps of:
1. the user inputs data in a first application system needing to input data and submits the data;
2. the data acquisition module 201 monitors a data request submitted by a user, and if the data request is automatically submitted in other application systems in the configuration, intercepts the data request submitted by the user and prevents the request from being submitted to the application systems; when all application systems have commit conditions, the data is automatically committed to all application systems at the same time.
3. Storing the service data and the user cookie in the request, and converting the service data into data automatically submitted by other application systems;
4. according to the configuration information, converting the service data into a data structure of other application systems for automatically submitting the data;
5. informing to prepare simulation login;
6. obtaining information such as an address, a user name, a password and the like of the simulated login from the configuration module 200;
7. simulating user login and obtaining a user cookie;
8. informing about the preparation of the simulated commit data;
9. assembling the service data and the cookie into http request data;
10. notifying the data consistency processing module 205 after preparation;
11. the data consistency processing module 205 notifies the automatic submitting module 204 to simultaneously submit data to each application system after finding that the first application system requiring data entry and other data requests configured to require automatic submitting are all ready;
12. the data are respectively and automatically submitted to the first application system needing to input the data and other application systems needing to automatically submit the data of the user, and the return results of the application systems are obtained;
13. acquiring a data ID of the automatic submitting data in an application system, and preparing for deleting the data;
14. recording the generated data ID of the application system, and preparing for deleting the data;
15. returning the automatically submitted data and the returned result of the application system to the data consistency processing module 205;
16. if the data submission of any one of the application systems fails, the data consistency processing module 205 notifies the automatic submission module 204 to delete all the automatically submitted data; if the data of all the application systems are submitted successfully, the whole data processing is represented to be successful;
17. and returning the result of success or failure of final data submission to the user.
By utilizing the embodiment of the application, the work that similar data are manually input in a plurality of application systems can be converted into the system to automatically help user authentication, data automatic conversion and automatic submission, so that the manual processing workload is reduced; the data is automatically submitted to a plurality of application systems, and all the submitted data are synchronously returned when the data of the plurality of application systems and the data of any one application system are abnormal, so that the consistency of the data can be ensured; in addition, the workload of developing the third-party system interface is reduced, and meanwhile, data inconsistency caused by abnormal third-party system interfaces is avoided.
In addition, the method for automatically submitting data according to the embodiment of the present application described in connection with fig. 1 or 3 may be implemented by an apparatus for automatically submitting data. Fig. 4 shows a hardware configuration diagram of an apparatus for automatically submitting data according to an embodiment of the present application.
As shown in fig. 4, computing device 1000 includes an input device 1001, an input interface 1002, a processor 1003, a memory 1004, an output interface 1005, and an output device 1006.
The input interface 1002, the processor 1003, the memory 1004, and the output interface 1005 are connected to each other via a bus 1010, and the input device 1001 and the output device 1006 are connected to the bus 1010 via the input interface 1002 and the output interface 1005, respectively, and further connected to other components of the computing device 1000.
Specifically, the input device 1001 receives input information from the outside, and transmits the input information to the processor 1003 through the input interface 1002; the processor 1003 processes the input information based on computer executable instructions stored in the memory 1004 to generate output information, stores the output information temporarily or permanently in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; output device 1006 outputs output information to the outside of computing device 1000 for use by a user.
The computing device 1000 may perform the steps of the method of communicating auto-commit data described above of the present application.
The processor 1003 may be one or more central processing units (English: central Processing Unit, CPU). In the case where the processor 601 or the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1004 may be, but is not limited to, one or more of Random Access Memory (RAM), read Only Memory (ROM), erasable Programmable Read Only Memory (EPROM), compact disc read only memory (CD-ROM), hard disk, and the like. The memory 1004 is used for storing program codes.
It will be appreciated that in an embodiment of the present application, the functions of any or all of the processing modules provided in fig. 2 may be implemented by the central processor 1003 shown in fig. 4.
The embodiments of the present application also provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps in the method for automatically submitting data according to the embodiments of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When used in whole or in part, is implemented in the form of a computer program product comprising one or more computer instructions. When loaded or executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
All parts of the specification are described in a progressive manner, and all parts of the embodiments which are the same and similar to each other are referred to each other, and each embodiment is mainly described as being different from other embodiments. In particular, for apparatus and system embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the description of the method embodiments section.

Claims (10)

1. A method of automatically submitting data, the method comprising:
acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (http) request;
acquiring login information preconfigured for a plurality of target application systems, and automatically logging in the plurality of target application systems according to the preconfigured login information;
acquiring a plurality of pieces of cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data to be submitted and the plurality of pieces of cookie information into a plurality of second http requests;
automatically submitting the first http request and the plurality of second http requests to the first application system and the plurality of target application systems corresponding to the requests respectively and simultaneously;
acquiring data address IDs automatically generated by the first application system and a plurality of target application systems;
and deleting all data which are successfully submitted automatically according to the data address ID when any one of the first http request and the plurality of second http requests fails to be submitted.
2. The method according to claim 1, wherein the method further comprises:
and pre-configuring login information for the target application systems.
3. The method of claim 1, wherein prior to obtaining and saving the data to be submitted by the user to the first application system, further comprising:
acquiring a submitting request which is sent to the first application system and used for submitting the data;
judging whether the data need to be submitted to the target application systems or not according to the submitting request;
if yes, intercepting the submitting request, wherein the submitting request carries the data.
4. The method according to claim 1, wherein the method further comprises:
acquiring a plurality of first submitting results of the first application system and the plurality of target application systems;
determining a second submitting result according to the plurality of first submitting results, wherein the plurality of first submitting results are submitting successfully, the second submitting result is submitting successfully, any one of the plurality of first submitting results is submitting failure, and the second submitting result is submitting failure.
5. The method according to claim 4, wherein the method further comprises: and configuring data rollback addresses for the first application system and the plurality of target application systems.
6. The method of claim 5, wherein deleting all automatically committed data according to the data address ID when any one of the first http request and the plurality of second http requests fails to commit, comprises:
and when the second submitting result is that the submitting fails, deleting all data which are successfully submitted automatically by combining the data address ID and the data rollback address.
7. The method according to claim 1, wherein the method further comprises:
and converting the data to be submitted into target data required by the target application systems according to a pre-configured data format.
8. An apparatus for automatically submitting data, the apparatus comprising:
the data acquisition module is used for acquiring and storing data to be submitted to a first application system by a user and first cookie information after the user logs in the first application system, and assembling the data to be submitted and the first cookie information into a first hypertext transfer protocol (http) request;
the automatic login module is used for acquiring login information preconfigured for a plurality of target application systems and automatically logging in the plurality of target application systems according to the preconfigured login information;
the data conversion module is used for acquiring a plurality of cookie information after the plurality of target application systems are automatically logged in successfully, and assembling the data to be submitted and the plurality of cookie information into a plurality of second http requests;
the automatic submitting module is used for automatically submitting the first http request and the plurality of second http requests to the first application system and the plurality of target application systems corresponding to the requests respectively and simultaneously;
the address acquisition module is used for acquiring data address IDs automatically generated by the first application system and the plurality of target application systems;
and the data deleting module is used for deleting all the data successfully submitted automatically according to the data address ID when any one of the first http request and the plurality of second http requests fails to be submitted.
9. An apparatus for automatically submitting data, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-7.
CN201811317763.3A 2018-11-07 2018-11-07 Method, device, equipment and medium for automatically submitting data Active CN111159585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811317763.3A CN111159585B (en) 2018-11-07 2018-11-07 Method, device, equipment and medium for automatically submitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811317763.3A CN111159585B (en) 2018-11-07 2018-11-07 Method, device, equipment and medium for automatically submitting data

Publications (2)

Publication Number Publication Date
CN111159585A CN111159585A (en) 2020-05-15
CN111159585B true CN111159585B (en) 2023-09-22

Family

ID=70554373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811317763.3A Active CN111159585B (en) 2018-11-07 2018-11-07 Method, device, equipment and medium for automatically submitting data

Country Status (1)

Country Link
CN (1) CN111159585B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141366B (en) * 2021-04-23 2023-03-14 中国邮政储蓄银行股份有限公司 Message submitting method and device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023847A (en) * 2009-09-10 2011-04-20 北京盖特佳信息安全技术股份有限公司 Method for realizing push-mode multisystem synchronous data entry based on IE browser based
US8150805B1 (en) * 2006-06-30 2012-04-03 Symantec Operating Corporation Consistency interval marker assisted in-band commands in distributed systems
CN103685421A (en) * 2012-09-21 2014-03-26 百度在线网络技术(北京)有限公司 Cross-data-source data submission system, device and method
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN104158848A (en) * 2014-07-17 2014-11-19 国网山东省电力公司 No-coupling backlog integration method and system
WO2016049626A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Efficient and intuitive databinding for mobile applications
CN105827658A (en) * 2016-05-30 2016-08-03 无锡天脉聚源传媒科技有限公司 Method and device for multi-application synchronization login
CN106131062A (en) * 2016-08-23 2016-11-16 努比亚技术有限公司 Login service device and synchronizing web pages login method
CN106598992A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Database operating method and device
CN107306290A (en) * 2016-04-22 2017-10-31 中国移动通信集团重庆有限公司 A kind of session session sharing methods and application server
CN108667809A (en) * 2018-04-13 2018-10-16 三维通信股份有限公司 A kind of implementation method of multisystem DAS WEB interfaces account information management by synchronization

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6401104B1 (en) * 1999-07-03 2002-06-04 Starfish Software, Inc. System and methods for synchronizing datasets using cooperation among multiple synchronization engines
US20030105887A1 (en) * 2001-12-03 2003-06-05 Cox Burke David Method and system for integration of software applications
US7536714B2 (en) * 2003-07-11 2009-05-19 Computer Associates Think, Inc. System and method for synchronizing login processes
US20050203892A1 (en) * 2004-03-02 2005-09-15 Jonathan Wesley Dynamically integrating disparate systems and providing secure data sharing
US8204853B2 (en) * 2008-11-17 2012-06-19 Microsoft Corporation Maintaining client data integrity in a distributed environment using asynchronous data submission
US10582001B2 (en) * 2015-08-11 2020-03-03 Oracle International Corporation Asynchronous pre-caching of synchronously loaded resources
US10419514B2 (en) * 2015-08-14 2019-09-17 Oracle International Corporation Discovery of federated logins

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8150805B1 (en) * 2006-06-30 2012-04-03 Symantec Operating Corporation Consistency interval marker assisted in-band commands in distributed systems
CN102023847A (en) * 2009-09-10 2011-04-20 北京盖特佳信息安全技术股份有限公司 Method for realizing push-mode multisystem synchronous data entry based on IE browser based
CN103685421A (en) * 2012-09-21 2014-03-26 百度在线网络技术(北京)有限公司 Cross-data-source data submission system, device and method
CN103929477A (en) * 2014-03-31 2014-07-16 国网山东省电力公司 Intersystem non-coupling integration simulation method and system based on Http
CN104158848A (en) * 2014-07-17 2014-11-19 国网山东省电力公司 No-coupling backlog integration method and system
WO2016049626A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Efficient and intuitive databinding for mobile applications
CN106598992A (en) * 2015-10-15 2017-04-26 中兴通讯股份有限公司 Database operating method and device
CN107306290A (en) * 2016-04-22 2017-10-31 中国移动通信集团重庆有限公司 A kind of session session sharing methods and application server
CN105827658A (en) * 2016-05-30 2016-08-03 无锡天脉聚源传媒科技有限公司 Method and device for multi-application synchronization login
CN106131062A (en) * 2016-08-23 2016-11-16 努比亚技术有限公司 Login service device and synchronizing web pages login method
CN108667809A (en) * 2018-04-13 2018-10-16 三维通信股份有限公司 A kind of implementation method of multisystem DAS WEB interfaces account information management by synchronization

Also Published As

Publication number Publication date
CN111159585A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US11093377B2 (en) Systems and methods for testing source code
US20200387443A1 (en) Systems and methods for testing source code
US10528585B2 (en) ETL tool interface for remote mainframes
US11706218B2 (en) Systems and methods for controlling sign-on to web applications
US20190278700A1 (en) System and method for automated service layer testing and regression
US20140229423A1 (en) Data consistency and rollback for cloud analytics
CN104899274B (en) A kind of memory database Efficient Remote access method
CN109460841B (en) User account opening method, system and storage medium
CN101572598A (en) Method and device for reliable rapid integration
US20080244064A1 (en) Verifying method for implementing management software
JP6549681B2 (en) Reference data segmentation from single table to multiple tables
US10311030B1 (en) Method and system for implementing an automated migration tool
CN106547538A (en) A kind of intelligent operation management system based on Django
CN111159585B (en) Method, device, equipment and medium for automatically submitting data
CN101281623A (en) Verifying method for implementing management software
US11544166B1 (en) Data recovery validation test
US11113357B2 (en) Method and system for onboarding a virtual network function package utilized by one or more network services
Guthrie et al. Building Cloud Apps with Microsoft Azure: Best practices for DevOps, data storage, high availability, and more
CN112445860B (en) Method and device for processing distributed transaction
CN114172749B (en) Test paper downloading method, device, equipment and storage medium
CN117478732A (en) Service information pushing method and device, computer equipment and storage medium
Abdullah et al. UACA: Unified Access Control Approach For Heterogeneous Database Based-on Service Data Object.
CN116805948A (en) Method and device for checking packet-back data, electronic equipment and storage medium
CN114168579A (en) Comprehensive query method and system
CN117093324A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant