CN112328529B - Method, device, terminal and storage medium for determining reading progress of electronic book - Google Patents

Method, device, terminal and storage medium for determining reading progress of electronic book Download PDF

Info

Publication number
CN112328529B
CN112328529B CN202011212026.4A CN202011212026A CN112328529B CN 112328529 B CN112328529 B CN 112328529B CN 202011212026 A CN202011212026 A CN 202011212026A CN 112328529 B CN112328529 B CN 112328529B
Authority
CN
China
Prior art keywords
reading progress
operation time
server
book
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011212026.4A
Other languages
Chinese (zh)
Other versions
CN112328529A (en
Inventor
王浩洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011212026.4A priority Critical patent/CN112328529B/en
Publication of CN112328529A publication Critical patent/CN112328529A/en
Application granted granted Critical
Publication of CN112328529B publication Critical patent/CN112328529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting

Abstract

The embodiment of the invention provides a method, a device, a terminal and a storage medium for determining reading progress of an electronic book, wherein the method is applied to the terminal and comprises the following steps: when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction; determining whether the operation time of a service end corresponding to the electronic book is earlier than the operation time of the book; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; and when the reading progress of the server side is not smaller than the local reading progress, displaying abnormal prompt information, and determining the target reading progress according to the selection operation of the user based on the abnormal prompt information. By adopting the embodiment of the invention, the accuracy of determining the reading progress of the electronic book can be improved.

Description

Method, device, terminal and storage medium for determining reading progress of electronic book
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for determining reading progress of an electronic book.
Background
When a user reads the same electronic book by using different terminals, the reading progress of the electronic book is usually different, and when the user switches different terminals to read the same electronic book, the server and the terminals synchronize the reading progress of the electronic book in order to enable the user to read in succession with the previous reading progress.
Generally, when a user uses a terminal to read, the terminal will determine the reading progress corresponding to the operation time of the latest reading in the local reading progress as the current reading progress. Under the conditions of unstable network connection between the terminal and the server, and the like, the terminal cannot read the progress synchronously with the server in time. In this case, it is likely that the reading progress corresponding to the operation time of the last reading is inaccurate as the current reading progress, which may cause a problem that the user cannot read in succession with the previous reading progress, resulting in repeated reading.
Disclosure of Invention
An embodiment of the invention aims to provide a method, a device, a terminal and a storage medium for determining the reading progress of an electronic book, so as to improve the accuracy of determining the reading progress of the electronic book. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for determining a reading progress of an electronic book, which is applied to a terminal, where the method includes:
When an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction, wherein the local record comprises book operation time and local reading progress;
determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, wherein the service end operation time is the latest operation time corresponding to the electronic book stored by a service end;
when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress, wherein the service end reading progress is the latest reading progress corresponding to the electronic book stored by the service end;
when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
and when the reading progress of the server side is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating to select one of the reading progress of the server side or the local reading progress as the target reading progress.
Optionally, the local record and the server record corresponding to the electronic book stored in the server also include a bookshelf status identifier, where the bookshelf status identifier indicates whether the electronic book is in an electronic bookshelf;
before the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, the method further includes:
determining whether the electronic book is in the electronic bookshelf or not based on a first bookshelf state identifier and a second bookshelf state identifier, wherein the first bookshelf state identifier is a bookshelf state identifier included in the server record, and the second bookshelf state identifier is a bookshelf state identifier included in the local record;
deleting the local record if the first bookshelf status identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf status identifier indicates that the electronic book is not in the electronic bookshelf;
and if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf or the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, executing the step of determining whether the service end operation time is earlier than the book operation time.
Optionally, the local record further includes a synchronous operation time and a synchronous reading progress, where the synchronous operation time is a book operation time that is last synchronized to the server, and the synchronous reading progress is a local reading progress that is last synchronized to the server;
before the step of determining whether the electronic book is in the electronic bookshelf based on the first bookshelf status identifier and the second bookshelf status identifier, the method further comprises:
determining whether the synchronous operation time is the same as the operation time of the server side;
if not, executing the step of determining whether the electronic book is in the electronic bookshelf based on the first bookshelf state identifier and the second bookshelf state identifier;
when the service end operation time is not earlier than the book operation time, the method further comprises the following steps:
deleting the local record if the first book shelf state identification indicates that the electronic book is not in the electronic bookshelf;
if the first book shelf state identifier indicates that the electronic book is in the electronic book shelf, the local reading progress and the synchronous reading progress are updated to be the server reading progress, and the book operation time and the synchronous operation time are updated to be the server operation time.
Optionally, when the service-side operation time is earlier than the book operation time, the method further includes:
if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, executing the step of determining whether the server reading progress corresponding to the electronic book is smaller than the local reading progress;
and if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, or the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the local record is kept unchanged.
Optionally, determining whether the book operation time is the same as the synchronous operation time;
if the book operation time is different from the synchronous operation time and the local record is not an abnormal record, the local record is sent to the server so that the server updates the server operation time, the server reading progress and the first bookshelf state identifier into the book operation time, the local reading progress and the second bookshelf state identifier respectively, and update success information is sent to the terminal, wherein the abnormal record is a local record that the corresponding server operation time is earlier than the book operation time and the corresponding server reading progress is not less than the local reading progress;
And after receiving the updating success information, updating the synchronous operation time included in the local record into the book operation time.
Optionally, when the server reading progress is not less than the local reading progress, the method further includes:
determining a record identifier of the local record as an abnormal identifier;
before the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, the method further includes:
acquiring a record identifier of the local record;
when the record mark of the local record is an abnormal mark, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information;
and when the record identifier of the local record is not an abnormal identifier, executing the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time.
Optionally, the obtaining manner of the server operation time and the server reading progress includes:
when capturing a target operation sent by a user aiming at the electronic book, sending a record acquisition instruction to a server so that the server can send the stored latest server record to the terminal, wherein the target operation is an operation of starting or stopping reading the electronic book.
In a second aspect, an embodiment of the present invention provides a device for determining a reading progress of an electronic book, which is applied to a terminal, where the device includes:
the local record searching module is used for searching a local record corresponding to the electronic book indicated by the electronic book reading instruction when the electronic book reading instruction sent by the user is obtained, wherein the local record comprises book operation time and local reading progress;
the first judging module is used for determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server;
the second judging module is used for determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress or not when the operation time of the server is not earlier than the operation time of the book, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server;
the first target progress determining module is used for determining the local reading progress as a target reading progress when the reading progress of the server side is smaller than the local reading progress;
The second target progress determining module is used for displaying abnormal prompt information when the server side reading progress is not smaller than the local reading progress, and determining target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating and selecting one of the server side reading progress or the local reading progress as the target reading progress.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the method for determining the reading progress of the electronic book when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the method for determining the reading progress of an electronic book described in any of the foregoing.
In the scheme provided by the embodiment of the invention, when a terminal acquires an electronic book reading instruction sent by a user, the terminal searches a local record corresponding to the electronic book indicated by the electronic book reading instruction, wherein the local record comprises book operation time and local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a first implementation of a method for determining a reading progress of an electronic book according to an embodiment of the present invention;
fig. 2 is a flowchart of a second implementation of a method for determining a reading progress of an electronic book according to an embodiment of the present invention;
FIG. 3 is a flowchart of a third implementation of a method for determining the reading progress of an electronic book according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for updating a server record according to an embodiment of the present invention;
fig. 5 is a flowchart of a fourth implementation of a method for determining a reading progress of an electronic book according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for determining reading progress of an electronic book according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
In order to improve accuracy of determining reading progress of an electronic book, embodiments of the present invention provide a method, an apparatus, a terminal, a storage medium, and a computer program product for determining reading progress of an electronic book. The following first describes a method for determining the reading progress of an electronic book according to an embodiment of the present invention.
The method for determining the reading progress of the electronic book provided by the embodiment of the invention can be applied to a terminal, and the terminal can be a smart phone, a tablet personal computer, a personal computer and other devices, and is not particularly limited.
As shown in fig. 1, a method for determining reading progress of an electronic book is applied to a terminal, and the method includes:
s101, when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction;
the local records comprise book operation time and local reading progress.
S102, determining whether the operation time of a server corresponding to the electronic book is earlier than the operation time of the book;
the server operation time is the latest operation time corresponding to the electronic book stored by the server.
S103, when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress;
the server-side reading progress is the latest reading progress corresponding to the electronic book stored by the server-side.
S104, when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
s105, when the reading progress of the server side is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information;
the abnormal prompt information is used for indicating and selecting one of the server-side reading progress or the local reading progress as a target reading progress.
In the scheme provided by the embodiment of the invention, when the terminal acquires the instruction of reading the electronic book sent by the user, the terminal searches the local record corresponding to the electronic book indicated by the instruction of reading the electronic book, wherein the local record comprises the book operation time and the local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
When a user reads an electronic book using a terminal, an instruction to read the electronic book may be issued. Since the user generally wants to continue reading in succession with the reading progress of the last reading of the electronic book, when the terminal obtains the issued instruction for reading the electronic book, the terminal can search the local record corresponding to the electronic book indicated by the instruction for reading the electronic book.
The local record includes a book operation time and a local reading progress, the book operation time is a time recorded by the terminal when a user operates the electronic book last time, and the user can operate the electronic book to read the electronic book, withdraw from reading the electronic book, and the like. The local reading progress is the reading progress of the last reading of the electronic book by the user recorded by the terminal.
The terminal can display the thumbnail of the electronic book, and the user can send out an instruction for reading the electronic book by clicking the thumbnail of the electronic book; the terminal can display the name of the electronic book, and the user can send out an instruction for reading the electronic book by clicking the name of the electronic book, which is reasonable.
Since there may be a plurality of users reading the electronic book on the same terminal, and the same user may read a plurality of books on the same terminal, in order to accurately find the local record, in an embodiment, the instruction for reading the electronic book may include a user identifier and an electronic book identifier, and the local record also includes the user identifier and the electronic book identifier. When the terminal acquires the instruction of reading the electronic book, the terminal can search the local record matched with the user identification and the electronic book identification included in the instruction of reading the electronic book.
Since the terminal may not synchronize the reading progress of the book with the server in time, the local reading progress included in the local record searched by the terminal may not be accurate. In order to accurately determine the actual reading progress of the electronic book, after the local record corresponding to the electronic book indicated by the instruction for reading the electronic book is found, the terminal may execute the above step S102, i.e. determine whether the service end operation time corresponding to the electronic book is earlier than the book operation time. The service side operation time is the latest operation time corresponding to the electronic book stored by the service side, namely the book operation time when the book operation time is synchronized to the service side last time.
When the operation time of the server is not earlier than the operation time of the book, the terminal and the server synchronize the reading progress of the book, and then the reading progress of the server is not less than the local reading progress, and the reading progress of the server is the actual reading progress of the electronic book. The server side reading progress is the latest reading progress corresponding to the electronic books stored by the server side, namely the local reading progress when the local reading progress is synchronized to the server side last time. In this case, the terminal may determine the server-side reading progress as the target reading progress.
In one embodiment, when the server operation time is not earlier than the book operation time, the terminal may update the local reading progress to the server reading progress, and update the book operation time to the server operation time. Thus, the terminal can update the local reading progress and the book operation time included in the local record in time.
When the operation time of the server is earlier than the operation time of the book, the operation of the electronic book on the terminal by the user after the operation time of the book is synchronized to the server last time is described. In this case, the terminal may perform the above step S103, that is, determine whether the server reading progress corresponding to the electronic book is smaller than the local reading progress.
In order to accurately determine whether the reading progress of the server is smaller than the local reading progress, in an embodiment, the reading progress of the server and the local reading progress may include reading chapter identifiers, reading chapter numbers, and reading chapter offset words. The reading chapter mark is used for indicating chapters in the electronic book, the reading chapter serial number is used for indicating the number of chapters read by a user to the electronic book, and the reading chapter offset word number is used for indicating the number of characters read by the user to the chapters of the electronic book.
The terminal can determine whether the reading chapter number of the local reading progress is smaller than the reading chapter number of the server side reading progress, when the reading chapter number of the local reading progress is not smaller than the reading chapter number of the server side reading progress, the local reading progress is not smaller than the server side reading progress, and when the reading chapter number of the local reading progress is smaller than the reading chapter number of the server side reading progress, the local reading progress is smaller than the server side reading progress.
When the number of the reading chapter of the local reading progress is the same as the number of the reading chapter of the reading progress of the server side, the terminal can also determine whether the number of the reading chapter offset words of the local reading progress is smaller than the number of the reading chapter offset words of the reading progress of the server side, and when the number of the reading chapter offset words of the local reading progress is not smaller than the number of the reading chapter offset words of the reading progress of the server side, the terminal indicates that the local reading progress is not smaller than the reading progress of the server side; when the number of the read chapter offset words of the local read progress is smaller than that of the read progress of the server, the local read progress is smaller than that of the server.
In general, when a user performs an operation on an electronic book on a terminal after the last time the book operation time is synchronized to a server, the local reading progress is not smaller than the server reading progress. Therefore, when the operation time of the server is earlier than the operation time of the book and the reading progress of the server is smaller than the local reading progress, the local reading progress is indicated to be the actual reading progress of the electronic book, and in this case, the terminal can determine the local reading progress as the target reading progress.
When the operation time of the server is earlier than the operation time of the book and the local reading progress is smaller than the reading progress of the server, the local reading progress is likely to be not the actual reading progress of the electronic book, and the local record is also abnormal record. For example, the local record B1 corresponding to the electronic book D1 includes a book operation time of 3 minutes and 20 seconds at 15 days of 1 month and 2 in 2020, the local record B1 includes a local reading progress of a third chapter, the service end operation time corresponding to the electronic book D1 is 1 minute and 3 seconds at 15 days of 1 month and 2 in 2020, and the service end reading progress corresponding to the electronic book D1 is a fifth chapter, so that the terminal can determine that the local record B1 is an abnormal record.
In an embodiment, the terminal may obtain, in advance, a server operation time and a server reading progress corresponding to a local record stored in the terminal from the server, and when the terminal determines to read the local record corresponding to the electronic book indicated by the electronic book instruction, compare the book operation time included in the local record with the server operation time corresponding to the local record, and compare the local reading progress included in the local record with the server reading progress corresponding to the local record, so as to determine whether the local record is an abnormal record.
When the local record is an abnormal record, it is indicated that the local reading progress included in the local record is likely to be inaccurate, and the server progress corresponding to the local record is likely to be accurate reading progress. In this case, in order to accurately determine the target reading progress, the terminal may display abnormality notification information. The abnormal prompt information is used for indicating and selecting one of the server-side reading progress or the local reading progress as the target reading progress.
In an embodiment, the abnormal prompting information may include a thumbnail of a page of the electronic book corresponding to the reading progress of the server, and when the abnormal prompting information is displayed, the terminal may display the thumbnail for the user to view.
When the terminal displays the abnormal prompt information, the user can select one of the synchronous reading progress or the local reading progress as the target reading progress based on the abnormal prompt information for selection operation. After determining the target progress, the local record may be determined to be an anomaly-free record. Thus, the terminal can capture the selection operation of the user and determine the target reading progress.
In one embodiment, the terminal may display the abnormal prompt information and simultaneously display the server reading progress selection button and the local reading progress selection button, so that the user may perform the selection operation by clicking the server reading progress selection button or the local reading progress selection button. When a user clicks a server reading progress selection button, the terminal can determine that the server reading progress is a target reading progress; when the user clicks the local reading progress selection button, the terminal can determine the local reading progress as the target reading progress. Then, the terminal can display the page of the electronic book corresponding to the target reading progress for the user to read.
As an implementation manner of the embodiment of the present invention, the local record and the server record corresponding to the electronic book stored in the server each further include a bookshelf status identifier, where the bookshelf status identifier indicates whether the electronic book is in an electronic bookshelf.
The user may read too many electronic books using the terminal, in which case the terminal may display an electronic bookshelf including the electronic books read by the user. When a user wants to read an electronic book which does not exist in the electronic bookshelf, the electronic book which is wanted to be read can be added in the electronic bookshelf; when the user no longer wants to read a certain electronic book existing in the electronic bookshelf, the electronic book can be deleted from the electronic bookshelf. Therefore, the user's operation on the electronic book may also be an operation of adding the electronic book to the electronic bookshelf and an operation of deleting the electronic book from the electronic bookshelf. The book operation time may be a time when an electronic book is added to the electronic bookshelf, or a time when an electronic book is deleted from the electronic bookshelf. The local record comprises a local reading progress, book operation time and bookshelf state identification, and the server record comprises a server reading progress, server operation time and bookshelf state identification.
In this case, as shown in fig. 2, a second implementation of the method for determining the reading progress of the electronic book according to the embodiment of the present invention may include:
s101, when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction;
s201, determining whether the electronic book is in the electronic bookshelf or not based on a first bookshelf state identifier and a second bookshelf state identifier;
the first bookshelf state identifier is a bookshelf state identifier included in the server side record, and the second bookshelf state identifier is a bookshelf state identifier included in the local record. The terminal may determine whether the electronic book is in the electronic bookshelf according to the first bookshelf state identifier, and determine whether the electronic book is in the electronic bookshelf according to the second bookshelf state identifier.
S202, deleting the local record if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf;
if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the terminal does not need to continuously save the local record of the electronic book, and the local record can be deleted.
S203, if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf or the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, determining whether the service end operation time is earlier than the book operation time.
If the first bookshelf status flag indicates that the electronic book is in the electronic bookshelf or the second bookshelf status flag indicates that the electronic book is in the electronic bookshelf, it is not yet possible to determine whether the user wants to continue reading the electronic book, that is, the local record of the electronic book cannot be deleted yet, and the local record may be an abnormal record. To determine whether the local record is an abnormal record, the terminal may determine whether the server operation time is earlier than the book operation time. The specific manner of determining whether the service-side operation time is earlier than the book operation time is the same as that in the step S102, and the description of the step S102 may be referred to herein, which is not repeated.
S103, when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress;
S104, when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
and S105, displaying abnormal prompt information when the reading progress of the server is not smaller than the local reading progress, and determining the target reading progress according to the selection operation of the user based on the abnormal prompt information.
Therefore, in the scheme provided by the embodiment of the invention, the terminal can determine whether the electronic book is in the electronic bookshelf or not based on the first bookshelf state identifier and the second bookshelf state identifier; if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, deleting the local record; if the first bookshelf state identification indicates that the electronic book is in the electronic bookshelf, or the second bookshelf state identification indicates that the electronic book is in the electronic bookshelf, determining whether the service end operation time is earlier than the book operation time. In this way, the terminal can determine whether the user has deleted the electronic book from the electronic bookshelf through the first bookshelf state identification and the second bookshelf state identification, and can delete the local record of the electronic book after determining that the user has deleted the electronic book from the electronic bookshelf.
As an implementation manner of the embodiment of the present invention, the local record may further include a synchronous operation time and a synchronous reading progress. The synchronous reading progress is a local reading progress when the terminal synchronizes the local reading progress to the server last time, for example, the local reading progress when the terminal synchronizes the local reading progress to the server last time is the third page of the second chapter, and then the synchronous reading progress is the third page of the second chapter. The synchronous operation time is the book operation time when the terminal synchronizes the book operation time to the server last time.
In this case, as shown in fig. 3, a third implementation manner of the method for determining the reading progress of the electronic book according to the embodiment of the present invention may include:
s101, when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction;
s301, determining whether the synchronous operation time is the same as the operation time of the server side, if so, determining the local reading progress as a target reading progress; if not, step S201 is performed.
The terminal may determine whether the synchronization operation time included in the local record is the same as the service operation time included in the service record.
If the synchronous operation time included in the local record is the same as the service end operation time included in the service end record, the service end operation time included in the service end record is the book operation time when the terminal synchronizes the book operation time to the service end last time. That is, the server reading progress included in the server record is the local reading progress when the terminal synchronizes the local reading progress to the server last time, so that the local record is not an abnormal record, and the terminal can determine the local reading progress as the target reading progress.
If the synchronization operation time included in the local record is different from the service operation time included in the service record, which indicates that the service operation time included in the service record is not the book operation time when the terminal last synchronizes the book operation time to the service, that is, the service reading progress included in the service record is not the local reading progress when the terminal last synchronizes the local reading progress to the service, the local record may be an abnormal record, and the terminal may continue to execute step S201.
S201, determining whether the electronic book is in the electronic bookshelf or not based on a first bookshelf state identifier and a second bookshelf state identifier;
S202, deleting the local record if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf;
s203, if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf or the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, determining whether the service end operation time is earlier than the book operation time;
s302, when the service end operation time is not earlier than the book operation time, if the first book shelf state identification indicates that the electronic book is not in the electronic bookshelf, deleting the local record;
the user may read the ebook at a plurality of terminals, in this case the current terminal. When the first book shelf state identification indicates that the electronic book is not in the electronic bookshelf and the service end operation time is not earlier than the book operation time, the electronic book is deleted from the electronic bookshelf by the user on other terminals. For example, the user has deleted the electronic book from the electronic bookshelf on the other terminal, and the user has not newly added the electronic book to the electronic bookshelf at the current terminal. In this case, the current terminal may delete the local record of the electronic book.
And S303, when the operation time of the server is not earlier than the operation time of the book, if the first book holder state identifier indicates that the electronic book is in the electronic bookshelf, updating the local reading progress and the synchronous reading progress into the reading progress of the server, and updating the operation time of the book and the synchronous operation time into the operation time of the server.
When the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, and the service end operation time is not earlier than the book operation time, the user is not deleting the electronic book from the electronic bookshelf, and the service end record is newer than the local record, that is, the service end reading progress included in the service end record is the latest reading progress. Then, the current terminal can update the local reading progress and the synchronous reading progress to the server reading progress, and update the book operation time and the synchronous operation time to the server operation time.
When the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, and the service end operation time is not earlier than the book operation time, the user is informed that the electronic book is deleted from the electronic bookshelf in the current terminal before, and then the electronic book is added to the electronic bookshelf in other terminals again, that is, the user continues to read the electronic book at present, the current terminal can update the local reading progress and the synchronous reading progress to the service end reading progress, and update the book operation time and the synchronous operation time to the service end operation time.
That is, when the first bookshelf status identifier indicates that the electronic book is in the electronic bookshelf and the server operating time is not earlier than the book operating time, the current terminal updates the local reading progress and the synchronous reading progress to the server reading progress and updates the book operating time and the synchronous operating time to the server operating time no matter whether the second bookshelf status identifier indicates that the electronic book is in the electronic bookshelf. Therefore, the terminal can update the local reading progress to the latest reading progress, and the user can be ensured to read the electronic book with the latest reading progress.
S103, when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress;
s104, when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
and S105, displaying abnormal prompt information when the reading progress of the server is not smaller than the local reading progress, and determining the target reading progress according to the selection operation of the user based on the abnormal prompt information.
Therefore, in the scheme provided by the embodiment of the invention, before determining whether the electronic book is in the electronic bookshelf or not based on the first bookshelf state identifier and the second bookshelf state identifier, the terminal can determine whether the synchronous operation time is the same as the operation time of the server side or not; when the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, and the service end operation time is not earlier than the book operation time, deleting the local record; when the first book shelf state identification indicates that the electronic book is in the electronic bookshelf and the service end operation time is not earlier than the book operation time, updating the local reading progress and the synchronous reading progress to the service end reading progress, and updating the book operation time and the synchronous operation time to the service end operation time. Therefore, after the user deletes the electronic book from the electronic bookshelf, the terminal can delete the local record in time, and can update the local reading progress to the latest reading progress, so that the user can read the electronic book with the latest reading progress.
As an implementation manner of the embodiment of the present invention, when the service-side operation time is earlier than the book operation time, the method may further include:
If the first bookshelf state identification indicates that the electronic book is in the electronic bookshelf and the second bookshelf state identification indicates that the electronic book is in the electronic bookshelf, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress; if the first bookshelf state identification indicates that the electronic book is not in the electronic bookshelf, the second bookshelf state identification indicates that the electronic book is in the electronic bookshelf, or the first bookshelf state identification indicates that the electronic book is in the electronic bookshelf, the second bookshelf state identification indicates that the electronic book is not in the electronic bookshelf, and the local record is kept unchanged.
If the first bookshelf state identification indicates that the electronic book is in the electronic bookshelf, the second bookshelf state identification indicates that the electronic book is in the electronic bookshelf, and the service end operation time is earlier than the book operation time, the user is not deleting the electronic book from the electronic bookshelf, and the local record of the electronic book is possibly an abnormal record. In this case, in order to determine the accurate target reading progress, the terminal may determine whether the server reading progress corresponding to the electronic book is smaller than the local reading progress, that is, perform step S103 described above.
When the service end operation time is earlier than the book operation time, if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, or the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the local record is described as the latest record corresponding to the electronic book, and the current terminal does not send the local record to the service end to update the service end record. In this case, the current terminal may keep the local record unchanged in order to be able to update the server record according to the local record later.
In the solution provided by the embodiment of the present invention, when the service end operation time is earlier than the book operation time, if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, it is determined whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress; if the first bookshelf state identification indicates that the electronic book is not in the electronic bookshelf, or the second bookshelf state identification indicates that the electronic book is not in the electronic bookshelf, the local record is kept unchanged. In this way, the terminal can more accurately determine whether the local record is an abnormal record.
As an implementation manner of the embodiment of the present invention, as shown in fig. 4, the method may further include:
s401, determining whether the book operation time is the same as the synchronous operation time;
the book operation time is the time recorded by the terminal when the user operates the electronic book last time, and the synchronous operation time is the book operation time when the terminal synchronizes the book operation time to the server last time. In order to determine which of the local reading progress and the server reading progress is the updated reading progress, the terminal may determine whether the book operation time is the same as the synchronous operation time.
When the book operation time is different from the synchronous operation time, the fact that after the terminal synchronizes the book operation time to the server last time, the user reads the electronic book by using the terminal is indicated, and then the local reading progress is updated to be the reading progress which is newer than the reading progress of the server.
When the book operation time is the same as the synchronous operation time, the local reading progress is the same as the server reading progress, so that the server record does not need to be updated.
S402, if the book operation time is different from the synchronous operation time and the local record is not an abnormal record, the local record is sent to the server, so that the server updates the server operation time, the server reading progress and the first bookshelf state identifier into the book operation time, the local reading progress and the second bookshelf state identifier respectively, and sends updating success information to the terminal.
When the book operation time is different from the synchronous operation time and the local record is not an abnormal record, the terminal can send the local record to the server in order to update the server record, and the server can update the book operation time, the local reading progress and the second bookshelf state identifier included in the local record respectively when receiving the local record sent by the terminal. Therefore, the server-side record stored by the server-side can be updated in time, and when the user switches the terminal to read the electronic book, the updated server-side record can be obtained from the server-side, so that the user can read the electronic book with the latest reading progress.
In one embodiment, after updating the operation time of the server and the reading progress of the server to the book operation time and the local reading progress included in the local record, the server may update the uploading time included in the server record to the time when the server receives the local record.
S403, after the update success information is received, updating the synchronous operation time included in the local record into the book operation time.
After the operation time of the server, the reading progress of the server and the first bookshelf state identifier are updated into the book operation time, the local reading progress and the second bookshelf state identifier which are included in the local record respectively, the server can send updating success information to the terminal. After receiving the update success information, the terminal can update the synchronous operation time included in the local record into the book operation time.
Therefore, in the scheme provided by the embodiment of the invention, the terminal can determine whether the book operation time is the same as the synchronous operation time; if the local records are different, the local records are sent to the server, so that the server respectively updates the operation time of the server, the reading progress of the server and the first bookshelf state identifier into book operation time, the local reading progress and the second bookshelf state identifier which are included in the local records, and sends updating success information to the terminal; and after receiving the updating success information, updating the synchronous operation time included in the local record into the book operation time. Therefore, the server-side record stored by the server-side can be updated in time, and when the user switches the terminal to read the electronic book, the updated server-side record can be obtained from the server-side, so that the user can read the electronic book with the latest reading progress.
When the reading progress of the server is not less than the local reading progress, the method may further include:
and determining the record identification of the local record as an abnormal identification.
When the operation time of the server is earlier than the operation time of the book and the reading progress of the server is not less than the local reading progress, the local record is an abnormal record. In this case, the terminal may determine that the record identifier of the local record is an abnormal identifier. Thus, when the target reading progress is determined next time, the terminal can quickly and accurately determine whether the local record is an abnormal record according to the record identification of the local record.
If the service end operation time corresponding to the local record is not earlier than the book operation time, or the local reading progress is not less than the service end reading progress corresponding to the local record, for this case, in one embodiment, the terminal may determine that the local record is a non-abnormal record, and may determine that the record identifier of the local record is a non-abnormal identifier.
Accordingly, as shown in fig. 5, a fourth implementation manner of the method for determining the reading progress of the electronic book according to the embodiment of the present invention may include:
s101, when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction;
S501, acquiring a record identifier of the local record, determining whether the record identifier of the local record is an abnormal identifier, and if so, executing step S502; if not, step S102 is performed.
After the terminal finds the local record, in order to quickly and accurately determine whether the local record is an abnormal record, the terminal can determine whether the local record is an abnormal record based on the record identifier of the local record. The record mark is determined in advance based on book operation time, local reading progress, service end operation time corresponding to the local record and service end reading progress corresponding to the local record.
In order to determine whether the local record is an abnormal record, so as to more accurately determine the target reading progress, the terminal can acquire the record identification of the local record when acquiring the local record.
When the record identification of the local record is the abnormality identification, which means that the local record is the abnormality record, the terminal may perform step S502.
When the record identifier of the local record is not an abnormal identifier, the terminal may perform step S102 in order to further determine whether the local record is an abnormal record.
S502, displaying abnormal prompt information, and determining target reading progress according to the selection operation of the user based on the abnormal prompt information.
When the local record is an abnormal record, in order to accurately determine the target reading progress, the terminal may display abnormal prompt information, and determine the target reading progress according to a selection operation of the user based on the abnormal prompt information, that is, perform step S502. The specific manner of displaying the abnormal prompting information and determining the target reading progress according to the selection operation of the user based on the abnormal prompting information is the same as that in step S105, and may be referred to the description of the above step S105, which is not repeated here.
Therefore, the terminal does not need to acquire the service end operation time and the service end reading progress corresponding to the searched local record after searching the local record so as to determine whether the local record is an abnormal record or not, and can determine whether the local record is the abnormal record or not according to a predetermined record identifier, so that the terminal can rapidly and accurately determine whether the local record is the abnormal record or not.
S102, determining whether the operation time of a server corresponding to the electronic book is earlier than the operation time of the book;
s103, when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress;
S104, when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
and S105, displaying abnormal prompt information when the reading progress of the server is not smaller than the local reading progress, and determining the target reading progress according to the selection operation of the user based on the abnormal prompt information.
In one embodiment, after the terminal determines the target reading progress according to the selection operation of the user based on the abnormal prompt information, the record identifier of the local record can be updated to be a non-abnormal identifier, so that the record identifier of the local record can be updated in time, and whether the local record is an abnormal record or not can be determined quickly and accurately when the target reading progress needs to be determined next time.
In the scheme provided by the embodiment of the invention, when the reading progress of the server is not less than the local reading progress, the terminal can determine that the record mark of the local record is an abnormal mark; correspondingly, before determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, the terminal can acquire the record identifier of the local record, display the abnormal prompt information when the record identifier of the local record is the abnormal identifier, and determine the target reading progress according to the selection operation of the user based on the abnormal prompt information; when the record mark of the local record is not the abnormal mark, determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time. Thus, the terminal can quickly and accurately determine whether the local record is an abnormal record according to the record identification of the local record.
As an implementation manner of the embodiment of the present invention, the method for obtaining the operation time of the server and the reading progress of the server may include:
when target operation of a user aiming at the electronic book is captured, a record acquisition instruction is sent to the server, so that the server sends the stored latest server record to the terminal.
In order to obtain the operation time of the server and the reading progress of the server corresponding to the local record, the terminal may send a record obtaining instruction to the server when capturing the target operation sent by the user for the electronic book. When the server receives the record acquisition instruction, the latest server record stored by the server can be sent to the terminal.
The target operation may be an operation of starting reading the electronic book by the user or an operation of stopping reading the electronic book by the user, for example, an operation of starting an electronic book reading program by the user; the electronic book reading program can be switched to the background operation for the user; the user may also be redirected to the ebook reading program.
The server may have server records for multiple users stored therein. In an embodiment, the record obtaining instruction and the server record may both include a user identifier, and when the server receives the record obtaining instruction, the server may determine, according to the user identifier included in the record obtaining instruction, a server record including the same user identifier in the server record stored in the server, and send the server record to the terminal.
In another embodiment, when the terminal stores a plurality of local records, the record obtaining instruction may include a target upload time, and the server record may include an upload time of the server record, where the target upload time is an upload time of a last upload time of the server record obtained by the terminal from the server. When the server receives the record acquisition instruction, the server can send the server record with the uploading time later than the target uploading time to the terminal. In this way, the terminal can ensure that the latest server record is acquired.
In the scheme provided by the embodiment of the invention, when the target operation of the user for the electronic book is captured, the terminal sends the record acquisition instruction to the server, so that the server sends the stored latest server record to the terminal. Therefore, the terminal can timely acquire the latest server record corresponding to the electronic book, and further can accurately determine the target reading progress based on the local record and the server record.
Corresponding to the method for determining the reading progress of the electronic book, the embodiment of the invention also provides a device for determining the reading progress of the electronic book. The following describes a device for determining the reading progress of an electronic book according to an embodiment of the present invention.
As shown in fig. 6, a device for determining reading progress of an electronic book is applied to a terminal, and the device includes:
the local record searching module 601 is configured to search, when an electronic book reading instruction sent by a user is obtained, a local record corresponding to an electronic book indicated by the electronic book reading instruction, where the local record includes a book operation time and a local reading progress;
a first determining module 602, configured to determine whether a service-side operation time corresponding to the electronic book is earlier than the book operation time;
the server operation time is the latest operation time corresponding to the electronic book stored by the server.
A second judging module 603, configured to determine whether a server reading progress corresponding to the electronic book is less than the local reading progress when the server operation time is not earlier than the book operation time;
the server-side reading progress is the latest reading progress corresponding to the electronic book stored by the server-side.
A first target progress determining module 604, configured to determine the local reading progress as a target reading progress when the server reading progress is smaller than the local reading progress;
A second target progress determining module 605, configured to display an abnormal prompt message when the server-side reading progress is not less than the local reading progress, and determine a target reading progress according to a selection operation of the user based on the abnormal prompt message;
the abnormal prompt information is used for indicating and selecting one of the server-side reading progress or the local reading progress as a target reading progress.
In the scheme provided by the embodiment of the invention, when the terminal acquires the instruction of reading the electronic book sent by the user, the terminal searches the local record corresponding to the electronic book indicated by the instruction of reading the electronic book, wherein the local record comprises the book operation time and the local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
As an implementation manner of the embodiment of the present invention, the local record and the server record corresponding to the electronic book stored in the server each further include a bookshelf status identifier, where the bookshelf status identifier indicates whether the electronic book is in an electronic bookshelf.
The apparatus may further include:
a third judging module (not shown in fig. 6) for determining whether the electronic book is in the electronic bookshelf based on the first bookshelf status identifier and the second bookshelf status identifier before determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time;
the first bookshelf state identifier is a bookshelf state identifier included in the server side record, and the second bookshelf state identifier is a bookshelf state identifier included in the local record.
A deletion module (not shown in fig. 6) for deleting the local record if the first bookshelf status flag indicates that the electronic book is not in the electronic bookshelf and the second bookshelf status flag indicates that the electronic book is not in the electronic bookshelf;
a first triggering module (not shown in fig. 6) for triggering the first determining module 602 if the first bookshelf status identifier indicates that the electronic book is in the electronic bookshelf or the second bookshelf status identifier indicates that the electronic book is in the electronic bookshelf.
As an implementation manner of the embodiment of the present invention, the local record further includes a synchronous operation time and a synchronous reading progress, where the synchronous operation time is a book operation time that is last synchronized to the server, and the synchronous reading progress is a local reading progress that is last synchronized to the server;
the apparatus may further include:
a fourth judging module (not shown in fig. 6) for determining whether the synchronous operation time is the same as the service end operation time before determining whether the electronic book is in the electronic bookshelf based on the first bookshelf status identifier and the second bookshelf status identifier;
a second triggering module (not shown in fig. 6) configured to trigger the third judging module if the synchronous operation time and the server operation time;
the apparatus may further include:
a second deleting module (not shown in fig. 6) configured to delete the local record if the first shelf state identifier indicates that the electronic book is not in the electronic bookshelf when the server operation time is not earlier than the book operation time;
and an updating module (not shown in fig. 6) configured to update the local reading progress and the synchronous reading progress to the server reading progress and update the book operation time and the synchronous operation time to the server operation time if the first bookshelf status identifier indicates that the electronic book is in the electronic bookshelf when the server operation time is not earlier than the book operation time.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a third triggering module (not shown in fig. 6) configured to trigger the second judging module 603 if the first bookshelf status identifier indicates that the electronic book is in the electronic bookshelf and the second bookshelf status identifier indicates that the electronic book is in the electronic bookshelf when the service end operation time is earlier than the book operation time;
a holding module (not shown in fig. 6) for holding the local record unchanged if the first bookshelf status flag indicates that the electronic book is not in the electronic bookshelf, the second bookshelf status flag indicates that the electronic book is in the electronic bookshelf, or the first bookshelf status flag indicates that the electronic book is in the electronic bookshelf, and the second bookshelf status flag indicates that the electronic book is not in the electronic bookshelf when the server operation time is earlier than the book operation time.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a first determining module (not shown in fig. 6) for determining whether the book operation time is the same as the synchronous operation time;
A local record sending module (not shown in fig. 6) configured to send the local record to the server if the book operation time is different from the synchronous operation time and the local record is not an abnormal record, so that the server updates the server operation time, the server reading progress and the first bookshelf status identifier to the book operation time, the local reading progress and the second bookshelf status identifier, respectively, and sends update success information to the terminal;
the abnormal record is a local record of which the corresponding server operation time is earlier than the book operation time and the corresponding server reading progress is not less than the local reading progress.
And a synchronous operation time updating module (not shown in fig. 6) configured to update the synchronous operation time included in the local record to the book operation time after receiving the update success information.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
an abnormal identifier determining module (not shown in fig. 6) configured to determine that a record identifier of the local record is an abnormal identifier when the server-side reading progress is not less than the local reading progress;
The apparatus may further include:
a record identifier obtaining module (not shown in fig. 6) configured to obtain a record identifier of the local record before determining whether a service end operation time corresponding to the electronic book is earlier than the book operation time;
a third target progress determining module (not shown in fig. 6) configured to display an abnormal prompt message when the record identifier of the local record is an abnormal identifier, and determine a target reading progress according to a selection operation of the user based on the abnormal prompt message;
a fourth triggering module (not shown in fig. 6) is configured to trigger the first determining module 602 when the record identifier of the local record is not an abnormal identifier.
The embodiment of the present invention also provides a terminal, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete communication with each other through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the steps of the method for determining the reading progress of the electronic book according to any of the embodiments described above when executing the program stored in the memory 703.
In the scheme provided by the embodiment of the invention, when the terminal obtains the instruction of reading the electronic book sent by the user, the terminal searches the local record corresponding to the electronic book indicated by the instruction of reading the electronic book, wherein the local record comprises the book operation time and the local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In still another embodiment of the present invention, a computer readable storage medium is provided, where a computer program is stored, where the computer program is executed by a processor to implement the method for determining the reading progress of an electronic book according to any one of the foregoing embodiments.
It can be seen that, in the solution provided in the embodiment of the present invention, when a computer program stored in a computer readable storage medium is executed by a processor and an electronic book reading instruction sent by a user is obtained, a local record corresponding to an electronic book indicated by the electronic book reading instruction is searched, where the local record includes a book operation time and a local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
In yet another embodiment of the present invention, a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method for determining the progress of reading an electronic book according to any of the above embodiments is also provided.
In the solution provided in the embodiment of the present invention, when a computer program product containing an instruction runs on a computer, and when an instruction for reading an electronic book issued by a user is obtained, a local record corresponding to the electronic book indicated by the instruction for reading the electronic book is searched, where the local record includes a book operation time and a local reading progress; determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server; when the operation time of the server is earlier than the operation time of the book, determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server; when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress; when the reading progress of the server is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating one of the reading progress of the server or the local reading progress to be selected as the target reading progress. The terminal can judge whether the local record is abnormal according to the service end operation time, the book operation time, the service end reading progress and the local reading progress, and when the local record is abnormal, the terminal can display abnormal prompt information for a user to select a target reading progress which is required to be read, so that the reading progress of the electronic book can be accurately determined.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method for determining reading progress of an electronic book, which is applied to a terminal, the method comprising:
when an electronic book reading instruction sent by a user is obtained, searching a local record corresponding to the electronic book indicated by the electronic book reading instruction, wherein the local record comprises book operation time and local reading progress;
determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, wherein the service end operation time is the latest operation time corresponding to the electronic book stored by a service end;
when the service end operation time is earlier than the book operation time, determining whether the service end reading progress corresponding to the electronic book is smaller than the local reading progress, wherein the service end reading progress is the latest reading progress corresponding to the electronic book stored by the service end;
when the reading progress of the server side is smaller than the local reading progress, determining the local reading progress as a target reading progress;
and when the reading progress of the server side is not smaller than the local reading progress, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating to select one of the reading progress of the server side or the local reading progress as the target reading progress.
2. The method of claim 1, wherein the local record and the server record corresponding to the electronic book stored by the server each further comprise a bookshelf status identifier, the bookshelf status identifier indicating whether the electronic book is in an electronic bookshelf;
before the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, the method further includes:
determining whether the electronic book is in the electronic bookshelf or not based on a first bookshelf state identifier and a second bookshelf state identifier, wherein the first bookshelf state identifier is a bookshelf state identifier included in the server record, and the second bookshelf state identifier is a bookshelf state identifier included in the local record;
deleting the local record if the first bookshelf status identifier indicates that the electronic book is not in the electronic bookshelf and the second bookshelf status identifier indicates that the electronic book is not in the electronic bookshelf;
and if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf or the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, executing the step of determining whether the service end operation time is earlier than the book operation time.
3. The method of claim 2, wherein the local record further comprises a synchronous operation time and a synchronous reading progress, wherein the synchronous operation time is a book operation time last synchronized to the server, and the synchronous reading progress is a local reading progress last synchronized to the server;
before the step of determining whether the electronic book is in the electronic bookshelf based on the first bookshelf status identifier and the second bookshelf status identifier, the method further comprises:
determining whether the synchronous operation time is the same as the operation time of the server side;
if not, executing the step of determining whether the electronic book is in the electronic bookshelf based on the first bookshelf state identifier and the second bookshelf state identifier;
when the service end operation time is not earlier than the book operation time, the method further comprises the following steps:
deleting the local record if the first book shelf state identification indicates that the electronic book is not in the electronic bookshelf;
when the operation time of the server is not earlier than the operation time of the book, if the first book shelf state identifier indicates that the electronic book is in the electronic bookshelf, the local reading progress and the synchronous reading progress are updated to the reading progress of the server, and the operation time of the book and the synchronous operation time are updated to the operation time of the server.
4. The method of claim 3, wherein when the server-side operation time is earlier than the book operation time, the method further comprises:
if the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf and the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, executing the step of determining whether the server reading progress corresponding to the electronic book is smaller than the local reading progress;
and if the first bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the second bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, or the first bookshelf state identifier indicates that the electronic book is in the electronic bookshelf, and the second bookshelf state identifier indicates that the electronic book is not in the electronic bookshelf, the local record is kept unchanged.
5. The method according to claim 4, wherein the method further comprises:
determining whether the book operation time is the same as the synchronous operation time;
if the book operation time is different from the synchronous operation time and the local record is not an abnormal record, the local record is sent to the server so that the server updates the server operation time, the server reading progress and the first bookshelf state identifier into the book operation time, the local reading progress and the second bookshelf state identifier respectively, and update success information is sent to the terminal, wherein the abnormal record is a local record that the corresponding server operation time is earlier than the book operation time and the corresponding server reading progress is not less than the local reading progress;
And after receiving the updating success information, updating the synchronous operation time included in the local record into the book operation time.
6. The method of claim 1, wherein when the server reading progress is not less than the local reading progress, the method further comprises:
determining a record identifier of the local record as an abnormal identifier;
before the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time, the method further includes:
acquiring a record identifier of the local record;
when the record mark of the local record is an abnormal mark, displaying abnormal prompt information, and determining a target reading progress according to the selection operation of the user based on the abnormal prompt information;
and when the record identifier of the local record is not an abnormal identifier, executing the step of determining whether the service end operation time corresponding to the electronic book is earlier than the book operation time.
7. The method according to any one of claims 1 to 6, wherein the obtaining the service side operation time and the service side reading progress includes:
When capturing a target operation sent by a user aiming at the electronic book, sending a record acquisition instruction to a server so that the server can send the stored latest server record to the terminal, wherein the target operation is an operation of starting or stopping reading the electronic book.
8. A device for determining reading progress of an electronic book, which is applied to a terminal, the device comprising:
the local record searching module is used for searching a local record corresponding to the electronic book indicated by the electronic book reading instruction when the electronic book reading instruction sent by the user is obtained, wherein the local record comprises book operation time and local reading progress;
the first judging module is used for determining whether the operation time of the server corresponding to the electronic book is earlier than the operation time of the book, wherein the operation time of the server is the latest operation time corresponding to the electronic book stored by the server;
the second judging module is used for determining whether the reading progress of the server corresponding to the electronic book is smaller than the local reading progress or not when the operation time of the server is not earlier than the operation time of the book, wherein the reading progress of the server is the latest reading progress corresponding to the electronic book stored by the server;
The first target progress determining module is used for determining the local reading progress as a target reading progress when the reading progress of the server side is smaller than the local reading progress;
the second target progress determining module is used for displaying abnormal prompt information when the server side reading progress is not smaller than the local reading progress, and determining target reading progress according to the selection operation of the user based on the abnormal prompt information, wherein the abnormal prompt information is used for indicating and selecting one of the server side reading progress or the local reading progress as the target reading progress.
9. The terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-7 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-7.
CN202011212026.4A 2020-11-03 2020-11-03 Method, device, terminal and storage medium for determining reading progress of electronic book Active CN112328529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011212026.4A CN112328529B (en) 2020-11-03 2020-11-03 Method, device, terminal and storage medium for determining reading progress of electronic book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011212026.4A CN112328529B (en) 2020-11-03 2020-11-03 Method, device, terminal and storage medium for determining reading progress of electronic book

Publications (2)

Publication Number Publication Date
CN112328529A CN112328529A (en) 2021-02-05
CN112328529B true CN112328529B (en) 2023-09-05

Family

ID=74323324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011212026.4A Active CN112328529B (en) 2020-11-03 2020-11-03 Method, device, terminal and storage medium for determining reading progress of electronic book

Country Status (1)

Country Link
CN (1) CN112328529B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156783A (en) * 2005-12-05 2007-06-21 Ebook Initiative Japan Co Ltd Electronic book system
KR100930333B1 (en) * 2009-07-10 2009-12-08 이기자 Reading and language learning system using wired and wireless internet communication network
CN103503004A (en) * 2011-07-12 2014-01-08 索尼公司 Electronic book reader
CN106878406A (en) * 2017-02-07 2017-06-20 腾讯科技(深圳)有限公司 Information sharing method, apparatus and system
CN106933964A (en) * 2017-02-07 2017-07-07 掌阅科技股份有限公司 A kind of method, device and electronic equipment for determining to read duration
CN108933948A (en) * 2017-05-24 2018-12-04 腾讯科技(深圳)有限公司 A kind of video playing progress synchronous method and device
JP2019032764A (en) * 2017-08-09 2019-02-28 株式会社アスタリスク Reading system
US10599298B1 (en) * 2015-06-17 2020-03-24 Amazon Technologies, Inc. Systems and methods for social book reading
CN111078418A (en) * 2019-12-23 2020-04-28 北京奇艺世纪科技有限公司 Operation synchronization method and device, electronic equipment and computer readable storage medium
KR20200050159A (en) * 2018-11-01 2020-05-11 주식회사 한글과컴퓨터 Electronic terminal device capable of calculating a predicted reading time for a document and operating method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156783A (en) * 2005-12-05 2007-06-21 Ebook Initiative Japan Co Ltd Electronic book system
KR100930333B1 (en) * 2009-07-10 2009-12-08 이기자 Reading and language learning system using wired and wireless internet communication network
CN103503004A (en) * 2011-07-12 2014-01-08 索尼公司 Electronic book reader
US10599298B1 (en) * 2015-06-17 2020-03-24 Amazon Technologies, Inc. Systems and methods for social book reading
CN106878406A (en) * 2017-02-07 2017-06-20 腾讯科技(深圳)有限公司 Information sharing method, apparatus and system
CN106933964A (en) * 2017-02-07 2017-07-07 掌阅科技股份有限公司 A kind of method, device and electronic equipment for determining to read duration
CN108933948A (en) * 2017-05-24 2018-12-04 腾讯科技(深圳)有限公司 A kind of video playing progress synchronous method and device
JP2019032764A (en) * 2017-08-09 2019-02-28 株式会社アスタリスク Reading system
KR20200050159A (en) * 2018-11-01 2020-05-11 주식회사 한글과컴퓨터 Electronic terminal device capable of calculating a predicted reading time for a document and operating method thereof
CN111078418A (en) * 2019-12-23 2020-04-28 北京奇艺世纪科技有限公司 Operation synchronization method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112328529A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
KR101851082B1 (en) Method and device for information push
EP2378437A1 (en) Data synchronization methods in communication systems
CN108920247B (en) Page switching processing method, device and terminal, storage medium and program product
KR101452725B1 (en) Mobile terminal and method for synchronizing data thereof
CN112953791B (en) Network detection method and device, electronic equipment and computer readable storage medium
CN112115200B (en) Data synchronization method, device, electronic equipment and readable storage medium
CN111737617A (en) Page resource loading method and device, electronic equipment and storage medium
Kaart et al. Android forensics: Interpretation of timestamps
CN107562372B (en) Electronic equipment, data management method thereof and computer readable storage medium
CN105488200A (en) Webpage display method and device
CN111782728A (en) Data synchronization method, device, electronic equipment and medium
RU2608670C2 (en) Method, device and terminal for prompt of sns system application
CN112328529B (en) Method, device, terminal and storage medium for determining reading progress of electronic book
CN112788090B (en) Network resource transmission method, device and system
US20170131857A1 (en) Wallpaper processing method and electronic device
CN110213367B (en) Interactive information notification method, device, equipment and computer readable storage medium
CN111309693A (en) Data synchronization method, device and system, electronic equipment and storage medium
CN112463746B (en) File storage and generation method and device and electronic equipment
US20140324720A1 (en) Method, system, intelligent terminal and storage medium for information recommendation
CN111131497B (en) File transmission method and device, electronic equipment and storage medium
CN111309411B (en) Schedule display method and device
US11531120B2 (en) Picture processing method and related device
CN113076288A (en) File processing method and device, electronic equipment and storage medium
CN112256654A (en) Document sharing method and device
CN106708418B (en) Method and device for storing messages in game environment

Legal Events

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