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

Method, device and server for synchronizing work information Download PDF

Info

Publication number
CN112395297A
CN112395297A CN202011092150.1A CN202011092150A CN112395297A CN 112395297 A CN112395297 A CN 112395297A CN 202011092150 A CN202011092150 A CN 202011092150A CN 112395297 A CN112395297 A CN 112395297A
Authority
CN
China
Prior art keywords
page
work
state
target work
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.)
Granted
Application number
CN202011092150.1A
Other languages
Chinese (zh)
Other versions
CN112395297B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

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: in response to a work state update operation for a target work in a first page, updating a work state of the target work; generating a state updating notice of the target work, and sending the state updating notice to a second page associated with the target work; updating the work state of the target work in the second page according to the state updating notice; and responding to a display triggering operation aiming at a second page, and displaying the updated second page. Therefore, 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 notice is generated, the work state of the target work in the page associated with the target work is updated, and the updated page is displayed according to the display triggering operation, so that the rapid synchronization of the work state on different pages is realized.

Description

Method, device and server for synchronizing work information
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to a method, an apparatus, 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 these operations often only change the display state of related content on the current page, but cannot change the display states of corresponding content on other pages, that is, synchronization of page information cannot be realized, which affects the use experience of the user.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a server, a storage medium, and a computer program product for synchronizing production information, so as to at least solve the problem in the related art that page synchronization needs to depend on the server and the page synchronization time is long. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for synchronizing production information, including: in response to a work state update operation for a target work in a first page, updating a work state of the target work; generating a state updating notice of the target work, and sending the state updating notice to a second page associated with the target work; updating the work state of the target work in the second page according to the state updating notice; and responding to a display triggering operation aiming at 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 registered identification of pages comprising the target work, and the registered identification of the pages comprising the target work is added into the first registration list when the corresponding pages are displayed for the first time; and determining the 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.
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 of the state update notification of the target work and sending to a second page associated with the target work includes: generating the state updating notice of the target work according to the identification of the page; and sending the state updating notification to a page corresponding to the page identifier in a broadcasting mode.
In an embodiment of the present 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 updating notification, and updating the work state of the target work in the second page according to the state updating 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 reading the updated work state of the target work from the cache in response to a display trigger operation for the second page; 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; reading the updated work state of the target work from the cache in response to a display triggering operation for a third page which is not displayed and comprises the target work; 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 program; and writing the work state of the target work into the cache.
In one embodiment of the present disclosure, the method further comprises: and 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 a device for synchronizing production information, including: a first update module configured to perform a work state update operation for updating a work state of a target work in a first page in response to the work state update operation for the target work; a sending module configured to execute 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 update the work state of the target work in the second page according to the state updating notification; and the presentation module is configured to execute a presentation triggering operation for responding to a second page, and present the updated second page.
In one embodiment of the present disclosure, the apparatus for synchronizing the work information further includes: a first obtaining module configured to perform obtaining of a first registration list corresponding to the target work, where the first registration list includes an identifier of a registered page including the target work, and the identifier of the registered page including the target work is added to the first registration list when the corresponding page is first displayed; and the determining module is configured to execute determining the page corresponding to the identification of the other pages in the first registration list except the identification of the first page as the second page associated with the target work.
In one embodiment of the present disclosure, the apparatus for synchronizing the work information further includes: a second obtaining module configured to perform obtaining of a second registration list, where the second registration list includes an identifier of a registered page, and the identifier of the registered page is added to the second registration list when a corresponding page is first displayed;
the sending module comprises: a generating unit configured to perform generating the status update notification of the target work according to an identification of the page; and the sending unit is configured to send the state updating notification to a page corresponding to the page identifier in a broadcasting manner.
In one embodiment of the disclosure, the second update module includes: and the detection unit is configured to execute the steps of detecting that the second page correctly receives the state updating notification, and updating the work state of the target work in the second page according to the state updating notification.
In one embodiment of the present disclosure, the apparatus for synchronizing the work information further includes: the first cache module is configured to write the updated work state of the target work into a cache; a first reading module configured to execute detection that the second page does not correctly receive the status update notification, and read, in response to a presentation trigger operation for the second page, a work status of the updated 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 the work information further includes: the second cache module is configured to write the updated work state of the target work into a cache; a second reading module configured to perform reading the updated work state of the target work from the cache in response to a presentation trigger operation for a third page, which is not presented and includes the target work; 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 the work information further includes: a pull module configured to perform a pull of a work state of the target work from a server in response to a start operation for an application; and a third cache module configured to perform writing the work state of the target work into the cache.
In one embodiment of the present disclosure, the apparatus for synchronizing the work information further includes: and the uploading module is configured to upload 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 third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of work information synchronization as previously described.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of a server, enable the server to perform the method of work information synchronization as described above.
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 the method of work information synchronization as described above.
According to the embodiment of the disclosure, when a certain page responds to the state updating operation on the target work, the corresponding updating notification is generated, the work state of the target work in the page associated with the target work is updated, and the updated page is displayed according to the display triggering operation, so that the work state is quickly synchronized on different pages.
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 present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method of synchronization of work information, according to an example embodiment.
FIG. 2 is a flow diagram illustrating a method of synchronizing work information in determining a second page associated with a target work in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating a method for synchronizing work information, according to an exemplary embodiment, for generating a status update notification of a target work and sending the status update notification to a second page associated with the target work.
FIG. 4 is a flow diagram illustrating a method of synchronizing work information after sending to a second page associated with a target work according to an example embodiment.
FIG. 5 is a flow diagram illustrating another method of work information synchronization after sending to a second page associated with a target work according to an example embodiment.
FIG. 6 is a diagram illustrating a scenario of a method of synchronization of production information, according to an example embodiment.
FIG. 7 is a block diagram illustrating an apparatus for synchronization of production information, according to an example embodiment.
FIG. 8 is a block diagram illustrating another apparatus for synchronization of work information, according to an example embodiment.
FIG. 9 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in 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 above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended 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.
In step S101, in response to a work status update operation for a target work in a first page, the work status of the target work is updated.
It should be noted that the main execution body of the method for synchronizing the work information in the present disclosure is the 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 device for synchronizing the work information according to the embodiment of the present disclosure, and the device 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 the embodiment of the present disclosure, the client includes, but is not limited to, a local client (Native APP) and a Web page client (Web APP), and the client may be disposed on a device used by a user, where the device includes, but is not limited to, a mobile phone, a computer, a tablet computer, 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 having a respective work status, and the pages may present the work statuses of the plurality of works included therein. The works include, but are not limited to, types of videos, audios, articles, pictures, and the like, and the states of the works include, but are not limited to, names, contents, types, tags, viewing numbers, favorite numbers, collection numbers, forwarding numbers, and the like of the works, which are not limited herein.
It can be understood that the same work may be displayed in a plurality of different pages, in order to implement synchronization of page information, if a certain work state of the work on a certain page is updated, the related work states of the work in other pages should also be updated, and the updated work state may be used as the state of the work to be synchronized of the work.
In the embodiment of the present 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 the 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 like, collection, forwarding, playing, etc., and is not limited herein.
It can be understood that, the user can perform the work state updating operation for the target work on the interactive interface of the page, and the local cache center of the client can detect the work state updating operation, acquire the updated work state according to the work state updating operation, and update the work state of the target work according to the updated work state.
For example, assume that the client is a short video APP (Application), page 1 is a page in the short video APP, page 1 includes multiple videos, and the production state of the videos includes the number of praise 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 responds to the praise operation, and obtains the number of praise of the video a as 201 according to the praise operation, and updates 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 the work state of the target work is updated, 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 the 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 related to the target work can be preset according to actual conditions and stored in a local cache center of the client. It is understood that the number of the second pages may be one or more.
In step S103, the work status of the target work in the second page is updated according to the status update notification.
It can be understood that, in the related art, most of the related arts implement page synchronization by requesting a server, the page synchronization time may be long due to device performance, network congestion or server congestion, and the requirements on hardware conditions of the server are high, and the cost is high. The method and the device can update the work state of the target work in the second page according to the state update notification, can realize page synchronization without networking, simplify a page synchronization strategy, have low requirements on hardware conditions of the server, have low cost and are easy to realize.
Optionally, the status update notification carries information such as the identifier of the target work and the work status 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 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 name, number, etc. of the target work.
For example, suppose that the client is a short video APP, page 1 and page 2 are both pages in the short video APP, page 1 and page 2 both include video a, and the work state of video a includes the praise amount of video a. If the numbers of praise of the video a on the page 1 and the page 2 are both 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 updates 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 state update notification "update the number of praise of video a to 201", and send the state update notification "update the number of praise of video a to 201" to the page 2 associated with the video a, so that the local cache center of the short video APP may update the number of praise of the video a on the page 2 from 200 to 201 according to the state update notification "update the number of praise of the video a to 201", thereby implementing synchronization of the number of praise of the video a on the pages 1 and 2.
In step S104, in response to the presentation triggering operation for the second page, the updated second page is presented.
It can be understood 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 local cache center of the client may display the updated second page in response to the display triggering operation for the second page. The presentation triggering operation includes, but is not limited to, a single click, a double click, and the like, which is not limited herein.
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 notice is generated, the work state of the target work in the page associated with 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.
In a specific implementation, the type of the work state of the target work in step S101 may be the number of favorites and the number of collections of the work. It can be understood that the praise number and the collection number of the works are low-level data, the requirement on the data processing capacity of the client is low, and synchronization on different pages is easy to realize.
Therefore, the method can realize the synchronization of the work states of certain specific types on different pages, and is beneficial to saving the computing resources of the client.
Based on any of the above embodiments, as shown in fig. 2, determining a second page associated with the target work may include:
in step S201, a first registration list corresponding to the target work is obtained, where the first registration list includes the registered identifier of the page including the target work, and the registered identifier of the page including the target work is added to the first registration list when the corresponding page is first displayed.
In an embodiment of the disclosure, each target work may correspond to a first registration list, where the first registration list includes an identification of a registered page including the target work, and is used to determine a second page associated with the target work. The identification of the page includes, but is not limited to, a Uniform Resource Locator (URL), a number, etc. of the page. It can be understood that different target works may correspond to different first registration lists, and the first registration lists may be set according to actual situations.
In the embodiment of the disclosure, when a page including a target work is displayed for the first time, the local cache center of the client may add the identifier 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 identifier of the other page in the first registration list except the identifier 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, then the first registration list includes the identity 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 in order to implement synchronization of page information, may also update the work state of the target work in the second page associated with the target work, and then may determine a page corresponding to an identifier of another page in the first registration list except the identifier of the first page as the second page associated with the target work.
Therefore, the method can determine the second page associated with the target work according to the first registration list 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, where the second registration list includes an identifier of a registered page, and the identifier of the registered page is added to the second registration list when the corresponding page is first displayed.
In the embodiment of the present disclosure, when the page is first displayed, the local cache center of the client may add the identifier 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 is understood that the page corresponding to the identification of the registered page in the second registration list may or may not include the target work.
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 according to the identification of the page.
In the embodiment of the disclosure, the local cache center of the client may generate the state update notification of the target work according to the identifier of the page, so as to send the state update notification of the target work to the page corresponding to the identifier of the page.
Optionally, the page corresponding to the identifier 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 state update notification of the target work, and then the state update notification of the target work may be generated according to the identifier of the page, where the state update notification carries the identifier of the page, so that the local cache center of the client can determine the page to be sent of the state update notification according to the identifier of the page in the state update notification.
In step S302, the status update notification is sent to the page corresponding to the page identifier in a broadcast manner.
For example, if the second registration list includes the identifiers of the registered pages 1, 2, and 3, the status update notification of the target work may be generated according to the identifiers of the pages 1, 2, and 3, and the status update notification may also be sent to the pages 1, 2, and 3 in a broadcast manner.
Optionally, the sending the status update notification to the page corresponding to the identifier of the page in a broadcast manner may include sending the status update notification to the page corresponding to the identifier of the page through a notification Center (NSNotification Center). For example, a second registration list may be established in the notification center, and when a status update notification of the target work needs to be sent to a second page associated with the target work, the notification center may obtain an identifier of a page registered in the second registration list, and send the status update notification to a page corresponding to the identifier of the page.
Therefore, the method can generate the state updating notification of the target work according to the identification of the registered page in the second registration list, and sends the state updating notification to the page corresponding to the identification of the page in a broadcasting mode, and the sending efficiency is high.
On the basis of any of the above embodiments, in step S103, updating the work state of the target work in the second page according to the state update notification, which 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 receive the status update notification correctly, 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 correctly received.
Therefore, when the second page is detected to correctly receive the state updating notification, the method can update the work state of the target work in the second page according to the state updating notification.
On the basis of any of the above embodiments, the second page may not correctly receive the state update notification, and at this time, the local cache center of the client cannot update the work state of the target work in the second page according to the state update notification.
For example, when the second page is in the unexposed state, the state update notification cannot be correctly received.
Further, as shown in fig. 4, after the sending to the second page associated with the target work in step S102, the method may further include:
in step S401, the updated work status of the 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 state update notification, it indicates that the local cache center cannot update the work state of the target work in the second page according to the state update notification. And furthermore, the local cache center of the client can read the updated work state of the target work from the cache in response to the display triggering operation aiming at the second page.
In step S403, the updated second page is displayed according to the work status of the updated target work.
Optionally, the displaying the updated second page according to the updated work state of the target work may include updating the work state of the target work in the second page according to the updated work state of the target work, and then displaying the updated second page.
Therefore, when the method detects that the second page does not correctly receive the state updating notification, the method can read the updated work state of the target work from the cache so as to update the work state of the target work in the second page.
It can be understood that, in step S102, a 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 target work is included on the third page, 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 sending to the second page associated with the target work in step S102, the method may further include:
in step S501, the updated work status of the target work is written into the cache.
For a specific implementation process and principle of step S501, reference may be made to the detailed description of step S401 in the foregoing embodiment, and details are not described here again.
In step S502, in response to a presentation trigger operation for a third page including the target work that is not presented, the updated work state of the target work is read from the cache.
In the embodiment of the present disclosure, if the third page including the target work is not shown, it indicates that the third page is not the second page associated with the target work, at this time, the local cache center of the client cannot send the state update notification of the target work to the third page, and thus the work state of the target work on the third page cannot be updated. And further, the local cache center of the client can read the updated work state of the target work from the cache in response to the display triggering operation aiming at the third page.
In step S503, the updated third page is displayed according to the work state of the updated target work.
For a specific implementation process and principle of step S503, reference may be made to the detailed description of step S403 in the foregoing embodiment, which is not described herein again.
Therefore, when the method is used for the third page which comprises the target work and is not shown, the updated work state of the target work can be read from the cache, so that the work state of the target work in the third page can be 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 a 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 for the target work on the page, in order to implement the synchronization of the page information, the local cache center of the client may respond to the starting operation for the application program, 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, i.e., implement 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 can be synchronized when the application program is started.
On the basis of any of the above embodiments, after responding to the work state updating operation 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 beneficial to 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, and a network connection is established between the client and the server to perform data transmission with the server. The local cache center can respond to the work state updating operation aiming at the target work in the first page, update the work state of the target work, then can generate a state updating notice of the target work, and send the state updating notice to a plurality of second pages such as a second page A and a second page B which are associated with the target work, and then can update the work state of the target work in the second page according to the state updating notice.
When the application program is started, the local cache center of the client can respond to the starting operation aiming at the application program, pull the work state of the target work from the server, and write the work state of the target work into the cache.
After responding to the work state updating operation aiming at 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 that the server can update the work state of the target work.
FIG. 7 illustrates a block diagram of an apparatus for synchronization of work information, according to an example embodiment. Referring to fig. 7, the apparatus 700 for synchronizing the work information includes: a first updating module 71, a sending module 72, a second updating module 73, and a showing module 74.
A first update module 71 configured to perform a work state update operation for updating a work state of a target work in a first page in response to the work state update operation for the target work.
It should be noted that the main execution body of the method for synchronizing the work information in the present disclosure is the local cache center of the client. The device for synchronizing the work information of the embodiment of the disclosure can be configured in the local cache center of any client to execute the method for synchronizing the work information of the embodiment of the disclosure.
In the embodiment of the present disclosure, when the apparatus 700 for synchronizing work information is configured in the local cache center of the client, the first update module 71 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 like, collection, forwarding, playing, etc., and is not limited herein.
A sending module 72 configured to execute generating a status update notification of the target work, sending to a second page associated with the target work.
In an embodiment of the disclosure, after updating the work state of the target work, the sending module 72 may further generate a state update notification of the target work, and send the state update notification of the target work to the second page associated with the target work, so as to update the work state of the target work in the second page.
A second updating module 73 configured to update 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 the identifier of the target work and the 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 name, number, etc. of the target work.
A presentation module 74 configured to perform presentation of the updated second page in response to a presentation trigger operation for the second page.
It is to be understood that the user may perform a display triggering operation on the interactive interface of the page for the second 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. The presentation triggering operation includes, but is not limited to, a single click, a double click, and the like, which is not limited herein.
In an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: a first obtaining module 75 configured to perform obtaining a first registration list corresponding to the target work, where the first registration list includes an identifier of a registered page including the target work, and the identifier of the registered page including the target work is added to the first registration list when the corresponding page is first displayed; and a determining module 76 configured to execute determining a page corresponding to the identification of the other pages in the first registration list except the identification of the first page as the second page associated with the target work.
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, according to the first registration list, a second page associated with the target work.
In an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: a second obtaining module 77 configured to perform obtaining a second registration list, where the second registration list includes an identifier of a registered page, and the identifier of the registered page is added to the second registration list when a corresponding page is first displayed;
the sending module 72 includes: a generating unit configured to perform generating the status update notification of the target work according to an identification of the page; and the sending unit is configured to send the state updating notification to a page corresponding to the page identifier in a broadcasting manner.
In the embodiment of the disclosure, the second obtaining module may obtain the second registration list, and then the sending module may generate the status update notification of the target work according to the identifier of the page registered in the second registration list through the generating unit, and then send the status update notification to the page corresponding to the identifier of the page through the sending unit in a broadcast manner, so that the sending efficiency is high.
In an embodiment of the present disclosure, the second updating module 73 includes: and the detection unit is configured to execute the steps of detecting that the second page correctly receives the state updating notification, and updating the work state of the target work in the second page according to the state updating notification.
In the embodiment of the disclosure, when detecting 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 an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: a first cache module 78 configured to perform writing 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 in response to a presentation trigger operation for the second page, read a work status of the updated target work from the cache; and the display module 74 is further configured to display 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 updated work state of the 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 updated work state of the 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 an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: a second cache module 80 configured to perform writing the updated work state of the target work into a cache; a second reading module 81 configured to perform reading, from the cache, an updated work state of the target work in response to a presentation trigger operation for a third page, which is not presented and includes the target work; and the display module 74 is further configured to display 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 updated work state of the target work into the cache, so that when the third page including the target work is not displayed, the second reading module can read the updated work state of the 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 updated work state of the target work.
In an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: a pull module 82 configured to perform pulling a work state of the target work from a server in response to a start operation for an application; and a third cache module 83 configured to perform writing the work state of the target work into the cache.
In the embodiment of the disclosure, the pulling module may pull the work state of the target work from the server in response to a start operation for the application, and the third cache module may write the work state of the target work into the cache, that is, when the application is started, the work state of the target work is pulled from the server and written into the cache, so as to update the work state of the target work on the page in the client, that is, synchronization of page information when the application is started may be achieved.
In an embodiment of the present disclosure, referring to fig. 8, the apparatus 700 for synchronizing the work information further includes: an upload module 84 configured to upload the updated work status of the target work to the server, so that the server updates 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 that the server can update the work state of the target work, thereby timely updating the work state stored in the server and being beneficial to ensuring the accuracy of the work state pulled from the server when the application program is started.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the device for synchronizing the work information, when a certain page responds to the state updating operation on the target work, the corresponding updating notice is generated, the work state of the target work in the page associated with 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 synchronization of work information, according to an example embodiment.
As shown in fig. 9, the server 900 includes:
a memory 910 and a processor 920, and a bus 930 connecting different components (including the memory 910 and the processor 920), wherein the memory 910 stores a computer program, and when the processor 920 executes the computer program, the method for synchronizing the work information according to the embodiment of the disclosure is implemented.
Bus 930 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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.
The server 900 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by server 700 and includes both volatile and nonvolatile media, removable and non-removable media.
The 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 drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these 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 that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 980 having a set (at least one) of program modules 970, which may be stored, for example, in memory 910, such program modules 970 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 970 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
The server 900 may also communicate with one or more external devices 990 (e.g., keyboard, pointing device, display 991, etc.), with one or more devices that enable a user to interact with the server 900, and/or with 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 via an input/output (I/O) interface 992. Further, the server 900 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 993. As shown in FIG. 9, the network adapter 993 communicates with the 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 conjunction with the server 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 920 performs various functional applications and data processing by executing programs stored in the memory 910.
It should be noted that, for the implementation process and the technical principle of the server in this embodiment, reference is made to the foregoing explanation of the method for synchronizing the product information in the embodiment of the present disclosure, and details are not described here again.
The server provided by the embodiment of the present disclosure may execute the method for synchronizing the work information as described above, and when a certain page responds to a status update operation on a target work, generate a corresponding update notification, update the work status of the target work in a page associated with the target work, and display the updated page according to a display trigger operation, thereby implementing quick synchronization of the work status on different pages.
In order to implement the above embodiments, the present disclosure also provides a storage medium.
Wherein the instructions in the storage medium, when executed by a processor of a server, enable the server to perform the method of work information synchronization 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 the work 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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of synchronizing production information, comprising:
in response to a work state update operation for a target work in a first page, updating a work state of the target work;
generating a state updating notice of the target work, and sending the state updating notice to a second page associated with the target work;
updating the work state of the target work in the second page according to the state updating notice; and
and displaying the updated second page in response to a display trigger operation aiming at the second page.
2. The method of claim 1, further comprising:
acquiring a first registration list corresponding to the target work, wherein the first registration list comprises registered identification of pages comprising the target work, and the registered identification of the pages comprising the target work is added into the first registration list when the corresponding pages are displayed for the first time; and
determining the page corresponding to the identification of the other page except the identification of the first page in the first registration list as the second page associated with the target work.
3. The method of 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 of the state update notification of the target work and sending to a second page associated with the target work includes:
generating the state updating notice of the target work according to the identification of the page; and
and sending the state updating notification to a page corresponding to the page identifier in a broadcasting mode.
4. The method of claim 1, wherein the updating the work state of the target work in the second page according to the state update notification comprises:
and detecting that the second page correctly receives the state updating notification, and updating the work state of the target work in the second page according to the state updating notification.
5. The method of claim 1, further comprising:
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 reading the updated work state of the target work from the cache in response to a display trigger operation for the second page; and
and displaying the updated second page according to the updated work state of the target work.
6. The method of claim 2 or 3, further comprising:
writing the updated work state of the target work into a cache;
reading the updated work state of the target work from the cache in response to a display triggering operation for a third page which is not displayed and comprises the target work; and
and displaying the updated third page according to the updated work state of the target work.
7. An apparatus for synchronizing production information, comprising:
a first update module configured to perform a work state update operation for updating a work state of a target work in a first page in response to the work state update operation for the target work;
a sending module configured to execute 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 update the work state of the target work in the second page according to the state updating notification; and
the display module is configured to execute a display triggering operation for the second page and display the updated second page.
8. 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 work information synchronization of any of claims 1 to 6.
9. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of work information synchronization as claimed in any one of claims 1 to 6.
10. A computer program product which, when executed by a processor of a server, enables the server to perform a method of synchronizing work information as claimed in any one of claims 1 to 6.
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 true CN112395297A (en) 2021-02-23
CN112395297B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN112395297B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US20210073058A1 (en) Message processing method and apparatus, storage medium, and computer device
CN110515572B (en) Screen projection method and device, storage medium and computer equipment
EP3567476B1 (en) Application data processing method and apparatus, and storage medium
CN110597595B (en) Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
US20090138869A1 (en) Methods and apparatus for storing and transmitting historical configuration data associated with information technology assets
CN112000911B (en) Page management method, device, electronic equipment and storage medium
CN110019464B (en) Page processing method and device
CN112395297B (en) Method, device and server for synchronizing work information
CN111246238A (en) Live broadcast method, device, storage medium and live broadcast system
EP4096224A1 (en) Method and apparatus for displaying live clip
US10936192B2 (en) System and method for event driven storage management
CN112198999A (en) Task information processing method and device and server
CN109660581B (en) Physical machine management method, device and system
CN113139123A (en) Resource recommendation method, device, server and storage medium
CN110838969B (en) Picture transmission method, device, equipment and medium
CN110569097B (en) Information display method and device
CN114066098B (en) Method and equipment for estimating completion time of learning task
CN106933449B (en) Icon processing method and device
CN113626099B (en) Application program starting method and device and electronic equipment
CN115657903A (en) Document interaction method, device, equipment and storage medium
CN112099771A (en) Data processing method and device, electronic equipment and storage medium
CN113065061B (en) Information display method, device and server
CN113468346A (en) Resource processing method and device, electronic equipment and storage medium
CN115373831A (en) Data processing method, device and computer readable storage medium
CN107181772B (en) Method and device for updating client state on line in real time

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