Resource status updating method, device and electronic device
By obtaining log information of network learning resources or determining the processing status based on interactive data information and preset rules, the learning status update problem caused by the failure to send ajax request is solved, and the learning experience is improved.
Patent Information
- Application Number
- CN202011447731.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-12-11
AI Technical Summary
In the enterprise learning platform, when the ajax request is sent, the user's resource learning status cannot be updated normally, and the user needs to learn again, reducing the learning experience.
By determining whether a status update request has been received after the user process is completed, if the request is not received, the log information of the target network learning resource is obtained or the processing status is determined based on the interaction data information and preset rules, and the processing status is updated in real time.
It avoids the learning status update failure caused by the failure to send ajax request, reduces the number of times the user re-learning and improves the learning experience.
Smart Images

Figure CN112711597B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network learning resource processing, and in particular to a resource status updating method, device and electronic device. Background Art
[0002] SCORM is a standard for the creation, management, and use of shared courseware developed by the ADL (Advanced Distributed Learning) initiative.
[0003] At present, when enterprise employees conduct SCORM learning through the enterprise learning platform, when enterprise employees finish learning a certain SCORM courseware, an Ajax request will be made to ensure that the student's learning status is updated. However, when network abnormalities or request timeouts occur, the Ajax request will fail to be sent, which will cause the user's resource learning status to fail to be updated normally. It can only be completed by the student re-learning, which greatly reduces the user's learning experience. Summary of the invention
[0004] The present application provides a resource status updating method, device and electronic device to solve the problem in the prior art that when an ajax request fails to be sent, the user's resource learning status cannot be updated normally and can only be completed by the student re-learning, which greatly reduces the user's learning experience.
[0005] In order to solve the above problems, an embodiment of the present application provides a resource status updating method, which is applied to an online learning platform. The method includes:
[0006] determining whether a status update request for a target online learning resource has been received;
[0007] In the case where the status update request is not received, obtaining log information corresponding to the target online learning resource, and obtaining and updating the user's processing status for the target online learning resource according to the log information; or
[0008] In the case where the status update request is not received, the processing status of the target online learning resource by the user is determined according to the interactive data information and preset rules in the process of the user processing the target online learning resource, and the processing status is updated.
[0009] Optionally, the target network learning resource includes a video resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes:
[0010] Acquire the processing time of the user in the process of processing the target online learning resource and the total time of the target online learning resource;
[0011] In the case where it is determined that the processing time is greater than or equal to the total time, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in a database;
[0012] When it is determined that the processing time is less than the total time, the processing status of the target online learning resource by the user is determined to be an unfinished processing status, and the status of the target online learning resource by the user is updated to an unfinished processing status in the database.
[0013] Optionally, the target network learning resource includes a question-answering resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes:
[0014] Acquire the number of correct answers given by the user in the process of processing the target online learning resource and the total number of questions in the target online learning resource;
[0015] Obtaining the ratio between the number of correct answers and the total number of questions;
[0016] When the ratio is greater than or equal to a preset ratio, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in a database;
[0017] When the ratio is less than the preset ratio, it is determined that the processing status of the target network learning resource by the user is in an unfinished processing state, and the status of the target network learning resource by the user is updated to an unfinished processing state in the database.
[0018] Optionally, the target network learning resource includes a question-answering resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes:
[0019] Acquiring the answer result of the user to the target question in the target online learning resource during the process of the user processing the target online learning resource;
[0020] In the case that the answer results are all correct answer results, determining that the processing status of the user for the target online learning resource is a processing completion status, and updating the status of the user for the target online learning resource to a processing completion status in the database;
[0021] When there is at least one wrong answer result in the answer results, it is determined that the user's processing status for the target online learning resource is an unfinished processing status, and the user's status for the target online learning resource is updated to an unfinished processing status in the database.
[0022] Optionally, the target network learning resource includes browsing resources, and determining the user's learning status for the target network learning resource according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updating the processing status, includes:
[0023] Acquire the number of times the user browses the target online learning resource during the process of the user processing the target online learning resource;
[0024] When the number of views is greater than or equal to the set number of views, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in the database;
[0025] When the browsing times are less than the set times, the processing status of the target network learning resource by the user is determined to be an unfinished processing status, and the status of the target network learning resource by the user is updated to an unfinished processing status in the database.
[0026] In order to solve the above technical problems, the embodiment of the present application provides a resource status updating device, which is applied to an online learning platform, including:
[0027] A status update request determination module, used to determine whether a status update request for a target online learning resource has been received;
[0028] a first processing status update module, configured to obtain log information corresponding to the target network learning resource when the status update request is not received, and obtain and update the user's processing status for the target network learning resource according to the log information; or
[0029] The second processing status update module is used to determine the processing status of the user for the target online learning resource and update the processing status according to the interactive data information and preset rules of the user in the process of processing the target online learning resource when the status update request is not received.
[0030] Optionally, the target network learning resource includes a video resource, and the second processing state updating module includes:
[0031] A processing time acquisition unit, used to acquire the processing time of the user in the process of processing the target network learning resource, and the total time of the target network learning resource;
[0032] A first completion status updating unit is used to determine that the processing status of the target online learning resource by the user is a processing completion status when it is determined that the processing duration is greater than or equal to the total duration, and update the status of the target online learning resource by the user to the processing completion status in a database;
[0033] The first unfinished state updating unit is used to determine that the processing state of the user for the target online learning resource is an unfinished state when it is determined that the processing time is less than the total time, and update the state of the user for the target online learning resource to an unfinished state in the database.
[0034] Optionally, the target online learning resource includes a question-answering resource, and the second processing status updating module includes:
[0035] A question answering data acquisition unit, used to acquire the number of correct answers given by the user in the process of processing the target online learning resource, and the total number of questions in the target online learning resource;
[0036] A question answer ratio obtaining unit, used to obtain the ratio between the number of correct answers and the total number of questions;
[0037] A second completion status updating unit is used to determine that the processing status of the target online learning resource by the user is a processing completion status when the ratio is greater than or equal to a preset ratio, and update the status of the target online learning resource by the user to the processing completion status in the database;
[0038] The second unfinished status updating unit is used to determine that the user's processing status for the target network learning resource is an unfinished processing status when the ratio is less than the preset ratio, and update the user's status for the target network learning resource to an unfinished processing status in the database.
[0039] Optionally, the target online learning resource includes a question-answering resource, and the second processing status updating module includes:
[0040] An answer result obtaining unit is used to obtain the answer result of the user to the target question in the target online learning resource during the process of the user processing the target online learning resource;
[0041] A third completion status updating unit is used to determine that the processing status of the user for the target online learning resource is a processing completion status when the answer results are all correct answer results, and update the status of the user for the target online learning resource to a processing completion status in the database;
[0042] The third incomplete status updating unit is used to determine that the user's processing status for the target network learning resource is an incomplete processing status when there is at least one incorrect answer result in the answer results, and update the user's status for the target network learning resource to an incomplete processing status in the database.
[0043] Optionally, the target network learning resource includes browsing resources, and the second processing status updating module includes:
[0044] A browsing count acquisition unit, used to acquire the browsing count of the target online learning resource by the user in the process of processing the target online learning resource;
[0045] a fourth completion status updating unit, configured to determine, when the number of browsing times is greater than or equal to a set number of times, that the processing status of the target network learning resource by the user is a processing completion status, and update the status of the target network learning resource by the user to a processing completion status in a database;
[0046] The fourth unfinished status updating unit is used to determine that the user's processing status for the target online learning resource is an unfinished status when the browsing times are less than the set times, and update the user's status for the target online learning resource to an unfinished status in the database.
[0047] In order to solve the above technical problems, an embodiment of the present application provides an electronic device, including:
[0048] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the resource status updating methods described above is implemented.
[0049] In order to solve the above technical problems, an embodiment of the present application provides a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any of the resource status update methods described above.
[0050] Compared with the prior art, this application has the following advantages:
[0051] The embodiment of the present application provides a resource status update method, device and electronic device, which determines whether a status update request for a target network learning resource is received after the user completes processing the target network learning resource, obtains the log information corresponding to the target network learning resource if no status update request is received, and obtains and updates the user's processing status for the target network learning resource based on the log information; or determines the user's processing status for the target network learning resource based on the user's interactive data information and preset rules in the process of processing the target network learning resource if no status update request is received, and updates the processing status. The embodiment of the present application obtains the user's processing status for the target network learning resource through the log information of the user on the target network learning resource saved by the client, or the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of a method for updating resource status provided by an embodiment of the present application is shown;
[0053] Figure 2 A flowchart showing another method for updating resource status provided by an embodiment of the present application is shown;
[0054] Figure 3 A schematic diagram of the structure of a resource status updating device provided in an embodiment of the present application is shown;
[0055] Figure 4 A schematic diagram of the structure of another resource status updating device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] Embodiment 1
[0058] Reference Figure 1, shows a flow chart of the steps of a resource status update method provided in an embodiment of the present application. The resource status update method can be applied to an online learning platform and may specifically include the following steps:
[0059] Step 101: Determine whether a status update request for a target online learning resource is received.
[0060] The embodiments of the present application can be applied to a scenario in which the status of a user processing a network learning resource is updated in combination with the log information of a client or the interaction data of a user in the process of processing the network learning resource.
[0061] The embodiments of the present application can be applied to an online learning platform, which refers to a platform for storing online learning resources, such as an enterprise learning platform.
[0062] Online learning resources refer to resources that can be used for learning by users. In this example, online learning resources can be a courseware video, such as a learning video on an APP (Application) of a driving school, or a video for employees to learn within an enterprise. Online learning resources can also be document learning resources, such as browsing text documents. The specific presentation form of online learning resources can be determined according to business needs, and this embodiment does not limit this.
[0063] The target network learning resource refers to one or more network resources that have been processed by the user and are provided by the network learning platform. For example, the network learning resources provided on the network learning platform include resource 1, resource 2, resource 3 and resource 4. When the user has completed processing resource 1 and resource 4, resource 1 and resource 4 can be regarded as target network learning resources; and when the user has completed processing resource 3, resource 3 can be regarded as the target network resource, and so on.
[0064] The status update request refers to a request sent by the client used by the user to the network learning platform for updating the user's processing status of the target network resource to a processing completion status. In this example, the status update request may be, for example, an ajax request.
[0065] After the user completes processing the target network resource, a status update request can be automatically triggered. For example, if a student completes a scorm resource on the front-end page, the scorm courseware's js will call a js method of the learning platform and initiate an ajax request (http protocol) to update the completion status of the resource, that is, update the completion status of the resource to the database through the interface. If the front-end request fails to send due to network reasons, a timer will be set to resend the request after 10 seconds.
[0066] A set time period may be pre-set on the network learning platform. Within the set time period after the user completes processing the target network learning resource, it may be determined whether the network learning platform receives a status update request for the target network learning resource.
[0067] In some examples, the process of determining whether a status update request for a target e-learning resource is received may be a process triggered when the user accesses the e-learning platform again in a subsequent process after processing the target e-learning resource.
[0068] In some examples, the process of determining whether a status update request for a target online learning resource is received may be that after a user processes the target online learning resource, no request from the user to access the online learning platform is received after a set period of time. At this time, the process of determining whether a status update request for the target online learning resource is received may be automatically triggered.
[0069] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation on the embodiments of the present application.
[0070] When no status update request for the target online learning resource is received, step 102 is executed, or step 103 is executed.
[0071] Step 102: when the status update request is not received, obtaining log information corresponding to the target online learning resource, and obtaining and updating the user's processing status for the target online learning resource according to the log information.
[0072] After the online learning platform receives the status update request, it will send a correct response to the client. When the client does not receive a response to the status update request for the target network resource, the log information corresponding to the target network resource can be generated locally on the client, that is, a log of a user processing the target network resource is recorded in the local cookie of the client (encrypted record of userId\modResId\completeStatus\completeTime).
[0073] When the user visits the online learning platform again, or the user has not visited the online learning platform for a long time, the online learning platform can be used to determine whether it has received a status update request for the target online learning resource. When the status update request for the target online learning resource is not received, the log information recorded by the client can be obtained to obtain the log information corresponding to the target online learning resource, and then the log information can be parsed. According to the parsing result, the user's processing status for the target online learning resource is obtained, and the user's processing status for the target online learning resource is updated in the database. For example, when it is determined through the log information of the target online learning resource that the user's processing status for the target online learning resource is a processing completion status, the user's processing status for the target online learning resource can be updated in the database to a processing completion status; and when it is determined through the log information of the target online learning resource that the user's processing status for the target online learning resource is an incomplete processing status, the user's processing status for the target online learning resource can be updated in the database to an incomplete processing status, etc.
[0074] Of course, in this embodiment, for one online learning resource, there may be multiple users processing the online learning resource. In the database, the user ID corresponding to each user can be pre-marked, and the processing status of each user ID for the online learning resource can be marked separately in the database.
[0075] The embodiment of the present application obtains the user's processing status of the target network learning resource through the log information of the user on the target network learning resource saved by the client, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of Ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0076] Step 103: when the status update request is not received, the processing status of the target online learning resource by the user is determined according to the interactive data information and preset rules in the process of the user processing the target online learning resource, and the processing status is updated.
[0077] Interaction data information refers to data information generated in the process of users processing target network learning resources. For example, when the target network learning resources are video resources, the interaction data information may be information about the viewing time of the users in the process of viewing the video resources; when the target network learning resources are browsing resources, the interaction data information may be information about the number of times the users browse the browsing resources; and when the target network learning resources are question-answering resources, the interaction data information may be information about the number of correct answers given by users to the question-answering resources, etc.
[0078] Preset rules refer to rules pre-set by business personnel for determining the user's processing status of the target network learning resources in combination with interactive data information. In this example, the preset rules can be any one of the rules such as learning time rules, number of views rules, correct answer probability, etc. Specifically, it will be described in detail in the following embodiment 2.
[0079] When the user visits the online learning platform again, or the user has not visited the online learning platform for a long time, the user's processing status for the target online learning resource can be determined based on the user's interactive data information and preset rules in the process of processing the target online learning, and the user's processing status for the target online learning resource can be updated in the database. For example, when the target online learning resource is a video resource, the preset rule is a duration rule. At this time, the viewing time of the user watching the video resource can be obtained. When the viewing time is greater than or equal to the total duration of the video resources, it can be determined that the user's processing status for the target online learning resource is a processing completion status; and when the viewing time is less than the total duration of the video resources, it can be determined that the user's processing status for the target online learning resource is an unprocessed status, etc.
[0080] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation on the embodiments of the present application.
[0081] The embodiment of the present application combines the interactive data information and preset rules of the user in the process of processing the target network learning resource to obtain the user's processing status of the target network learning resource and update it in real time, which can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending.
[0082] The resource status update method provided in the embodiment of the present application determines whether a status update request for the target network learning resource is received after the user completes processing the target network learning resource. If no status update request is received, the log information corresponding to the target network learning resource is obtained, and the processing status of the user for the target network learning resource is obtained and updated according to the log information; or if no status update request is received, the processing status of the user for the target network learning resource is determined according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and the processing status is updated. The embodiment of the present application obtains the processing status of the user for the target network learning resource through the log information of the user for the target network learning resource saved by the client, or the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0083] Embodiment 2
[0084] Reference Figure 2 , shows a flowchart of another resource status update method provided by an embodiment of the present application, the resource status update method can be applied to an online learning platform, and specifically may include the following steps:
[0085] Step 201: Determine whether a status update request for a target online learning resource is received.
[0086] The embodiments of the present application can be applied to a scenario in which the status of a user processing a network learning resource is updated in combination with the log information of a client or the interaction data of a user in the process of processing the network learning resource.
[0087] The embodiments of the present application can be applied to an online learning platform, which refers to a platform for storing online learning resources, such as an enterprise learning platform.
[0088] Online learning resources refer to resources that can be used for learning by users. In this example, online learning resources can be a courseware video, such as a learning video on an APP (Application) of a driving school, or a video for employees to learn within an enterprise. Online learning resources can also be document learning resources, such as browsing text documents. The specific presentation form of online learning resources can be determined according to business needs, and this embodiment does not limit this.
[0089] The target network learning resource refers to one or more network resources that have been processed by the user and are provided by the network learning platform. For example, the network learning resources provided on the network learning platform include resource 1, resource 2, resource 3 and resource 4. When the user has completed processing resource 1 and resource 4, resource 1 and resource 4 can be regarded as target network learning resources; and when the user has completed processing resource 3, resource 3 can be regarded as the target network resource, and so on.
[0090] The status update request refers to a request sent by the client used by the user to the network learning platform for updating the user's processing status of the target network resource to a processing completion status. In this example, the status update request may be, for example, an ajax request.
[0091] After the user completes processing the target network resource, a status update request can be automatically triggered. For example, if a student completes a scorm resource on the front-end page, the scorm courseware's js will call a js method of the learning platform and initiate an ajax request (http protocol) to update the completion status of the resource, that is, update the completion status of the resource to the database through the interface. If the front-end request fails to send due to network reasons, a timer will be set to resend the request after 10 seconds.
[0092] A set time period may be pre-set on the network learning platform. Within the set time period after the user completes processing the target network learning resource, it may be determined whether the network learning platform receives a status update request for the target network learning resource.
[0093] In some examples, the process of determining whether a status update request for a target e-learning resource is received may be a process triggered when the user accesses the e-learning platform again in a subsequent process after processing the target e-learning resource.
[0094] In some examples, the process of determining whether a status update request for a target online learning resource is received may be that after a user processes the target online learning resource, no request for the user to access the online learning platform is received after a set period of time. At this time, the process of determining whether a status update request for the target online learning resource is received may be automatically triggered.
[0095] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation on the embodiments of the present application.
[0096] When no status update request for the target online learning resource is received, step 202 is executed, or step 203 is executed, or step 206 is executed, or step 210 is executed, or step 213 is executed.
[0097] Step 202: when the status update request is not received, obtaining log information corresponding to the target online learning resource, and obtaining and updating the user's processing status for the target online learning resource according to the log information.
[0098] After the online learning platform receives the status update request, it will send a correct response to the client. When the client does not receive a response to the status update request for the target network resource, the log information corresponding to the target network resource can be generated locally on the client, that is, a log of a user processing the target network resource is recorded in the local cookie of the client (encrypted record of userId\modResId\completeStatus\completeTime).
[0099] When the user visits the online learning platform again, or the user has not visited the online learning platform for a long time, the online learning platform can be used to determine whether it has received a status update request for the target online learning resource. When the status update request for the target online learning resource is not received, the log information recorded by the client can be obtained to obtain the log information corresponding to the target online learning resource, and then the log information can be parsed. According to the parsing result, the user's processing status for the target online learning resource is obtained, and the user's processing status for the target online learning resource is updated in the database. For example, when it is determined through the log information of the target online learning resource that the user's processing status for the target online learning resource is a processing completion status, the user's processing status for the target online learning resource can be updated in the database to a processing completion status; and when it is determined through the log information of the target online learning resource that the user's processing status for the target online learning resource is an incomplete processing status, the user's processing status for the target online learning resource can be updated in the database to an incomplete processing status, etc.
[0100] Of course, in this embodiment, for one online learning resource, there may be multiple users processing the online learning resource. In the database, the user ID corresponding to each user can be pre-marked, and the processing status of each user ID for the online learning resource can be marked separately in the database.
[0101] The embodiment of the present application obtains the user's processing status of the target network learning resource through the log information of the user on the target network learning resource saved by the client, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of Ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0102] Step 203: Acquire the processing time of the user in processing the target online learning resource and the total processing time of the target online learning resource.
[0103] Processing time refers to the time it takes for a user to process a target online learning resource when the target online learning resource is a video resource, that is, the time it takes for a user to watch the video.
[0104] Total duration refers to the total duration of the target online learning resources.
[0105] When the user processes the target online learning resource, the client used by the user can send viewing time information to the online learning platform every set time (such as 2s or 3s, etc.), and the online learning platform can save the viewing time information of the user viewing the target online learning resource.
[0106] When the user visits the online learning platform again, or the user has not visited the online learning platform for a long time, the pre-saved processing time of the user in processing the target online learning resource and the total time of the target online learning resource can be obtained.
[0107] After obtaining the processing time of the user in processing the target online learning resource and the total processing time of the target online learning resource, step 204 is executed.
[0108] Step 204: when it is determined that the processing time is greater than or equal to the total time, the processing status of the target online learning resource by the user is determined to be a processing completion status, and the status of the target online learning resource by the user is updated to a processing completion status in the database.
[0109] Step 205: when it is determined that the processing time is less than the total time, the processing status of the target online learning resource by the user is determined to be an unfinished processing status, and the status of the target online learning resource by the user is updated to an unfinished processing status in the database.
[0110] After obtaining the processing time of the user in the process of processing the target online learning resource and the total time of the target online learning resource, the size relationship between the processing time and the total time can be compared.
[0111] When the processing time is greater than or equal to the total time, the user's processing status for the target network learning resource can be determined as a processing completion status, and the user's status for the target network learning resource can be updated to a processing completion status in the database of the network learning platform. For example, the total time of the target network learning resource is 2 hours, and the user's processing time for the target network learning resource is 2 hours, or exceeds 2 hours. At this time, the user's processing status for the target network learning resource can be determined as a processing completion status, etc.
[0112] When the processing time is less than the total time, it can be determined that the user's processing status for the target online learning resource is in an unfinished state, and the user's status for the target online learning resource in the database of the online learning platform is updated to an unfinished state. For example, the total time for the target online learning resource is 2 hours, and the user's processing time for the target online learning resource is 1 hour, or exceeds 1.5 hours. At this time, the user's processing status for the target online learning resource can be determined as an unfinished state, etc.
[0113] The embodiment of the present application is aimed at video learning resources. By combining the time the user watches such resources and the total time of such resources, the user's processing status of such learning resources is determined, which can avoid the problem of the user's failure to send an ajax request resulting in the inability to update the status of the learning resource normally.
[0114] Step 206: Obtain the number of correct answers given by the user in the process of processing the target online learning resource and the total number of questions in the target online learning resource.
[0115] The processing time refers to the number of correct answers to the target online learning questions processed by the user when the target online learning resource is a question-answering resource, that is, the number of correct answers among the answers to the user's questions.
[0116] The total number of questions refers to the total number of questions that users need to answer in the target online learning resources.
[0117] When the user processes the target online learning resource, the answers to the questions answered by the user during the process of processing the target online learning resource can be obtained and saved on the online learning platform.
[0118] When the user visits the online learning platform again, or when the user has not visited the online learning platform for a long time, the user's answers to the target online learning resource can be obtained, and the answers to the questions can be matched with the correct answers of the target online learning resource to obtain the number of correct answers given by the user in the process of processing the target online learning resource, as well as the total number of questions in the target online learning resource.
[0119] Step 207: Obtain the ratio between the number of correct answers and the total number of questions.
[0120] The ratio refers to the ratio between the number of correct answers and the total number of questions. For example, the number of correct answers is 10 and the total number of questions is 12. In this case, the ratio between the two is 10 / 12=5 / 6, etc.
[0121] After obtaining the number of correct answers of the user in the process of processing the target online learning resource and the total number of questions in the target online learning resource, the ratio between the number of correct answers and the total number of questions can be calculated, and then step 208 is executed.
[0122] Step 208: When the ratio is greater than or equal to a preset ratio, determine that the user's processing status for the target online learning resource is a processing completion status, and update the user's status for the target online learning resource to a processing completion status in the database.
[0123] Step 209: when the ratio is less than the preset ratio, determine that the user's processing status for the target online learning resource is an unfinished processing status, and update the user's status for the target online learning resource to an unfinished processing status in the database.
[0124] The preset ratio refers to a ratio preset by business personnel for determining the user's processing status of the target network learning resource. In this embodiment, the specific value of the preset ratio can be determined according to business needs, and this embodiment does not impose any limitation on this.
[0125] After obtaining the ratio between the number of correct answers and the total number of questions, the ratio can be compared with a preset ratio.
[0126] When the ratio is greater than or equal to the preset ratio, it can be determined that the user's processing status for the target network learning resource is a processing completed status, and the user's status for the target network learning resource is changed to a processing completed status in the database. For example, the preset ratio is 1 / 2, and the calculated ratio of the number of correct answers given by the user to the total number of questions is 3 / 4. At this time, 3 / 4 is greater than 1 / 2, so it can be determined that the user's processing status for the target network learning resource is a processing completed status, etc.
[0127] When the ratio is less than the preset ratio, it can be determined that the user's processing status for the target network learning resource is an incomplete processing status, and the user's status for the target network learning resource is updated to an incomplete processing status in the database. For example, the preset ratio is 1 / 2, and the calculated ratio of the number of correct answers of the user to the total number of questions is 1 / 4. At this time, 1 / 4 is greater than 1 / 2, then it can be determined that the user's processing status for the target network learning resource is an incomplete processing status, etc.
[0128] The embodiment of the present application is aimed at question-answering learning resources. By combining the ratio of the number of correct answers of the user to the total number of questions when processing such resources, and a preset ratio, the user's processing status for such learning resources is determined. This can avoid the problem of the user's inability to update the status of the learning resource normally due to the failure of ajax request sending.
[0129] Step 210: Acquire the answer result of the user to the target question in the target online learning resource during the process of the user processing the target online learning resource.
[0130] The target topic refers to a topic in the target network learning resource pre-set by the business personnel. The business personnel can select several topics as the target topics in advance according to the importance of each topic in the target network learning resource.
[0131] The answer result refers to the user's answer result for the target question when the target online learning resource is a question-answering resource.
[0132] After obtaining the answer result of the user to the target question in the target online learning resource during the process of processing the target online learning resource, step 211 or step 212 is executed.
[0133] Step 211: when the answer results are all correct answer results, determine that the user's processing status for the target online learning resource is a processing completion status, and update the user's status for the target online learning resource to a processing completion status in the database.
[0134] Step 212: When there is at least one wrong answer result in the answer results, determine that the user's processing status for the target online learning resource is an unfinished processing status, and update the user's status for the target online learning resource to an unfinished processing status in the database.
[0135] After obtaining the answer result of the user to the target question in the target online learning resource during the process of processing the target online learning resource, it can be determined whether the answer result is a correct answer result.
[0136] When the answer results are all correct, it can be determined that the user's processing status for the target online learning resource is a processing completion status, and the user's status for the target online learning resource is updated to a processing completion status in the database. For example, the target questions include Question 1, Question 2, and Question 3. When the user's answer results for Question 1, Question 2, and Question 3 are all correct, it is determined that the user's processing status for the target online learning resource is a processing completion status, etc.
[0137] When there is at least one incorrect answer result in the answer results, it can be determined that the user's processing status for the target network learning resource is an incomplete processing status, and the user's status for the target network learning resource is updated to an incomplete processing status in the database. For example, the target questions include Question 1, Question 2, and Question 3. When there are one or more incorrect answer results in the user's answer results for Question 1, Question 2, and Question 3, it is determined that the user's processing status for the target network learning resource is an incomplete processing status, etc.
[0138] The embodiment of the present application is aimed at question-answering learning resources. By combining the user's answer results for the target questions of this type of resource, the user's processing status for this type of learning resource is determined, which can avoid the problem of the user's failure to send an ajax request resulting in the inability to update the status of the learning resource normally.
[0139] Step 213: Obtain the number of times the user browses the target online learning resource during the process of the user processing the target online learning resource.
[0140] The number of views refers to the number of times a user views a target online learning resource when the target online learning resource is a browsing resource.
[0141] When the target network learning resource is a browsing resource, the number of times the user browses the target network learning resource during the process of processing the target network learning resource can be obtained, and then the number of times the user browses the target network learning resource can be saved to the network learning platform.
[0142] When the user visits the online learning platform again, or the user has not visited the online learning platform for a long time, the number of times the user has browsed the target online learning resource can be obtained, and then step 214 is executed, or step 215 is executed.
[0143] Step 214: when the browsing times are greater than or equal to the set times, determine that the processing status of the target online learning resource by the user is a processing completion status, and update the status of the target online learning resource by the user to a processing completion status in the database.
[0144] Step 215: when the browsing times are less than the set times, determine that the processing status of the target online learning resource by the user is in an unfinished state, and update the status of the target online learning resource by the user to an unfinished state in the database.
[0145] The set number of times refers to the number of times pre-set by the business personnel for determining the processing status of the user on the target online learning resource. The specific value of the set number of times can be determined according to business requirements, and this embodiment does not impose any limitation on this.
[0146] After obtaining the number of views of the target online learning resource, the relationship between the number of views and the set number of views can be compared.
[0147] When the number of browsing times is greater than or equal to the set number of times, it can be determined that the user's processing status for the target network learning resource is a processing completion status, and the user's status for the target network learning resource is updated to a processing completion status in the database. For example, the set number of times is 10, and when the user browses the target network learning resource 10 times or more than 10 times, it can be determined that the user's processing status for the target network learning resource is a processing completion status, etc.
[0148] When the number of browsing times is less than the set number of times, it can be determined that the user's processing status for the target network learning resource is an incomplete processing state, and the user's status for the target network learning resource is updated to an incomplete processing state in the database. For example, the set number of times is 10, and when the user browses the target network learning resource less than 10 times, it can be determined that the user's processing status for the target network learning resource is an incomplete processing state, etc.
[0149] The embodiment of the present application is aimed at browsing-type learning resources. By combining the number of times a user browses this type of resource and the set number of times, the user's processing status for this type of learning resource is determined, which can avoid the problem of failure to send an ajax request resulting in the user's inability to update the status of the learning resource normally.
[0150] The resource status update method provided in the embodiment of the present application determines whether a status update request for the target network learning resource is received after the user completes processing the target network learning resource. If no status update request is received, the log information corresponding to the target network learning resource is obtained, and the processing status of the user for the target network learning resource is obtained and updated according to the log information; or if no status update request is received, the processing status of the user for the target network learning resource is determined according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and the processing status is updated. The embodiment of the present application obtains the processing status of the user for the target network learning resource through the log information of the user for the target network learning resource saved by the client, or the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0151] Embodiment 3
[0152] Reference Figure 3 , shows a schematic diagram of the structure of a resource status updating device provided in an embodiment of the present application. The resource status updating device 300 can be applied to an online learning platform, and specifically may include the following modules:
[0153] A status update request determination module 310 is used to determine whether a status update request for a target online learning resource has been received;
[0154] The first processing status update module 320 is used to obtain the log information corresponding to the target online learning resource when the status update request is not received, and obtain and update the user's processing status for the target online learning resource according to the log information; or
[0155] The second processing status update module 330 is used to determine the processing status of the user for the target online learning resource and update the processing status according to the interactive data information and preset rules of the user in the process of processing the target online learning resource when the status update request is not received.
[0156] The resource status update device provided in the embodiment of the present application determines whether a status update request for the target network learning resource is received after the user completes processing the target network learning resource. If the status update request is not received, the log information corresponding to the target network learning resource is obtained, and the processing status of the user for the target network learning resource is obtained and updated according to the log information; or if the status update request is not received, the processing status of the user for the target network learning resource is determined according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and the processing status is updated. The embodiment of the present application obtains the processing status of the user for the target network learning resource through the log information of the user for the target network learning resource saved by the client, or the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0157] Embodiment 4
[0158] Reference Figure 4 , shows a schematic diagram of the structure of another resource status updating device provided in an embodiment of the present application. The resource status updating device 400 can be applied to an online learning platform, and specifically may include the following modules:
[0159] The status update request determination module 410 is used to determine whether a status update request for a target online learning resource has been received;
[0160] The first processing status update module 420 is used to obtain the log information corresponding to the target online learning resource when the status update request is not received, and obtain and update the user's processing status for the target online learning resource according to the log information; or
[0161] The second processing status update module 430 is used to determine the processing status of the user for the target online learning resource and update the processing status according to the interactive data information and preset rules of the user in the process of processing the target online learning resource when the status update request is not received.
[0162] Optionally, the target network learning resource includes a video resource, and the second processing state updating module 430 includes:
[0163] The processing time acquisition unit 431 is used to acquire the processing time of the user in the process of processing the target network learning resource and the total time of the target network learning resource;
[0164] A first completion status updating unit 432 is used to determine that the processing status of the user for the target online learning resource is a processing completion status when it is determined that the processing duration is greater than or equal to the total duration, and update the status of the user for the target online learning resource to a processing completion status in a database;
[0165] The first unfinished state updating unit 433 is used to determine that the processing state of the user for the target online learning resource is an unfinished state when it is determined that the processing time is less than the total time, and update the state of the user for the target online learning resource to an unfinished state in the database.
[0166] Optionally, the target online learning resource includes a question answering resource, and the second processing status updating module 430 includes:
[0167] The answer data acquisition unit 434 is used to acquire the number of correct answers given by the user in the process of processing the target online learning resource and the total number of questions in the target online learning resource;
[0168] The answer ratio obtaining unit 435 is used to obtain the ratio between the number of correct answers and the total number of questions;
[0169] A second completion status updating unit 436 is used to determine that the processing status of the target online learning resource by the user is a processing completion status when the ratio is greater than or equal to a preset ratio, and update the status of the target online learning resource by the user to the processing completion status in the database;
[0170] The second unfinished status updating unit 437 is used to determine that the processing status of the user for the target online learning resource is an unfinished processing status when the ratio is less than the preset ratio, and update the status of the user for the target online learning resource to an unfinished processing status in the database.
[0171] Optionally, the target online learning resource includes a question answering resource, and the second processing status updating module 430 includes:
[0172] The answer result obtaining unit 438 is used to obtain the answer result of the user to the target question in the target online learning resource during the process of the user processing the target online learning resource;
[0173] A third completion status updating unit 439 is used to determine that the processing status of the user for the target online learning resource is a processing completion status when the answer results are all correct answer results, and update the status of the user for the target online learning resource to a processing completion status in the database;
[0174] The third unfinished status updating unit 4310 is used to determine that the user's processing status for the target online learning resource is an unfinished processing status when there is at least one incorrect answer result in the answer results, and update the user's status for the target online learning resource to an unfinished processing status in the database.
[0175] Optionally, the target network learning resource includes browsing resources, and the second processing status updating module 430 includes:
[0176] The browsing number acquisition unit 4311 is used to acquire the browsing number of the target online learning resource by the user in the process of processing the target online learning resource;
[0177] The fourth completion status updating unit 4312 is used to determine that the processing status of the target online learning resource by the user is a processing completion status when the browsing number is greater than or equal to the set number, and update the status of the target online learning resource by the user to the processing completion status in the database;
[0178] The fourth unfinished status updating unit 4313 is used to determine that the user's processing status for the target online learning resource is an unfinished status when the browsing times are less than the set times, and update the user's status for the target online learning resource to an unfinished status in the database.
[0179] The resource status update device provided in the embodiment of the present application determines whether a status update request for the target network learning resource is received after the user completes processing the target network learning resource. If the status update request is not received, the log information corresponding to the target network learning resource is obtained, and the processing status of the user for the target network learning resource is obtained and updated according to the log information; or if the status update request is not received, the processing status of the user for the target network learning resource is determined according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and the processing status is updated. The embodiment of the present application obtains the processing status of the user for the target network learning resource through the log information of the user for the target network learning resource saved by the client, or the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updates it in real time. This method can avoid the problem that the network resource learning status cannot be updated normally due to the failure of ajax request sending, and the user does not need to re-learn, thereby improving the user's learning experience.
[0180] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0181] In addition, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the resource status update methods described above is implemented.
[0182] An embodiment of the present application further provides a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the resource status updating methods described above.
[0183] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0184] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0185] The resource status update method, resource status update device and electronic device provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A resource status updating method, applied to an online learning platform, characterized in that: include: determining whether a status update request for a target online learning resource has been received; In the case where the status update request is not received, the processing status of the target online learning resource by the user is determined according to the interactive data information and preset rules in the process of the user processing the target online learning resource, and the processing status is updated.
2. The method according to claim 1, characterized in that The target network learning resource includes a video resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes: Acquire the processing time of the user in the process of processing the target online learning resource and the total time of the target online learning resource; In the case where it is determined that the processing time is greater than or equal to the total time, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in a database; When it is determined that the processing time is less than the total time, the processing status of the target online learning resource by the user is determined to be an unfinished processing status, and the status of the target online learning resource by the user is updated to an unfinished processing status in the database.
3. The method according to claim 1, characterized in that The target network learning resource includes a question answering resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes: Acquire the number of correct answers given by the user in the process of processing the target online learning resource and the total number of questions in the target online learning resource; Obtaining the ratio between the number of correct answers and the total number of questions; When the ratio is greater than or equal to a preset ratio, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in a database; When the ratio is less than the preset ratio, it is determined that the processing status of the target network learning resource by the user is in an unfinished processing state, and the status of the target network learning resource by the user is updated to an unfinished processing state in the database.
4. The method according to claim 1, characterized in that: The target network learning resource includes a question answering resource, and determining the processing status of the target network learning resource by the user according to the interactive data information and preset rules in the process of processing the target network learning resource, and updating the processing status, includes: Acquiring the answer result of the user to the target question in the target online learning resource during the process of the user processing the target online learning resource; In the case that the answer results are all correct answer results, determining that the processing status of the user for the target online learning resource is a processing completion status, and updating the status of the user for the target online learning resource to a processing completion status in the database; When there is at least one wrong answer result in the answer results, it is determined that the user's processing status for the target online learning resource is an unfinished processing status, and the user's status for the target online learning resource is updated to an unfinished processing status in the database.
5. The method according to claim 1, characterized in that The target network learning resource includes browsing resources, and determining the learning status of the user for the target network learning resource according to the interactive data information and preset rules of the user in the process of processing the target network learning resource, and updating the processing status, includes: Acquire the number of times the user browses the target online learning resource during the process of the user processing the target online learning resource; When the number of views is greater than or equal to the set number of views, determining that the processing status of the target online learning resource by the user is a processing completion status, and updating the status of the target online learning resource by the user to a processing completion status in the database; When the browsing times are less than the set times, the processing status of the target network learning resource by the user is determined to be an unfinished processing status, and the status of the target network learning resource by the user is updated to an unfinished processing status in the database.
6. A resource status updating device, applied to an online learning platform, characterized in that: include: A status update request determination module, used to determine whether a status update request for a target online learning resource has been received; The second processing status update module is used to determine the processing status of the user for the target online learning resource and update the processing status according to the interactive data information and preset rules of the user in the process of processing the target online learning resource when the status update request is not received.
7. The device according to claim 6, characterized in that The target network learning resource includes a video resource, and the second processing state updating module includes: A processing time acquisition unit, used to acquire the processing time of the user in the process of processing the target network learning resource, and the total time of the target network learning resource; A first completion status updating unit is used to determine that the processing status of the target online learning resource by the user is a processing completion status when it is determined that the processing duration is greater than or equal to the total duration, and update the status of the target online learning resource by the user to the processing completion status in a database; The first unfinished state updating unit is used to determine that the processing state of the user for the target online learning resource is an unfinished state when it is determined that the processing time is less than the total time, and update the state of the user for the target online learning resource to an unfinished state in the database.
8. The device according to claim 6, characterized in that The target online learning resource includes a question-answering resource, and the second processing status updating module includes: A question answering data acquisition unit, used to acquire the number of correct answers given by the user in the process of processing the target online learning resource, and the total number of questions in the target online learning resource; A question answer ratio obtaining unit, used to obtain the ratio between the number of correct answers and the total number of questions; A second completion status updating unit is used to determine that the processing status of the target online learning resource by the user is a processing completion status when the ratio is greater than or equal to a preset ratio, and update the status of the target online learning resource by the user to the processing completion status in the database; The second unfinished status updating unit is used to determine that the user's processing status for the target network learning resource is an unfinished processing status when the ratio is less than the preset ratio, and update the user's status for the target network learning resource to an unfinished processing status in the database.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the resource status updating method according to any one of claims 1 to 5 when executing the program.
10. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource status updating method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for determining failed network request and computer storage medium
CN111510482A
Resource allocation method and device, electronic equipment and storage medium
CN111782391A