CN112395297B - Method, device and server for synchronizing work information - Google Patents

Method, device and server for synchronizing work information Download PDF

Info

Publication number
CN112395297B
CN112395297B CN202011092150.1A CN202011092150A CN112395297B CN 112395297 B CN112395297 B CN 112395297B CN 202011092150 A CN202011092150 A CN 202011092150A CN 112395297 B CN112395297 B CN 112395297B
Authority
CN
China
Prior art keywords
page
work
target work
state
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011092150.1A
Other languages
Chinese (zh)
Other versions
CN112395297A (en
Inventor
陈锐
向松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011092150.1A priority Critical patent/CN112395297B/en
Publication of CN112395297A publication Critical patent/CN112395297A/en
Application granted granted Critical
Publication of CN112395297B publication Critical patent/CN112395297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure relates to a method, a device and a server for synchronizing work information, and belongs to the technical field of computer application. Wherein the method comprises the following steps: updating the work state of the target work in response to a work state updating operation for the target work in the first page; generating a state update notification of the target work and sending the state update notification to a second page associated with the target work; according to the state update notification, updating the work state of the target work in the second page; and responding to a display triggering operation for a second page, and displaying the updated second page. According to the method for synchronizing the information of the works, the corresponding update notification is generated when a certain page responds to the state update operation of the target works, the work states of the target works in the pages related to the target works are updated, and the updated pages are displayed according to the display trigger operation, so that the rapid synchronization of the work states on different pages is realized.

Description

Method, device and server for synchronizing work information
Technical Field
The disclosure relates to the technical field of computer application, and in particular relates to a method, a device and a server for synchronizing work information.
Background
At present, when a user browses a page, operations such as praise, collection, login and the like may be performed on the page, and the operations often only can change the display state of related contents on the current page, but cannot change the display states of corresponding contents on other pages, namely, synchronization of page information cannot be realized, so that the use experience of the user is affected.
Disclosure of Invention
The disclosure provides a method, a device, a server, a storage medium and a computer program product for synchronizing work information, which at least solve the problems that page synchronization needs to depend on the server and page synchronization time is long in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a method of synchronizing work information, including: updating the work state of the target work in response to a work state updating operation for the target work in the first page; generating a state update notification of the target work and sending the state update notification to a second page associated with the target work; according to the state update notification, updating the work state of the target work in the second page; and responding to a display triggering operation for a second page, and displaying the updated second page.
In one embodiment of the present disclosure, the method further comprises: acquiring a first registration list corresponding to the target work, wherein the first registration list comprises the registered identification of the page comprising the target work, and the registered identification of the page comprising the target work is added into the first registration list when the corresponding page is displayed for the first time; and determining the page corresponding to the identification of the other pages except the identification of the first page in the first registration list as the second page associated with the target work.
In one embodiment of the present disclosure, the method further comprises: acquiring a second registration list, wherein the second registration list comprises the identification of a registered page, and the identification of the registered page is added into the second registration list when the corresponding page is displayed for the first time;
the generating a status update notification of the target work, sending the status update notification to a second page associated with the target work, includes: generating the state update notification of the target work according to the identification of the page; and sending the state update notification to a page corresponding to the identification of the page in a broadcast mode.
In one embodiment of the disclosure, the updating the work state of the target work in the second page according to the state update notification includes: and detecting that the second page correctly receives the state update notification, and updating the work state of the target work in the second page according to the state update notification.
In one embodiment of the present disclosure, the method further comprises: writing the updated work state of the target work into a cache; detecting that the second page does not correctly receive the state update notification, and responding to a display triggering operation for the second page, and reading the updated work state of the target work from the cache; and displaying the updated second page according to the updated work state of the target work.
In one embodiment of the present disclosure, the method further comprises: writing the updated work state of the target work into a cache; responding to a display triggering operation for a third page which is not displayed and comprises the target work, and reading the updated work state of the target work from the cache; and displaying the updated third page according to the updated work state of the target work.
In one embodiment of the present disclosure, the method further comprises: pulling a work state of the target work from a server in response to a start operation for an application; and writing the work state of the target work into the cache.
In one embodiment of the present disclosure, the method further comprises: uploading the updated work state of the target work to the server so that the server can update the work state of the target work.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for synchronizing work information, including: a first updating module configured to perform updating of a work state of a target work in a first page in response to a work state updating operation for the target work; a sending module configured to perform generating a status update notification of the target work, and send the status update notification to a second page associated with the target work; a second updating module configured to perform updating of the work state of the target work in the second page according to the state update notification; and a display module configured to execute a display of the updated second page in response to a display trigger operation for the second page.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: a first acquisition module configured to perform acquisition of a first registration list corresponding to the target work, the first registration list including identifications of registered pages including the target work, the identifications of the registered pages including the target work being added to the first registration list when the corresponding pages are first presented; and a determining module configured to perform determining, as the second page associated with the target work, a page corresponding to an identification of other pages in the first registration list than the identification of the first page.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: a second acquisition module configured to perform acquisition of a second registration list including identifications of registered pages, the identifications of the registered pages being added to the second registration list when the corresponding pages are first presented;
the sending module comprises: a generation unit configured to perform generation of the status update notification of the target work according to the identification of the page; and a transmitting unit configured to perform transmission of the status update notification to a page corresponding to the identification of the page by broadcasting.
In one embodiment of the present disclosure, the second updating module includes: and the detection unit is configured to execute detection that the second page correctly receives the state update notification, and update the work state of the target work in the second page according to the state update notification.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: the first cache module is configured to write the updated work state of the target work into a cache; the first reading module is configured to execute detection that the second page does not correctly receive the state update notification, and respond to the display triggering operation for the second page to read the updated work state of the target work from the cache; and the display module is further configured to display the updated second page according to the updated work state of the target work.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: the second buffer module is configured to write the updated work state of the target work into a buffer; a second reading module configured to perform a work state of the target work updated from the cache in response to a presentation trigger operation for a third page that includes the target work that is not presented; and the display module is further configured to display the updated third page according to the updated work state of the target work.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: a pull module configured to perform pulling of a work state of the target work from a server in response to a start operation for an application; and a third caching module configured to perform writing of the work state of the target work into the cache.
In one embodiment of the present disclosure, the apparatus for synchronizing work information further includes: and the uploading module is configured to upload the updated work state of the target work to the server so as to update the work state of the target work by the server.
According to a third aspect of embodiments of the present disclosure, there is provided a server comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of synchronizing work information as previously described.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, which when executed by a processor of a server, enables the server to perform a method of synchronizing work information as previously described.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product which, when executed by a processor of a server, enables the server to perform a method of synchronizing composition information as previously described.
According to the embodiment of the disclosure, when a certain page responds to the state updating operation of the target works, the corresponding updating notification is generated, the work states of the target works in the pages related to the target works are updated, the updated pages are displayed according to the display triggering operation, and the rapid synchronization of the work states on different pages is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow chart illustrating a method of synchronizing work information according to an exemplary embodiment.
FIG. 2 is a flowchart illustrating a method of synchronizing work information to determine a second page associated with a target work, according to an exemplary embodiment.
FIG. 3 is a flowchart of generating a status update notification of a target work, sent to a second page associated with the target work, in a method of synchronizing work information, according to an example embodiment.
FIG. 4 is a flowchart illustrating a method of synchronizing work information after being sent to a second page associated with a target work, according to an exemplary embodiment.
FIG. 5 is a flowchart illustrating another method of synchronizing work information after being sent to a second page associated with a target work, according to an exemplary embodiment.
Fig. 6 illustrates a schematic view of a scenario of a method of synchronizing work information according to an exemplary embodiment.
Fig. 7 is a block diagram of an apparatus for synchronizing work information, according to an exemplary embodiment.
Fig. 8 is a block diagram of another apparatus for synchronizing work information, according to an example embodiment.
Fig. 9 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
FIG. 1 is a flowchart illustrating a method of synchronizing work information, as shown in FIG. 1, for use in a local cache center of a client, according to an exemplary embodiment, including the following steps.
In step S101, in response to a work state update operation for a target work in the first page, the work state of the target work is updated.
It should be noted that, the execution body of the method for synchronizing the work information of the present disclosure is a local cache center of the client. The method for synchronizing the work information according to the embodiment of the present disclosure may be performed by the apparatus for synchronizing the work information according to the embodiment of the present disclosure, and the apparatus for synchronizing the work information according to the embodiment of the present disclosure may be configured in a local cache center of any client to perform the method for synchronizing the work information according to the embodiment of the present disclosure.
In embodiments of the present disclosure, clients include, but are not limited to, native clients (Native APP) and Web clients (Web APP), and clients may be provided on devices used by users, including, but not limited to, cell phones, computers, tablet computers, and the like.
It will be appreciated that the client may include a plurality of pages, each page may include a plurality of works, each work has a respective work state, and the page may display the work states of the plurality of works included by itself. The work includes, but is not limited to, types of video, audio, articles, pictures, etc., and the work status includes, but is not limited to, name, content, type, label, viewing number, praise number, collection number, forwarding number, etc., which are not limited herein.
It will be appreciated that the same work may be displayed on a plurality of different pages, and in order to achieve synchronization of page information, if the work is updated in a certain work state on a certain page, the relevant work states of the work in other pages should also be updated, and the updated work state may be used as the work state to be synchronized of the work.
In an embodiment of the disclosure, the first page may be any one page on the client, the target work may be any one work on the first page, and the local cache center of the client may update the work state of the target work in response to a work state update operation for the target work in the first page. It should be noted that the work status updating operation is used to update the work status of the target work on the first page, including, but not limited to, praise, collection, forwarding, playing, etc., and is not limited thereto.
It can be understood that a user can perform a work state update operation for a target work on an interactive interface of a page, and the local cache center of the client can detect the work state update operation, acquire an updated work state according to the work state update operation, and update the work state of the target work according to the updated work state.
For example, suppose that the client is a short video APP (Application), page 1 is one page in the short video APP, page 1 includes a plurality of videos, and the work state of the videos includes the praise number of the videos. Assuming that the number of praise of the video a on the page 1 is 200, if the user performs the praise operation on the video a on the page 1, the local cache center of the short video APP will respond to the praise operation, and acquire the number of praise of the video a on the page 1 as 201 according to the praise operation, and update the number of praise of the video a on the page 1 from 200 to 201.
In step S102, a status update notification of the target work is generated and sent to a second page associated with the target work.
In the embodiment of the disclosure, after updating the work state of the target work, the local cache center of the client may further generate a state update notification of the target work, and send the state update notification of the target work to a second page associated with the target work, so as to update the work state of the target work in the second page.
The second page associated with the target work can be preset according to actual conditions and stored in a local cache center of the client. It will be appreciated that the number of second pages may be one or more.
In step S103, the work state of the target work in the second page is updated according to the state update notification.
It can be understood that, in the related art, page synchronization is mostly implemented by requesting a server, which may result in longer page synchronization time due to device performance, network or server congestion, and higher requirements on hardware conditions of a server, and higher cost. According to the method and the system, the work state of the target work in the second page can be updated according to the state update notification, page synchronization can be achieved without networking, page synchronization strategies are simplified, requirements on hardware conditions of the server are low, cost is low, and implementation is easy.
Optionally, the state update notification carries information such as an identifier of the target work and a work state of the target work, so that the local cache center of the client can determine the target work on the second page according to the identifier of the target work in the state update notification, and then update the work state of the target work in the second page according to the work state of the target work in the state update notification. The identification of the target work includes, but is not limited to, information such as the name, number and the like of the target work.
For example, assuming that the client is a short video APP, page 1 and page 2 are both pages in the short video APP, and page 1 and page 2 both include video a, and the work state of video a includes the praise number of video a. If the number of praise of the video a on the page 1 and the page 2 is 200, then if the user performs the praise operation for the video a on the page 1, the local cache center of the short video APP will update the number of praise of the video a on the page 1 from 200 to 201.
Further, the local cache center of the short video APP may generate a status update notification of "update number of praise of video a to 201", and send the status update notification of "update number of praise of video a to 201" to the page 2 associated with video a, so that the local cache center of the short video APP may update the number of praise of video a on the page 2 from 200 to 201 according to the status update notification of "update number of praise of video a to 201", so that synchronization of the number of praise of video a on the page 1 and the page 2 may be achieved.
In step S104, in response to the presentation triggering operation for the second page, the updated second page is presented.
It can be appreciated that the user can perform the display triggering operation for the second page on the interactive interface of the page, so that the client displays the second page, and further, the local cache center of the client can respond to the display triggering operation for the second page to display the updated second page. Wherein the presentation triggering operation includes, but is not limited to, a single click, a double click, etc., and is not limited thereto.
According to the method for synchronizing the work information, when a certain page responds to the state updating operation of the target work, the corresponding updating notification is generated, the work state of the target work in the page related to the target work is updated, the updated page is displayed according to the display triggering operation, and the quick synchronization of the work state on different pages is achieved.
In a specific implementation, the type of the work status of the target work in step S101 may be the number of praise, the number of collection of the work. It can be understood that the number of praise and collection of the works is low-order data, the requirement on the data processing capability of the client is low, and the synchronization on different pages is easy to realize.
Therefore, the method can realize the synchronization of the states of certain specific types of works on different pages, and is beneficial to saving the computing resources of the client.
On the basis of any of the above embodiments, as shown in fig. 2, determining the second page associated with the target work may include:
in step S201, a first registration list corresponding to the target work is acquired, the first registration list including the identifications of the registered pages including the target work, the identifications of the registered pages including the target work being added to the first registration list when the corresponding pages are first displayed.
In embodiments of the present disclosure, each target work may correspond to a first registry that includes an identification of registered pages that include the target work for determining a second page associated with the target work. The identification of the page includes, but is not limited to, a uniform resource locator (Uniform Resource Locator, URL), a number, etc. of the page. It will be appreciated that different target works may correspond to different first registration lists, which may be set according to actual circumstances.
In the embodiment of the disclosure, when a page including a target work is first displayed, the local cache center of the client may add the identification of the page to the first registration list, so as to register the page including the target work in the first registration list, and update the first registration list of the target work in real time.
In step S202, a page corresponding to the identification of the other pages in the first registration list than the identification of the first page is determined as a second page associated with the target work.
It will be appreciated that the first page includes the target work and has been presented, and the first registry includes an identification of the first page.
In the embodiment of the disclosure, the local cache center of the client may update the work state of the target work in the first page in response to the work state update operation for the target work in the first page, and may further update the work state of the target work in the second page associated with the target work in order to achieve synchronization of page information, and then may determine the page corresponding to the identifier of the other pages in the first registration list except the identifier of the first page as the second page associated with the target work.
Thus, the method may determine a second page associated with the target work based on the first registry corresponding to the target work.
On the basis of any of the above embodiments, determining a second page associated with the target work may further include obtaining a second registration list, the second registration list including an identification of registered pages, the identification of registered pages being added to the second registration list when the corresponding pages are first presented.
In the embodiment of the disclosure, when the page is first displayed, the local cache center of the client may add the identification of the page to the second registration list, so as to register the page in the second registration list, and update the second registration list in real time.
It may be appreciated that the target work may or may not be included in the page corresponding to the identification of the registered page in the second registration list.
Further, as shown in fig. 3, generating a status update notification of the target work in step S102, and sending the status update notification to the second page associated with the target work may include:
in step S301, a status update notification of the target work is generated from the identification of the page.
In the embodiment of the disclosure, the local cache center of the client may generate a status update notification of the target work according to the identification of the page, so as to send the status update notification of the target work to the page corresponding to the identification of the page.
Optionally, the page corresponding to the identifiers of all the registered pages in the second registration list may be used as the second page associated with the target work, that is, the page to be sent of the status update notification of the target work, and then the status update notification of the target work may be generated according to the identifier of the page, where the status update notification carries the identifier of the page, so that the local cache center of the client may determine the page to be sent of the status update notification according to the identifier of the page in the status update notification.
In step S302, a status update notification is sent to a page corresponding to the identification of the page by broadcasting.
For example, if the second registration list includes the registered identifiers of the page 1, the page 2 and the page 3, a status update notification of the target work may be generated according to the identifiers of the page 1, the page 2 and the page 3, and the status update notification may be sent to the page 1, the page 2 and the page 3 in a broadcast manner.
Optionally, sending the status update notification to the page corresponding to the identification of the page by broadcasting may include sending the status update notification to the page corresponding to the identification of the page by a notification center (NSNotification Center). For example, a second registration list may be established in the notification center, and when the notification of the status update of the target work needs to be sent to the second page associated with the target work, the notification center may acquire the identifier of the page registered in the second registration list, and send the notification of the status update to the page corresponding to the identifier of the page.
Therefore, the method can generate the state update notification of the target work according to the identification of the registered page in the second registration list, and send the state update notification to the page corresponding to the identification of the page in a broadcast mode, so that the sending efficiency is high.
On the basis of any of the above embodiments, updating the work state of the target work in the second page according to the state update notification in step S103 may include detecting that the second page correctly receives the state update notification, and updating the work state of the target work in the second page according to the state update notification.
It can be understood that the second page may correctly receive the status update notification, and the local cache center of the client may update the work status of the target work in the second page according to the status update notification.
For example, when the second page is in the presented state, the state update notification can be received correctly.
Therefore, when the second page is detected to correctly receive the state update notification, the method can update the work state of the target work in the second page according to the state update notification.
On the basis of any of the above embodiments, the second page may not correctly receive the status update notification, and the local cache center of the client may not update the work status of the target work in the second page according to the status update notification.
For example, when the second page is in an unexposed state, the status update notification cannot be received correctly.
Further, as shown in fig. 4, after the second page associated with the target work is sent in step S102, the method may further include:
in step S401, the work state of the updated target work is written into the cache.
In embodiments of the present disclosure, the cache may be a local storage space of the client.
In step S402, it is detected that the second page does not correctly receive the status update notification, and in response to the presentation trigger operation for the second page, the work status of the updated target work is read from the cache.
In the embodiment of the disclosure, when the local cache center of the client detects that the second page does not correctly receive the status update notification, the local cache center indicates that the work status of the target work in the second page cannot be updated according to the status update notification. The user can perform a display triggering operation for the second page on the interactive interface of the page, so that the client displays the second page, and further, the local cache center of the client can respond to the display triggering operation for the second page to read the work state of the updated target work from the cache.
In step S403, the updated second page is displayed according to the work state of the updated target work.
Optionally, displaying the updated second page according to the work state of the updated target work may include updating the work state of the target work in the second page according to the work state of the updated target work, and then displaying the updated second page.
Therefore, when the method detects that the second page does not correctly receive the state update notification, the updated work state of the target work can be read from the cache so as to update the work state of the target work in the second page.
It may be appreciated that, in step S102, the status update notification of the target work is generated and sent to the second page associated with the target work, and the status update notification of the target work may be sent to the second page associated with the target work, however, there is a third page not associated with the target work, and if the third page includes the target work, the method cannot send the status update notification of the target work to the third page, and cannot update the work status of the target work on the third page.
Further, as shown in fig. 5, after the second page associated with the target work is sent in step S102, the method may further include:
In step S501, the work state of the updated target work is written into the cache.
The specific implementation process and principle of step S501 may refer to the detailed description of step S401 in the above embodiment, which is not repeated here.
In step S502, in response to a presentation trigger operation for a third page that includes the target work that has not been presented, the work state of the updated target work is read from the cache.
In the embodiment of the disclosure, if the third page including the target work is not displayed, it indicates that the third page is not the second page associated with the target work, and at this time, the local cache center of the client cannot send the status update notification of the target work to the third page, so that the work status of the target work on the third page cannot be updated. The user can perform a display triggering operation for the third page on the interactive interface of the page, so that the client displays the third page, and further, the local cache center of the client can respond to the display triggering operation for the third page to read the work state of the updated target work from the cache.
In step S503, the updated third page is displayed according to the work state of the updated target work.
The specific implementation process and principle of step S503 may refer to the detailed description of step S403 in the above embodiment, which is not repeated here.
Therefore, when the method aims at a third page which is not displayed and comprises the target works, the work state of the updated target works can be read from the cache, so that the work state of the target works in the third page is updated.
On the basis of any of the above embodiments, before responding to the work state update operation for the target work in the first page in step S101, the method further includes pulling the work state of the target work from the server in response to the start operation for the application program, and then writing the work state of the target work into the cache.
It can be understood that during the period from the last closing to the starting of the application program, the work state of the target work may be updated due to the work state updating operation of other users on the target work on the page, so that in order to achieve the synchronization of the page information, the local cache center of the client may respond to the starting operation of the application program to pull the work state of the target work from the server, and write the work state of the target work into the cache, so as to read the work state of the target work from the cache, so as to update the work state of the target work on the page in the client, thereby achieving the synchronization of the page information when the application program is started.
Therefore, when the application program is started, the method can pull the work state of the target work from the server and write the work state into the cache so as to update the work state of the target work on the page in the client, and the page information synchronization during the starting of the application program can be realized.
On the basis of any one of the above embodiments, after the operation of updating the work state for the target work in the first page in step S101, the method further includes uploading the updated work state of the target work to the server, so that the server updates the work state of the target work.
Therefore, the method can update the work state stored in the server in time, and is helpful for ensuring the accuracy of the work state pulled from the server when the application program is started.
As shown in fig. 6, the client may include a plurality of second pages associated with the target work, such as a local cache center, a first page, a second page a, a second page B, and the like, where a network connection is established between the client and the server, so as to perform data transmission with the server. The local cache center may update the work state of the target work in response to the work state update operation for the target work in the first page, and then may generate a state update notification of the target work, and send the state update notification to a plurality of second pages, such as a second page a, a second page B, and the like, associated with the target work, and then may update the work state of the target work in the second page according to the state update notification.
When the application is started, the local cache center of the client may pull the work state of the target work from the server and write the work state of the target work into the cache in response to a start operation for the application.
After responding to the work state updating operation for the target work in the first page, the local cache center of the client can also upload the updated work state of the target work to the server so as to update the work state of the target work by the server.
Fig. 7 illustrates an apparatus block diagram for synchronizing work information according to an exemplary embodiment. Referring to fig. 7, the apparatus 700 for synchronizing work information includes: a first updating module 71, a sending module 72, a second updating module 73, a display module 74.
The first updating module 71 is configured to perform a work state updating operation for a target work in the first page in response to the work state updating operation for the target work.
It should be noted that, the execution body of the method for synchronizing the work information of the present disclosure is a local cache center of the client. The device for synchronizing the work information of the embodiment of the disclosure can be configured in a local cache center of any client to execute the method for synchronizing the work information of the embodiment of the disclosure.
In embodiments of the present disclosure, when the apparatus 700 for synchronizing work information is configured in a local cache center of a client, the first update module 71 may update the work status of a target work in response to a work status update operation for the target work in the first page. It should be noted that the work status updating operation is used to update the work status of the target work on the first page, including, but not limited to, praise, collection, forwarding, playing, etc., and is not limited thereto.
A sending module 72 configured to perform generating a status update notification of the target work, sending to a second page associated with the target work.
In embodiments of the present disclosure, after updating the work status of the target work, the sending module 72 may also generate a status update notification of the target work and send the status update notification of the target work to a second page associated with the target work to update the work status of the target work in the second page.
A second updating module 73 configured to perform updating of the work status of the target work in the second page according to the status update notification.
Optionally, the status update notification carries information such as an identifier of the target work and a work status of the target work, so that the second update module 73 can determine the target work on the second page according to the identifier of the target work in the status update notification, and then update the work status of the target work in the second page according to the work status of the target work in the status update notification. The identification of the target work includes, but is not limited to, information such as the name, number and the like of the target work.
The display module 74 is configured to perform a display of the updated second page in response to a display trigger operation for the second page.
It will be appreciated that the user may perform a display triggering operation for the second page on the interactive interface of the page, so that the client displays the second page, and further, the display module 74 may display the updated second page in response to the display triggering operation for the second page. Wherein the presentation triggering operation includes, but is not limited to, a single click, a double click, etc., and is not limited thereto.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: a first obtaining module 75 configured to perform obtaining a first registration list corresponding to the target work, the first registration list including an identification of a registered page including the target work, the identification of the registered page including the target work being added to the first registration list when the corresponding page is first presented; and a determining module 76 configured to perform determining, as the second page associated with the target work, a page corresponding to an identification of other pages in the first registration list than the identification of the first page.
In an embodiment of the disclosure, the first obtaining module may obtain a first registration list corresponding to the target work, and then the determining module may determine a second page associated with the target work according to the first registration list.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: a second obtaining module 77 configured to perform obtaining a second registration list including identifications of registered pages, the identifications of the registered pages being added to the second registration list when the corresponding pages are first presented;
the transmitting module 72 includes: a generation unit configured to perform generation of the status update notification of the target work according to the identification of the page; and a transmitting unit configured to perform transmission of the status update notification to a page corresponding to the identification of the page by broadcasting.
In the embodiment of the disclosure, the second obtaining module may obtain the second registration list, and then the sending module may generate, by using the generating unit, a status update notification of the target work according to the identifier of the page registered in the second registration list, and then send, by using the sending unit, the status update notification to the page corresponding to the identifier of the page in a broadcast manner, so that the sending efficiency is higher.
In one embodiment of the present disclosure, the second updating module 73 includes: and the detection unit is configured to execute detection that the second page correctly receives the state update notification, and update the work state of the target work in the second page according to the state update notification.
In the embodiment of the disclosure, when the detection unit detects that the second page correctly receives the status update notification, the detection unit can update the work status of the target work in the second page according to the status update notification.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: a first caching module 78 configured to perform writing of the updated work status of the target work into a cache; a first reading module 79 configured to perform detection that the second page does not correctly receive the status update notification, and to read the updated work status of the target work from the cache in response to a presentation trigger operation for the second page; and the presentation module 74 is further configured to execute presenting the updated second page according to the updated work state of the target work.
In the embodiment of the disclosure, the first cache module can write the work state of the updated target work into the cache, so that when the first reading module detects that the second page does not correctly receive the state update notification, the first reading module can read the work state of the updated target work from the cache to update the work state of the target work in the second page, and then the display module can display the updated second page according to the updated work state of the target work.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: a second caching module 80 configured to perform writing of the updated work state of the target work into a cache; a second reading module 81 configured to perform a work state of the target work updated from the cache in response to a presentation trigger operation for a third page including the target work that has not been presented; and the presentation module 74 is further configured to execute presenting the updated third page according to the updated work state of the target work.
In the embodiment of the disclosure, the second cache module can write the work state of the updated target work into the cache, so that when a third page including the target work is not displayed, the second reading module can read the work state of the updated target work from the cache to update the work state of the target work in the third page, and then the display module can display the updated third page according to the work state of the updated target work.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: a pull module 82 configured to perform pulling of a work state of the target work from a server in response to a start operation for an application; and a third buffer module 83 configured to perform writing of the work state of the target work into the buffer.
In the embodiment of the disclosure, the pulling module may respond to the starting operation for the application program, pull the work state of the target work from the server, and the third buffer module may write the work state of the target work into the buffer, that is, when the application program is started, pull the work state of the target work from the server and write the work state of the target work into the buffer, so as to update the work state of the target work on the page in the client, that is, the synchronization of page information when the application program is started can be realized.
In one embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing work information further includes: an upload module 84 configured to perform uploading of the updated work status of the target work to the server for the server to update the work status of the target work.
In the embodiment of the disclosure, the uploading module can upload the updated work state of the target work to the server so as to update the work state of the target work by the server, thereby being capable of updating the work state stored in the server in time and being beneficial to ensuring the accuracy of the work state pulled from the server when the application program is started.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
According to the device for synchronizing the work information, when a certain page responds to the state updating operation of the target work, the corresponding updating notification is generated, the work state of the target work in the page related to the target work is updated, the updated page is displayed according to the display triggering operation, and the rapid synchronization of the work state on different pages is achieved.
Fig. 9 illustrates a block diagram of a server 900 for synchronizing work information, according to an example embodiment.
As shown in fig. 9, the server 900 includes:
memory 910 and processor 920, bus 930 connecting the different components (including memory 910 and processor 920), memory 910 storing a computer program that when executed by processor 920 implements the method of synchronizing composition information described in embodiments of the present disclosure.
Bus 930 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 900 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by server 700 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 910 may also include computer-system readable media in the form of volatile memory such as Random Access Memory (RAM) 940 and/or cache memory 950. The server 900 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 960 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive"). Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be connected by one or more data media interface buses 930. Memory 910 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 980 having a set (at least one) of program modules 970 may be stored, for example, in memory 910, such program modules 970 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 970 generally perform the functions and/or methods in the embodiments described in this disclosure.
The server 900 can also communicate with one or more external devices 990 (e.g., keyboard, pointing device, display 991, etc.), one or more devices that enable a user to interact with the server 900, and/or any devices (e.g., network card, modem, etc.) that enable the server 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 992. Also, the server 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet via a network adapter 993. As shown in fig. 9, the network adapter 993 communicates with other modules of the server 900 via the bus 930. It should be appreciated that although not shown in fig. 9, other hardware and/or software modules may be used in connection with server 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 920 performs various functional applications and data processing by running programs stored in the memory 910.
It should be noted that, the implementation process and the technical principle of the server in this embodiment refer to the foregoing explanation of the method for synchronizing the work information in the embodiment of the disclosure, and are not repeated herein.
The server provided by the embodiment of the disclosure can execute the method for synchronizing the information of the works, generates the corresponding update notification when a certain page responds to the state update operation of the target works, updates the work states of the target works in the pages associated with the target works, and displays the updated pages according to the display triggering operation, so that the rapid synchronization of the work states on different pages is realized.
In order to implement the above-described embodiments, the present disclosure also proposes a storage medium.
Wherein the instructions in the storage medium, when executed by the processor of the server, enable the server to perform the method of synchronizing composition information as previously described.
To achieve the above embodiments, the present disclosure also provides a computer program product which, when executed by a processor of a server, enables the server to perform the method of synchronizing composition information as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. The method for synchronizing the information of the works is characterized by comprising the following steps that an execution main body of the method for synchronizing the information of the works is a local cache center of a client side:
updating the work state of the target work in response to a work state updating operation for the target work in the first page;
acquiring a first registration list corresponding to the target work, wherein the first registration list comprises the registered identification of the page comprising the target work, and the registered identification of the page comprising the target work is added into the first registration list when the corresponding page is displayed for the first time; and
Determining a page corresponding to the identification of other pages except the identification of the first page in the first registration list as the second page associated with the target work;
generating a state update notification of the target work according to the identification of the second page, and sending the state update notification to the second page associated with the target work, wherein the state update notification carries the identification of the target work and the work state of the target work;
according to the state update notification, updating the work state of the target work in the second page; and
responding to a display triggering operation for a second page, and displaying the updated second page;
the updating the work state of the target work in the second page according to the state update notification comprises the following steps:
detecting that the second page correctly receives the state update notification, and updating the work state of the target work in the second page according to the state update notification;
writing the updated work state of the target work into a cache;
detecting that the second page does not correctly receive the state update notification, and responding to a display triggering operation for the second page, and reading the updated work state of the target work from the cache, wherein the state update notification cannot be correctly received when the second page is in the non-display state; and
And displaying the updated second page according to the updated work state of the target work.
2. The method as recited in claim 1, further comprising:
acquiring a second registration list, wherein the second registration list comprises the identification of a registered page, and the identification of the registered page is added into the second registration list when the corresponding page is displayed for the first time;
the generating a status update notification of the target work, sending the status update notification to a second page associated with the target work, includes:
generating the state update notification of the target work according to the identification of the page; and
and sending the state update notification to a page corresponding to the identification of the page in a broadcast mode.
3. The method as recited in claim 2, further comprising:
writing the updated work state of the target work into a cache;
responding to a display triggering operation for a third page which is not displayed and comprises the target work, and reading the updated work state of the target work from the cache; and
and displaying the updated third page according to the updated work state of the target work.
4. The method as recited in claim 1, further comprising:
pulling a work state of the target work from a server in response to a start operation for an application; and
writing the work state of the target work into the cache.
5. The method as recited in claim 4, further comprising:
uploading the updated work state of the target work to the server so that the server can update the work state of the target work.
6. An apparatus for synchronizing work information, the apparatus being configured in a local cache center of a client, the apparatus comprising:
a first updating module configured to perform updating of a work state of a target work in a first page in response to a work state updating operation for the target work;
a first acquisition module configured to perform acquisition of a first registration list corresponding to the target work, the first registration list including identifications of registered pages including the target work, the identifications of the registered pages including the target work being added to the first registration list when the corresponding pages are first presented; and
A determining module configured to perform determining a page corresponding to an identifier of the other pages in the first registration list except the identifier of the first page as the second page associated with the target work;
the sending module is configured to execute a state update notification of the target work according to the identification of the second page and send the state update notification to the second page associated with the target work, wherein the state update notification carries the identification of the target work and the work state of the target work;
a second updating module configured to perform updating of the work state of the target work in the second page according to the state update notification; and
the display module is configured to execute display triggering operation for a second page, and display the updated second page;
the second updating module includes: the detection unit is configured to execute detection that the second page correctly receives the state update notification, and update the work state of the target work in the second page according to the state update notification;
the device further comprises:
the first cache module is configured to write the updated work state of the target work into a cache;
The first reading module is configured to execute detection that the second page does not correctly receive the state update notification, and respond to the display triggering operation for the second page to read the updated work state of the target work from the cache, wherein the state update notification cannot be correctly received when the second page is in the non-display state; and
the display module is further configured to display the updated second page according to the updated work state of the target work.
7. The apparatus as recited in claim 6, further comprising:
a second acquisition module configured to perform acquisition of a second registration list including identifications of registered pages, the identifications of the registered pages being added to the second registration list when the corresponding pages are first presented;
the sending module comprises:
a generation unit configured to perform generation of the status update notification of the target work according to the identification of the page; and
and the sending unit is configured to send the state update notification to the page corresponding to the identification of the page in a broadcast mode.
8. The apparatus as recited in claim 7, further comprising:
the second buffer module is configured to write the updated work state of the target work into a buffer;
a second reading module configured to perform a work state of the target work updated from the cache in response to a presentation trigger operation for a third page that includes the target work that is not presented; and
the display module is further configured to display the updated third page according to the updated work state of the target work.
9. The apparatus as recited in claim 6, further comprising:
a pull module configured to perform pulling of a work state of the target work from a server in response to a start operation for an application; and
and the third caching module is configured to write the work state of the target work into the cache.
10. The apparatus as recited in claim 9, further comprising:
and the uploading module is configured to upload the updated work state of the target work to the server so as to update the work state of the target work by the server.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of synchronizing work information of any one of claims 1 to 5.
12. A storage medium which, when executed by a processor of an electronic device, enables the electronic device to perform the method of synchronizing work information of any one of claims 1 to 5.
CN202011092150.1A 2020-10-13 2020-10-13 Method, device and server for synchronizing work information Active CN112395297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011092150.1A CN112395297B (en) 2020-10-13 2020-10-13 Method, device and server for synchronizing work information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011092150.1A CN112395297B (en) 2020-10-13 2020-10-13 Method, device and server for synchronizing work information

Publications (2)

Publication Number Publication Date
CN112395297A CN112395297A (en) 2021-02-23
CN112395297B true CN112395297B (en) 2024-02-09

Family

ID=74596708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011092150.1A Active CN112395297B (en) 2020-10-13 2020-10-13 Method, device and server for synchronizing work information

Country Status (1)

Country Link
CN (1) CN112395297B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296849A (en) * 2021-12-24 2022-04-08 北京三快在线科技有限公司 Method and device for synchronizing states of interface control
CN115243109A (en) * 2022-07-29 2022-10-25 广州方硅信息技术有限公司 Object state updating method and device, live broadcast system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812852A (en) * 2016-05-06 2016-07-27 腾讯科技(北京)有限公司 Information processing method and server
CN109597663A (en) * 2018-09-06 2019-04-09 北京微播视界科技有限公司 Page info processing method, device and electronic equipment
WO2019157894A1 (en) * 2018-02-13 2019-08-22 Oppo广东移动通信有限公司 Application page display method and apparatus, storage medium and electronic device
CN110619096A (en) * 2019-06-12 2019-12-27 北京无限光场科技有限公司 Method and apparatus for synchronizing data
CN110971955A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Page processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812852A (en) * 2016-05-06 2016-07-27 腾讯科技(北京)有限公司 Information processing method and server
WO2019157894A1 (en) * 2018-02-13 2019-08-22 Oppo广东移动通信有限公司 Application page display method and apparatus, storage medium and electronic device
CN109597663A (en) * 2018-09-06 2019-04-09 北京微播视界科技有限公司 Page info processing method, device and electronic equipment
CN110971955A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Page processing method and device, electronic equipment and storage medium
CN110619096A (en) * 2019-06-12 2019-12-27 北京无限光场科技有限公司 Method and apparatus for synchronizing data

Also Published As

Publication number Publication date
CN112395297A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US11314568B2 (en) Message processing method and apparatus, storage medium, and computer device
US8924917B2 (en) Methods and apparatus for storing and transmitting historical configuration data associated with information technology assets
US20050246634A1 (en) Synchronized sharing of a dynamically updated image
CN112395297B (en) Method, device and server for synchronizing work information
CN112000911B (en) Page management method, device, electronic equipment and storage medium
CN111246238A (en) Live broadcast method, device, storage medium and live broadcast system
EP4096224A1 (en) Method and apparatus for displaying live clip
US7337349B2 (en) Mechanism for improving accessibility of JMX monitoring information in web content
CN109660581B (en) Physical machine management method, device and system
CN113139123A (en) Resource recommendation method, device, server and storage medium
CN110569097B (en) Information display method and device
CN113468346B (en) Resource processing method and device, electronic equipment and storage medium
US20090113015A1 (en) Remote Application Processing System
KR20050056041A (en) Method and system for controlling object in order to share resource between heterogeneous devices
CN109117283B (en) Method for remotely controlling WPS software in network environment
CN113806650A (en) Webpage application processing method and device, storage medium and electronic equipment
US11886893B2 (en) Method and device for capturing screen and terminal
US20090150435A1 (en) Dynamic updating of personal web page
CN113422969B (en) Information pulling method, device and server
WO2016062207A1 (en) Method and apparatus for guiding user to activate usb debugging option
US20220385970A1 (en) Method for displaying live broadcast clip
CN113672678A (en) Data synchronization method, device and system
CN117857513A (en) Interactive processing method and device for remote operation and maintenance, terminal equipment and storage medium
CN112672436A (en) Intelligent device searching method and device, electronic device and storage medium
CN117806687A (en) Terminal, server and data updating method

Legal Events

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