Disclosure of Invention
In view of the above, it is necessary to provide a content item transmission method, apparatus, device and storage medium for solving the problem of low document processing efficiency.
In a first aspect, a method for content item transmission is provided, the method comprising:
receiving a content item acquisition request sent by a terminal, wherein the content item acquisition request is used for indicating a server to send a legal content item which is allowed to be input in an input box of a target document to the terminal;
when the content item acquisition request carries a target version identification and the target version identification is not the latest version identification, acquiring a target difference content item between a legal content item set of the version indicated by the target version identification and a legal content item set of the version indicated by the latest version identification, wherein the target version identification is used for indicating the version of the legal content item set stored by the terminal;
the target differentiated content item is sent to the terminal.
In one embodiment, the obtaining of the target difference content item between the legal content item set of the version indicated by the target version identifier and the legal content item set of the version indicated by the latest version identifier includes:
inquiring the identification database according to the target version identification to obtain a version with a difference between the version indicated by the target version identification and the version indicated by the latest version identification;
the target difference content item is obtained from the phase-difference version.
In one embodiment, after the target differentiated content item is sent to the terminal, the method further comprises:
receiving a content item update request sent by the terminal;
according to the content item updating request, carrying out updating operation on legal content items in the legal content item set of the version indicated by the latest version identification to obtain an updated legal content item set;
generating an update version identification, and storing the update version identification in an identification database of the server, wherein the update version identification is used for indicating the version of the updated legal content item set;
and storing the legal content items corresponding to the updating operation into an identification database of the server as the difference content items of the content item set of the version indicated by the updating version identification and the content item set of the version indicated by the latest version identification.
In one embodiment, after receiving the content item acquisition request sent by the terminal, the method further includes:
and when the content item acquisition request carries the target version identification and the target version identification is the latest version identification, sending an empty set to the terminal.
In one embodiment, after receiving the content item acquisition request sent by the terminal, the method further includes:
and when the content item acquisition request does not carry the target version identification, all legal content items allowed to be input in the input box of the target document are sent to the terminal.
In one embodiment, the sending the target differentiated content item to the terminal includes:
and sending the latest version identification to the terminal, wherein the latest version identification is used for indicating the terminal to update the target version identification to the latest version identification.
In a second aspect, there is provided a content item transmission method, the method comprising:
when an input operation is detected in an input box of a target document, determining whether a legal content item set is stored in a terminal or not, wherein the legal content item set comprises legal content items allowed to be input in the input box of the target document;
when a legal content item set is stored in the terminal, acquiring a target version identification for indicating the version of the legal content item set;
sending a content item acquisition request to a server, wherein the content item acquisition request carries the target version identifier, and the content item acquisition request is used for indicating the server to send a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier to the terminal when the target version identifier is not the latest version identifier;
the target differentiated content item is received.
In one embodiment, after the receiving the target differentiated content item, the method further comprises:
sending a content item update request to the server upon detecting a content item update instruction;
the content item update request is used for indicating the server to perform update operation on legal content items in the legal content item set of the version indicated by the latest version identification according to the content item update request, so as to obtain an updated legal content item set.
In one embodiment, the method further comprises:
when the terminal does not store a legal content item set, sending a content item acquisition request which does not carry the target version identification to the server;
and receiving and storing all legal content items which are allowed to be input in the input box of the target document sent by the server.
In one embodiment, the method further comprises:
and receiving an empty set sent by the server, wherein the empty set is sent by the server when the target version identification is determined to be the latest version identification.
In one embodiment, after the receiving the target differentiated content item, the method further comprises:
receiving the latest version identification sent by the server;
and updating the target version identification to the latest version identification.
In a third aspect, there is provided a content item transmission apparatus comprising:
the first receiving module is used for receiving a content item acquisition request sent by a terminal, wherein the content item acquisition request is used for indicating a server to send a legal content item which is allowed to be input in an input frame of a target receipt to the terminal;
an obtaining module, configured to obtain, when the content item obtaining request carries a target version identifier and the target version identifier is not a latest version identifier, a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier, where the target version identifier is used to indicate a version of a legal content item set stored by the terminal;
a first sending module, configured to send the target differentiated content item to the terminal.
In a fourth aspect, there is provided a content item transmission apparatus comprising:
the determining module is used for determining whether a legal content item set is stored in the terminal or not when the input operation is detected in the input box of the target document, wherein the legal content item set comprises legal content items allowed to be input in the input box of the target document;
an obtaining module, configured to obtain, when a legal content item set is stored in the terminal, a target version identifier indicating a version of the legal content item set;
a first sending module, configured to send a content item obtaining request to a server, where the content item obtaining request carries the target version identifier, and the content item obtaining request is used to instruct the server to send, to the terminal, a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier when the target version identifier is not the latest version identifier;
a first receiving module for receiving the target differentiated content item.
In a fifth aspect, there is provided a computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any one of the first aspect when the processor executes the computer program; alternatively, the processor, when executing the computer program, performs the steps of any of the methods of the second aspect.
A sixth aspect provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of the above first aspects; alternatively, the computer program realizes the steps of the method of any of the above second aspects when executed by a processor.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
by receiving a content item acquisition request sent by a terminal, when the content item acquisition request carries a target version identification and the target version identification is not the latest version identification, acquiring a target difference content item between a legal content item set of the version indicated by the target version identification and a legal content item set of the version indicated by the latest version identification, wherein the target version identification is used for indicating the version of the legal content item set stored by the terminal, and then sending the target difference content item to the terminal.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In the following, a brief description will be given of an implementation environment related to the content item transmission method provided in the embodiment of the present application.
Referring to fig. 1, as shown in fig. 1, the implementation environment may include a terminal 101 and a server 102, where the terminal 101 may have a document application installed therein, and the document application may display an electronic document and may receive an input of a user in an input box of the electronic document. The server 102 may be one server or a server cluster including a plurality of servers.
Referring to fig. 2, a flow chart of a content item transmission method provided by the embodiment of the present application is shown, and the content item transmission method can be applied to the server 102 in the implementation environment shown in fig. 1. As shown in fig. 2, the content item transmission method may comprise the steps of:
step 201, the server receives a content item acquisition request sent by the terminal.
And the content item acquisition request is used for instructing the server to send the legal content items allowed to be input in the input box of the target document to the terminal.
In the embodiment of the application, the terminal can send the content item acquisition request to the server when detecting the input operation in the input box of the target document.
Step 202, when the content item obtaining request carries the target version identification and the target version identification is not the latest version identification, the server obtains the target difference content item between the legal content item set of the version indicated by the target version identification and the legal content item set of the version indicated by the latest version identification.
In this embodiment of the present application, when a legal content item set is stored in a terminal, the terminal may obtain a target version identifier for indicating a version of the legal content item set stored in the terminal, and send the target version identifier information to a server in a content item obtaining request. The legal content item set stored in the terminal comprises at least one legal content item which is allowed to be input in the input box of the target document.
When the server detects that the content item acquisition request sent by the terminal carries the target version identifier, the server can determine that a legal content item set is stored in the terminal. In this case, the server may determine whether the target version id is the latest version id. When the target version identifier is the latest version identifier, it indicates that the legal content item set stored in the terminal is the same as the legal content item set of the latest version, and at this time, the server may send an empty set to the terminal, or the server may not respond to the content item acquisition request sent by the terminal. When the target version identifier is not the latest version identifier, it indicates that the legal content item set stored in the terminal is not the latest version of the legal content item set, and at this time, the server may obtain the target difference content item between the legal content item set of the version indicated by the target version identifier and the legal content item set of the version indicated by the latest version identifier (that is, the latest version of the legal content item set).
When the server detects that the content item acquisition request sent by the terminal does not carry the target version identifier, the server may determine that a legal content item set is not stored in the terminal. In this case, the server may send all the legitimate content items allowed to be input in the input box of the target document to the terminal.
Step 203, the server sends the target differentiated content item to the terminal.
The server may further send a latest version identification to the terminal after sending the target differentiated content item to the terminal, and after receiving the latest version identification, the terminal may update the target version identification with the latest version identification to indicate a version of a set of legitimate content items stored in the terminal with the latest version identification.
In the content item transmission method provided by the embodiment of the application, by receiving a content item acquisition request sent by a terminal, when the content item acquisition request carries a target version identifier and the target version identifier is not the latest version identifier, a target difference content item between a legal content item set of the version indicated by the target version identifier and a legal content item set of the version indicated by the latest version identifier is acquired, wherein the target version identifier is used for indicating the version of the legal content item set stored by the terminal, and then the target difference content item is sent to the terminal.
Referring to fig. 3, a flow chart of another content item transmission method provided by the embodiment of the present application is shown, and the content item transmission method can be applied to the server 102 in the implementation environment shown in fig. 1. As shown in fig. 3, on the basis of the above-described embodiment, step 202 includes:
step 2021, the server queries the identifier database according to the target version identifier, and obtains a version that is different between the version indicated by the target version identifier and the version indicated by the latest version identifier.
In an embodiment of the present application, the identification database may be disposed in a Redis cache of the server, and the identification database stores a plurality of version identifications and difference content items between any two adjacent versions of content item sets. The server may query the identifier database according to the target version identifier, and obtain, according to the plurality of version identifiers stored in the identifier database, a version that differs between the version indicated by the target version identifier and the version indicated by the latest version identifier.
Step 2022, the server obtains the target difference content item from the identification database according to the version of the phase difference.
The server may obtain the target difference content item based on a version that is different between the version indicated by the target version identification and the version indicated by the latest version identification and a difference content item between the content item sets of any two adjacent versions stored in the identification database.
For example, if the version difference between the version indicated by the target version identifier and the version indicated by the latest version identifier is version a and version B, the server may obtain the content difference item between version a and the version indicated by the target version identifier from the identifier database, obtain the content difference item between version a and version B from the identifier database, and obtain the content difference item between version B and the version indicated by the latest version identifier. Next, the server may obtain the target difference content item from the difference content item between the version a and the version indicated by the target version identification, the difference content item between the version a and the version B, and the difference content item between the version B and the version indicated by the latest version identification.
Referring to fig. 4, a flow chart of another content item transmission method provided by the embodiment of the present application is shown, and the content item transmission method can be applied to the server 102 in the implementation environment shown in fig. 1. As shown in fig. 3, on the basis of the above-mentioned embodiment, after step 203, the method further includes:
step 401, the server receives a content item update request sent by the terminal.
In practical application, a user can update legal content items in a legal content item set stored in a server, and when the legal content items need to be updated, the user can trigger a terminal to send a content item update request to the server.
Step 402, the server updates the legal content items in the legal content item set of the version indicated by the latest version identification according to the content item updating request, so as to obtain an updated legal content item set.
The updating operation comprises an operation of deleting legal content items in the legal content item set of the version indicated by the latest version identification and an operation of amending, and in addition, the updating operation also comprises an operation of adding new content items in the legal content item set of the version indicated by the latest version identification.
Step 403, the server generates an updated version identifier, and stores the updated version identifier in an identifier database of the server.
Wherein the updated version identification indicates a version of the updated set of legitimate content items.
Step 404, the server stores the legal content item corresponding to the update operation as the difference content item between the content item set of the version indicated by the update version identification and the content item set of the version indicated by the latest version identification in the identification database of the server.
Referring to fig. 5, a flow chart of a content item transmission method provided by the embodiment of the present application is shown, and the content item transmission method can be applied to the terminal 101 in the implementation environment shown in fig. 1. As shown in fig. 5, the content item transmission method may comprise the steps of:
step 501, when an input operation is detected in an input box of a target document, the terminal determines whether a legal content item set is stored locally.
Wherein the set of legal content items includes legal content items allowed to be entered in the input box of the target document.
Step 502, when the terminal stores the legal content item set, the terminal obtains a target version identification for indicating the version of the legal content item set stored in the local.
Step 503, the terminal sends a content item acquisition request to the server.
When the terminal stores a legal content item set, the content item acquisition request may carry the target version identifier, and the content item acquisition request is used to instruct the server to send, to the terminal, a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier when the target version identifier is not the latest version identifier.
Step 504, the terminal receives the target differentiated content item.
When the terminal stores the legal content item set, the terminal may receive the target differential content item, optionally, in this case, the terminal may further receive a latest version identifier sent by the server, and update the target version identifier to the latest version identifier, so as to indicate the version of the target content item set stored in the terminal by using the latest version identifier.
In an embodiment of the application, when a terminal does not store a valid content item set, after an input operation is monitored in an input box of a target document, the terminal may send a content item acquisition request without a target version identifier to a server, and when the server receives the content item acquisition request without the target version identifier, it may be determined that the terminal does not store the valid content item set.
In another embodiment of the present application, when the server determines that the target version identifier is the same as the latest version identifier, the server may send an empty set to the terminal, and at this time, the terminal may receive the empty set sent by the server.
In the content item transmission method provided by the embodiment of the application, a content item acquisition request sent by a terminal is received through a server, when the content item acquisition request carries a target version identification and the target version identification is not the latest version identification, the server retrieves a target difference content item between the set of legitimate content items of the version indicated by the target version identification and the set of legitimate content items of the version indicated by the latest version identification, wherein the target version identification is used to indicate the version of the legal content item set stored by the terminal, and the server then sends the target differentiated content item to the terminal, such that, in case the terminal already has a set of legitimate content items stored, the server may not have to return all legitimate content items to the terminal, and, therefore, the time delay of the server for returning the legal content items to the terminal can be reduced, and the processing efficiency of the document is improved.
Referring to fig. 6, a flow chart of another content item transmission method provided by the embodiment of the present application is shown, and the content item transmission method can be applied to the terminal 101 in the implementation environment shown in fig. 1. As shown in fig. 6, on the basis of the above-mentioned embodiment, after step 504, the method further includes:
step 601, after detecting the content item update instruction, the terminal sends a content item update request to the server.
As described above, the user may update the set of legitimate content items stored in the server, and when the set of legitimate content items stored in the server needs to be updated, the user may input a content item update instruction to the terminal, and after detecting the content item update, the terminal may transmit a content item update request to the server.
And the content item updating request is used for indicating the server to update the legal content items in the legal content item set of the version indicated by the latest version identification according to the content item updating request to obtain an updated legal content item set.
Referring to fig. 7, a block diagram of a content item transmission apparatus 700 provided by an embodiment of the present application is shown, where the content item transmission apparatus 700 may be configured in a server. As shown in fig. 7, the content item transmission apparatus 700 may include: a first receiving module 701, an obtaining module 702 and a first sending module 703.
The first receiving module 701 is configured to receive a content item acquisition request sent by a terminal, where the content item acquisition request is used to instruct a server to send a valid content item allowed to be input in an input box of a target document to the terminal.
The obtaining module 702 is configured to, when the content item obtaining request carries a target version identifier and the target version identifier is not a latest version identifier, obtain a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier, where the target version identifier is used to indicate a version of a legal content item set stored by the terminal.
The first sending module 703 is configured to send the target differentiated content item to the terminal.
In an embodiment of the present application, the identifier database of the server stores a plurality of version identifiers and a difference content item between any two adjacent versions of the content item set, and the obtaining module 702 is specifically configured to: inquiring the identification database according to the target version identification to obtain a version with a difference between the version indicated by the target version identification and the version indicated by the latest version identification; the target difference content item is obtained from the phase-difference version.
Referring to fig. 8, an embodiment of the present application further provides a content item transmission apparatus 800, where the content item transmission apparatus 800 includes, in addition to the modules included in the content item transmission apparatus 700, optionally: a second receiving module 704, an updating module 705, a generating module 706, a storing module 707, a second sending module 708, a third sending module 709, and a fourth sending module 710.
Wherein, the second receiving module 704 is configured to receive a content item update request sent by the terminal.
The updating module 705 is configured to perform an updating operation on a legal content item in the legal content item set of the version indicated by the latest version identifier according to the content item updating request, so as to obtain an updated legal content item set.
The generating module 706 is configured to generate an updated version identifier, and store the updated version identifier in the identifier database of the server, where the updated version identifier is used to indicate a version of the updated set of valid content items.
The storage module 707 is configured to store the legal content item corresponding to the update operation as a difference content item between the content item set of the version indicated by the update version identifier and the content item set of the version indicated by the latest version identifier in the identifier database of the server.
The second sending module 708 is configured to send an empty set to the terminal when the content item acquisition request carries the target version identifier and the target version identifier is the latest version identifier.
The third sending module 709 is configured to send, to the terminal, all valid content items allowed to be input in the input box of the target document when the content item acquisition request does not carry the target version identifier.
The fourth sending module 710 is configured to send the latest version identifier to the terminal, where the latest version identifier is used to instruct the terminal to update the target version identifier to the latest version identifier.
The content item transmission apparatus provided in the embodiment of the present application can implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
For specific limitations of the content item transmission means, reference may be made to the above limitations of the content item transmission method, which are not described in detail here. The various modules in the content item transmission apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 9, a block diagram of a content item transmission apparatus 900 according to an embodiment of the present application is shown, where the content item transmission apparatus 900 may be configured in a terminal. As shown in fig. 9, the content item transmission apparatus 900 may include: a determining module 901, an obtaining module 902, a first sending module 903 and a first receiving module 904.
The determining module 901 is configured to determine whether a legal content item set is stored in the terminal when an input operation is detected in an input box of the target document, where the legal content item set includes a legal content item allowed to be input in the input box of the target document.
The obtaining module 902 is configured to, when a legal content item set is stored in the terminal, obtain a target version identifier indicating a version of the legal content item set.
The first sending module 903 is configured to send a content item obtaining request to a server, where the content item obtaining request carries the target version identifier, and the content item obtaining request is used to instruct the server to send, to the terminal, a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier when the target version identifier is not the latest version identifier.
The first receiving module 904 is configured to receive the target differentiated content item.
Referring to fig. 10, an embodiment of the present application further provides a content item transmission apparatus 1000, where the content item transmission apparatus 1000 may further include, in addition to the modules included in the content item transmission apparatus 900, optionally: a second sending module 905, a third sending module 906, a second receiving module 907, a third receiving module 908, a fourth receiving module 909, and an updating module 910.
The second sending module 905 is configured to send a content item update request to the server after detecting a content item update instruction. The content item update request is used for indicating the server to perform update operation on legal content items in the legal content item set of the version indicated by the latest version identification according to the content item update request, so as to obtain an updated legal content item set.
The third sending module 906 is configured to send a content item acquisition request that does not carry the target version identifier to the server when no legal content item set is stored in the terminal.
The second receiving module 907 is configured to receive and store all valid content items allowed to be input in the input box of the target document sent by the server.
The third receiving module 908 is configured to receive an empty set sent by the server, where the empty set is sent by the server when it is determined that the target version id is the latest version id.
The fourth receiving module 909 is configured to receive the latest version identifier sent by the server.
The updating module 910 is configured to update the target version identifier to the latest version identifier.
The content item transmission apparatus provided in the embodiment of the present application can implement the method embodiments described above, and the implementation principle and technical effect are similar, which are not described herein again.
For specific limitations of the content item transmission means, reference may be made to the above limitations of the content item transmission method, which are not described in detail here. The various modules in the content item transmission apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment of the present application, a computer device is provided, and the computer device may be a terminal or a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor and a memory connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a content item transmission method.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device, which may be a server, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a content item acquisition request sent by a terminal, wherein the content item acquisition request is used for indicating a server to send a legal content item which is allowed to be input in an input box of a target document to the terminal; when the content item acquisition request carries a target version identification and the target version identification is not the latest version identification, acquiring a target difference content item between a legal content item set of the version indicated by the target version identification and a legal content item set of the version indicated by the latest version identification, wherein the target version identification is used for indicating the version of the legal content item set stored by the terminal; the target differentiated content item is sent to the terminal.
In an embodiment of the application, the processor executes the computer program to further implement the following steps: inquiring the identification database according to the target version identification to obtain a version with a difference between the version indicated by the target version identification and the version indicated by the latest version identification; the target difference content item is obtained from the phase-difference version.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving a content item update request sent by the terminal; according to the content item updating request, carrying out updating operation on legal content items in the legal content item set of the version indicated by the latest version identification to obtain an updated legal content item set; generating an update version identification, and storing the update version identification in an identification database of the server, wherein the update version identification is used for indicating the version of the updated legal content item set; and storing the legal content items corresponding to the updating operation into an identification database of the server as the difference content items of the content item set of the version indicated by the updating version identification and the content item set of the version indicated by the latest version identification.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and when the content item acquisition request carries the target version identification and the target version identification is the latest version identification, sending an empty set to the terminal.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and when the content item acquisition request does not carry the target version identification, all legal content items allowed to be input in the input box of the target document are sent to the terminal.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and sending the latest version identification to the terminal, wherein the latest version identification is used for indicating the terminal to update the target version identification to the latest version identification.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In one embodiment of the present application, a computer device is provided, which may be a terminal, and includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program:
when an input operation is detected in an input box of a target document, determining whether a legal content item set is stored in a terminal or not, wherein the legal content item set comprises legal content items allowed to be input in the input box of the target document; when a legal content item set is stored in the terminal, acquiring a target version identification for indicating the version of the legal content item set; sending a content item acquisition request to a server, wherein the content item acquisition request carries the target version identifier, and the content item acquisition request is used for indicating the server to send a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier to the terminal when the target version identifier is not the latest version identifier; the target differentiated content item is received.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: sending a content item update request to the server upon detecting a content item update instruction; the content item update request is used for indicating the server to perform update operation on legal content items in the legal content item set of the version indicated by the latest version identification according to the content item update request, so as to obtain an updated legal content item set.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: when the terminal does not store a legal content item set, sending a content item acquisition request which does not carry the target version identification to the server; and receiving and storing all legal content items which are allowed to be input in the input box of the target document sent by the server.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and receiving an empty set sent by the server, wherein the empty set is sent by the server when the target version identification is determined to be the latest version identification.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: receiving the latest version identification sent by the server; and updating the target version identification to the latest version identification.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
receiving a content item acquisition request sent by a terminal, wherein the content item acquisition request is used for indicating a server to send a legal content item which is allowed to be input in an input box of a target document to the terminal; when the content item acquisition request carries a target version identification and the target version identification is not the latest version identification, acquiring a target difference content item between a legal content item set of the version indicated by the target version identification and a legal content item set of the version indicated by the latest version identification, wherein the target version identification is used for indicating the version of the legal content item set stored by the terminal; the target differentiated content item is sent to the terminal.
The identification database of the server has stored therein a plurality of version identifications and differential content items between sets of content items of any two adjacent versions, and in one embodiment of the application, the computer program when executed by the processor further implements the steps of: inquiring the identification database according to the target version identification to obtain a version with a difference between the version indicated by the target version identification and the version indicated by the latest version identification; the target difference content item is obtained from the phase-difference version.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a content item update request sent by the terminal; according to the content item updating request, carrying out updating operation on legal content items in the legal content item set of the version indicated by the latest version identification to obtain an updated legal content item set; generating an update version identification, and storing the update version identification in an identification database of the server, wherein the update version identification is used for indicating the version of the updated legal content item set; and storing the legal content items corresponding to the updating operation into an identification database of the server as the difference content items of the content item set of the version indicated by the updating version identification and the content item set of the version indicated by the latest version identification.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and when the content item acquisition request carries the target version identification and the target version identification is the latest version identification, sending an empty set to the terminal.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and when the content item acquisition request does not carry the target version identification, all legal content items allowed to be input in the input box of the target document are sent to the terminal.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and sending the latest version identification to the terminal, wherein the latest version identification is used for indicating the terminal to update the target version identification to the latest version identification.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
when an input operation is detected in an input box of a target document, determining whether a legal content item set is stored in a terminal or not, wherein the legal content item set comprises legal content items allowed to be input in the input box of the target document; when a legal content item set is stored in the terminal, acquiring a target version identification for indicating the version of the legal content item set; sending a content item acquisition request to a server, wherein the content item acquisition request carries the target version identifier, and the content item acquisition request is used for indicating the server to send a target difference content item between a legal content item set of a version indicated by the target version identifier and a legal content item set of a version indicated by the latest version identifier to the terminal when the target version identifier is not the latest version identifier; the target differentiated content item is received.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: sending a content item update request to the server upon detecting a content item update instruction; the content item update request is used for indicating the server to perform update operation on legal content items in the legal content item set of the version indicated by the latest version identification according to the content item update request, so as to obtain an updated legal content item set.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: when the terminal does not store a legal content item set, sending a content item acquisition request which does not carry the target version identification to the server; and receiving and storing all legal content items which are allowed to be input in the input box of the target document sent by the server.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and receiving an empty set sent by the server, wherein the empty set is sent by the server when the target version identification is determined to be the latest version identification.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving the latest version identification sent by the server; and updating the target version identification to the latest version identification.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.