CN114817276A - Method, system, equipment and storage medium for updating file - Google Patents

Method, system, equipment and storage medium for updating file Download PDF

Info

Publication number
CN114817276A
CN114817276A CN202110111153.3A CN202110111153A CN114817276A CN 114817276 A CN114817276 A CN 114817276A CN 202110111153 A CN202110111153 A CN 202110111153A CN 114817276 A CN114817276 A CN 114817276A
Authority
CN
China
Prior art keywords
document
file
identification
updating
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110111153.3A
Other languages
Chinese (zh)
Inventor
王安全
胡平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Weibu Information Technology Co ltd
Original Assignee
Hunan Weibu 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 Hunan Weibu Information Technology Co ltd filed Critical Hunan Weibu Information Technology Co ltd
Priority to CN202110111153.3A priority Critical patent/CN114817276A/en
Publication of CN114817276A publication Critical patent/CN114817276A/en
Pending legal-status Critical Current

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
    • 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/22Indexing; Data structures therefor; Storage structures
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The application discloses a method, a system, equipment and a storage medium for updating a file. The method comprises the following steps: acquiring a first file identification and new file content corresponding to the first file identification, wherein the new file content is correct file content corresponding to wrong file content to be updated; sending the first document identification and the new document content so that the terminal receiving the first document identification and the new document content executes document updating operation on the application program installed on the terminal; the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content. According to the technical scheme provided by the embodiment of the application, the method improves the file updating efficiency.

Description

Method, system, equipment and storage medium for updating file
Technical Field
The present application relates generally to the field of data processing technology, and more particularly, to a method, system, device, and storage medium for updating a document.
Background
The documentation is an important component of a user interface in an application program client, and a large number of documentation exists everywhere in the client. After the application client is released, a file error may occur due to a change of a service or a manual operation error in a development stage, and at this time, the problem can be solved only by updating an error file, manually correcting the error file, and then releasing a version again. However, obviously, the operation takes a long time, the problem cannot be corrected in time, and the efficiency is low.
Disclosure of Invention
In view of the problem of low document updating efficiency in the prior art, the application provides a method, a system, a device and a storage medium for document updating, which can improve the document updating efficiency.
In a first aspect, an embodiment of the present application provides a method for updating a document, where the method includes:
acquiring a first document identification and new document content corresponding to the first document identification, wherein the new document content is correct document content corresponding to wrong document content to be updated;
sending the first document identification and the new document content so that the terminal receiving the first document identification and the new document content executes document updating operation on the application program installed on the terminal;
the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
Optionally, before acquiring the first document identification and the new document content, the method further includes:
receiving a document configuration request, wherein the document configuration request carries a first document identifier and new document content;
responding to the file configuration request, and inquiring a second file identification which is the same as the first file identification;
and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
Optionally, the method further comprises:
and generating an updated document error prompt when the second document identification is not inquired.
In a second aspect, an embodiment of the present application provides a method for updating a document, where the method includes:
receiving a document updating command, wherein the document updating command carries a first document identifier and new document content corresponding to the first document identifier;
responding to the command of updating the file, and inquiring a second file identifier which is the same as the first file identifier;
and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
Optionally, the method further comprises:
and generating an updated document error prompt when the second document identification is not inquired.
Optionally, before receiving the command to update the document, the method further comprises:
and sending an updated document request carrying a second document identifier so that the server receiving the updated document request updates the old document content corresponding to the second document identifier according to the second document identifier.
In a third aspect, an embodiment of the present application provides a system for updating a document, where the system includes:
the acquisition module is used for acquiring a first document identifier and new document content corresponding to the first document identifier, wherein the new document content is correct document content corresponding to wrong document content to be updated;
the sending module is used for sending the first document identifier and the new document content so that the terminal receiving the first document identifier and the new document content executes document updating operation on the application program installed on the terminal;
the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
In a fourth aspect, an embodiment of the present application provides a system for updating a document, where the system includes:
the receiving module is used for receiving a document updating command, and the document updating command carries a first document identifier and new document content corresponding to the first document identifier;
the query module is used for responding to the file updating instruction and querying a second file identifier which is the same as the first file identifier;
and the updating module is used for updating the old file content corresponding to the second file identification into the new file content when the second file identification is inquired.
In a fifth aspect, an embodiment of the present application provides a computer device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform a method that implements the first or second aspects described above.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, the computer program being configured to implement the method of the first aspect or the second aspect.
According to the method for updating the file, the server sends the new file content to the terminal provided with the application program client, so that the terminal can directly update the old file content to be updated when receiving the new file content; compared with the prior art that the document content is updated by a method of releasing the new version application program, the time consumed by updating the document is shortened, and the document updating efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments or the prior art are briefly introduced below, and it is apparent that the drawings are only for the purpose of illustrating a preferred implementation method and are not to be considered as limiting the present application. It should be further noted that, for the convenience of description, only the relevant portions of the present application, not all of them, are shown in the drawings.
FIG. 1 is a diagram illustrating an environment architecture for implementing a method for updating a document according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for updating a document according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for configuring a document according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a method for updating a document according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating a method for updating a document according to an embodiment of the present application;
FIG. 6 is a block diagram of a system for updating a document according to an embodiment of the present application;
FIG. 7 is a block diagram of a system for updating a document according to an embodiment of the present application;
FIG. 8 is a block diagram illustrating a computer system according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a method for developing document contents according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be noted that, for the convenience of description, only the portions relevant to the application are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is an architecture diagram of an implementation environment of an updated document according to an embodiment of the present application. As shown in fig. 1, the implementation environment architecture includes: a terminal 101 and a server 102.
The hardware structure of the terminal 101 includes a processor, a memory, and a display device, and the software structure includes a client of an application program installed on the terminal 101. Such as a social application client, a shopping application client, a gaming application client, etc. After the application client is started, the terminal 101 may display the file of the client through the display device.
The file includes all the user interfaces displayed by the client through the display device and any other contents which are not displayed.
The user can check and use the case through the display device, and can find the case error in the process of checking and using the case, further, the user can input the case error prompt through the user interface, and send the case error prompt to the server 102 to request the server 102 to update the error case, and send the updated correct case to the terminal 101.
When the terminal 101 receives the correct document sent by the server 102, the terminal 101 performs a document updating operation, that is, deletes the wrong document and replaces the wrong document with the correct document.
The type of the terminal 101 includes, but is not limited to, a smart phone, a tablet computer, a television, a notebook computer, a desktop computer, and the like, which is not particularly limited in this embodiment.
The server 102 is configured to receive a document error fed back by the terminal 101, and generate a prompt to prompt a developer to upload a correct document.
Of course, the file error can also be actively discovered by the developer and the correct file is uploaded without feedback from the client.
When the server 102 receives the correct file, the correct file is used to replace the wrong file, and the wrong file is deleted, so that file updating is realized.
The server 102 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
The terminal 101 and the server 102 establish a communication connection through a wired or wireless network.
Fig. 2 is a flowchart illustrating a method for updating a document according to an embodiment of the present application. The method shown in fig. 2 may be performed by the server 102 in fig. 1, as shown in fig. 2, the method comprising the steps of:
step 201, acquiring a first document identifier and new document content.
Wherein, the new file content is the correct file content corresponding to the wrong file content to be updated. For convenience of description, the wrong document contents are described as the old document contents.
When the terminal updates the old document content into the new document content, the old document content needs to be identified through the first document identifier, so that the first document identifier is the same as the second document identifier corresponding to the old document content, the second document identifier can be obtained by inquiring the document identifier which is the same as the first document identifier, and the old document content to be updated is inquired.
The first document identification and the new document content may be in one group or in multiple groups.
Before the server executes step 201, the document editor is required to edit the first document identifier and the new document content, and after the editing is completed, the first document identifier and the new document content are uploaded to the server, so that when the server sends an update document instruction to the terminal, the server acquires the first document identifier and the new document content and mounts the first document identifier and the new document content into the update document instruction, so as to send the first document identifier and the new document content to the terminal.
Step 202, sending the first document identification and the new document content, so that the terminal receiving the first document identification and the new document content executes the document updating operation on the application program installed thereon.
After the server receives the uploaded first document identification and new document content, the server can directly send the first document identification and the new document content to the terminal. Or the configuration operation may be performed first and then transmitted to the terminal.
Optionally, referring to fig. 3, the configuring operation comprises:
step 2021, receiving the document configuration request, where the document configuration request carries the first document identifier and the new document content.
The configuration request may be generated when the first document identifier and the new document content are uploaded. For example, when the developer uploads the first document identifier and the new document content to the server, the developer generates a configuration request through the user interface, and uploads the configuration request to the server together with the first document and the new document content.
Step 2022, in response to the document configuration request, query a second document id identical to the first document id.
Optionally, the server is configured with all the document contents included in the application client, and each document content corresponds to one document identifier, and then the second document identifier is one document identifier configured in the server.
Step 2023, when the second document identifier is found, updating the old document content corresponding to the second document identifier to the new document content.
When the second document identification is inquired, the old document content corresponding to the second document identification is the wrong document content, namely the document content to be updated, and the old document content is updated to be the new document content.
When the second document identifier is not queried in the server, which indicates that the new document content does not have the corresponding old document content to be updated, the configuration operation further includes:
step 2024, when the second document id is not searched, an updated document error prompt is generated.
It should be noted that the update document and the operation related to the configuration document are update configuration operations in the server. If the server receives the first file identification and the new file content and then directly sends the terminal, the server does not execute the operation and does not need to store any file content.
Further, the update operation performed by the terminal on the client installed thereon may include: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content. For other updating document operations in the terminal, reference may be made to the embodiment described in fig. 4, which is not described herein again.
The method for updating the file aims at the file corresponding to the function existing in the application program; and for the function that the application program does not exist yet, namely a new function needs to be developed, a new file needs to be added, the new function can be developed through a development environment based on the new file and the corresponding file identification, and the application program comprising the new function is released to an application market after the development is successful. And the user realizes the updating of the file by downloading the new application program version. Referring to fig. 9, when developing a new function, the relevant operations for the case include:
firstly, the document editor uses the editing tool to edit the new document contents and the document identification corresponding to each new document content.
The excela tool can be used for adding the new document contents and the first document identifications corresponding to the new document contents in batches.
Optionally, the new document content may include multiple versions of the international language, and for example, taking an excel tool as an example, the format of the document of the multiple versions of the international language may be:
file sign Chinese language pattern English language table Traditional Chinese medical record
ID_TEXT_001 Study 1 text1 Culture of literature 1
ID_TEXT_003 Desk 2 text2 Culture of literature 1
ID_TEXT_003 Study 3 text3 Vessel 3 propagation ofPrinting plate
And secondly, importing the new file contents into the development environment through an importing tool.
Alternatively, the import tool may be a Python scripting tool. The Development Environment may be an Integrated Development Environment (IDE).
Illustratively, still taking the above example as an example, the format of each language version after importing may be:
english directory and case format
<string name="ID_TEXT_001”>text1</string>
<string name="ID_TEXT_002">text2</string>
<string name="ID_TEXT_003”>text3</string>
Chinese simplified directory format
< Stringname >
< string name ═ ID _ TEXT _002"> document 2</string >
< string name ═ ID _ TEXT _003 >
Chinese traditional style directory format
Training name [ "ID _ TEXT _ 001" ] scheme 1 propagation method
Training name [ "ID _ TEXT _002" ] scheme 2 propagation method
Propagation of tissue 3
These documents have already been imported into the corresponding directories of the development IDE, and developers can directly refer to the corresponding document identifiers for use.
The step is automatically completed by using a Python script through one key, and the script reads an excel resource file by using an xlrd library; reading corresponding file identification from the excel file, traversing and developing strings.xml of the corresponding directory of the IDE to determine whether the file identification exists, and directly updating the corresponding file if the file identification exists. If not, at the end of the strings.xml document file, a new document is automatically inserted. The script can simultaneously update and import a plurality of international languages by distinguishing through folder names at one time.
The file and the file identification are automatically imported through the import tool, so that the operation of manually inputting the file and the file identification by developers is omitted, and the efficiency of developing the application program by the developers is improved.
And thirdly, generating a new function by referring to the corresponding file content through the development environment.
The citation of the document contents can be carried out through document identification.
In the development stage, when a new file needs to be used, different internationalized folders need to be found in a corresponding resource directory to be compiled, then a file identifier is added manually or by using an editor in a corresponding strings.xml file, the corresponding file is input and then can be used in a reference code, and different internationalized files need to be repeated for multiple times.
Fig. 4 is a flowchart illustrating a method for updating a document according to an embodiment of the present application. The method shown in fig. 4 may be performed by the terminal 101 in fig. 1, as shown in fig. 4, the method comprising the steps of:
step 301, receiving an update document instruction, where the update document instruction carries a first document identifier and new document content corresponding to the first document identifier.
After the server acquires the first file identification and the new file content, a file updating instruction is sent to the terminal, so that the terminal receives the file updating instruction and executes file updating operation.
In addition, it should be noted that, when the user uses the application program, the user may also find the document error, and at this time, the user may input a message of the document error through the application interface of the client, and send a message of the document error to the server, so as to remind the developer or the maintainer that the application program has the document error, and update the document as soon as possible. Before the terminal receives the command for updating the file, the terminal further comprises the following operations: and sending an updated document request carrying a second document identifier so that the server receiving the updated document request updates the old document content corresponding to the second document identifier according to the second document identifier.
Step 302, in response to the command for updating the document, querying a second document identifier identical to the first document identifier.
All the documents included by the client and the document identification corresponding to each document are stored in the terminal. Therefore, the document identification corresponding to the old document to be updated is inquired by inquiring the second document identification which is the same as the first document identification.
Step 303, when the second document identifier is found, updating the old document content corresponding to the second document identifier to the new document content.
When the second document identifier is not queried, which indicates that the new document content does not have the corresponding old document content to be updated, referring to fig. 5, the method for updating the document further includes the following step 304:
step 304, when the second document identification is not inquired, generating an updated document error prompt.
The application program end reads the new file content and adopts the resource management class of the visual interface (Activity) of the rewriting system. Further, the method may be: after the file content executes the updating operation, reading the updated file content at a preset position; and when the application program is started, displaying the read updated file content through a display device of the terminal. Therefore, the old file content originally read to the application program is changed into the updated new file content, and the purpose of updating the randomly used file through the corresponding file identification is achieved.
To sum up, in the method for updating a document provided in the embodiment of the present application, a server sends new document content to a terminal installed with an application client, so that the terminal directly updates old document content to be updated when receiving the new document content; compared with the prior art that the document content is updated by a method of releasing the new version application program, the time consumed by updating the document is shortened, and the document updating efficiency is improved.
The embodiments in this specification are described in a progressive manner, and similar parts between the various embodiments are referred to each other. The examples below each step focus on the specific method below that step. The above-described embodiments are merely illustrative, and the specific examples are only illustrative of the present application, and those skilled in the art can make several improvements and modifications without departing from the principle described in the examples of the present application, and these improvements should be construed as the scope of the present application.
Fig. 6 is a block diagram of a document updating system 500 according to an embodiment of the application. As shown in fig. 6, the system includes:
an obtaining module 501, configured to obtain a first document identifier and a new document content corresponding to the first document identifier, where the new document content is a correct document content corresponding to an incorrect document content to be updated;
a sending module 502, configured to send the first document identifier and the new document content, so that a terminal receiving the first document identifier and the new document content performs a document updating operation on an application installed thereon;
the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
Optionally, the obtaining module 501 is further configured to:
receiving a document configuration request, wherein the document configuration request carries the first document identifier and the new document content;
responding to the document configuration request, and inquiring the second document identification which is the same as the first document identification;
and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
Optionally, the obtaining module 501 is further configured to:
and generating an updated file error prompt when the second file identification is not inquired.
In addition, please refer to the method embodiment for related contents in the system embodiment, which are not described herein.
To sum up, the system for updating a document provided in the embodiment of the present application sends new document content to the terminal installed with the application client through the server, so that the terminal directly updates old document content to be updated when receiving the new document content; compared with the prior art that the file content is updated by a method of releasing a new version application program, the time consumed by updating the file is shortened, and the file updating efficiency is improved.
Fig. 7 is a block diagram illustrating an updated documentation system 600 according to an embodiment of the application. As shown in fig. 7, the system includes:
a receiving module 601, configured to receive an update document instruction, where the update document instruction carries a first document identifier and new document content corresponding to the first document identifier;
a query module 602, configured to query, in response to the document updating instruction, a second document identifier that is the same as the first document identifier;
an updating module 603, configured to update an old document content corresponding to the second document identifier to the new document content when the second document identifier is queried.
The update module 603 is further configured to:
and generating an updated file error prompt when the second file identification is not inquired.
The receiving module 601 is further configured to:
and sending an updated document request, wherein the updated document request carries the second document identifier, so that the server receiving the updated document request updates the old document content corresponding to the second document identifier according to the second document identifier.
In addition, please refer to the method embodiment for related contents in the system embodiment, which are not described herein.
To sum up, the system for updating a document provided in the embodiment of the present application sends new document content to the terminal installed with the application client through the server, so that the terminal directly updates old document content to be updated when receiving the new document content; compared with the prior art that the document content is updated by a method of releasing the new version application program, the time consumed by updating the document is shortened, and the document updating efficiency is improved.
Fig. 8 is a schematic structural diagram of a computer system 900 according to an embodiment of the present application, which includes a Central Processing Unit (CPU)901 that can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion into a Random Access Memory (RAM) 903. In the RAM903, various programs and data necessary for system operation are also stored. The CPU901, ROM902, and RAM903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, the processes described by the flowcharts according to the embodiments of the present application may be implemented as computer software programs. For example, method embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. The described units or modules may also be provided in a processor, and may be described as: a processor includes an acquisition module and a sending module. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the method for updating documents as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 2: step 201, acquiring a first document identifier and new document content; step 202, sending the first document identification and the new document content, so that the terminal receiving the first document identification and the new document content executes the document updating operation on the application program installed thereon. As another example, the electronic device may implement the following as shown in fig. 4: step 301, receiving an update document instruction, where the update document instruction carries a first document identifier and new document content corresponding to the first document identifier. Step 302, in response to the command for updating the document, querying a second document identifier identical to the first document identifier. Step 303, when the second document identifier is found, updating the old document content corresponding to the second document identifier to the new document content.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware.
To sum up, the computer system or the computer readable medium for updating a document provided in the embodiment of the present application sends new document content to the terminal installed with the application client through the server, so that the terminal directly updates old document content to be updated when receiving the new document content; compared with the prior art that the document content is updated by a method of releasing the new version application program, the time consumed by updating the document is shortened, and the document updating efficiency is improved.
The foregoing is considered as illustrative only of the preferred embodiments of the invention and illustrative only of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the application referred to in the present application is not limited to the embodiments with a particular combination of the above-mentioned features, but also encompasses other embodiments with any combination of the above-mentioned features or their equivalents without departing from the scope of the application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method of updating a document, the method comprising:
acquiring a first document identification and new document content corresponding to the first document identification, wherein the new document content is correct document content corresponding to wrong document content to be updated;
sending the first file identification and the new file content so that the terminal receiving the first file identification and the new file content executes file updating operation on an application program installed on the terminal;
the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
2. The method of updating a document of claim 1, wherein prior to said obtaining a first document identification and new document content corresponding to the first document identification, the method further comprises:
receiving a document configuration request, wherein the document configuration request carries the first document identifier and the new document content;
responding to the document configuration request, and inquiring the second document identification which is the same as the first document identification;
and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
3. The method of updating a document of claim 2, wherein after said querying for the second document identification that is the same as the first document identification, the method further comprises:
and generating an updated file error prompt when the second file identification is not inquired.
4. A method of updating a document, the method comprising:
receiving an updating file instruction, wherein the updating file instruction carries a first file identifier and new file content corresponding to the first file identifier;
responding to the file updating instruction, and inquiring a second file identification which is the same as the first file identification;
and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
5. The method of updating a document of claim 4, wherein after said querying a second document identification that is the same as said first document identification, the method further comprises:
and generating an updated file error prompt when the second file identification is not inquired.
6. The method of updating a document of claim 4 or 5, wherein prior to said receiving an update document instruction, the method further comprises:
and sending an updated document request, wherein the updated document request carries the second document identifier, so that the server receiving the updated document request updates the old document content corresponding to the second document identifier according to the second document identifier.
7. A system for updating a document, the system comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first file identification, new file contents corresponding to the first file identification and correct file contents corresponding to wrong file contents to be updated;
the sending module is used for sending the first document identification and the new document content so that a terminal receiving the first document identification and the new document content executes document updating operation on an application program installed on the terminal;
the file updating operation comprises the following steps: inquiring a second document identification which is the same as the first document identification; and when the second file identification is inquired, updating the old file content corresponding to the second file identification into the new file content.
8. A system for updating a document, the system comprising:
the receiving module is used for receiving a document updating command, and the document updating command carries a first document identifier and new document content corresponding to the first document identifier;
the query module is used for responding to the file updating instruction and querying a second file identifier which is the same as the first file identifier;
and the updating module is used for updating the old file content corresponding to the second file identification into the new file content when the second file identification is inquired.
9. A computer device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-3 or 4-6.
10. A computer-readable storage medium, having stored thereon a computer program for:
the computer program, when executed by a processor, implements the method of any of claims 1-3 or 4-6.
CN202110111153.3A 2021-01-27 2021-01-27 Method, system, equipment and storage medium for updating file Pending CN114817276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110111153.3A CN114817276A (en) 2021-01-27 2021-01-27 Method, system, equipment and storage medium for updating file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110111153.3A CN114817276A (en) 2021-01-27 2021-01-27 Method, system, equipment and storage medium for updating file

Publications (1)

Publication Number Publication Date
CN114817276A true CN114817276A (en) 2022-07-29

Family

ID=82525109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110111153.3A Pending CN114817276A (en) 2021-01-27 2021-01-27 Method, system, equipment and storage medium for updating file

Country Status (1)

Country Link
CN (1) CN114817276A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361462A (en) * 2022-08-26 2022-11-18 中国银行股份有限公司 Method and device for updating mobile phone application program file

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361462A (en) * 2022-08-26 2022-11-18 中国银行股份有限公司 Method and device for updating mobile phone application program file
CN115361462B (en) * 2022-08-26 2024-02-23 中国银行股份有限公司 Method and device for updating mobile phone application Cheng Xuwen case

Similar Documents

Publication Publication Date Title
CN110019350B (en) Data query method and device based on configuration information
CN112769706B (en) Componentized routing method and system
CN110555030A (en) SQL statement processing method and device
CN111125064B (en) Method and device for generating database schema definition statement
CN111652003A (en) Language translation processing method, device, electronic equipment and medium
CN114817276A (en) Method, system, equipment and storage medium for updating file
CN114153473A (en) Module integration method, device, storage medium and electronic equipment
CN108694172B (en) Information output method and device
CN110888794A (en) Interface test method and device
CN113760948A (en) Data query method and device
CN110555178B (en) Data proxy method and device
CN112988583A (en) Method and device for testing syntax compatibility of database
CN110727677B (en) Method and device for tracing blood relationship of table in data warehouse
CN114489674A (en) Data verification method and device of dynamic data model
CN113535221A (en) Method and device for managing application version
CN112486546A (en) SQLITE database upgrading method, device, terminal and system
CN113806327A (en) Database design method and device and related equipment
CN113420010B (en) Database management method, device, electronic equipment and storage medium
CN113778886B (en) Processing method and device for test cases
CN108984189B (en) Module parsing method and device
CN112988528B (en) Log processing method, device and container group
CN116610706A (en) Data blood-edge analysis method, server and system
CN113760349A (en) Mirror image upgrading method and device
CN113760314A (en) Page module control method and device, electronic equipment and storage medium
CN117195921A (en) Translation method, device and storage medium applied to translation platform

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