A kind of information update notification method based on internet site and system
Technical field
The present invention relates to internet arena, especially relate to a kind of information update notification method based on internet site and
System.
Background technology
It is with corresponding legacy data item in new data item or record, replacement data file or data base that data update
Or the process of record, realized by the operation deleted, revise, be inserted into.
When traditional data updates: such as: management staff have modified the account number of the mailbox of a user, and due to foreground, user is clear
Look at the session control of device and the session control of management staff is not under same action scope.Management staff is caused to have changed
The mailbox data of this user, is to revise in the browser of foreground the data of mailbox in session control.Thus manager is on backstage
Amendment data, it is impossible to changing the user data on foreground timely, there are data can not synchronize in time, experiences poor sensation.
If but go to check whether the data in session update, server stress can be caused excessive, in order to avoid experiencing. every time
Difference, the shortcoming that server stress is excessive, existing framework be transformed.
Summary of the invention
The present invention mainly solves the technical problem existing for prior art;Provide a kind of frame protecting notice system
Structure, and the information updated required for client is updated by the information comparison of client Yu server, thus save server
Performance, strengthens a kind of based on internet site information update notification method and the system of Consumer's Experience.
The above-mentioned technical problem of the present invention is mainly addressed by following technical proposals:
A kind of information update notification method based on internet site, it is characterised in that including:
Step 1, when client opens APP or web edition browsing pages, sends client-side information inquiry request to service end, and will
APP or the client-side information of web edition browsing pages that active client is accessed are sent to service end;
Step 2, service end receives the client-side information that client sends, and inquires about the APP of service end or web edition browsing pages
Service end information, compares the service end information of service end with client-side information, and selects to maintain client according to comparative result
Client-side information, or the client-side information of client is updated to the service end information of service end.
Preferably, also include that the information updating step of server end: APP or web edition browsing pages operator are at server
Service end information updating is up-to-date service end information by end.
Preferably, it is up-to-date clothes at server end by service end information updating when APP or web edition browsing pages operator
After business client information, when client opens APP or web edition browsing pages, repeat step 1 to step 2 until the client of client
Information is consistent with the service end information of service end.
Preferably, described service end information and client-side information all include self-defining N item information, and service end information and
Client-side information all includes that N position encodes, the corresponding information of each coding, in described step 2, and comprising the concrete steps that of renewal:
The N position coding of service end information is carried out and computing with N position coding 1 after first carrying out subtraction with the N position coding of client-side information
After, obtaining prompting coding, the information pointing out corresponding figure place in coding to be 1 correspondence is the information needing to update, then by client
In information, corresponding figure place information updating is rear storage identical with service end information.
A kind of information updating based on internet site notice system, including:
Information inquiry module: when client opens APP or web edition browsing pages, sends client by information inquiry module and believes
Breath inquiry request is to service end, and the client-side information of the APP that accessed by active client or web edition browsing pages is sent to
Service end;
Information updating module: service end receives the client-side information that client sends, and inquire about the APP of service end or web edition is clear
Look at the service end information of the page, by information updating module, the service end information of service end is compared with client-side information, and root
Select to maintain the client-side information of client according to comparative result, or the client-side information of client is updated to the clothes of service end
Business client information.
Preferably, service end information updating module: APP or web edition browsing pages operator are by service end information updating
Service end information updating is up-to-date service end information at server end by module.
Preferably, it is up-to-date clothes at server end by service end information updating when APP or web edition browsing pages operator
After business client information, when client opens APP or web edition browsing pages, duplicate message enquiry module and the behaviour of information updating module
Make until the client-side information of client and the service end information of service end are consistent.
Preferably, described service end information and client-side information all include self-defining N item information, and service end information and
Client-side information all includes that N position encodes, the corresponding information of each coding, comprising the concrete steps that of renewal: the N of service end information
Position coding first carry out subtraction with the N position of client-side information coding after with N position coding 1 carry out with computing after, obtain prompting and compile
Code, the information pointing out corresponding figure place in coding to be 1 correspondence is the information needing to update, then by figure place corresponding in client-side information
Information updating is rear storage identical with service end information.
Therefore, present invention have the advantage that the framework protecting notice system, and by the letter of client with server
Breath comparison updates the required information updated of client, thus saves server performance, strengthens Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of the present invention.
Fig. 2 is the structured flowchart of the present invention.
Detailed description of the invention
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
A kind of information update notification method based on internet site, including:
Step 1, when client opens APP or web edition browsing pages, sends client-side information inquiry request to service end, and will
APP or the client-side information of web edition browsing pages that active client is accessed are sent to service end;
Step 2, service end receives the client-side information that client sends, and inquires about the APP of service end or web edition browsing pages
Service end information, compares the service end information of service end with client-side information, and selects to maintain client according to comparative result
Client-side information, or the client-side information of client is updated to the service end information of service end.
Wherein, service end information and client-side information all include self-defining N item information, and service end information and client
Information all includes that N position encodes, the corresponding information of each coding, in described step 2, and comprising the concrete steps that of renewal: service end
The N position coding of information first carry out subtraction with the N position of client-side information coding after with N position coding 1 carry out with computing after, obtain
Prompting coding, the information pointing out corresponding figure place in coding to be 1 correspondence is the information needing to update, then by phase in client-side information
Figure place information updating is answered to store after identical with service end information.
Service end information updating is up-to-date service at server end by step 3, APP or web edition browsing pages operator
Client information.
Step 4, is up-to-date clothes at server end by service end information updating when APP or web edition browsing pages operator
After business client information, when client opens APP or web edition browsing pages, repeat step 1 to step 2 until the client of client
Information is consistent with the service end information of service end.
Service end information and client-side information all include self-defining N item information, and all include that N position encodes, and each is compiled
The corresponding information of code, in step 2, comprising the concrete steps that of renewal: the N position coding of service end information is first carried out with client-side information
Carry out with N position coding 1 after subtraction with computing after, obtain prompting coding, in prompting coding, corresponding figure place is the information of 1 correspondence
It is the information needing to update, then be identical with service end information to store afterwards by figure place information updating corresponding in client-side information.
A kind of information updating based on internet site notice system, including:
Information inquiry module: when client opens APP or web edition browsing pages, sends client by information inquiry module and believes
Breath inquiry request is to service end, and the client-side information of the APP that accessed by active client or web edition browsing pages is sent to
Service end;
Information updating module: service end receives the client-side information that client sends, and inquire about the APP of service end or web edition is clear
Look at the service end information of the page, by information updating module, the service end information of service end is compared with client-side information, and root
Select to maintain the client-side information of client according to comparative result, or the client-side information of client is updated to the clothes of service end
Business client information.
Wherein, service end information and client-side information all include self-defining N item information, and service end information and client
Information all includes that N position encodes, the corresponding information of each coding, comprising the concrete steps that of renewal: the N position coding of service end information
Encode with the N position of client-side information carry out with N position coding 1 after first carrying out subtraction with computing after, obtain prompting coding, prompting
In coding, corresponding figure place is that the information of 1 correspondence is the information needing to update, then by figure place information corresponding in client-side information more
New is rear storage identical with service end information.
Service end information updating module: APP or web edition browsing pages operator by service end information updating module at clothes
Service end information updating is up-to-date service end information by business device end.When APP or web edition browsing pages operator are at server end
After service end information updating is up-to-date service end information, when client opens APP or web edition browsing pages, duplicate message
Enquiry module with the operation of information updating module until the client-side information of client is consistent with the service end information of service end.
Embodiment 1:
The present invention provides a kind of information update notification method based on internet site, including:
Step 1: the user of client, when each accession page is asked, sends client-side information inquiry request to service end,
The version information of inquiry service end;
Step 2: service end receives the client-side information that client sends, and inquire about the APP of service end or web edition browsing pages
Service end information, compares the service end information of service end with client-side information, and selects to maintain client according to comparative result
Client-side information, or the client-side information of client is updated to the service end information of service end.
Version information is defined below: assume that version information has 5, then include 5 codings.
The version information assuming current service end has been 11300, and the version information of client is 11000, then update
Time: 5 of service end information codings first carry out subtraction with client-side information after with 5 codings 1 carry out with computing after, obtain
Prompting coding, the information pointing out corresponding figure place in coding to be 1 correspondence is the information needing to update, then by phase in client-side information
Figure place information updating is answered to store after identical with service end information.
Specifically: both meetings first carry out subtraction and become 00200, then with 11111 take and computing, 00200 and
11111=00100, take the 3rd, according to configuration item, if: the 1st updates user's pet name, and the 2nd updates user mobile phone number, the
3 update subscriber mailbox.Find that only the 3rd is to need to update, then mail box state can be updated.
If this version number is consistent with local version number, any process will not be done.Such as: the version of current service end
Information has been 11300, and the version information of client is 1130 then 0, will not do any process.
Step 3: after being updated successfully, the version information of client can be updated to 11300.
Step 4: management staff at this time, if changing the mailbox of this user, can first inquire about version number's letter of service end
Breath is 11300, and after at this time changing mailbox into, we can become 11400 by 11300.
Step 5: foreground user inquires about service end version number the most again and is found to be 11400, the version information of his this locality
It is still 11300, performs step 1, the operation of 2.The renewal of complete paired data.
More than operation ensures that, the renewal operation on backstage can notify front end in time, it is possible at utmost reduces
The pressure of server.
Embodiment 2
The present invention provides a kind of information updating based on internet site to notify system, due to embodiment of the method and system embodiment
Being one to one, therefore the extended mode of embodiment of the method also can be used for system embodiment.
Specific embodiment described herein is only to present invention spirit explanation for example.Technology neck belonging to the present invention
Described specific embodiment can be made various amendment or supplements or use similar mode to replace by the technical staff in territory
Generation, but without departing from the spirit of the present invention or surmount scope defined in appended claims.