CN110472177A - Page info method for uploading, system, computer equipment and storage medium - Google Patents

Page info method for uploading, system, computer equipment and storage medium Download PDF

Info

Publication number
CN110472177A
CN110472177A CN201910629854.9A CN201910629854A CN110472177A CN 110472177 A CN110472177 A CN 110472177A CN 201910629854 A CN201910629854 A CN 201910629854A CN 110472177 A CN110472177 A CN 110472177A
Authority
CN
China
Prior art keywords
modification time
history
time collection
character string
page
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.)
Pending
Application number
CN201910629854.9A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910629854.9A priority Critical patent/CN110472177A/en
Publication of CN110472177A publication Critical patent/CN110472177A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Abstract

This application involves one of cloud transmission field page info method for uploading, system, computer equipment and storage mediums.Method includes: to obtain target pages information and assignment modification time collection including page iden-tity;Page info upload request is generated using page iden-tity and assignment modification time collection;Page info upload request is sent to intermediate server, intermediate server is set to obtain history modification time collection corresponding with page iden-tity, the first different information is generated according to history modification time collection and assignment modification time collection, and the first different information is sent to destination server;Specific character string in delete target page info, the target pages information after being deleted;History page information is compared with the target pages information after deleting, obtains the second different information;Second different information is sent to destination server, destination server is made to generate target pages information according to the first different information and the second different information.Mutual resource can be saved using this method.

Description

Page info method for uploading, system, computer equipment and storage medium
Technical field
This application involves Internet technical fields, set more particularly to a kind of page info method for uploading, system, computer Standby and storage medium.
Background technique
With the development of internet technology, it can use network between terminal and server to interact.For example, terminal exists During browsing pages, access request can be sent to server, obtain server and believed according to the page that access request is fed back Breath, with this displayed page information.Page info can also be uploaded to server by terminal, so that server is handled.
In conventional manner, terminal to server uploads the process of page info, is usually all include all by the page Page info is directly uploaded to server.When terminal to server repeats to upload identical or approximate page info, terminal is every It is secondary to upload all page infos, unnecessary mutual resource, such as unnecessary bandwidth resources and stream can be consumed in this way Resource etc. is measured, the waste of mutual resource is caused.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of page info upload that can save mutual resource Method, system, computer equipment and storage medium.
A kind of page info method for uploading, which comprises
Target pages information and assignment modification time collection are obtained, includes page iden-tity in the target pages information;
Page info upload request is generated using the page iden-tity and the assignment modification time collection;
The page info upload request is sent to intermediate server, so that the intermediate server obtains and the page Face identifies corresponding history modification time collection, generates first according to the history modification time collection and the assignment modification time collection Different information, and first different information is sent to destination server;
Delete the specific character string in the target pages information, the target pages information after being deleted;
History page information corresponding with the page iden-tity is obtained, after the history page information and the deletion Target pages information is compared, and obtains the second different information;
Second different information is sent to destination server, so that the destination server is according to first difference Information and second different information generate the target pages information.
The acquisition target pages information and assignment modification time collection include: in one of the embodiments,
Read multiple specific character strings in the target pages information;
Assignment modification time corresponding with the specific character string is obtained, assignment is generated using the assignment modification time and repairs Change time collection.
In one of the embodiments, the method also includes:
Monitor the assignment modification instruction for being directed toward specific character string corresponding with the page iden-tity;
Corresponding assignment modification time is recorded according to assignment modification instruction;
The corresponding assignment modification time collection of the page iden-tity is generated using the assignment modification time repeatedly recorded.
A kind of page info method for uploading, which comprises
Page info upload request is received, the page info upload request carries page iden-tity and assignment modification Time collection;
Obtain history modification time collection corresponding with the page iden-tity;
The first different information is generated according to the history modification time collection and the assignment modification time collection;
First different information is sent to destination server, so that the destination server is according to first difference Information and the second different information generate target pages information, and second different information is corresponding by the page iden-tity by terminal History page information is compared to obtain and be sent to the destination service with the target pages information after deletion specific character string Device.
It is described in one of the embodiments, to be generated according to the history modification time collection and the assignment modification time collection First different information includes:
It is compared using the history modification time collection with the assignment modification time collection, obtains comparison result;
The comparison result is sent to the terminal, receives the spy corresponding with the comparison result that the terminal returns Determine character string;
Obtain history character string corresponding with the page iden-tity;
The specific character string is compared with the history character string, obtains difference character string, by the difference word Symbol string is used as the first different information.
It is described in one of the embodiments, that the specific character string is compared with the history character string, it obtains Difference character string includes:
The multiple target key values and the corresponding current label of the target key value in the specific character string are read, with And multiple history key assignments and the corresponding history tab of history key assignments in the history character string;
The current label is matched with the corresponding history tab, and the current label of record matching failure;
The corresponding target key value of the current label history key assignments corresponding with history tab that it fails to match is compared, is obtained To difference character string.
The assignment modification time collection includes specific character string modification time collection and object key in one of the embodiments, It is worth modification time collection;The history modification time collection includes history character string modification time collection and history key assignments modification time collection; It is described to include: according to the history modification time collection and the assignment modification time collection the first different information of generation
The specific character string modification time collection is compared with the history character string modification time collection, obtains difference Character string;
Utilize the corresponding target key value modification time collection of difference character string history corresponding with the difference character string Key assignments modification time collection is compared, and obtains difference key assignments, using the difference key assignments as the first different information.
A kind of page info uploading system, the system comprises:
Terminal includes page in the target pages information for obtaining target pages information and assignment modification time collection Face mark;Page info upload request is generated using the page iden-tity and the assignment modification time collection;
Intermediate server, for receiving the page info upload request of terminal transmission, the page info upload is asked It asks and carries page iden-tity and assignment modification time collection;Obtain history modification time collection corresponding with the page iden-tity;Root The first different information is generated according to the history modification time collection and the assignment modification time collection;First different information is sent out It send to destination server;
The terminal is also used to delete the specific character string in the target pages information, the target pages after being deleted Information;History page information corresponding with the page iden-tity is obtained, by the mesh after the history page information and the deletion Mark page info is compared, and obtains the second different information;Second different information is sent to destination server;
Destination server, for receiving second different information of terminal transmission;Receive intermediate server is sent the One different information;The target pages information is generated according to first different information and second different information.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes above-mentioned page info method for uploading when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Above-mentioned page info method for uploading step is realized when row.
Above-mentioned page info method for uploading, system, computer equipment and storage medium, terminal obtain target pages information and Assignment modification time collection, using in target pages information page iden-tity and assignment modification time collection generate page info upload ask It asks.Page info upload request is sent to intermediate server by terminal.Intermediate server is taken according in page info upload request The page iden-tity of band obtains corresponding history modification time collection, generates the according to history modification time collection and assignment modification time collection One different information, and the first different information is sent to destination server.Terminal also passes through that acquisition is corresponding with page iden-tity to go through History page information is compared with the target pages information for deleting specific character string, it is poor to obtain second by history page info Different information, and the second different information is sent to destination server.Destination server can be according to the first different information and second Different information generates target pages information.Compared to traditional approach, terminal only needs to upload page mark when uploading page info Know, target pages information can be obtained in assignment modification time collection and the second different information, destination server.Terminal does not need weight The data for uploading same section between target pages information and history page information again, substantially reduce the data of terminal upload Amount, to effectively save mutual resource.
Detailed description of the invention
Fig. 1 is the applied environment figure of page info method for uploading in one embodiment;
Fig. 2 is the flow diagram of page info method for uploading in one embodiment;
Fig. 3 is the flow diagram of page info method for uploading in another embodiment;
Fig. 4 is the step of generating the first different information according to page iden-tity and assignment modification time collection in one embodiment Flow diagram;
Fig. 5 is the internal structure chart of computer equipment in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in another embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Page info method for uploading provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually End 102 is communicated by network with intermediate server 104 and destination server 106, and intermediate server 104 can also pass through net Network is communicated with destination server 106.Terminal 102 obtains target pages information and assignment modification time collection, target pages letter It include page iden-tity in breath.Terminal 102 generates page info upload request using page iden-tity and assignment modification time collection, and will Page info upload request is sent to intermediate server 104.The page that intermediate server 104 is carried according to page info upload request Face mark obtains corresponding history modification time collection, generates the first difference according to history modification time collection and assignment modification time collection First different information is sent to destination server 106 by information.Specific character string in 102 delete target page info of terminal, Target pages information after being deleted obtains history page information corresponding with page iden-tity.Terminal 102 believes history page The second different information is obtained after breath and the target pages information comparison after deletion, the second different information is sent to destination server 106.The second of the first different information and the transmission of terminal 102 that the reception intermediate server 104 of destination server 106 is sent is poor Different information generates target pages information using the first different information and the second different information.Wherein, terminal 102 can with but it is unlimited Then various personal computers, laptop, smart phone, tablet computer and portable wearable device, intermediate server 104 and destination server 106 can be realized with the server cluster of independent server either multiple servers composition.
In one embodiment, as shown in Fig. 2, providing a kind of page info method for uploading, it is applied to Fig. 1 in this way In terminal 102 for be illustrated, comprising the following steps:
Step 202, target pages information and assignment modification time collection are obtained, includes page mark in target pages information Know.
Assignment modification time collection refers to the set of the modification time of the corresponding assignment of the specific character string in page info.It is special Determining character string can be a kind of character string of specific format, and specific format includes at least one of multiple format.For example, specific Character string may include the Json (JavaScript Object Notation, JavaScript object numbered musical notation) in current page Character string.
Terminal can receive to be started to upload target pages information by the operation that user triggers repetition upload page info.Tool Body, the available target pages of terminal.The corresponding page info of target pages is target pages information.Wherein, page object Face can be at least one that user selects from multiple pages.For example, target pages can be the current page currently browsed, It can also be the page of recent renewal.Page info may include page iden-tity, content of pages and page structure etc..In the page Appearance may include the full content in target pages, also may include the partial content in target pages.
Terminal can obtain assignment modification time collection in several ways.Specifically, terminal can search target pages letter Specific character string in breath obtains corresponding assignment modification time according to the specific character string found, utilizes multiple specific words The corresponding assignment modification time of symbol string generates assignment modification time collection.Assignment modification time collection can also be with page iden-tity pair It answers, page iden-tity can directly have incidence relation with assignment modification time collection, and terminal can be repaired according to page iden-tity and assignment The incidence relation changed between time collection obtains assignment modification time collection corresponding with page iden-tity.
Step 204, page info upload request is generated using page iden-tity and assignment modification time collection.
Step 206, page info upload request is sent to intermediate server, so that intermediate server obtains and page mark Know corresponding history modification time collection, the first different information is generated according to history modification time collection and assignment modification time collection, and First different information is sent to destination server.
Terminal generates page info upload request using page iden-tity and assignment modification time collection, on the page info of generation It passes request and carries page iden-tity and assignment modification time collection.The page info upload request of generation is sent to intermediate clothes by terminal Business device.So that being carried out after intermediate server receives the page info upload request that terminal is sent to page info upload request Parsing, obtains the page iden-tity carried in page info upload request and assignment modification time collection.Intermediate server is according to the page Mark and assignment modification time collection generate the first different information, and the first different information is sent to destination server.
Specifically, intermediate server can obtain corresponding history modification time collection according to page iden-tity.When history is modified Between collection refer to corresponding with specific character string assignment modification time collection when terminal history uploads page info.Terminal is every time to specific The assignment of character string is modified, i.e., renewable assignment modification time collection.Terminal can repeat to upload one or many page objects Face information, therefore, page iden-tity can be corresponded to including one or more history modification time collection.Further, intermediary service Device available the last time uploads the history modification time collection uploaded when page info.Intermediate server is by assignment modification time Collection is compared with history modification time collection, and the different difference character string of modification time can be obtained.Intermediate server is by difference Character string is sent to terminal, and terminal uploads the corresponding spy of difference character string after receiving difference character string, to intermediate server Determine character string.Difference character string is sent to destination server, the first different information by intermediate server Describe the difference character string between target pages information and history page information.
Step 208, the specific character string in delete target page info, the target pages information after being deleted.
Step 210, history page information corresponding with page iden-tity is obtained, the target by history page information and after deleting Page info is compared, and obtains the second different information.
Step 212, the second different information is sent to destination server, so that destination server is according to the first different information Target pages information is generated with the second different information.
Terminal can also obtain history page information corresponding with page iden-tity.Wherein, history page information refers to terminal Before this uploads page info, it is uploaded to the page info corresponding with page iden-tity of destination server.Terminal can weigh One or many page infos are uploaded again, and therefore, page iden-tity can correspond to the history page information of one or more versions.Into One step, the terminal available last time is uploaded to the history page information of destination server.
History page information is compared terminal with the target pages information after specific character string is deleted, and obtains second Different information.Wherein, the second different information refer to delete specific character string target pages information and history page information it Between different information.Terminal repeatedly uploads page info, carries out primarily directed to the specific character string in target pages information After modification, need to repeat to upload.Difference between target pages information and history page information is mainly modified specific Difference between character string.Therefore, terminal deletes the specific character string in target pages information, by the target pages after deletion Information is compared with history page information, and the second obtained different information usually only includes a small amount of variance data, even Empty data.Second different information is only sent to destination server by terminal, is not needed all data in target pages information It is sent to destination server, is effectively reduced the data volume that terminal uploads in upload procedure, to save mutual resource.
Second different information is sent to destination server by terminal.Destination server intermediate server can be sent the The second different information that one different information and terminal are sent is integrated, and is obtained between target pages information and history page information Different information.Destination server integrates different information and history page information, generates target pages information.
In the present embodiment, terminal only need to upload when uploading page info page iden-tity, assignment modification time collection with And target pages information can be obtained in second different information, destination server.Terminal does not need to repeat to upload target pages information The data of same section between history page information substantially reduce the data volume of terminal upload, improve terminal and upload page The efficiency of face information, and effectively save mutual resource.
In one embodiment, the step of obtaining target pages information and assignment modification time collection includes: reading target Multiple specific character strings in page info;Assignment modification time corresponding with specific character string is obtained, when modifying using assignment Between generate assignment modification time collection.
The available target pages information corresponding with page iden-tity of terminal, reads multiple specific from target pages information Character string.For example, a specific character string in multiple specific character strings that terminal is read can be expressed as { a: " assignment 1 ", B: " assignment 2 ", c: " assignment 3 ".Multiple specific character strings that terminal is read may include the history page uploaded compared to the last time Face information carried out modification, also may include not modifying compared to the history page information that the last time uploads.
Terminal obtains the corresponding assignment modification time of each specific character string, corresponding using multiple specific character strings Multiple assignment modification times generate assignment modification time collection.For example, altogether include n specific character string in target pages information, In, n is the integer more than or equal to 1.It is respectively T that terminal, which gets the corresponding assignment modification time of each specific character string,1、T2、 T3……Tn, terminal is to produce the corresponding assignment modification time collection of page iden-tity, and assignment modification time collection can be such as (T1, T2, T3……Tn) modification time array.
Assignment modification time collection can be sent to intermediate server by terminal, so that intermediate server is by assignment modification time Collection is compared with history modification time collection.Specifically, terminal by the corresponding assignment modification time of specific character string and is somebody's turn to do one by one The corresponding history modification time of specific character string is compared.When the corresponding assignment modification time of specific character string and history are modified When time is identical, then illustrate that the specific character string is not modified compared to corresponding character string in history page information, with History character string is consistent.When the corresponding assignment modification time of specific character string and history modification time difference, then illustrate the spy Determine character string to be modified compared to corresponding character string in history page information, it is inconsistent with history character string.Terminal will With the inconsistent specific character string of corresponding history character string as difference character string.
In the present embodiment, terminal is obtained and specific word by reading multiple specific character strings in target pages information The corresponding assignment modification time of symbol string, utilizes assignment modification time to generate assignment modification time collection.Terminal only needs to repair assignment Change time collection and be sent to intermediate server, intermediate server can be carried out according to assignment modification time collection and history modification time collection It compares, determines the difference character string between target pages information and history page information.It does not need terminal and uploads target pages letter All specific character strings in breath, and assignment modification time collection is also smaller compared to the data volume of specific character string.Effectively The data volume for reducing terminal upload improves the efficiency that terminal uploads page info, saves mutual resource.
In one embodiment, above-mentioned page info method for uploading further include: monitor and be directed toward spy corresponding with page iden-tity Determine the assignment modification instruction of character string;Corresponding assignment modification time is recorded according to assignment modification instruction;Utilize what is repeatedly recorded Assignment modification time generates the corresponding assignment modification time collection of page iden-tity.
Terminal monitoring by carry out assignment modification operation triggering assignment modify instruction, assignment modification instruction can be directed toward with One or more specific character strings in the corresponding target pages information of page iden-tity.Terminal modifies instruction execution pair according to assignment The assignment modification operation answered, and record assignment modification and instruct corresponding assignment modification time.
Terminal can use the assignment modification time repeatedly recorded and generate the corresponding assignment modification time of a variety of page iden-tities Collection.Specifically, the assignment modification time combination history modification time collection that terminal will can repeatedly record, generates each specific character All there is the assignment modification time collection of corresponding assignment modification time in string.The assignment modification time that terminal can also only will be recorded repeatedly Generate assignment modification time collection.It only includes the difference character being modified according to assignment modification instruction that assignment modification time, which is concentrated, Go here and there corresponding assignment modification time.Intermediate server does not need to compare assignment modification time collection and history modification time collection It is right, that is, it can determine the difference character string modified.To effectively raise the effect that intermediate server determines difference character string Rate, and then improve transfer efficiency on the page info of terminal.
Terminal can also establish corresponding incidence relation between assignment modification time collection and page iden-tity, generate and page mark Know corresponding assignment modification time collection.When terminal can directly acquire assignment corresponding with page iden-tity modification according to incidence relation Between collect.
In the present embodiment, terminal according to the incidence relation between page iden-tity and assignment modification time collection directly acquire with The corresponding assignment modification time collection of page iden-tity does not need to read one by one specific in the corresponding target pages information of page iden-tity Character string determines assignment modification time collection further according to the corresponding assignment modification time of specific character string.To effectively raise The efficiency that terminal obtains the corresponding assignment modification time collection of page iden-tity improves transfer efficiency on the page info of terminal in turn.
In one embodiment, as shown in figure 3, providing a kind of page info method for uploading, it is applied to Fig. 1 in this way In intermediate server 104 for be illustrated, comprising the following steps:
Step 302, page info upload request is received, page info upload request carries page iden-tity and assignment Modification time collection.
Assignment modification time collection refers to the set of the modification time of the corresponding assignment of the specific character string in page info.It is special Determining character string can be a kind of character string of specific format, and specific format includes at least one of multiple format.For example, specific Character string may include the Json (JavaScript Object Notation, JavaScript object numbered musical notation) in current page Character string.After intermediate server receives the page info upload request of terminal transmission, page info upload request is solved Analysis, obtains the page iden-tity carried in page info upload request and the corresponding assignment modification time collection of page iden-tity.
Step 304, history modification time collection corresponding with page iden-tity is obtained.
Step 306, the first different information is generated according to history modification time collection and assignment modification time collection.
Specifically, intermediate server can obtain corresponding history modification time collection according to page iden-tity.When history is modified Between collection refer to corresponding with specific character string assignment modification time collection when terminal history uploads page info.Terminal is every time to specific The assignment of character string is modified, i.e., renewable assignment modification time collection.Terminal can repeat to upload one or many page objects Face information, therefore, page iden-tity can be corresponded to including one or more history modification time collection.Further, intermediary service Device available the last time uploads the history modification time collection uploaded when page info.
Assignment modification time collection is compared intermediate server with history modification time collection, and modification time can be obtained not Same difference character string.Difference character string is sent to terminal by intermediate server, and terminal is after receiving difference character string, Xiang Zhong Between server upload the corresponding specific character string of difference character string.Intermediate server is believed difference character string as the first difference Breath, the first different information describe the difference character string between target pages information and history page information.
If the assignment modification time collection carried in page info upload request in one of the embodiments, only includes carrying out The corresponding assignment modification time of difference character string of modification, intermediate server then can be directly true according to assignment modification time collection The difference character string to set the goal between page info and history page information does not need to modify assignment modification time collection and history Time collection is compared, to effectively raise the efficiency of determining difference character string.
Step 308, the first different information is sent to destination server, so that destination server is according to the first different information Target pages information is generated with the second different information, the second different information is by terminal by the corresponding history page information of page iden-tity It is compared to obtain with the target pages information after deletion specific character string and is sent to destination server.
First different information is sent to destination server by intermediate server, and destination server also receives the of terminal transmission Two different informations.Specifically, the available history page information corresponding with page iden-tity of terminal.Wherein, history page information Refer to that terminal before this uploads page info, is uploaded to the page info corresponding with page iden-tity of destination server.Eventually End can repeat to upload one or many page infos, and therefore, page iden-tity can correspond to the history page of one or more versions Face information.Further, the terminal available last time is uploaded to the history page information of destination server.
History page information is compared terminal with the target pages information after specific character string is deleted, and obtains second Different information.Second different information is sent to destination server by terminal.Wherein, terminal is when repeatedly uploading page info, mesh It is modified between mark page info and history page information primarily directed to specific character string.Therefore, terminal obtain Two different informations only include low volume data, even empty data, so that being effectively reduced terminal is uploaded to destination server Data volume.
The second different information that the first different information and terminal that destination server can send intermediate server are sent It is integrated, obtains the different information between target pages information and history page information.Destination server by different information with History page information is integrated, and target pages information is generated.
In the present embodiment, intermediate server obtains the page of terminal upload according to the page info upload request received Face mark and assignment modification time collection.Intermediate server obtains history modification time collection corresponding with page iden-tity, according to history Modification time collection and assignment modification time collection generate the first different information and are sent to destination server.Destination server can root The second different information that the first different information and terminal sent according to intermediate server is sent generates target pages information.Terminal is not The data for repeating to upload same section between target pages information and history page information are needed, terminal upload is substantially reduced Data volume improves terminal and uploads the efficiency of page info, and effectively saves mutual resource.
In one embodiment, as shown in figure 4, it is poor according to history modification time collection and the generation first of assignment modification time collection The step of different information includes:
Step 402, it is compared using history modification time collection with assignment modification time collection, obtains comparison result.
Step 404, comparison result is sent to terminal, receives the specific character corresponding with comparison result that terminal returns String.
Step 406, history character string corresponding with page iden-tity is obtained.
Step 408, specific character string is compared with history character string, obtains difference character string, by difference character string As the first different information.
The available history modification time collection corresponding with page iden-tity of intermediate server, the page info that terminal is sent The assignment modification time collection carried in upload request is compared with history modification time collection, obtains comparison result.In specifically, Between server can by the assignment modification time of each of assignment modification time collection specific character string respectively with the specific word The corresponding history modification time of symbol string is compared, when the assignment modification time and history for obtaining each specific character string are modified Between comparison result.
Intermediate server can record comparison result in a variety of forms.For example, intermediate server can be with difference array Form records comparison result.When the corresponding assignment modification time of specific character string is identical as history modification time, then by difference Respective components in array are denoted as 0.When the corresponding assignment modification time of specific character string and history modification time difference, then will Respective components in difference array are denoted as 1.For example, including 6 specific character strings, intermediate server in target pages information Obtain the difference array shaped like (0,0,1,0,0,0).The difference array representation only repair by the corresponding assignment of third specific character string It is different from history modification time to change the time.
Comparison result is sent to terminal by intermediate server, after terminal receives comparison result, is returned to intermediate server Specific character string corresponding with comparison result.Terminal can directly return according to the comparison result that intermediate server is sent corresponding Specific character string.That is terminal is after being sent to intermediate server for page info upload request, and the two of terminal and intermediate server Secondary communication process can be completed in the case where user's unaware, upload operation efficiency be effectively raised, to improve use Family experience.
Specifically, terminal is to intermediate server return assignment modification time and the inconsistent specific character of history modification time String.For example, indicating that only third is specific when the comparison result that intermediate server obtains is the difference array of (0,0,1,0,0,0) The corresponding assignment modification time of character string is different from history modification time, and terminal is then only specific to intermediate server transmission third Character string.
Intermediate server obtains corresponding with page iden-tity history character string, by the specific character string of terminal transmission with it is corresponding History character string be compared.History character string is the specific character string in the corresponding history page information of page iden-tity.Together The corresponding specific character string of one page iden-tity and history character string are corresponding.When specific character string and corresponding history word When symbol string is different, indicate that the specific character string is modified compared to history character string, intermediate server determines the specific word Symbol string is difference character string.Destination server is uploaded to using difference character string as the first different information.
In the present embodiment, intermediate server the corresponding assignment modification time of specific character string and history modification time not Meanwhile also specific character string being compared with corresponding history character string.Prevent intermediate server in terminal to specific character After string is modified, but modify under result and history character string unanimous circumstances, it will be with the consistent specific character of history character string String is used as difference character string, is repeatedly sent to destination server.Intermediate server is avoided to repeat upload identical as history character string Specific character string, reduce the data volume that intermediate server is sent to destination server, effectively save mutual resource.
In one embodiment, if assignment modification time collection is compared intermediate server with history modification time collection Afterwards, the comparison result obtained, if the corresponding difference array of comparison result is (0,0,0,0,0,0), indicates target to be all consistent Specific character string and the last history character string being uploaded in the history page information in destination server in page info It is completely the same.Intermediate server then directly transmits the first empty different information to destination server, and destination server can use History character string in history page information is integrated with the second different information, obtains target pages information.
In the present embodiment, discovery compares after intermediate server compares assignment modification time collection with history modification time collection As a result when consistent, the corresponding assignment modification time of all specific character strings and history modification time in target pages information are indicated Unanimously, i.e., specific character string is not modified.Intermediate server then sends the first empty different information to destination server, from And reduce the data volume that intermediate server is sent to destination server, effectively save mutual resource.
In one embodiment, the step of specific character string being compared with history character string, obtains difference character string It include: the multiple target key values and the corresponding current label of target key value and history character read in specific character string Multiple history key assignments and the corresponding history tab of history key assignments in string;Current label is carried out with corresponding history tab Matching, and the current label of record matching failure;By the corresponding target key value of current label and history tab pair that it fails to match The history key assignments answered is compared, and obtains difference character string.
It may include multiple key assignments in each character string, there are corresponding labels for each key assignments.Wherein, label can use Much information marks key assignments, and terminal modifies key assignments every time and then updates the corresponding label of key assignments.It is answered for example, label can be key-value pair Number.Terminal can also be using the modification time of key assignments as the corresponding label of key assignments.Intermediate server reads specific character string In multiple target key values and the corresponding current label of multiple target key values.The corresponding current label of target key value can be with Modification time when being target key value the last time modification.Intermediate server also reads multiple history buttons in history character string Value and multiple corresponding history tabs of history key assignments.Wherein, history key assignments is the history page uploaded the terminal last time Key assignments in the corresponding history character string of information.Corresponding, history tab can be the corresponding modification time of history key assignments.
Intermediate server traverses each target key value in specific character string one by one.Specifically, intermediate server one by one will The corresponding current label of target key value history tab corresponding with history key assignments is matched.When current label and history tab When with success, then it represents that the corresponding target key value of current label history key assignments corresponding with history tab is consistent, centre clothes Business device does not need then that target key value is compared with history key assignments again.When it fails to match for current label and history tab, then Indicate that the corresponding target key value of current label history key assignments corresponding with history tab is inconsistent, intermediate server record Current label with failure, by the corresponding target key value of the current label history key assignments corresponding with history tab that it fails to match into Row compares.When target key value and history key assignments are inconsistent, determine that the corresponding specific character string of target key value is difference character string.
In the present embodiment, since the corresponding data of target key value may be larger, by biggish target key value and history button Value matching gets up to expend biggish computing resource.Therefore, intermediate server first respectively corresponds target key value and history key assignments Current label and history tab matched.Only the target key value and history key assignments that it fails to match are compared, avoided All target key values in specific character string are compared, thus effectively raise specific character string and history character string it Between diversity ratio pair efficiency.
In one embodiment, when assignment modification time collection includes specific character string modification time collection and target key value modification Between collect;History modification time collection includes history character string modification time set history key assignments modification time collection;It is modified according to history Time collection and assignment modification time collection generate the step of the first different information further include: by specific character string modification time collection with go through History character string modification time collection is compared, and obtains difference character string;When being modified using the corresponding target key value of difference character string Between corresponding with the difference character string history key assignments modification time collection of collection be compared, obtain difference key assignments, using difference key assignments as First different information.
Assignment modification time collection includes specific character string modification time collection and target key value modification time collection.Specific character string Modification time concentrates the modification time for including corresponding with specific character string.Wrapped in the corresponding target pages information of page iden-tity The specific character string quantity included concentrates the number of components for including consistent with specific character string modification time.Each specific character String all corresponds to a target key value modification time collection, and target key value modification time concentrates the modification time for including and specific character string In target key value it is corresponding.The target key value quantity for including in specific character string is concentrated with target key value modification time and is wrapped The number of components included is consistent.Corresponding, history modification time concentration also may include history character string modification time collection and history Key assignments modification time collection.
First specific character string modification time collection is compared with history character string modification time collection for intermediate server Obtain modification time and the inconsistent difference character string of history modification time.In one of the embodiments, when there is no modifications When time and the inconsistent difference character string of history modification time, the specific character in target pages information that terminal uploads is indicated String is consistent with corresponding history character string, and intermediate server then sends the first empty different information to destination server.
When intermediate server reads the corresponding target key value modification time collection of difference character string and the modification of history key assignments one by one Between collect.By the corresponding target key value modification time collection of difference character string history key assignments modification time corresponding with the difference character string Collection is compared, and obtains the inconsistent difference key assignments of modification time.
Difference key assignments is sent to terminal by intermediate server, after terminal receives difference key assignments, is returned to intermediate server Target key value corresponding with difference key assignments.The corresponding target key value of difference key assignments is only sent to intermediate server by terminal, is not required to It wants terminal that the corresponding specific character string of entire difference character string is sent to intermediate server, further reduces terminal and be sent to The data volume of intermediate server saves mutual resource to effectively raise the efficiency for uploading page info.
Intermediate server can be sent to destination server for difference key assignments as the first different information.Destination server exists When integrating the first different information, it is only necessary to which the corresponding history key assignments of difference key assignments is replaced with the corresponding object key of difference key assignments Value, can be obtained target string.
In the present embodiment, intermediate server is utilized specific character string modification time collection and history character string modification time Collection is compared, and target key value modification time collection is compared with history key assignments modification time collection, by specific character string particulate Change.The first obtained different information is the different information of key assignments level, intermediate server do not need again by specific character string with History character string is compared, and effectively raises the difference comparison efficiency between specific character string and history character string.
In one embodiment, the second different information that terminal is sent can be sent to intermediary service by destination server Device.Intermediate server receives the second different information that destination server is sent, and utilizes the second different information and the first different information Generate target pages information.Specifically, history character string can be replaced with target according to the first different information by intermediate server Target pages are revised as further according to the second different information in part in history page information in addition to history character string by character string The corresponding partial content of information generates target pages information, is compared when uploading page info next time in order to terminal.Into One step, intermediate server can also establish the incidence relation between the target pages information of generation and assignment modification time collection, It is compared when uploading page info next time in order to terminal.
In the present embodiment, the second different information that terminal is sent can be sent to intermediate server by destination server, Intermediate server and it can use the first different information and the second different information and generate target pages information, in order to one under terminal It is compared when secondary upload page info, effectively raises the efficiency for uploading page info.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, a kind of page info uploading system is provided, which includes: terminal, for obtaining mesh Page info and assignment modification time collection are marked, includes page iden-tity in the target pages information;Utilize page iden-tity and tax It is worth modification time collection and generates page info upload request;Intermediate server, the page info upload for receiving terminal transmission are asked It asks, page info upload request carries page iden-tity and assignment modification time collection;Obtain history corresponding with page iden-tity Modification time collection;The first different information is generated according to history modification time collection and assignment modification time collection;By the first different information It is sent to destination server;Terminal is also used to the specific character string in delete target page info, the page object after being deleted Face information;History page information corresponding with page iden-tity is obtained, the target pages information by history page information and after deleting It is compared, obtains the second different information;Second different information is sent to destination server;Destination server, for receiving The second different information that terminal is sent;Receive the first different information that intermediate server is sent;According to the first different information and Two different informations generate target pages information.
In one embodiment, terminal is also used to read multiple specific character strings in target pages information;It obtains and spy Determine the corresponding assignment modification time of character string, generates assignment modification time collection using assignment modification time.
In one embodiment, terminal is also used to monitor the assignment modification of direction specific character string corresponding with page iden-tity Instruction;Corresponding assignment modification time is recorded according to assignment modification instruction;Page is generated using the assignment modification time repeatedly recorded Face identifies corresponding assignment modification time collection.
In one embodiment, intermediate server is also used to carry out using history modification time collection and assignment modification time collection It compares, obtains comparison result;Comparison result is sent to terminal, receives the specific character corresponding with comparison result that terminal returns String;Obtain history character string corresponding with page iden-tity;Specific character string is compared with history character string, obtains difference word Symbol string, using difference character string as the first different information.
In one embodiment, intermediate server is also used to read multiple target key values and object key in specific character string The multiple history key assignments and the corresponding history mark of history key assignments being worth in corresponding current label and history character string Label;Current label is matched with corresponding history tab, and the current label of record matching failure;Work as what it fails to match The corresponding target key value of preceding label history key assignments corresponding with history tab is compared, and obtains difference character string.
In one embodiment, when assignment modification time collection includes specific character string modification time collection and target key value modification Between collect;History modification time collection includes history character string modification time collection and history key assignments modification time collection;Intermediate server is also For specific character string modification time collection to be compared with history character string modification time collection, difference character string is obtained;It utilizes The corresponding target key value modification time collection of difference character string history key assignments modification time collection corresponding with difference character string is compared It is right, difference key assignments is obtained, using difference key assignments as the first different information.
Specific about page info uploading system limits the limit that may refer to above for page info method for uploading Fixed, details are not described herein.Modules in above-mentioned page info uploading system can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 5.The server can be above-mentioned intermediate server, be also possible to above-mentioned destination server.The calculating Machine equipment includes processor, memory, network interface and the database connected by system bus.Wherein, the computer equipment Processor for provide calculate and control ability.The memory of the computer equipment includes non-volatile memory medium, memory Reservoir.The non-volatile memory medium is stored with operating system, computer program and database.The built-in storage is non-volatile The operation of operating system and computer program in storage medium provides environment.The database of the computer equipment is used for memory page Face information uploads data.The network interface of the computer equipment is used to communicate with external terminal by network connection.The calculating To realize a kind of page info method for uploading when machine program is executed by processor.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of page info method for uploading.The display screen of the computer equipment can be liquid crystal display or electric ink is shown Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figures 5 and 6, only portion relevant to application scheme The block diagram of separation structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer Equipment may include perhaps combining certain components or with different component cloth than more or fewer components as shown in the figure It sets.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor realize the step of the page info method for uploading in above-mentioned each embodiment when executing computer program Suddenly.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the step of page info method for uploading in above-mentioned each embodiment when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of page info method for uploading, which comprises
Target pages information and assignment modification time collection are obtained, includes page iden-tity in the target pages information;
Page info upload request is generated using the page iden-tity and the assignment modification time collection;
The page info upload request is sent to intermediate server, so that the intermediate server obtains and the page mark Know corresponding history modification time collection, the first difference is generated according to the history modification time collection and the assignment modification time collection Information, and first different information is sent to destination server;
Delete the specific character string in the target pages information, the target pages information after being deleted;
History page information corresponding with the page iden-tity is obtained, by the target after the history page information and the deletion Page info is compared, and obtains the second different information;
Second different information is sent to destination server, so that the destination server is according to first different information The target pages information is generated with second different information.
2. the method according to claim 1, wherein the acquisition target pages information and assignment modification time Collection includes:
Read multiple specific character strings in the target pages information;
Assignment modification time corresponding with the specific character string is obtained, when generating assignment modification using the assignment modification time Between collect.
3. the method according to claim 1, wherein the method also includes:
Monitor the assignment modification instruction for being directed toward specific character string corresponding with the page iden-tity;
Corresponding assignment modification time is recorded according to assignment modification instruction;
The corresponding assignment modification time collection of the page iden-tity is generated using the assignment modification time repeatedly recorded.
4. a kind of page info method for uploading, which is characterized in that the described method includes:
Page info upload request is received, the page info upload request carries page iden-tity and assignment modification time Collection;
Obtain history modification time collection corresponding with the page iden-tity;
The first different information is generated according to the history modification time collection and the assignment modification time collection;
First different information is sent to destination server, so that the destination server is according to first different information Target pages information is generated with the second different information, second different information is by terminal by the corresponding history of the page iden-tity Page info is compared to obtain and be sent to the destination server with the target pages information after deletion specific character string.
5. according to the method described in claim 4, it is characterized in that, described according to the history modification time collection and the assignment Modification time collection generates the first different information
It is compared using the history modification time collection with the assignment modification time collection, obtains comparison result;
The comparison result is sent to the terminal, receives the specific word corresponding with the comparison result that the terminal returns Symbol string;
Obtain history character string corresponding with the page iden-tity;
The specific character string is compared with the history character string, obtains difference character string, by the difference character string As the first different information.
6. according to the method described in claim 5, it is characterized in that, described by the specific character string and the history character string It is compared, obtaining difference character string includes:
Read the multiple target key values and the corresponding current label of the target key value in the specific character string, Yi Jisuo State multiple history key assignments in history character string and the corresponding history tab of history key assignments;
The current label is matched with the corresponding history tab, and the current label of record matching failure;
The corresponding target key value of the current label history key assignments corresponding with history tab that it fails to match is compared, difference is obtained Different character string.
7. according to the method described in claim 4, it is characterized in that, the assignment modification time collection includes specific character string modification Time collection and target key value modification time collection;The history modification time collection includes history character string modification time collection and history button It is worth modification time collection;
It is described to include: according to the history modification time collection and the assignment modification time collection the first different information of generation
The specific character string modification time collection is compared with the history character string modification time collection, obtains difference character String;
Utilize the corresponding target key value modification time collection of difference character string history key assignments corresponding with the difference character string Modification time collection is compared, and obtains difference key assignments, using the difference key assignments as the first different information.
8. a kind of page info uploading system, which is characterized in that the system comprises:
Terminal includes page mark in the target pages information for obtaining target pages information and assignment modification time collection Know;Page info upload request is generated using the page iden-tity and the assignment modification time collection;
Intermediate server, for receiving the page info upload request of terminal transmission, the page info upload request is taken With page iden-tity and assignment modification time collection;Obtain history modification time collection corresponding with the page iden-tity;According to institute It states history modification time collection and the assignment modification time collection generates the first different information;First different information is sent to Destination server;
The terminal is also used to delete the specific character string in the target pages information, the target pages letter after being deleted Breath;History page information corresponding with the page iden-tity is obtained, by the target after the history page information and the deletion Page info is compared, and obtains the second different information;Second different information is sent to destination server;
Destination server, for receiving second different information of terminal transmission;It is poor to receive intermediate server is sent first Different information;The target pages information is generated according to first different information and second different information.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In perform claim requires the step of any one of 1 to 3 or 4 to 7 the method when the processor executes the computer program Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor the step of method described in any one of perform claim requirement 1 to 3 or 4 to 7.
CN201910629854.9A 2019-07-12 2019-07-12 Page info method for uploading, system, computer equipment and storage medium Pending CN110472177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910629854.9A CN110472177A (en) 2019-07-12 2019-07-12 Page info method for uploading, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910629854.9A CN110472177A (en) 2019-07-12 2019-07-12 Page info method for uploading, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110472177A true CN110472177A (en) 2019-11-19

Family

ID=68508111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910629854.9A Pending CN110472177A (en) 2019-07-12 2019-07-12 Page info method for uploading, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110472177A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080275923A1 (en) * 2007-05-02 2008-11-06 International Business Machines Corporation Method for the expungement of backup versions of files on server targets that are configured to be updated sequentially
CN102130969A (en) * 2011-04-26 2011-07-20 苏州阔地网络科技有限公司 Method and system for realizing timing synchronization based on webpage
US20180052665A1 (en) * 2016-08-16 2018-02-22 Sap Se User Interface Template Generation Using Dynamic In-memory Database Techniques
CN107885755A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The control method and device of application resource information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080275923A1 (en) * 2007-05-02 2008-11-06 International Business Machines Corporation Method for the expungement of backup versions of files on server targets that are configured to be updated sequentially
CN102130969A (en) * 2011-04-26 2011-07-20 苏州阔地网络科技有限公司 Method and system for realizing timing synchronization based on webpage
US20180052665A1 (en) * 2016-08-16 2018-02-22 Sap Se User Interface Template Generation Using Dynamic In-memory Database Techniques
CN107885755A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The control method and device of application resource information

Similar Documents

Publication Publication Date Title
CN108491320A (en) Exception analysis method, device, computer equipment and the storage medium of application program
CN108446116A (en) Generation method, device, computer equipment and the storage medium of the application program page
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
CN111737127B (en) Method and apparatus for testing map services
CN108959059B (en) Test method and test platform
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
CN107783899A (en) The method of testing of the H5 pages, device and computer equipment in application program
CN110689232A (en) Workflow configuration optimization processing method and device and computer equipment
CN108388515A (en) Test data generating method, device, equipment and computer readable storage medium
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
CN109446065A (en) User tag test method, device, computer equipment and storage medium
CN112988284A (en) Application program starting method and device, computer equipment and storage medium
CN111309991B (en) Query statement generation method and device and data query method and system
CN109783788A (en) Tables of data complementing method, device, computer equipment and storage medium
CN114461533A (en) Method, system, electronic device and storage medium for automatic testing of Web page
CN110232018A (en) Interface test method, device, computer equipment
CN113535135B (en) Software development method and device, computer equipment and storage medium
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN110472177A (en) Page info method for uploading, system, computer equipment and storage medium
CN115221852A (en) Vxe-table based dynamic calculation table implementation method, device and computer equipment
CN111190574B (en) Method, device, equipment and storage medium for selecting options of multi-stage linkage assembly
CN111159027A (en) Automatic testing method and device, computer equipment and readable storage medium
CN115168779B (en) Form flow processing method and device, computer equipment and storage medium
CN111158695B (en) Interface positioning method, device, computer equipment and storage medium

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