Seal dismounting processing method and device, server and storage medium

By introducing a version number management mechanism in the EPUB chapter dismantling processing, the problem that EPUB files cannot be automatically updated after the chapter dismantling algorithm is updated, and the chapter dismantling results in the cache server are automatically updated, which improves the reading experience.

CN119903035APending Publication Date: 2025-04-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311426418.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

During the process of breaking the chapters of EPUB articles, it is difficult for the existing technology to effectively handle the update of the breaking the chapters of EPUB, resulting in the inability to update the EPUB files in the cache server automatically, affecting the reading experience.

Method used

A version number management mechanism is introduced, which corresponds to the version number of the EPUB file one by one. By comparing the version number, it is necessary to determine whether the result of the chapter is updated. When the chapter breaking algorithm is updated, the updated algorithm is used to reprocess and update the chapter breaking results in the cache server.

Benefits of technology

It realizes that when the chapter-breaking algorithm is updated, the EPUB files in the cache server are automatically updated, ensuring that readers can obtain the latest chapter-breaking results, improving the reading experience, and reducing the complexity and workload of artificially managed versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903035A_ABST
    Figure CN119903035A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a seal splitting processing method and device, a server and a storage medium, in the embodiment of the invention, when an acquisition request of a client of a target application for a target article is acquired, a first version number and a second version number are acquired, and if the first version number is different from the second version number, the target article is split. If yes, adopting a seal splitting algorithm corresponding to the second version number to perform seal splitting processing on the target article again to obtain a new seal splitting result, and adopting the new seal splitting result and the second version number to update the target seal splitting result of the target article stored in the cache server and the corresponding first version number; when a seal splitting algorithm update trigger operation for the target application is obtained, obtaining a third version number and a fourth version number, determining an update mode, if the update mode is the first mode, obtaining new seal splitting results corresponding to all articles stored in the cache server, and if the update mode is the second mode, updating the new seal splitting results; and updating the cache server by adopting the new seal splitting result of each article and the fourth version number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology. Specifically, the present application relates to a method, device, server and storage medium for chapter splitting processing. Background Art

[0002] Electronic Publication (EPUB) is usually used as a standard format in electronic readers such as digital publications and electronic magazines. Since EPUB format articles have the feature of adaptive typesetting according to the display size and font settings, EPUB format is widely used in electronic reading. When reading EPUB articles, the client usually needs to obtain all EPUB articles from the server, parse them and display them on the client interface.

[0003] In order to facilitate readers' reading and solve the problem of abnormal client rendering due to excessively large chapters, EPUB articles need to be split into chapters, that is, large chapters are split into small chapters. When splitting EPUB articles into chapters, a certain splitting algorithm is used. However, in actual application, the splitting algorithm may be updated. Therefore, when the splitting algorithm is updated, how to split EPUB articles into chapters becomes a key issue. Summary of the invention

[0004] The purpose of the embodiment of the present application is to provide a method for performing chapter decomposition processing on EPUB when the chapter decomposition algorithm is updated. In order to achieve the above purpose, the technical solution provided by the embodiment of the present application is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for chapter splitting, which is executed by a first server, and the method includes:

[0006] When obtaining a request for obtaining a target article from a client of a target application, obtaining a first version number and a second version number, wherein the first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application;

[0007] If the first version number and the second version number are different, re-processing the target article by using the chapter-breaking algorithm corresponding to the second version number to obtain a new chapter-breaking result, and updating the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server by using the new chapter-breaking result and the second version number;

[0008] When a trigger operation for updating the chapter-breaking algorithm for the target application is obtained, a third version number and a fourth version number are obtained, wherein the third version number and the fourth version number are respectively: a version number of the chapter-breaking algorithm before the update and a version number of the chapter-breaking algorithm after the update corresponding to the target application;

[0009] Determine an update mode according to the third version number and the fourth version number, the update mode being the first mode or the second mode;

[0010] If the first method is used, new chapter-breaking results corresponding to all articles stored in the cache server are obtained, and the new chapter-breaking results of each article and the fourth version number are used to update the chapter-breaking results and corresponding version numbers of each article stored in the cache server. The new chapter-breaking results are obtained by using the updated chapter-breaking algorithm.

[0011] In a possible implementation, the version number of any chapter decomposition algorithm includes a first sub-version number and a second sub-version number, and the updating method is determined according to the third version number and the fourth version number, and the updating method is the first method or the second method, including:

[0012] If the first sub-version number of the third version number is different from the first sub-version number of the fourth version number, determining that the update mode is the first mode;

[0013] If the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, the update method is determined to be the second method.

[0014] In another possible implementation, the method further includes:

[0015] When a start request of a client of the target application is detected, a fifth version number and a sixth version number corresponding to each locally stored article are obtained, wherein the fifth version number is the version number of the chapter decomposition algorithm corresponding to each locally stored article, and the sixth version number is the version number corresponding to the chapter decomposition result of each article stored in the cache server;

[0016] For each article stored locally, if the fifth version number and the sixth version number are different, the chapter-breaking result of each article is obtained from the cache server, and the chapter-breaking result of each article and the sixth version number are sent to the client of the target application to update the chapter-breaking result of each article stored locally and the corresponding version number.

[0017] In another possible implementation, the obtaining of new chapter splitting results corresponding to all articles stored in the cache server includes:

[0018] Obtaining the current chapter splitting results corresponding to all articles from the cache server;

[0019] Sending the current chapter decomposition results corresponding to all the articles to the second server, so that the second server performs a re-chapter decomposition process based on the chapter decomposition results of all the articles and according to the updated chapter decomposition algorithm;

[0020] New chapter splitting results corresponding to all articles stored in the cache server are obtained from the second server.

[0021] In another possible implementation, the step of obtaining the current chapter splitting results corresponding to all articles from the cache server includes:

[0022] Determine a target acquisition order of the current chapter splitting results, wherein the target acquisition order is the reverse order of the first order, wherein the first order is the order in which the chapter splitting results of each article in all the articles are uploaded to the cache server;

[0023] The current chapter splitting results corresponding to all articles are obtained from the cache server according to the target acquisition order of the current chapter splitting results.

[0024] In another possible implementation, obtaining the first version number includes:

[0025] Performing hash calculation on the target article to obtain a hash result of the target article;

[0026] Based on the hash result of the target article, searching the cache server for the chapter splitting result of the target article;

[0027] If the chapter-breaking result of the target article is found, the version number corresponding to the chapter-breaking result of the target article is obtained as the first version number.

[0028] In another possible implementation, the method further includes:

[0029] If no chapter decomposition result of the target article is found, the target article is decomposition processed according to the chapter decomposition algorithm currently used by the target application;

[0030] Upload the chapter splitting result and the second version number to the cache server for associated storage;

[0031] The decapsulation result is returned to the client of the target application.

[0032] In another possible implementation, if the first version number is the same as the second version number, the method further includes:

[0033] The target chapter splitting result of the target article is obtained from the cache server and returned to the client of the target application.

[0034] In a second aspect, a device for chapter disassembly processing is provided, the device comprising:

[0035] A first acquisition module is used to acquire a first version number and a second version number when acquiring an acquisition request for a target article from a client of a target application, wherein the first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application;

[0036] A first updating module is used for, when the first version number and the second version number are different, re-processing the target article by using the chapter-breaking algorithm corresponding to the second version number to obtain a new chapter-breaking result, and updating the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server by using the new chapter-breaking result and the second version number;

[0037] A second acquisition module is used to acquire a third version number and a fourth version number when an update trigger operation of the chapter decomposition algorithm for the target application is acquired, wherein the third version number and the fourth version number are respectively: a version number of the chapter decomposition algorithm before the update and a version number of the chapter decomposition algorithm after the update corresponding to the target application;

[0038] An update mode determination module, used to determine an update mode according to the third version number and the fourth version number, the update mode being the first mode or the second mode;

[0039] The second updating module is used for obtaining new chapter-breaking results corresponding to all articles stored in the cache server when the updating method is the first method, and updating the chapter-breaking results and corresponding version numbers of each article stored in the cache server by using the new chapter-breaking results of each article and the fourth version number, wherein the new chapter-breaking results are obtained by using the updated chapter-breaking algorithm.

[0040] In a possible implementation, the update mode is the first mode or the second mode, the version number of any chapter decomposition algorithm includes a first sub-version number and a second sub-version number, and the update mode determination module is specifically used to determine the update mode according to the third version number and the fourth version number:

[0041] If the first sub-version number of the third version number is different from the first sub-version number of the fourth version number, determining that the update mode is the first mode;

[0042] If the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, the update method is determined to be the second method.

[0043] In another possible implementation, the device further includes: a third acquisition module, a fourth acquisition module, and a sending module, wherein:

[0044] The third acquisition module is used to acquire the fifth version number and the sixth version number corresponding to each locally stored article when a startup request of the client of the target application is detected, wherein the fifth version number is the version number of the chapter decomposition algorithm corresponding to each locally stored article, and the sixth version number is the version number corresponding to the chapter decomposition result of each article stored in the cache server;

[0045] The fourth acquisition module is used for acquiring the chapter splitting result of each article stored locally from the cache server if the fifth version number and the sixth version number are different;

[0046] The sending module is used to send the chapter-breaking result of each article and the sixth version number to the client of the target application to update the chapter-breaking result of each article and the corresponding version number stored locally.

[0047] In another possible implementation, when the second updating module obtains the new chapter splitting results corresponding to all articles stored in the cache server, it is specifically used to:

[0048] Obtaining the current chapter splitting results corresponding to all articles from the cache server;

[0049] Sending the current chapter decomposition results corresponding to all the articles to the second server, so that the second server performs a re-chapter decomposition process based on the chapter decomposition results of all the articles and according to the updated chapter decomposition algorithm;

[0050] New chapter splitting results corresponding to all articles stored in the cache server are obtained from the second server.

[0051] In another possible implementation, when the second updating module obtains the current chapter splitting results corresponding to all articles from the cache server, it is specifically used to:

[0052] Determine a target acquisition order of the current chapter splitting results, wherein the target acquisition order is the reverse order of the first order, wherein the first order is the order in which the chapter splitting results of each article in all the articles are uploaded to the cache server;

[0053] The current chapter splitting results corresponding to all articles are obtained from the cache server according to the target acquisition order of the current chapter splitting results.

[0054] In another possible implementation, when acquiring the first version number, the first acquisition module is specifically configured to:

[0055] Performing hash calculation on the target article to obtain a hash result of the target article;

[0056] Based on the hash result of the target article, searching the cache server for the chapter splitting result of the target article;

[0057] If the chapter-breaking result of the target article is found, the version number corresponding to the chapter-breaking result of the target article is obtained as the first version number.

[0058] In another possible implementation, the device further includes: a chapter splitting processing module, an uploading module, and a first returning module, wherein:

[0059] The chapter decomposition processing module is used for performing chapter decomposition processing on the target article according to the chapter decomposition algorithm currently used by the target application when no chapter decomposition result of the target article is found;

[0060] The uploading module is used to upload the chapter splitting result and the second version number to the cache server for associated storage;

[0061] The first returning module is used to return the chapter splitting result to the client of the target application.

[0062] In another possible implementation, if the first version number is the same as the second version number, the apparatus further includes: a fifth obtaining module and a second returning module, wherein:

[0063] The fifth acquisition module is used to acquire the target chapter decomposition result of the target article from the cache server;

[0064] The second returning module is used to return to the client of the target application.

[0065] In a third aspect, an embodiment of the present application further provides a server, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the method for chapter splitting processing provided by any possible implementation method of the first aspect.

[0066] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for chapter splitting processing provided by any possible implementation method of the fifth aspect is implemented.

[0067] In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method for chapter splitting processing provided by any possible implementation method of the fifth aspect.

[0068] The beneficial effects of the technical solution provided by the embodiment of the present application are as follows:

[0069] An embodiment of the present application provides a method, device, server and storage medium for chapter decomposition processing. In an embodiment of the present application, in one case, when a request for obtaining a target article from a client of a target application is obtained, the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server and the version number of the chapter decomposition algorithm currently used by the target application are obtained. If the first version number and the second version number are different, the chapter decomposition algorithm may be changed. At this time, the chapter decomposition algorithm corresponding to the second version number is used to re-decompose the target article to obtain a new chapter decomposition result, and the new chapter decomposition result and the second version number are used to update the target chapter decomposition result and the corresponding first version number of the target article stored in the cache server; in another case Under the present invention, when the update trigger operation of the chapter-breaking algorithm for the target application is obtained, the version number of the chapter-breaking algorithm before the update and the version number of the chapter-breaking algorithm after the update corresponding to the target application are obtained, and then the update method can be determined as the first method or the second method according to the version number of the chapter-breaking algorithm before the update and the version number of the chapter-breaking algorithm after the update, and if it is the first method, the new chapter-breaking results corresponding to all the articles stored in the cache server are obtained, and the chapter-breaking results and the corresponding version numbers of each article stored in the cache server are updated by using the new chapter-breaking results of each article and the version number of the updated chapter-breaking algorithm, and the new chapter-breaking result is obtained by using the updated chapter-breaking algorithm to break the chapters, so that when the chapter-breaking algorithm is updated, the chapter-breaking processing of the articles can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.

[0071] Figure 1 A schematic diagram of a service architecture for EPUB chapter stripping involved in the related technology;

[0072] Figure 2 A flowchart of EPUB chapter decomposition processing involved in the related technology;

[0073] Figure 3 This is a flow chart of a method for seal removal processing in an embodiment of the present application;

[0074] Figure 4 This is a schematic diagram of a service architecture for EPUB chapter decomposition in an embodiment of the present application;

[0075] Figure 5 A schematic diagram of the flow of chapter splitting processing corresponding to a major version update in an embodiment of the present application;

[0076] Figure 6 A schematic diagram of a process of updating a local storage article on a client in an embodiment of the present application;

[0077] Figure 7 A schematic diagram of the flow of chapter removal processing corresponding to a minor version update in an embodiment of the present application;

[0078] Figure 8 This is a schematic diagram of a device structure for seal removal processing in an embodiment of the present application;

[0079] Fig. 9 The present invention is a schematic diagram of a server device structure in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0081] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B". When describing multiple (two or more) items, if the relationship between the multiple items is not clearly defined, the multiple items may refer to one, multiple or all of the multiple items. For example, the description of "parameter A includes A1, A2, A3" can be implemented as parameter A including A1 or A2 or A3, and can also be implemented as parameter A including at least two of the three items A1, A2, A3.

[0082] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0083] Electronic Publication (EPUB): is a free and open standard that is a type of content that can be "automatically rearranged"; that is, the text content can be displayed in the most suitable way for reading according to the characteristics of the reading device. Book readers have relatively complete support for EPUB. The graphic and text information in EPUB is displayed in the form of HTML.

[0084] Target object: refers to the user, and in the embodiment of the present application, may refer to the person who uses the book reader, or the person who views the chapter splitting result;

[0085] It should be noted that EPUB is used as an example in the embodiments of the present application, but it is not limited to EPUB, and graphic information in any format is within the protection scope of the embodiments of the present application;

[0086] Cloud Object Storage (COS): is a distributed storage service for storing massive files, with the advantages of high scalability, low cost, reliability and security.

[0087] It should be noted that COS is used as an example in the embodiments of the present application, but it is not limited to COS, and any storage server is within the protection scope of the embodiments of the present application;

[0088] Message-Digest Algorithm 5 (MD5): is a hash algorithm for information security. The MD5 value is a string of 128-bit data. The core of MD5 is to map raw data of any length into 128-bit data through an algorithm;

[0089] Secure Hash Algorithm (SHA): including SHA-1, SHA-2 and SHA-3. SHA-1 generates a 160-bit (20-byte) hash value, while SHA-2 can generate hash values ​​of different lengths according to specific needs, such as SHA-256, SHA-384 and SHA-512. SHA-3 is the latest version with higher security;

[0090] Cyclic Redundancy Check 32 (CRC32): is a cyclic redundancy check algorithm, mainly used for error detection during data transmission. It can generate a 32-bit (4-byte) hash value and is easy to calculate and use;

[0091] Tiger: Tiger is a highly secure hash algorithm that can generate 192-bit (24-byte) hash values ​​and has high anti-collision properties and security.

[0092] Blake: Compared with other hash algorithms, Blake has higher security and faster processing speed. It can generate hash values ​​of different lengths, such as Blake-224, Blake-256, Blake-384, and Blake-512.

[0093] In the related art, the results of EPUB splitting will be stored on COS. When the next identical EPUB arrives, the parsed EPUB cache will be directly returned to the user from COS. However, since the generated EPUB has no concept of version, once the cache on COS is formed, unless the cache is manually deleted or the expiration time is set, even if the splitting rules are changed, the EPUB on COS cannot be updated. It should be noted that the EPUB involved in the embodiments of the present application refers to articles in EPUB format.

[0094] The embodiment of the present application proposes a version management solution for cache files. Each EPUB decomposition algorithm has a version number, and the converted EPUB file also has the same version number. When the algorithm is updated, the version number must also be updated accordingly. When there is a new EPUB decomposition task, the EPUB file version on the COS will be compared with the version number of the current algorithm to see if it matches. If it does not match, a new EPUB will be regenerated using the new decomposition algorithm. In addition, the processing difference between major and minor versions is designed. When the major version is updated, the background server needs to actively update the decomposition EPUB in full. When the minor version is updated, just check the version and update it when the user uploads it.

[0095] EPUB chapter splitting is a backend service that splits large chapters into smaller ones to solve the problem of abnormal client rendering caused by some chapters being too large. The current chapter splitting process is to receive a user request, first calculate the Md5 of the requested EPUB, and then search COS for converted EPUB files through Md5. If there are any, the conversion result is directly returned to the user; if not, the backend EPUB chapter splitting service processes the conversion task, generates a new EPUB file, and uploads it to COS with the original EPUB Md5 as the file name as a cache.

[0096] The current service architecture of the entire EPUB chapter splitting is as follows Figure 1 As shown, each target object can interact with the access layer through its own corresponding client (for example, target object 1 interacts with the access layer through client 1, target object 2 interacts with the access layer through client 2, ..., target object N interacts with the access layer through client 3). For example, the way in which target object 1 interacts with the access layer through client 1 is that target object 1 sends a request for EPUB decapsulation through the client, the access layer calculates the MD5 of the EPUB, and then searches for the decapsulation result corresponding to the MD5 in the COS. If the decapsulation result corresponding to the MD5 is found, the decapsulation result is downloaded. If the decapsulation result corresponding to the MD5 is not found, the EPUB decapsulation request is sent to the message queue, and the EPUB decapsulation service obtains the decapsulation request from the message queue to decapsulate the EPUB and uploads the decapsulation result to the COS.

[0097] It should be noted that the service architecture of EPUB chapter deconstruction may include multiple EPUB chapter deconstruction services, or may include only one EPUB chapter deconstruction service.

[0098] Further, through Figure 2The specific processing flow is introduced. The access layer receives the EPUB de-chaptering request of the target object, then calculates the MD5 of the EPUB, and then searches the COS for a corresponding de-chaptering result based on the MD5. If so, the corresponding de-chaptering result is obtained from the COS and returned to the target object; if not, the EPUB de-chaptering service de-chaps the EPUB to obtain the corresponding de-chaptering result, and uploads the de-chaptering result to the COS with the MD5 of the EPUB as the file name.

[0099] Since the results of EPUB chapter splitting will be stored on COS as a cache for subsequent EPUB chapter splitting, but there is no corresponding cache update mechanism, if there is an update to the conversion algorithm, if the cache file on COS is not updated or deleted, the conversion result of the old algorithm will always be returned to the target object, which is not in line with expectations. The solution of related technology is that the administrator can only manually delete the EPUB files that need to be updated on COS. However, this method is unsustainable, very error-prone, and quite wasteful.

[0100] In order to solve the problem that the EPUB files on the COS cache cannot be automatically updated after the EPUB chapter splitting algorithm is updated, this solution adds the concept of version number, sets the algorithm and the EPUB file on COS to the same version number, and makes the version numbers of the algorithm and the EPUB file correspond one to one. In the embodiment of the present application, a two-segment version number is designed, and the minor version number is used for the lazy update mentioned above after the change. When encountering a chapter splitting request for EPUB with the same Md5, the current algorithm version number will be compared with the EPUB version number first. If they are the same, it will be returned directly; if the version numbers are different, they need to be re-converted with a new algorithm version, and then uploaded to COS after conversion. It will be actively updated after the major version number is changed. For example, when encountering a more serious conversion algorithm program error (bug), all cached results on COS need to be re-parsed.

[0101] It should be noted that the service architecture of EPUB chapter deconstruction may include multiple EPUB chapter deconstruction services, or may include only one EPUB chapter deconstruction service.

[0102] Since the embodiment of the present application is a technical upgrade solution, the operation of the target object on the product side will not change. Uploading and reading books are the same as the current process, except that the latest EPUB chapter splitting results can be experienced in a timely manner.

[0103] Further, a method for removing a seal is described through detailed embodiments and in conjunction with the accompanying drawings. Figure 3 As shown, it is executed by the first server. In the embodiment of the present application, the first server may include the access layer and the EPUB chapter separation service as shown above. The method may include:

[0104] Step S301: upon receiving a request from a client of a target application for obtaining a target article, a first version number and a second version number are obtained.

[0105] For the embodiment of the present application, the client of the target application can be any client of an application that can read articles. The first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application.

[0106] Specifically, the cache server stores chapter decomposition results corresponding to multiple articles. When a request for obtaining a target article is received, that is, the client of the target application requests to obtain the chapter decomposition result corresponding to the target article from the cache server, the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server is obtained, and the version number of the chapter decomposition algorithm currently used by the target application is obtained.

[0107] Further, in the embodiment of the present application, the version number of the chapter-breaking algorithm corresponding to the target article represents the version number of the chapter-breaking algorithm based on which the target article is broken, and the version number of the chapter-breaking algorithm currently used by the target application is the version number of the latest chapter-breaking algorithm. That is, in the embodiment of the present application, the first version number and the second version number may be the same or different.

[0108] Step S302: If the first version number and the second version number are different, the chapter-breaking algorithm corresponding to the second version number is used to re-break the target article to obtain a new chapter-breaking result, and the new chapter-breaking result and the second version number are used to update the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server.

[0109] For the embodiment of the present application, if the first version number and the second version number are different, that is, the chapter-breaking result of the target article currently stored in the cache server is not based on the chapter-breaking processing performed by the current latest chapter-breaking algorithm, therefore, at this time, the latest chapter-breaking algorithm (that is, the chapter-breaking algorithm corresponding to the second version number) can be used to re-process the target article to obtain a new chapter-breaking result, and based on the new chapter-breaking result and the corresponding second version number, the chapter-breaking result stored in the cache server and the corresponding first version number are updated.

[0110] For example, the target article is Article 1, and the cache server stores the chapter-breaking result of Article 1 and the corresponding version number 1.2, that is, the version number corresponding to the chapter-breaking result of Article 1 stored in the cache server is 1.2, that is, the first version number is 1.2, and the version number of the current latest chapter-breaking algorithm (the second version number) is 1.3, that is, the first version number and the second version number are different. Then, based on the current latest chapter-breaking algorithm, Article 1 is re-chaptered to obtain a new chapter-breaking result of Article 1. At this time, in the cache server, the new chapter-breaking result of Article 1 and the corresponding version number 1.3 replace the chapter-breaking result of Article 1 and the corresponding version number 1.2, that is, after the replacement, the cache server stores the new chapter-breaking result of Article 1 and the corresponding version number 1.3.

[0111] Step S303: upon obtaining a trigger operation for updating the chapter splitting algorithm for the target application, obtaining a third version number and a fourth version number.

[0112] Among them, the third version number and the fourth version number are respectively: the version number of the chapter-breaking algorithm before the update and the version number of the chapter-breaking algorithm after the update corresponding to the target application. In an embodiment of the present application, the chapter-breaking algorithm update trigger operation for the target application may include: detecting the updated chapter-breaking algorithm uploaded by the management object, and may also include: detecting the updated chapter-breaking algorithm uploaded by the management object and detecting the re-chapter-breaking operation triggered by the management object.

[0113] Specifically, the chapter decomposition algorithm before the update and the chapter decomposition algorithm after the update are both used for decomposition processing of articles, and the chapter decomposition methods corresponding to the chapter decomposition algorithm before the update and the chapter decomposition algorithm after the update are different.

[0114] Step S304: determine the update method according to the third version number and the fourth version number.

[0115] Among them, the updating method is the first method or the second method. In the embodiment of the present application, the updating strength of the chapter-breaking algorithm represented by the first method is greater than the updating strength of the updating algorithm represented by the second method. In the embodiment of the present application, the updating strength of the chapter-breaking algorithm refers to the updating strength of the updated chapter-breaking algorithm relative to the chapter-breaking algorithm before the update. The updating strength can refer to the degree of change of the algorithm, and can also refer to the adjustment strength of the chapter-breaking method for the article.

[0116] Step S305: If it is the first method, then obtain the new chapter-breaking results corresponding to all articles stored in the cache server, and use the new chapter-breaking results corresponding to each article and the fourth version number to update the chapter-breaking results and corresponding version numbers of each article stored in the cache server.

[0117] Among them, the new chapter-breaking result is obtained by using the updated chapter-breaking algorithm.

[0118] For example, if the cache server currently stores the chapter-breaking results corresponding to article 1 and the chapter-breaking results corresponding to article 2, and if the update method determined at this time is the first update method, then the new chapter-breaking results corresponding to article 1 and the new chapter-breaking results corresponding to article 2 are obtained, and based on the new chapter-breaking results corresponding to article 1 and the corresponding fourth version number, the chapter-breaking results corresponding to article 1 and the third version number currently stored in the cache server are updated, and based on the new chapter-breaking results corresponding to article 2 and the corresponding fourth version number, the chapter-breaking results corresponding to article 2 and the third version number currently stored in the cache server are updated.

[0119] Specifically, obtaining new chapter-breaking results corresponding to all articles stored in the cache server may also include: performing chapter-breaking processing on the current chapter-breaking results of all articles stored in the cache server according to the updated chapter-breaking algorithm to obtain new chapter-breaking results corresponding to all articles. In the embodiment of the present application, performing chapter-breaking processing on the current chapter-breaking results of all articles stored in the cache server according to the updated chapter-breaking algorithm may be implemented by the first server or by the second server.

[0120] If implemented by the first server, that is, when the first server determines that the update method is the first method according to the third version number and the fourth version number, the chapter decomposition results of all articles are obtained from the cache server, and the updated chapter decomposition algorithm is used to re-process all articles to obtain new chapter decomposition results of all articles, and the cache server is updated based on the new chapter decomposition results of all articles and the corresponding fourth version number;

[0121] If implemented by the second server, the first server obtains the new chapter-breaking results corresponding to all articles stored in the cache server, which may specifically include: the first server obtains the current chapter-breaking results corresponding to all articles from the cache server; the first server sends the current chapter-breaking results corresponding to all articles to the second server, so that the second server performs re-chapter-breaking processing based on the chapter-breaking results of all articles and in accordance with the updated chapter-breaking algorithm; the first server obtains the new chapter-breaking results corresponding to all articles stored in the re-cached server from the second server. That is, the first server determines that the update method is the first method according to the third version number and the fourth version number, then the first server obtains the chapter-breaking results corresponding to all currently stored articles from the cache server, and then sends the chapter-breaking results corresponding to these articles to the second server. After receiving the chapter-breaking results corresponding to these articles, the second server performs re-chapter-breaking processing according to the updated chapter-breaking algorithm, and then the second server sends the re-chapter-breaking results to the first server, and the first server uploads the re-chapter-breaking results to the cache server. In an embodiment of the present application, the updated chapter decomposition algorithm can be sent by the first server to the second server, or the first server sends the location information of the updated chapter decomposition algorithm to the second server, so that the second server obtains the updated chapter decomposition algorithm according to the location information, or the updated chapter decomposition algorithm is stored in a preset location, and the second server directly obtains the updated chapter decomposition algorithm from the preset location.

[0122] Of course, after the second server re-processes the chapter-breaking results corresponding to these articles according to the updated chapter-breaking algorithm, it can directly upload the re-processed results to the cache server. In the embodiment of the present application, the second server re-processes the chapter-breaking results of all articles in the cache server according to the updated chapter-breaking algorithm to obtain the re-processed chapter-breaking results corresponding to these articles, that is, an offline service is adopted, which does not affect the normal operation of the first server (chapter-breaking operation), but the common use of a cache server can ensure that the article will only be parsed once, which can reduce the load pressure of the first server.

[0123] Specifically, obtaining the current chapter splitting results corresponding to all articles from the cache server may specifically include: determining a target acquisition order of the current chapter splitting results; and obtaining the current chapter splitting results corresponding to all articles from the cache server according to the target acquisition order of the current chapter splitting results.

[0124] The target acquisition order is the reverse order of the first order, and the first order is the order in which the chapter splitting results of all articles are uploaded to the cache server. That is, when the first server obtains the current chapter splitting results corresponding to all articles from the cache server, the current chapter splitting results corresponding to these articles are sorted in the reverse order in which they are uploaded to the cache server to obtain the corresponding current chapter splitting results.

[0125] For example, the cache server currently stores the current chapter-breaking result corresponding to article 1 and the current chapter-breaking result corresponding to article 2, wherein the upload time of the current chapter-breaking result corresponding to article 1 is earlier than the current chapter-breaking result corresponding to article 2. Therefore, the first server first obtains the current chapter-breaking result corresponding to article 2, and then obtains the current chapter-breaking result corresponding to article 1;

[0126] Furthermore, although the current chapter-breaking results corresponding to each article in all articles are obtained in the target acquisition order, when the current chapter-breaking results corresponding to these articles are re-processed according to the updated chapter-breaking algorithm, the current chapter-breaking results corresponding to these articles can also be re-processed according to the target acquisition order, and the current chapter-breaking algorithms corresponding to these articles can also be re-processed according to the updated chapter-breaking algorithm at the same time, or the current chapter-breaking results corresponding to some articles can be re-processed according to the target acquisition order first, and then the current chapter-breaking results corresponding to another part of the articles can be re-processed, which is not limited in the embodiments of the present application.

[0127] Furthermore, in addition to obtaining the current chapter-breaking results corresponding to all articles from the cache server in the above-mentioned target acquisition order, the current chapter-breaking results corresponding to all articles can also be obtained from the cache server at the same time, or the order of obtaining the current chapter-breaking results corresponding to all articles from the cache server can be determined according to the popularity of the articles to obtain the current chapter-breaking results corresponding to all articles from the cache server. In the embodiment of the present application, the popularity of the article refers to the number of times the chapter-breaking results corresponding to the article are downloaded, etc.

[0128] For example, the cache server currently stores the current chapter-breaking result corresponding to article 1 and the current chapter-breaking result corresponding to article 2, wherein the current chapter-breaking result corresponding to article 1 has been downloaded 10 times, and the current chapter-breaking result corresponding to article 2 has been downloaded 9 times, that is, the popularity of the current chapter-breaking result corresponding to article 1 is greater than the popularity of the current chapter-breaking result corresponding to article 2. Therefore, the first server first obtains the current chapter-breaking result corresponding to article 1 from the cache server, and then obtains the current chapter-breaking result corresponding to article 2.

[0129] Furthermore, no matter in which acquisition order the current chapter-breaking results corresponding to these articles are obtained from the cache server, and the current chapter-breaking results corresponding to these articles are re-processed according to the updated chapter-breaking algorithm, please refer to the above embodiment for details and will not be repeated here.

[0130] It should be noted that there is no strict execution order between step S301-step S302 and step S303-step S305. The execution order shown in the embodiment of the present application is only one possible implementation. For example, step S303-step S305 can also be executed before step S301-step S302, or only step S301-step S302 or only step S303-step S305 can be executed, which is not limited in the embodiment of the present application.

[0131] Specifically, the version number of any decomposition algorithm includes a first sub-version number and a second sub-version number, that is, whether it is the first version number, the second version number, the third version number, or the fourth version number, it can include the first sub-version number and the second sub-version number. For example, if a version number is 1.2, the first sub-version number can be 1 and the second sub-version number can be 2.

[0132] Further, in an embodiment of the present application, the update method is determined according to the third version number and the fourth version number, and the update method is the first method or the second method, which may specifically include: if the first sub-version number of the third version number and the first sub-version number of the fourth version number are different, the update method is determined to be the first method; if the second sub-version number of the third version number and the second sub-version number of the fourth version number are different, and the first sub-version number of the third version number and the first sub-version number of the fourth version number are the same, the update method is determined to be the second method.

[0133] Specifically, if the first sub-version number of the third version number and the first sub-version number of the fourth version number are different, the update method is determined to be the first method. That is, the first sub-version number of the third version number and the first sub-version number of the fourth version number are different, and the second sub-version number of the third sub-version number and the second sub-version number of the fourth version number are the same, then the update method is determined to be the first method. Alternatively, if the first sub-version number of the third version number and the first sub-version number of the fourth version number are different, and the second sub-version number of the third sub-version number and the second sub-version number of the fourth version number are different, then the update method is determined to be the first method. That is, regardless of whether the second sub-version number of the third version number and the second sub-version number of the fourth version number are the same, as long as the first sub-version number of the third version number and the first sub-version number of the fourth version number are different, then the update method is determined to be the first method.

[0134] For example, if the third version number is 1.2, that is, the first sub-version number of the third version number is 1, the second sub-version number of the third version number is 2, and the fourth version number is 2.2, that is, the first sub-version number of the fourth version number is 2, and the second sub-version number is 2, then the update method determined based on the third version number and the fourth version number is the first method; if the third version number is 1.2, that is, the first sub-version number of the third version number is 1, the second sub-version number of the third version number is 2, and the fourth version number is 2.0, that is, the first sub-version number of the fourth version number is 2, and the second sub-version number is 0, then the update method determined based on the third version number and the fourth version number is the first method.

[0135] Further, if the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, the update method is determined to be the second method. That is, if the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, but the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the second sub-version number of the third version number is less than the second sub-version number of the fourth version number, the update method determined is the second method.

[0136] For example, the third version number is 1.2, that is, the first sub-version number of the third version number is 1, and the second sub-version number is 2; the fourth version number is 1.3, that is, the first sub-version number of the fourth version number is 1, and the second sub-version number is 3, then the determined update method is the second method.

[0137] Further, if the determined update method is the first method, please refer to the above embodiment for details; if the determined update method is the second method, the second order of the current chapter splitting result can also be obtained, and the second order is the sorting result of each article in all articles according to the download popularity; based on the second order, the current chapter splitting result corresponding to each of the previously preset number of articles is obtained; the new chapter splitting result corresponding to each of the previously preset number of articles is obtained, wherein the new chapter splitting result corresponding to each of the previously preset number of articles is the result of re-processing the current chapter splitting result corresponding to each of the previously preset number of articles according to the updated chapter splitting algorithm; based on the new chapter splitting result corresponding to each of the previously preset number of articles and the corresponding fourth version number, the chapter splitting result of the corresponding article in the cache server is updated.

[0138] It should be noted that the way in which the first server obtains new chapter-breaking results corresponding to each of the previously preset number of articles may include: the first server performs chapter-breaking processing on each of the previously preset number of articles according to the updated chapter-breaking algorithm to obtain the corresponding new chapter-breaking results, or the second server performs chapter-breaking processing on each of the previously preset number of articles according to the updated chapter-breaking algorithm to obtain the corresponding new chapter-breaking results, and sends each new chapter-breaking result to the first server.

[0139] For example, the cache server stores the current chapter-breaking result corresponding to article 1, the current chapter-breaking result corresponding to article 2, and the current chapter-breaking result corresponding to article 3, which are sorted from high to low in order of download popularity: article 2, article 1, and article 3. Article 2 and article 1 can be respectively de-chaptered by the first server or the second server according to the updated chapter-breaking algorithm to obtain their respective corresponding new chapter-breaking results, so as to update the chapter-breaking result and third version number corresponding to article 1 stored in the cache server with the new chapter-breaking result and fourth version number corresponding to article 1, and the chapter-breaking result and third version number corresponding to article 2 stored in the cache server with the new chapter-breaking result and fourth version number corresponding to article 1.

[0140] Furthermore, in another possible implementation, if the determined update method is the second method, the lazy processing strategy is executed; wherein, the lazy processing strategy is detailed in the above steps S301-S302, that is, when the acquisition request for the target article from the client of the target application is obtained, the first version number and the second version number are obtained; if the first version number and the second version number are different, the chapter decomposition algorithm corresponding to the second version number is used to re-decompose the target article to obtain a new chapter decomposition result, and the new chapter decomposition result and the second version number are used to update the target chapter decomposition result and the corresponding first version number of the target article stored in the cache server.

[0141] Specifically, obtaining the first version number may include: performing a hash calculation on the target article to obtain a hash result of the target article; based on the hash result of the target article, searching for the chapter-breaking result of the target article from a cache server; if the chapter-breaking result of the target article is found, obtaining the version number corresponding to the chapter-breaking result of the target article as the first version number. In the embodiment of the present application, the hash algorithm may be an MD5 algorithm, a SHA algorithm, a CRC32 algorithm, a Tiger algorithm, and a Blake algorithm. In the embodiment of the present application, the MD5 algorithm is used as an example for introduction.

[0142] For example, the file name corresponding to the chapter-splitting result of each article stored in the cache server is based on the MD5 calculation result generated for each article; when the client of the target application obtains the target article, the MD5 calculation is performed on the target article to obtain the MD5 calculation result, and based on the MD5 calculation result, the cache server is searched to see whether there is the chapter-splitting result of the target article. If the chapter-splitting result of the target article is found, the version number corresponding to the chapter-splitting result of the target article is obtained as the first version number.

[0143] Furthermore, the method further includes: if the chapter-splitting result of the target article is not found, the target article is processed according to the chapter-splitting algorithm currently used by the target application; the chapter-splitting result and the second version number are uploaded to the cache server for associated storage; and the chapter-splitting result is returned to the client of the target application. That is, if the chapter-splitting result of the target article is not found based on the hash result of the target article, which indicates that the chapter-splitting result of the target article is not stored in the cache server, the target article is processed according to the chapter-splitting algorithm currently used by the target application, and then the chapter-splitting result and the second version number are uploaded to the cache server for associated storage, and the chapter-splitting result is returned to the client of the target application. In an embodiment of the present application, the chapter splitting result and the second version number can be first uploaded to the cache server for associated storage, and then the chapter splitting result can be uploaded to the client of the target application, so that the target object can view the chapter splitting result of the target article through the client of the target application. The chapter splitting result can also be returned to the client of the target application first, and then the chapter splitting result and the second version number can be uploaded to the cache server for associated storage. Of course, the chapter splitting result can also be returned to the client of the target application while uploading it to the cache server for associated storage, which is not limited in the embodiment of the present application.

[0144] It should be noted that when the chapter splitting result of the target article is uploaded to the cache server, the chapter splitting result of the target article also carries the hash result of the target article as the article name, that is, it can be an MD5 result.

[0145] Furthermore, the method of obtaining the second version number may include: carrying the version number in the chapter-breaking algorithm currently adopted by the target application, and obtaining the version number of the target application's current chapter-breaking algorithm as the second version number at the same time as obtaining the chapter-breaking algorithm currently adopted by the target application; or, obtaining the version number of the target application's current chapter-breaking algorithm from the target database, that is, obtaining the version number of the target application's current chapter-breaking algorithm from the target database, wherein the target database stores the version number of the target application's current chapter-breaking algorithm.

[0146] Further, if the first version number and the second version number obtained are different, please refer to the embodiment shown in the above step S302 for details; if the first version number and the second version number obtained are the same, the target chapter decomposition result corresponding to the target article currently stored in the cache server is obtained from the cache server, and the chapter decomposition result corresponding to the currently stored target article is returned to the client of the target application, so that the target object can view the corresponding chapter decomposition result from the client of the target application.

[0147] In another possible implementation of the embodiment of the present application, when the trigger operation of updating the chapter-splitting algorithm for the target application is obtained, the third version number and the fourth version number are obtained, which may specifically include: when the trigger operation of updating the chapter-splitting algorithm for the target application is obtained, the third version number and the fourth version number can be obtained from the target database, or the third version number is obtained from the target database, and the fourth version number is obtained from the updated chapter-splitting algorithm, that is, the updated chapter-splitting algorithm carries the fourth version number. In the embodiment of the present application, the third version number and the fourth version number can be stored in the same target database or in different target databases. Further, when the third version number and the fourth version number are different, and the update method determined by the third version number and the fourth version number is the first method, that is, it belongs to a major version update. Since a major version update will bring greater pressure to the background server, a major version upgrade is usually required only when a major parsing error or a format cliff update occurs in the chapter-splitting service.

[0148] It can be seen from the above embodiments that when the update method is the first method, the first server obtains the new chapter-breaking results corresponding to all articles stored in the cache server, and uses the new chapter-breaking results corresponding to each article and the fourth version number to update the chapter-breaking results and corresponding version numbers of each article stored in the cache server.

[0149] That is to say, the chapter-breaking results stored in the cache server at this time are the chapter-breaking results of all articles after the chapter-breaking algorithm is updated. In order to further improve the reading experience of the target object, when the startup request of the client of the target application is detected, the fifth version number and the sixth version number corresponding to each article stored locally are obtained; for each article stored locally, if the fifth version number and the sixth version number are different, the chapter-breaking results of each article are obtained from the cache server, and the chapter-breaking results and the sixth version number of each article are sent to the client of the target application to update the chapter-breaking results and the corresponding version number of each article stored locally. In the embodiment of the present application, the fifth version number is the version number of the chapter-breaking algorithm corresponding to each article stored locally, and the sixth version number is the version number corresponding to the chapter-breaking results of each article stored in the cache server.

[0150] That is to say, after the chapter-breaking results of all articles in the cache server are re-breakup according to the updated chapter-breaking algorithm through a major version update, if a startup request from the client of the target application is detected, the version number corresponding to the chapter-breaking results of the articles stored in the local storage corresponding to the client of the target application is determined, that is, the fifth version number, and the version number corresponding to the chapter-breaking results stored in the corresponding cache server is determined, that is, the sixth version number. For any article, if the fifth version number and the sixth version number are different, the chapter-breaking result corresponding to the article is downloaded from the cache server to replace the corresponding chapter-breaking result in the local storage.

[0151] For example, the local storage stores the chapter-breaking result a corresponding to article 1 and the chapter-breaking result b corresponding to article 2, and their corresponding fifth version numbers are 1.2 and 1.2 respectively. The cache server stores the chapter-breaking result A corresponding to article 1 and its corresponding sixth version number is 2.0, and the chapter-breaking result B corresponding to article 2 and its corresponding sixth version number is 2.0. At this time, the first server downloads the chapter-breaking result A corresponding to article 1 and the chapter-breaking result B corresponding to article 2 from the cache server, and based on the downloaded chapter-breaking result A corresponding to article 1 and its corresponding sixth version number 2.0, replaces the chapter-breaking result a corresponding to article 1 and its corresponding fifth version number 1.2 in the local storage, and replaces the chapter-breaking result b corresponding to article 2 and its corresponding fifth version number 1.2 in the local storage. That is, at this time, the chapter-breaking results of each article stored in the local storage are all the results of chapter-breaking according to the latest chapter-breaking algorithm. Therefore, when the target object reads the chapter-breaking results of the locally stored articles through the client of the target application, they are all the latest chapter-breaking results, so as to further enhance the reading experience.

[0152] In the above embodiment, it is introduced that as long as the client of the target application is started, the chapter-breaking results of all articles stored locally are replaced in the above manner. In another possible implementation method, after the chapter-breaking results of all articles in the cache server are re-chaptered according to the updated chapter-breaking algorithm through a major version update, if a startup request of the client of the target application is detected, the first server determines the chapter-breaking results of the article to be replaced from the local storage, and replaces the chapter-breaking results stored in the local storage in the above manner.

[0153] In an embodiment of the present application, the first server determines the chapter-breaking results of the articles to be replaced from the local storage, which may specifically include: determining the chapter-breaking results of the articles to be replaced according to the number of times these articles in the local storage have been read, for example, the local storage stores the chapter-breaking result a corresponding to article 1 and the chapter-breaking result b corresponding to article 2, wherein article 1 has been read 9 times, article 2 has been read 2 times, and the preset number of times is 5 times, then at this time, the chapter-breaking result of the article to be replaced is determined to be the chapter-breaking result corresponding to article 1, and the specific replacement method is detailed in the above embodiment, which will not be repeated here; further, according to the unread chapters of these articles in the local storage, the chapter-breaking results corresponding to the articles whose unread chapters are greater than the preset chapters can be determined as the chapter-breaking results of the articles to be replaced.

[0154] In another possible implementation, it may also include: when it is detected that the target object opens a locally stored article through the client of the target application, only the fifth version number corresponding to the chapter-breaking result of the locally stored article is determined in the above manner, and the sixth version number corresponding to the chapter-breaking result of the article stored in the cache server is determined; if the fifth version number and the sixth version number are different, the chapter-breaking result corresponding to the article is downloaded from the cache server to replace the chapter-breaking result stored in the local storage; of course, the fifth version number also needs to be replaced with the sixth version number.

[0155] For example, when it is detected that the target object opens a locally stored article 1 through the client of the target application, the fifth version number of the chapter-breaking result a corresponding to the locally stored article 1 is 1.2, and the sixth version number of the chapter-breaking result A corresponding to the article 1 in the cache server is 2.0. That is, the chapter-breaking result A corresponding to the article 1 and its corresponding sixth version number 2.0 are replaced, and the chapter-breaking result a corresponding to the locally stored article 1 and the fifth version number 1.2 are replaced.

[0156] Furthermore, it can be seen from the above embodiments that after the concept of the added version number, the entire EPUB chapter service architecture has also undergone significant changes, such as Figure 4As shown, each target object can interact with the access layer through its corresponding client (for example, target object 1 interacts with the access layer through client 1, target object 2 interacts with the access layer through client 2, ..., target object N interacts with the access layer through client 3). For example, the way in which target object 1 interacts with the access layer through client 1 is that target object 1 sends a request for EPUB decapsulation through the client, the access layer calculates the MD5 of the EPUB, and then searches the decapsulation result corresponding to the MD5 in COS. If it is not found, the decapsulation is performed according to the current decapsulation service or decapsulation algorithm, and then uploaded to COS. If the decapsulation result corresponding to the MD5 is found, the decapsulation result is downloaded. If the decapsulation result corresponding to the MD5 is not found, the EPUB decapsulation request is sent to the message queue, and the EPUB decapsulation service obtains the decapsulation request from the message queue to decapsulate the EPUB according to the current decapsulation service or the current decapsulation algorithm, and uploads the decapsulation result and the version number of the corresponding decapsulation service to COS.

[0157] If it is a major version update, that is, the chapter-breaking service or chapter-breaking algorithm has changed significantly, the corresponding version number is changed from 1.2 to 2.0. The major version change of the chapter-breaking service is parsed through the background version scheduling service, and the chapter-breaking results of all EPUBs uploaded by the target object on COS are traversed. These EPUBs are re-chaptered according to the latest chapter-breaking service or chapter-breaking algorithm, and the results of the re-chaptering and the corresponding chapter-breaking algorithm version number are uploaded to COS.

[0158] In the following embodiments, a method flow for chapter splitting is introduced using a specific application scenario. For details, please refer to the following embodiments.

[0159] Scenario 1:

[0160] When the management object uploads the updated EPUB chapter-breaking algorithm, the corresponding version number is 2.0, and the version number of the EPUB chapter-breaking algorithm before the update is 1.2, then based on the version number corresponding to the chapter-breaking algorithm before the update and the version number corresponding to the chapter-breaking algorithm after the update, it is determined that the update mode of the current EPUB chapter-breaking algorithm is a major version update;

[0161] Specifically, when a major version is updated, such as when the EPUB chapter splitting algorithm is upgraded from version 1.2 to version 2.0, the background version scheduling service will actively traverse all EPUBs uploaded by the target object on COS, and re-split the EPUBs in reverse order of upload time, and upload the newly generated EPUB to COS and update its version number. Figure 5When a target object opens the EPUB file again, it will actively compare the local EPUB version with the latest EPUB version on COS, that is, determine whether the version number of the EPUB stored locally on the client is less than the version number of the EPUB stored on COS. If so, that is, the version number on COS is updated, then pull the latest EPUB chapter-breaking result on COS to replace the local EPUB file, and display the latest EPUB chapter-breaking result on the client of the target application. Of course, if not, that is, the version number on COS has not been updated, then the locally stored EPUB file is directly displayed on the client of the target application, as shown in the figure. Figure 6 As shown. Furthermore, in the embodiment of the present application, since major version updates will bring great pressure to the background server, a major version upgrade is usually required only when the EPUB chapter-splitting service has major parsing errors or format cliff-like updates. In addition, the EPUB chapter-splitting service called by the background version scheduling service is an offline service and does not affect the online conversion service, but the two share a COS cloud storage, which can ensure that EPUB will only be parsed once, reducing the server load.

[0162] Scenario 2:

[0163] When the management object uploads the updated EPUB chapter-breaking algorithm, the corresponding version number is 1.3, and the version number of the EPUB chapter-breaking algorithm before the update is 1.2, then based on the version number corresponding to the chapter-breaking algorithm before the update and the version number corresponding to the chapter-breaking algorithm after the update, it is determined that the update mode of the current EPUB chapter-breaking algorithm is a minor version update;

[0164] When a minor version is updated, such as when the EPUB decomposition service is upgraded from version 1.2 to version 1.3, a lazy update strategy will be used to update the cache on COS. Unlike major version updates, all EPUBs uploaded by users on COS will not be actively traversed and re-parsed. Instead, only when the target uploads an EPUB file, the version status will be checked, the decomposition will be performed again, and the newly generated EPUB will be uploaded to COS to complete the update. The specific process is as follows: Figure 7As shown, that is, the access layer receives the request of the target object to convert EPUB, calculates the MD5 corresponding to the EPUB, and then searches the COS for the corresponding chapter-breaking result based on the MD5. If so, it determines whether the chapter-breaking result stored in the COS is the same as the version number corresponding to the chapter-breaking service (the version number corresponding to the chapter-breaking algorithm). If so, that is, the chapter-breaking result of the EPUB stored in the COS is the latest chapter-breaking result. At this time, the chapter-breaking result of the EPUB stored in the COS is returned to the target object (client). If not, that is, the chapter-breaking result of the EPUB stored in the COS is the latest chapter-breaking result. The version number is different from the version number corresponding to the de-chaptering service, that is, the de-chaptering result of the EPUB stored in COS is not the latest de-chaptering result. At this time, the EPUB de-chaptering service generates a new de-chaptering result, and then uses the MD5 of the EPUB as the file name and adds the version number corresponding to the EPUB de-chaptering service, and uploads it to COS; further, if there is no corresponding de-chaptering result in COS according to the MD5, the EPUB de-chaptering service generates a new de-chaptering result, and then uses the MD5 of the EPUB as the file name and adds the version number corresponding to the EPUB de-chaptering service, and uploads it to COS.

[0165] Furthermore, through the above-mentioned embodiment, the version management of the cache files of the EPUB chapter-splitting service is added, which greatly facilitates the upgrade of the conversion service and reduces the limitations and huge workload of manual version management.

[0166] Based on the same principle as the method for removing a seal provided in the embodiment of the present application, the embodiment of the present application also provides a device for removing a seal, such as Figure 8 As shown, the device 80 may include: a first acquisition module 81, a first update module 82, a second acquisition module 83, an update mode determination module 84 and a second update module 85, wherein:

[0167] The first acquisition module 81 is used to acquire a first version number and a second version number when acquiring an acquisition request for a target article from a client of a target application, wherein the first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application;

[0168] A first updating module 82 is configured to, when the first version number and the second version number are different, re-process the target article by using the chapter-breaking algorithm corresponding to the second version number to obtain a new chapter-breaking result, and update the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server by using the new chapter-breaking result and the second version number;

[0169] The second acquisition module 83 is used to acquire a third version number and a fourth version number when acquiring a trigger operation for updating the chapter decomposition algorithm for the target application, wherein the third version number and the fourth version number are respectively: a version number of the chapter decomposition algorithm before the update and a version number of the chapter decomposition algorithm after the update corresponding to the target application;

[0170] An update mode determination module 84, used to determine an update mode according to the third version number and the fourth version number, the update mode being the first mode or the second mode;

[0171] The second update module 85 is used to obtain new chapter-breaking results corresponding to all articles stored in the cache server when the update method is the first method, and to update the chapter-breaking results and corresponding version numbers of each article stored in the cache server using the new chapter-breaking results of each article and the fourth version number. The new chapter-breaking results are obtained by using the updated chapter-breaking algorithm.

[0172] In a possible implementation of the embodiment of the present application, the update mode is the first mode or the second mode, the version number of any chapter decomposition algorithm includes a first sub-version number and a second sub-version number, and the update mode determination module 84 is specifically used to determine the update mode according to the third version number and the fourth version number:

[0173] If the first sub-version number of the third version number is different from the first sub-version number of the fourth version number, determining that the update method is the first method;

[0174] If the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, the update mode is determined to be the second mode.

[0175] In another possible implementation manner of the embodiment of the present application, the device 80 further includes: a third acquisition module, a fourth acquisition module and a sending module, wherein:

[0176] A third acquisition module is used to acquire a fifth version number and a sixth version number corresponding to each locally stored article when a startup request of a client of a target application is detected, wherein the fifth version number is the version number of the chapter decomposition algorithm corresponding to each locally stored article, and the sixth version number is the version number corresponding to the chapter decomposition result of each article stored in the cache server;

[0177] The fourth acquisition module is used for acquiring the chapter splitting result of each article from the cache server for each article stored locally if the fifth version number and the sixth version number are different;

[0178] The sending module is used to send the chapter splitting result and the sixth version number of each article to the client of the target application to update the chapter splitting result and the corresponding version number of each article stored locally.

[0179] In another possible implementation of the embodiment of the present application, when the second updating module 85 obtains the new chapter splitting results corresponding to all articles stored in the cache server, it is specifically used to:

[0180] Get the current chapter splitting results corresponding to all articles from the cache server;

[0181] Sending the current chapter splitting results corresponding to all articles to the second server, so that the second server performs a new chapter splitting process based on the chapter splitting results of all articles and according to the updated chapter splitting algorithm;

[0182] New chapter splitting results corresponding to all articles stored in the re-caching server are obtained from the second server.

[0183] In another possible implementation of the embodiment of the present application, when the second updating module 85 obtains the current chapter splitting results corresponding to all articles from the cache server, it is specifically used to:

[0184] Determine the target acquisition order of the current chapter splitting result, the target acquisition order is the reverse order of the first order, and the first order is the order in which the chapter splitting results of each article in all articles are uploaded to the cache server;

[0185] Obtain the current chapter splitting results corresponding to all articles from the cache server according to the target acquisition order of the current chapter splitting results.

[0186] In another possible implementation of the embodiment of the present application, when the first acquisition module 81 acquires the first version number, it is specifically used to:

[0187] Perform hash calculation on the target article to obtain the hash result of the target article;

[0188] Based on the hash result of the target article, search for the chapter splitting result of the target article from the cache server;

[0189] If the chapter splitting result of the target article is found, the version number corresponding to the chapter splitting result of the target article is obtained as the first version number.

[0190] In another possible implementation of the embodiment of the present application, the device 80 further includes: a chapter removal processing module, an upload module and a first return module, wherein:

[0191] The chapter splitting processing module is used to split the target article according to the chapter splitting algorithm currently used by the target application when no chapter splitting result of the target article is found;

[0192] An upload module, used for uploading the chapter splitting result and the second version number to a cache server for associated storage;

[0193] The first returning module is used to return the chapter splitting result to the client of the target application.

[0194] In another possible implementation of the embodiment of the present application, if the first version number and the second version number are the same, the apparatus 80 further includes: a fifth acquisition module and a second return module, wherein:

[0195] A fifth acquisition module is used to acquire a target chapter splitting result of a target article from a cache server;

[0196] The second returning module is used to return to the client of the target application.

[0197] It should be noted that the first acquisition module 81, the second acquisition module 83, the third acquisition module, the fourth acquisition module and the fifth acquisition module can all be one acquisition module, or they can all be different acquisition modules, or they can all be partially the same acquisition modules; the first return module and the second return module can all be the same return module, or they can all be different return modules; the first update module 82 and the second update module 85 can all be the same update module, or they can all be different update modules, which is not limited in the embodiments of the present application.

[0198] An embodiment of the present application provides a device for chapter decomposition processing. In the embodiment of the present application, in one case, when obtaining a request for obtaining a target article from a client of a target application, the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server and the version number of the chapter decomposition algorithm currently used by the target application are obtained. If the first version number and the second version number are different, the chapter decomposition algorithm may be changed. At this time, the chapter decomposition algorithm corresponding to the second version number is used to re-decompose the target article to obtain a new chapter decomposition result, and the new chapter decomposition result and the second version number are used to update the target chapter decomposition result and the corresponding first version number of the target article stored in the cache server; in another case, when obtaining a request for obtaining a target article from a client of a target application, the target article is decompositioned. When the update trigger operation of the chapter-breaking algorithm of the target application is performed, the version number of the chapter-breaking algorithm before the update and the version number of the chapter-breaking algorithm after the update corresponding to the target application are obtained, and then the update method can be determined as the first method or the second method according to the version number of the chapter-breaking algorithm before the update and the version number of the chapter-breaking algorithm after the update, and if it is the first method, the new chapter-breaking results corresponding to all the articles stored in the cache server are obtained, and the chapter-breaking results and corresponding version numbers of each article stored in the cache server are updated by using the new chapter-breaking results of each article and the version number of the updated chapter-breaking algorithm, and the new chapter-breaking result is obtained by using the updated chapter-breaking algorithm to break the chapters, so that when the chapter-breaking algorithm is updated, the chapter-breaking processing of the articles can be realized.

[0199] Fig. 9A schematic diagram of the structure of a server applicable to the embodiment of the present application is shown. Fig. 9 As shown, the server 900 can be used to implement the method provided in any embodiment of the present application.

[0200] like Fig. 9 As shown in FIG. , the server 900 may mainly include at least one processor 901 ( Fig. 9 ), memory 902, communication module 903 and input / output interface 904 and other components, and optionally, the components can be connected and communicated through bus 905. It should be noted that, Fig. 9 The structure of the server 900 shown in the figure is merely illustrative and does not constitute a limitation on the server to which the method provided in the embodiment of the present application is applicable.

[0201] Among them, the memory 902 can be used to store operating systems and applications, etc. The application may include a computer program that implements the method shown in the embodiment of the present application when called by the processor 901, and may also include a program for implementing other functions or services. The memory 902 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and computer programs, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disc, optical disk, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0202] The processor 901 is connected to the memory 902 via a bus 905, and implements corresponding functions by calling the application program stored in the memory 902. Among them, the processor 901 can be a CPU (Central Processing Unit), a general processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof, which can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 901 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0203] The server 900 can be connected to the network through a communication module 903 (which may include but is not limited to components such as a network interface) to communicate with other devices (such as a user terminal or a server, etc.) through the network to achieve data interaction, such as sending data to other devices or receiving data from other devices. Among them, the communication module 903 may include a wired network interface and / or a wireless network interface, etc., that is, the communication module may include at least one of a wired communication module or a wireless communication module.

[0204] The server 900 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through the input / output interface 904. The server 900 itself can have a display device, and can also be connected to other display devices through the interface 904. Optionally, a storage device, such as a hard disk, can also be connected through the interface 904, so that data in the server 900 can be stored in the storage device, or data in the storage device can be read, and the data in the storage device can also be stored in the memory 902. It can be understood that the input / output interface 904 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 904 can be a component of the server 900, or it can be an external device connected to the server 900 when needed.

[0205] The bus 905 for connecting the components may include a path to transmit information between the above components. The bus 905 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 905 may be divided into an address bus, a data bus, a control bus, etc.

[0206] Optionally, for the solution provided in the embodiment of the present application, the memory 902 can be used to store a computer program for executing the solution of the present application, and the computer program can be run by the processor 901. When the processor 901 runs the computer program, the actions of the method or device provided in the embodiment of the present application are implemented. In the embodiment of the present application, in one case, when the acquisition request for the target article from the client of the target application is obtained, the version number of the chapter-breaking algorithm corresponding to the target article currently stored in the cache server and the version number of the chapter-breaking algorithm currently used by the target application are obtained. If the first version number and the second version number are different, the chapter-breaking algorithm may have changed. At this time, the chapter-breaking algorithm corresponding to the second version number is used to re-chapter the target article to obtain a new chapter-breaking result, and the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server are updated using the new chapter-breaking result and the second version number; in another case, when the chapter-breaking algorithm for the target application is obtained, the target article is re-chaptered. When the chapter algorithm update triggers the operation, the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm corresponding to the target application are obtained, and then the update method can be determined as the first method or the second method according to the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm. If it is the first method, the new chapter decomposition results corresponding to all articles stored in the cache server are obtained, and the new chapter decomposition results of each article and the version number of the updated chapter decomposition algorithm are used to update the chapter decomposition results and corresponding version numbers of each article stored in the cache server, and the new chapter decomposition results are obtained by decomposition using the updated chapter decomposition algorithm, so that when the chapter decomposition algorithm is updated, the chapter decomposition processing of the article can be realized.

[0207] Based on the same principle as the method provided in the embodiment of the present application, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented. In the embodiment of the present application, in one case, when the acquisition request for the target article from the client of the target application is obtained, the version number of the chapter-breaking algorithm corresponding to the target article currently stored in the cache server and the version number of the chapter-breaking algorithm currently used by the target application are obtained. If the first version number and the second version number are different, the chapter-breaking algorithm may have changed. At this time, the chapter-breaking algorithm corresponding to the second version number is used to re-chapter the target article to obtain a new chapter-breaking result, and the new chapter-breaking result and the second version number are used to update the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server; in another case, when the chapter-breaking algorithm for the target application is obtained, the target article is re-chaptered. When the chapter algorithm update triggers the operation, the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm corresponding to the target application are obtained, and then the update method can be determined as the first method or the second method according to the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm. If it is the first method, the new chapter decomposition results corresponding to all articles stored in the cache server are obtained, and the new chapter decomposition results of each article and the version number of the updated chapter decomposition algorithm are used to update the chapter decomposition results and corresponding version numbers of each article stored in the cache server, and the new chapter decomposition results are obtained by decomposition using the updated chapter decomposition algorithm, so that when the chapter decomposition algorithm is updated, the chapter decomposition processing of the article can be realized.

[0208] The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented. In the embodiment of the present application, in one case, when the acquisition request for the target article from the client of the target application is obtained, the version number of the chapter-breaking algorithm corresponding to the target article currently stored in the cache server and the version number of the chapter-breaking algorithm currently used by the target application are obtained. If the first version number and the second version number are different, the chapter-breaking algorithm may have changed. At this time, the chapter-breaking algorithm corresponding to the second version number is used to re-chapter the target article to obtain a new chapter-breaking result, and the new chapter-breaking result and the second version number are used to update the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server; in another case, when the chapter-breaking algorithm for the target application is obtained, the target article is re-chaptered using the chapter-breaking algorithm corresponding to the second version number. When the chapter algorithm update triggers the operation, the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm corresponding to the target application are obtained, and then the update method can be determined as the first method or the second method according to the version number of the chapter decomposition algorithm before the update and the version number of the updated chapter decomposition algorithm. If it is the first method, the new chapter decomposition results corresponding to all articles stored in the cache server are obtained, and the new chapter decomposition results of each article and the version number of the updated chapter decomposition algorithm are used to update the chapter decomposition results and corresponding version numbers of each article stored in the cache server, and the new chapter decomposition results are obtained by decomposition using the updated chapter decomposition algorithm, so that when the chapter decomposition algorithm is updated, the chapter decomposition processing of the article can be realized.

[0209] It should be noted that the terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than that shown or described in the drawings.

[0210] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0211] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for removing a seal, characterized in that: Executed by a first server, the method includes: When obtaining a request for obtaining a target article from a client of a target application, obtaining a first version number and a second version number, wherein the first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application; If the first version number and the second version number are different, re-processing the target article by using the chapter-breaking algorithm corresponding to the second version number to obtain a new chapter-breaking result, and updating the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server by using the new chapter-breaking result and the second version number; When a trigger operation for updating the chapter-breaking algorithm for the target application is obtained, a third version number and a fourth version number are obtained, wherein the third version number and the fourth version number are respectively: a version number of the chapter-breaking algorithm before the update and a version number of the chapter-breaking algorithm after the update corresponding to the target application; Determine an update mode according to the third version number and the fourth version number, the update mode being the first mode or the second mode; If the first method is used, new chapter-breaking results corresponding to all articles stored in the cache server are obtained, and the new chapter-breaking results of each article and the fourth version number are used to update the chapter-breaking results and corresponding version numbers of each article stored in the cache server. The new chapter-breaking results are obtained by using the updated chapter-breaking algorithm.

2. The method according to claim 1, characterized in that The version number of any chapter splitting algorithm includes a first sub-version number and a second sub-version number, and the updating method is determined according to the third version number and the fourth version number, and the updating method is the first method or the second method, including: If the first sub-version number of the third version number is different from the first sub-version number of the fourth version number, determining that the update mode is the first mode; If the second sub-version number of the third version number is different from the second sub-version number of the fourth version number, and the first sub-version number of the third version number is the same as the first sub-version number of the fourth version number, the update method is determined to be the second method.

3. The method according to claim 1, characterized in that The method further comprises: When a start request of a client of the target application is detected, a fifth version number and a sixth version number corresponding to each locally stored article are obtained, wherein the fifth version number is the version number of the chapter decomposition algorithm corresponding to each locally stored article, and the sixth version number is the version number corresponding to the chapter decomposition result of each article stored in the cache server; For each article stored locally, if the fifth version number and the sixth version number are different, the chapter-breaking result of each article is obtained from the cache server, and the chapter-breaking result of each article and the sixth version number are sent to the client of the target application to update the chapter-breaking result of each article stored locally and the corresponding version number.

4. The method according to claim 1, characterized in that: The obtaining of new chapter splitting results corresponding to all articles stored in the cache server includes: Obtaining the current chapter splitting results corresponding to all articles from the cache server; Sending the current chapter decomposition results corresponding to all the articles to the second server, so that the second server performs a re-chapter decomposition process based on the chapter decomposition results of all the articles and according to the updated chapter decomposition algorithm; New chapter splitting results corresponding to all articles stored in the cache server are obtained from the second server.

5. The method according to claim 4, characterized in that The step of obtaining the current chapter splitting results corresponding to all articles from the cache server includes: Determine a target acquisition order of the current chapter splitting results, wherein the target acquisition order is the reverse order of the first order, wherein the first order is the order in which the chapter splitting results of each article in all the articles are uploaded to the cache server; The current chapter splitting results corresponding to all articles are obtained from the cache server according to the target acquisition order of the current chapter splitting results.

6. The method according to claim 1, characterized in that The obtaining of the first version number includes: Performing hash calculation on the target article to obtain a hash result of the target article; Based on the hash result of the target article, searching the cache server for the chapter splitting result of the target article; If the chapter-breaking result of the target article is found, the version number corresponding to the chapter-breaking result of the target article is obtained as the first version number.

7. The method according to claim 6, characterized in that The method further comprises: If no chapter decomposition result of the target article is found, the target article is decomposition processed according to the chapter decomposition algorithm currently used by the target application; Upload the chapter splitting result and the second version number to the cache server for associated storage; The decapsulation result is returned to the client of the target application.

8. The method according to claim 1, characterized in that If the first version number is the same as the second version number, the method further includes: The target chapter splitting result of the target article is obtained from the cache server and returned to the client of the target application.

9. A device for removing seals, characterized in that: The device comprises: A first acquisition module is used to acquire a first version number and a second version number when acquiring an acquisition request for a target article from a client of a target application, wherein the first version number is the version number of the chapter decomposition algorithm corresponding to the target article currently stored in the cache server, and the second version number is the version number of the chapter decomposition algorithm currently used by the target application; A first updating module is used for, when the first version number and the second version number are different, re-processing the target article by using the chapter-breaking algorithm corresponding to the second version number to obtain a new chapter-breaking result, and updating the target chapter-breaking result and the corresponding first version number of the target article stored in the cache server by using the new chapter-breaking result and the second version number; A second acquisition module is used to acquire a third version number and a fourth version number when an update trigger operation of the chapter decomposition algorithm for the target application is acquired, wherein the third version number and the fourth version number are respectively: a version number of the chapter decomposition algorithm before the update and a version number of the chapter decomposition algorithm after the update corresponding to the target application; An update mode determination module, used to determine an update mode according to the third version number and the fourth version number, the update mode being the first mode or the second mode; The second updating module is used for obtaining new chapter-breaking results corresponding to all articles stored in the cache server when the updating method is the first method, and updating the chapter-breaking results and corresponding version numbers of each article stored in the cache server by using the new chapter-breaking results of each article and the fourth version number, wherein the new chapter-breaking results are obtained by using the updated chapter-breaking algorithm.

10. A server, characterized in that: The server includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the method for chapter decapitation processing according to any one of claims 1 to 8 when running the computer program.

11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method for chapter decapitation processing described in any one of claims 1 to 8 is implemented.