CN115604254B - Breakpoint review processing method and device - Google Patents

Breakpoint review processing method and device Download PDF

Info

Publication number
CN115604254B
CN115604254B CN202211609232.8A CN202211609232A CN115604254B CN 115604254 B CN115604254 B CN 115604254B CN 202211609232 A CN202211609232 A CN 202211609232A CN 115604254 B CN115604254 B CN 115604254B
Authority
CN
China
Prior art keywords
answer data
answer
user
server
localstorage
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
CN202211609232.8A
Other languages
Chinese (zh)
Other versions
CN115604254A (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.)
Jinan Liyang Shenzhou Intelligent Technology Co ltd
Original Assignee
Jinan Liyang Shenzhou Intelligent 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 Jinan Liyang Shenzhou Intelligent Technology Co ltd filed Critical Jinan Liyang Shenzhou Intelligent Technology Co ltd
Priority to CN202211609232.8A priority Critical patent/CN115604254B/en
Publication of CN115604254A publication Critical patent/CN115604254A/en
Application granted granted Critical
Publication of CN115604254B publication Critical patent/CN115604254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The application discloses a breakpoint check-in processing method and equipment, which belong to the technical field of data processing and are used for solving the problem that the answer of a user is lost due to a breakpoint, and the method comprises the following steps: the local client caches the answer data of the user to a LocalStorage according to the user identification, and sends the answer data to a server Redis; when the answer page is opened again, reading answer data from the LocalStorage; judging whether the answer data is read successfully or not, if so, displaying the answer data to an answer page; if not, sending a request message to the server so that the server can read answer data of Redis according to the request message and judge whether the answer data in Redis is successfully read; and if so, sending the packaged answer data to the local client. When the examination is continued at the breakpoint, the answer of the user can be effectively prevented from being lost.

Description

Breakpoint review processing method and device
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for processing a breakpoint review.
Background
With the development of internet technology, online examinations are more and more popular. Compared with offline paper examinations, the online examinations are low in cost, high in efficiency, rapid, convenient, time-saving and labor-saving, and the time and region limitations are broken.
Although the online examination brings convenience to people, an emergency situation often occurs in the examination process. For example, if a sudden power failure occurs due to uncertain reasons such as weather or line aging, a browser page in an examination is suddenly closed, so that an examination breakpoint of a user occurs, and then after the browser is opened again, a situation that all answers are lost occurs, or the examination breakpoint of the user occurs due to closing of the browser, crash, restart, and the like due to human factors, so that the answers of the user are lost due to the breakpoint.
Disclosure of Invention
The application provides a breakpoint continuous examination processing method and device, which solve the technical problem that the answer of a user is lost due to a breakpoint.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a breakpoint check-in processing method, which comprises the following steps: the local client caches the answer data of the user in real time to a LocalStorage according to the user identification, and sends the answer data to a server Redis; when the answer page is opened again, reading the answer data from the LocalStorage; judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page; if not, sending a request message to the server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; and if yes, packaging the answer data, sending the packaged answer data to the local client, analyzing the packaged answer data, and displaying the analyzed answer data to the answer page.
In some embodiments of the present application, the method further comprises: the local client broadcasts the answer data to other answer terminal equipment in a local area network; if the answer data in the Redis is not read successfully, selecting any answer terminal equipment from the other answer terminal equipment as alternative answer terminal equipment; judging whether the answer data is read from the alternative answer terminal equipment or not; and if so, displaying the answer data to the answer page.
In some embodiments of the present application, the caching, by the local client, the answer data of the user into the LocalStorage in real time according to the user identifier, specifically includes: the local client creates a first storage space corresponding to the answer data of the user in the LocalStorage according to the user identification; dividing the first storage space into a plurality of corresponding first cache regions according to DOM nodes of a user answer page; receiving answer data of the user, and generating a first timestamp according to the time for receiving the answer data; and sequentially storing the answer data with the first timestamp into a first cache region in the LocalStorage.
In some embodiments of the present application, the reading the answer data from the LocalStorage specifically includes: acquiring the user identification, and accessing the corresponding first storage space in the LocalStorage according to the user identification; and in the first storage space, reading answer data of the first cache region according to the corresponding relation between the answer page nodes and the first cache region.
In some embodiments of the present application, after the sending the answer data to the server Redis, the method further includes: the server establishes a second storage space of the answer data of the user according to the user identification in the server Redis; dividing the second storage space into a plurality of corresponding second cache regions according to DOM nodes of the user answer pages; receiving answer data of the user, and generating a second timestamp according to the time for receiving the answer data; and sequentially storing the answer data with the second timestamp into a second cache region in the server Redis.
In some embodiments of the present application, the method further comprises: if the data in the LocalStorage is read to be empty, the local client directly accesses the server Redis through a browser; a request message containing the user identifier, the password, the client identifier, the DOM node of the answer page and a second timestamp is sent to the server Redis through the browser; judging whether the user identification and the password are correct or not; if so, reading answer data in the second storage space according to the DOM node and the second timestamp of the answer page, and packaging the read answer data; and sending the packaged answer data to the local client according to the client identification.
In some embodiments of the present application, the method further comprises: when the user logs in the account, the server generates a marking position according to the user identification so as to mark the login state of the user; when the user account is detected to log in again, detecting whether the mark bit is valid, and if so, preventing the user account from logging in this time; receiving an account unlocking request from the local client, and forwarding the account unlocking request to administrator terminal equipment; receiving the operation of the administrator terminal equipment, and carrying out unlocking response on the account unlocking request; and recording the account unlocking request and the unlocking response.
In some embodiments of the present application, the server receives an application message requesting to prolong the examination time, where the application message is sent by the local client; acquiring the breakpoint duration of the local client according to the application message; judging whether the examination time prolonged by the user application is not greater than the breakpoint duration, if so, executing an allowing command for the user application; if not, checking whether the application request is accompanied by an application reason; if so, sending the application message with the application reason to the administrator terminal equipment; and receiving the operation of the administrator terminal equipment, and executing an allowance or rejection instruction.
In some embodiments of the present application, the method further comprises: storing the answer data in DOM nodes of the answer page in a key value pair mode, and connecting the key value pairs in series according to the sequence in the answer page to generate an answer data string; and correspondingly storing the answer data string to a first cache region of the LocalStorage or a second cache region of the server Redis.
The embodiment of the application provides a breakpoint resume processing device, which is applied to a local client and comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to: the local client caches the answer data of the user in real time to a LocalStorage according to the user identification, and sends the answer data to a server Redis; when the answer page is opened again, reading the answer data from the LocalStorage; judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page; if not, sending a request message to the server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; if yes, packaging the answer data, and sending the packaged answer data to the local client; and analyzing the packaged answer data, and displaying the analyzed answer data to the answer page.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
by locally storing the user answer data and storing the data in the server, the local computer can be prevented from being out of order, the server can be used as a final guarantee, and the server can be used for the user to look up as a question record. When the breakpoint check-in is carried out, the data of user answer is effectively prevented from being lost, a cache storage mode is adopted by the local storage Localstorage and the server Redis, the speed is very high, the performance of the browser is not influenced, and the answer efficiency of the user is not influenced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a breakpoint review processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a breakpoint resumption processing device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in detail and completely with reference to the following specific embodiments. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a breakpoint review processing method according to an embodiment of the present application, where the method can be applied to different business fields, such as an internet financial business field, an e-commerce business field, an instant messaging business field, a game business field, and a business field. Certain input parameters or intermediate results in the procedure allow for manual intervention adjustments to help improve accuracy.
The process in fig. 1 may include the following steps:
s101: the local client caches the answer data of the user in real time to a LocalStorage according to the user identification, and sends the answer data to a server Redis.
In some embodiments of the present application, a local client creates, according to a user identifier, a first storage space corresponding to user answer data in a LocalStorage; dividing a first storage space into a plurality of corresponding first cache regions according to DOM nodes in a user answer page; receiving answer data of a user, and generating a timestamp according to the time for receiving the answer data; and sequentially storing the answer data with the time stamps into a first cache region in a LocalStorage.
The LocalStorage is equivalent to a database at the front end, so that in order to store the user answer data in the browser interface, a first storage space corresponding to the user answer data is created in the LocalStorage according to the user identification, and when the user logs in again, the first storage space where the answer data is located can be found easily according to the user identification. The front-end interface can be partitioned by Document Object type (DOM) nodes, in order to conveniently and orderly read data in a first storage space, the storage space is divided into a plurality of first cache regions according to the DOM nodes in an answer page, when a user fills data, a first timestamp is generated according to the time of the user filling the data, and the timestamp is generated for each element in a webpage. And then analyzing the DOM node where the answer data is located, and storing the answer data with the first timestamp into the first cache region according to the DOM node where the answer data is located.
In an embodiment of the application, a server creates a second storage space corresponding to user answer data in a server Redis according to a user identifier; dividing the second storage space into a plurality of corresponding second cache regions according to nodes in the user answer page; receiving answer data of a user, and generating a second timestamp according to the time for receiving the answer data; and sequentially storing the answer data with the second time stamp into a second cache region in the server Redis.
Specifically, the server Redis (TencentDB for Redis) provides a highly available, reliable and highly resilient database service compatible with the Redis protocol. The storage capacity of 8TB is supported to the maximum, ten million levels of concurrent requests are met, and the requirements of services in different scenes such as caching, storage, calculation and the like are met. And creating a second storage space corresponding to the user in Redis according to the user identification, wherein the second storage space is used for storing answer data of the user, and when the stored answer data cannot be read from the LocalStorage, the browser can access Redis to obtain the answer data.
And the second storage space opened in Redis is also partitioned according to the page nodes of the browser to form a plurality of second cache areas for correspondingly storing the answer data of the user. And when the server receives the answer data of the user, generating a second time stamp according to the time of receiving the data, and sequentially storing the answer data with the second time stamp into a second cache region. The server is deployed for storage, so that local computer faults can be prevented, the server is used as a final guarantee, and the server can be used for a user to check the question making records after the answer is finished.
In one embodiment of the application, the answer data contained in each DOM node is stored in a key value pair mode, and the key value pairs are connected in series according to the sequence in the answer page to generate an answer data string; and storing the answer data string into a first cache region of LocalStorage or a second cache region of Redis according to the corresponding relation between the DOM node and the cache region.
That is to say, the answer data in each DOM node is stored in a key value pair manner, the key value pairs are connected in series according to the sequence in the answer page, and the answer data string generated after the connection in series is correspondingly stored in the first cache region of the LocalStorage and the second cache region of the Redis.
S102: when the answer sheet is reopened, answer data is read from the LocalStorage.
In an embodiment of the application, when a user reopens an answer interface, a browser obtains a user identifier, and accesses a corresponding storage space in a LocalStorage according to the user identifier; and reading the answer data of the first cache region into an answer interface of the browser according to the corresponding relation between the page node and the first cache region.
It should be noted that, when the user is in the process of the online examination and the user submits the answer, the answer page may not be closed, so when the local client detects that the answer page is reopened, it is determined that the current answer page is in the breakpoint examination continuation state.
S103: and judging whether the answer data is successfully read, and if so, displaying the answer data to an answer page.
S104: if not, sending a request message to the server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; and if so, packaging the answer data and sending the packaged answer data to the local client.
In an embodiment of the present application, if the answer data is not successfully displayed, it indicates that the LocalStorage has not successfully stored the answer data, and at this time, the server Redis needs to be accessed to obtain the answer data.
If the data in the LocalStorage read by the local client is empty, directly accessing the server Redis through a browser; a request message containing a user identifier, a password, an equipment identifier, a DOM node of an answering page and a second timestamp is sent to a server Redis through a browser; the server judges whether the user identification and the password are correct or not; if so, reading answer data in a second storage space according to the DOM node and a second timestamp of the answer page, and packaging the read answer data; and sending the packaged answer data to the local client according to the client identification.
Specifically, because the answer data belongs to privacy, others are prevented from stealing the answer data. Therefore, when the server receives the access message, the identity of the user is verified according to the user identification and the password in the access message, and if the user identification and the password in the access message do not pass, the user is not accessed. If the answer data passes the preset path, the answer data in the second storage space is read according to the DOM node and the second timestamp of the answer page, the answer data is packaged according to the rule to generate an answer data packet, and then the answer data packet is sent to the corresponding local client according to the path by identifying the user identification, so that the data is prevented from being stolen. And the browser analyzes the received answer data packet and displays the answer data on a browser interface.
In some embodiments of the present application, in order to prevent a situation that answer data is not successfully stored in both the LocalStorage server and the Redis server, the local client broadcasts the answer data to other answer terminal devices in the local area network.
Based on the above, if the answer data in the Redis is not read successfully, any answer terminal device is selected from other answer terminal devices as an alternative answer terminal device, whether the answer data is read from the alternative answer terminal device or not is judged, and if yes, the answer data is displayed on an answer page.
It should be noted that, if other answering terminal devices are not read successfully, the user is notified to answer again.
In one embodiment of the application, when a user logs in an account, a server generates a flag according to a user identifier so as to mark the login state of the user; when the user account logs in again, detecting whether the mark bit is valid, and if so, preventing the user account from logging in; after the blocking, the user side can send an account unlocking request to the server, the server forwards the account unlocking request to the administrator terminal equipment, receives the operation of the administrator terminal equipment and carries out unlocking response on the account unlocking request; and recording the account number unlocking request and the unlocking response.
It can be understood that when the examination of the user is interrupted, in order to prevent cheating problems caused by secondary login and answer of other people, the login state can be marked through the marking position, so that the user account is allowed to log in for one time, and the cheating condition of the user is prevented. When the user logs in again, the login state needs to be unlocked so as to log in again after the mark bit is cleared.
In an embodiment of the present application, the user inevitably causes a loss of the answering time during the breakpoint, and in order to allow the user enough time to answer the question, the user may request the background to extend the answering time according to the actual situation. The examination time of the user is prolonged according to the user requirement, humanized service is provided for the user, and the user experience is improved.
Based on the method, the user can apply for prolonging the examination time to the background, the server receives an application message which is sent by the local client and requests for prolonging the examination time, and the breakpoint duration of the local client is obtained according to the application message; judging whether the examination time prolonged by the user application is not more than the breakpoint duration, if so, executing an allowing command for the user application, and if not, checking whether an application reason is attached to the application request; if yes, sending the application message with the application reason to the administrator terminal equipment, receiving the operation of the administrator terminal equipment, and executing an allowing or rejecting instruction.
In an embodiment of the application, different from a privacy-free mode of a PC, if a user logs in an account through a mobile phone terminal to perform an examination, whether a browser is in the privacy mode needs to be judged, and if so, the privacy mode is closed to prevent the situation that LocalStorage cannot be read. The browser privacy mode is an Internet browsing mode without leaving Internet browsing records, and the browser does not store any browsing history, search history, download history, form history, cookie or Internet temporary files in the privacy browsing process. Therefore, if the browser starts the privacy mode, the answer data cannot be stored in the LocalStorage, and if power-off restarting occurs, the content cannot be read from the LocalStorage.
By the method of fig. 1, the local computer can be prevented from being out of order by locally storing the user answer data and storing the user answer data in the server, so that the server is used as the final guarantee, and the server can be also used for the user to look up as the question record. When a user is in a breakpoint, the user answering data is effectively prevented from being lost, a cache storage mode is adopted for local storage LocalStorage and a server Redis, the speed is very high, the performance of the browser is not influenced, and therefore the answering efficiency of the user is not influenced.
Based on the same idea, some embodiments of the present application further provide a device and a non-volatile computer storage medium corresponding to the above method.
Fig. 2 is a schematic structural diagram of a breakpoint resume processing device provided in an embodiment of the present application, which is applied to a local client, and the device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to cause the at least one processor to:
the local client caches the answer data of the user in real time to a LocalStorage according to the user identification, and sends the answer data to a server Redis;
when the answer page is opened again, reading the answer data from the LocalStorage;
judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page;
if not, sending a request message to a server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; if yes, packaging the answer data, and sending the packaged answer data to the local client;
and analyzing the packaged answer data, and displaying the analyzed answer data to the answer page.
Based on the same idea, some embodiments of the present application further provide a medium corresponding to the above method.
Some embodiments of the present application provide a breakpoint check-in processing storage medium, which stores computer-executable instructions and is applied to a local client, where the computer-executable instructions are configured to:
caching answer data of a user into a LocalStorage in real time according to a user identifier, and sending the answer data to a server Redis;
when the answer page is opened again, reading the answer data from the LocalStorage;
judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page;
if not, sending a request message to a server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; if yes, packaging the answer data, and sending the packaged answer data to the local client;
and analyzing the packaged answer data, and displaying the analyzed answer data to the answer page.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as to the method and media embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some of the descriptions of the method embodiments for relevant points.
The method and the medium provided by the embodiment of the application correspond to the method one to one, so the method and the medium also have the beneficial technical effects similar to the corresponding method.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process method article or method 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 method. Without further limitation, an element defined by the phrase "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in the article or method of process including the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (8)

1. A breakpoint check-in processing method is characterized by comprising the following steps:
the method comprises the steps that a local client caches answer data of a user into a LocalStorage in real time according to a user identifier, and sends the answer data to a server Redis;
when the answer page is opened again, reading the answer data from the LocalStorage;
judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page;
if not, sending a request message to the server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; if yes, packaging the answer data, and sending the packaged answer data to the local client;
analyzing the packaged answer data, and displaying the analyzed answer data to the answer page;
the local client caches the answer data of the user in real time to a LocalStorage according to the user identifier, and specifically includes:
the local client creates a first storage space corresponding to the answer data of the user in the LocalStorage according to the user identification;
dividing the first storage space into a plurality of corresponding first cache regions according to DOM nodes of the user answer pages;
receiving answer data of the user, and generating a first timestamp according to the time for receiving the answer data;
sequentially storing the answer data with the first timestamp into a first cache region in the LocalStorage;
the reading of the answer data from the LocalStorage specifically includes:
acquiring the user identification, and accessing the corresponding first storage space in the LocalStorage according to the user identification;
and in the first storage space, reading answer data of the first cache region according to the corresponding relation between the answer page nodes and the first cache region.
2. The method of claim 1, further comprising:
the local client broadcasts the answer data to other answer terminal equipment in a local area network;
if the answer data in the Redis is not read successfully, selecting any answer terminal equipment from the other answer terminal equipment as alternative answer terminal equipment;
judging whether the answer data is read from the alternative answer terminal equipment or not;
and if so, displaying the answer data to the answer page.
3. The method according to claim 1, wherein after said sending said answer data to a server Redis, said method further comprises:
the server creates a second storage space of the answer data of the user according to the user identification in the server Redis;
dividing the second storage space into a plurality of corresponding second cache regions according to the DOM nodes of the user answer pages;
receiving answer data of the user, and generating a second timestamp according to the time for receiving the answer data;
and sequentially storing the answer data with the second timestamp into a second cache region in the server Redis.
4. The method of claim 3, further comprising:
if the data in the LocalStorage is read to be empty, the local client accesses the server Redis through a browser;
a request message containing the user identifier, the password, the client identifier, the DOM node of the answer page and a second timestamp is sent to the server Redis through the browser;
the server judges whether the user identification and the password are correct or not;
if so, reading answer data in the second storage space according to the DOM node and the second timestamp of the answer page, and packaging the read answer data;
and sending the packaged answer data to the local client according to the client identification.
5. The method of claim 1, further comprising:
when the user logs in the account, the server generates a marking position according to the user identification so as to mark the login state of the user;
when the user account is detected to log in again, detecting whether the mark bit is valid, and if so, preventing the user account from logging in this time;
receiving an account unlocking request from the local client, and forwarding the account unlocking request to administrator terminal equipment;
receiving the operation of the administrator terminal equipment, and carrying out unlocking response on the account unlocking request;
and recording the account unlocking request and the unlocking response.
6. The method of claim 1, further comprising:
the server receives an application message which is sent by the local client and requests to prolong the examination time;
acquiring the breakpoint duration of the local client according to the application message;
judging whether the examination time prolonged by the user application is not greater than the breakpoint duration, if so, executing an allowing command for the user application;
if not, checking whether the application request is accompanied by an application reason;
if so, sending the application message with the application reason to the administrator terminal equipment;
and receiving the operation of the administrator terminal equipment, and executing an allowance or rejection instruction.
7. The method of claim 1, further comprising:
storing the answer data in DOM nodes of the answer page in a key value pair mode, and connecting the key value pairs in series according to the sequence in the answer page to generate an answer data string;
and correspondingly storing the answer data string to a first cache region of the LocalStorage or a second cache region of the server Redis.
8. A breakpoint resume processing device applied to a local client includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
caching answer data of a user into a LocalStorage in real time according to a user identifier, and sending the answer data to a server Redis;
when the answer page is opened again, reading the answer data from the LocalStorage;
judging whether the answer data is read successfully or not, if so, displaying the answer data to the answer page;
if not, sending a request message to a server so that the server can read the answer data in the Redis according to the request message and judge whether the answer data in the Redis is read successfully or not; if yes, packaging the answer data, and sending the packaged answer data to the local client;
analyzing the packaged answer data, and displaying the analyzed answer data to the answer page;
the real-time caching of the answer data of the user into the LocalStorage according to the user identifier specifically includes:
the first storage space corresponding to the answer data of the user is created in the LocalStorage according to the user identification;
dividing the first storage space into a plurality of corresponding first cache regions according to DOM nodes of a user answer page;
receiving answer data of the user, and generating a first timestamp according to the time for receiving the answer data;
sequentially storing the answer data with the first timestamp into a first cache region in the LocalStorage;
the reading of the answer data from the LocalStorage specifically includes:
acquiring the user identification, and accessing the corresponding first storage space in the LocalStorage according to the user identification;
and in the first storage space, reading answer data of the first cache region according to the corresponding relation between the answer page nodes and the first cache region.
CN202211609232.8A 2022-12-15 2022-12-15 Breakpoint review processing method and device Active CN115604254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211609232.8A CN115604254B (en) 2022-12-15 2022-12-15 Breakpoint review processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211609232.8A CN115604254B (en) 2022-12-15 2022-12-15 Breakpoint review processing method and device

Publications (2)

Publication Number Publication Date
CN115604254A CN115604254A (en) 2023-01-13
CN115604254B true CN115604254B (en) 2023-03-31

Family

ID=84853953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211609232.8A Active CN115604254B (en) 2022-12-15 2022-12-15 Breakpoint review processing method and device

Country Status (1)

Country Link
CN (1) CN115604254B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038334A (en) * 2002-06-28 2004-02-05 Toshiba Corp Operating position storing method, structured document displaying method, structured document display unit, its program, and operating position storage data
CN108595652A (en) * 2018-04-27 2018-09-28 平安科技(深圳)有限公司 Load method, apparatus, computer equipment and the storage medium of DOM node data
CN111737616A (en) * 2020-06-05 2020-10-02 苏州浪潮智能科技有限公司 Page caching method, device, equipment and medium based on B/S architecture

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8631091B2 (en) * 2010-10-15 2014-01-14 Northeastern University Content distribution network using a web browser and locally stored content to directly exchange content between users
CN106294365A (en) * 2015-05-15 2017-01-04 阿里巴巴集团控股有限公司 The page data processing method of a kind of single page web application and equipment
CN106470225B (en) * 2015-08-18 2019-07-30 阿里巴巴集团控股有限公司 A kind of notification message management method and device
CN110704721A (en) * 2019-10-10 2020-01-17 秒针信息技术有限公司 Client data processing method and device, terminal equipment and readable storage medium
CN111723323B (en) * 2020-06-11 2021-02-19 湖北美和易思教育科技有限公司 Method and device for transmitting answer data of test paper of online examination system
CN113641710A (en) * 2021-08-13 2021-11-12 山东亿云信息技术有限公司 Online examination system throughput improving device and method based on three-level cache

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038334A (en) * 2002-06-28 2004-02-05 Toshiba Corp Operating position storing method, structured document displaying method, structured document display unit, its program, and operating position storage data
CN108595652A (en) * 2018-04-27 2018-09-28 平安科技(深圳)有限公司 Load method, apparatus, computer equipment and the storage medium of DOM node data
CN111737616A (en) * 2020-06-05 2020-10-02 苏州浪潮智能科技有限公司 Page caching method, device, equipment and medium based on B/S architecture

Also Published As

Publication number Publication date
CN115604254A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
CN103607385B (en) Method and apparatus for security detection based on browser
KR100723867B1 (en) Apparatus and method for blocking access to phishing web page
CN103257989B (en) Web page download time is analyzed
CN109688097A (en) Website protection method, website protective device, website safeguard and storage medium
CN102065147A (en) Method and device for obtaining user login information based on enterprise application system
CN107786551B (en) Method for accessing intranet server and device for controlling access to intranet server
CN106656577B (en) The user behavior statistical method and intelligent router of a kind of APP and browser
CN101540734A (en) Method, system and device for accessing Cookie by crossing domain names
CN110046494B (en) Big data processing method and system based on terminal
US20160277417A1 (en) Method and apparatus for communication number update
CN106982430B (en) Portal authentication method and system based on user use habits
CN113518077A (en) Malicious web crawler detection method, device, equipment and storage medium
CN108429785A (en) A kind of generation method, reptile recognition methods and the device of reptile identification encryption string
CN113469866A (en) Data processing method and device and server
CN108156118A (en) User Identity method and device
CN106411819A (en) Method and apparatus for recognizing proxy Internet protocol address
CN115604254B (en) Breakpoint review processing method and device
CN112165458B (en) Real-name authentication method, device and terminal
CN111786990B (en) Defense method and system for WEB active push skip page
Ma et al. Analyzing errors and referral pairs to characterize common problems and improve web reliability
US9723017B1 (en) Method, apparatus and computer program product for detecting risky communications
CN109241458A (en) A kind of Ad blocking method and router based on router
CN108173823A (en) The anti-grasping means of the page and device
CN112882893A (en) Method for real-time monitoring application service log generated by mobile terminal
US20080033961A1 (en) Electronic Document Browsing

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