Timing processing method and device based on multiple tasks, electronic equipment and storage medium
By obtaining and traversing the activity list and performing preset timing processing, it solves the problem of check-in and check-out timing in the existing technology that cannot process different task activities at the same time, realizes efficient multi-task activity management and user reminders, and improves service efficiency and users. experience.
Patent Information
- Application Number
- CN202310233209.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology cannot handle the check-in and check-out timings of different task activities at the same time, resulting in low service efficiency, complicated operation steps, inability to globally display all activity status and check-in and check-out times, and the lack of effective user reminders.
By obtaining the activity list of the target user, traversing the activity list, performing preset timing processing based on the activity start time, obtaining the format time associated with the current time, and displaying it on the display page, achieving simultaneous timing processing of multi-task activities.
It improves service efficiency, allows users to register for multiple events at the same time, simplifies operation steps, updates event status in real time, reduces labor costs, and provides global event reminders.
Smart Images

Figure CN118628078A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a multi-task-based timing processing method and device, electronic equipment and storage medium. Background Art
[0002] In the process of providing activity services (for example, volunteer services), it is often the case that the same user signs up for multiple activities within a certain period of time. Because the start times of the activities are inconsistent, the time nodes for users to sign in and out are also inconsistent.
[0003] With the rapid development of network technology, the degree of networking in social development has gradually increased. The networking development of society has provided a good opportunity for the network management of service activities. Network management has the characteristics of high efficiency, convenience, and sharing, which make information dissemination extensive, fast, interactive, shared, and trans-temporal. However, when there are multiple tasks in the service activity process, the timing processing of sign-in and sign-out in the relevant technology has the following problems: (1) It is impossible to process the sign-in and sign-out timing of different task activities at the same time. Only one activity can be registered within a certain period of time, and the service efficiency is low; (2) Sign-in and sign-out can only be performed by entering the service activity details page, and the operation steps are complicated; (3) It is impossible to globally display all activity status and sign-in and sign-out time to provide users with effective reminders.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a multi-task-based timing processing method and device, an electronic device and a storage medium, so as to at least solve the technical problem in the related art that the timing of different task activities cannot be processed simultaneously, resulting in low service efficiency.
[0006] According to one aspect of an embodiment of the present invention, a multi-task-based timing processing method is provided, comprising: obtaining an activity list array of a target user, wherein the activity list array comprises: activity information of at least one task activity, the activity information comprising at least: an activity start time and an activity type identifier; traversing the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier; based on the activity start time in the first activity information, performing a first preset timing processing on the first task activity to obtain a first preset format time associated with a current time; based on the activity start time in the second activity information, performing a second preset timing processing on the second task activity to obtain a second preset format time associated with the current time; and displaying the first preset format time and the second preset format time on a display page of a target terminal of the target user.
[0007] Optionally, before obtaining the activity list array of the target user, it also includes: obtaining the activity start time in the activity information of each of the task activities; determining the activity type of the task activity based on the activity start time and the current time, and associating the activity type identifier corresponding to the activity type with the task activity; and updating the activity type of the task activity according to a preset interval time.
[0008] Optionally, based on the activity start time in the first activity information, the first task activity is subjected to a first preset timing processing to obtain a first preset format time associated with the current time, comprising: determining a first time value from the activity start time based on the activity start time and the current time; converting the first time value into a first second value of a preset type, and assigning the object value of the first object to the first second value to obtain a target activity list array, wherein the first object is a variable object newly added to the activity list array; calling a first preset strategy to process the target activity list array according to a first preset interval duration to obtain the first preset format time associated with the current time, and associating the first preset format time with the activity identifier of the first task activity.
[0009] Optionally, before calling the first preset strategy to process the target activity list array according to the first preset interval duration, it also includes: constructing the first preset strategy based on the first preset interval duration, wherein the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, convert the current object value into the first preset format time, and update the target activity list array.
[0010] Optionally, based on the activity start time in the second activity information, the second task activity is subjected to a second preset timing processing to obtain a second preset format time associated with the current time, comprising: determining a second time value for participating in the second task activity based on the activity start time and the current time; converting the second time value into a second second value of a preset type, and assigning the object value of the second object to the second second value to obtain a target activity list array, wherein the second object is a variable object newly added to the activity list array; calling a second preset strategy to process the target activity list array according to a second preset interval duration to obtain the second preset format time associated with the current time, and associating the second preset format time with the activity identifier of the second task activity.
[0011] Optionally, before calling the second preset strategy to process the target activity list array according to the second preset interval duration, it also includes: constructing the second preset strategy based on the second preset interval duration, wherein the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval duration to obtain the current object value of the second object, convert the current object value into the second preset format time, and update the target activity list array.
[0012] Optionally, the timing processing method further includes: based on the target activity list array, displaying preset display information of other task activities on the display page; and before opening or closing the display page, canceling the calling operation of the first preset strategy or the second preset strategy.
[0013] According to another aspect of an embodiment of the present invention, a multi-task-based timing processing device is also provided, including: an acquisition unit, used to acquire an activity list array of a target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information at least includes: an activity start time and an activity type identifier; a traversal unit, used to traverse the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier; a first processing unit, used to perform a first preset timing processing on the first task activity based on the activity start time in the first activity information to obtain a first preset format time associated with the current time; a second processing unit, used to perform a second preset timing processing on the second task activity based on the activity start time in the second activity information to obtain a second preset format time associated with the current time; and a display unit, used to display the first preset format time and the second preset format time on a display page of a target terminal of the target user.
[0014] Optionally, the timing processing device also includes: a first acquisition module, used to obtain the activity start time in the activity information of each task activity before obtaining the activity list array of the target user; a first determination module, used to determine the activity type of the task activity based on the activity start time and the current time, and associate the activity type identifier corresponding to the activity type with the task activity; a first update module, used to update the activity type of the task activity according to a preset interval time.
[0015] Optionally, the first processing unit includes: a second determination module, used to determine a first time value from the activity start time based on the activity start time and the current time; a first conversion module, used to convert the first time value into a first second value of a preset type, and assign the object value of the first object to the first second value to obtain a target activity list array, wherein the first object is a variable object newly added to the activity list array; a first calling module, used to call a first preset strategy to process the target activity list array according to a first preset interval duration, obtain the first preset format time associated with the current time, and associate the first preset format time with the activity identifier of the first task activity.
[0016] Optionally, the timing processing device also includes: a first construction module, used to construct the first preset strategy based on the first preset interval duration before calling the first preset strategy to process the target activity list array according to the first preset interval duration, wherein the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, convert the current object value into the first preset format time, and update the target activity list array.
[0017] Optionally, the second processing unit includes: a third determination module, used to determine the second time value for participating in the second task activity based on the activity start time and the current time; a second conversion module, used to convert the second time value into a second second value of a preset type, and assign the object value of the second object to the second second value to obtain a target activity list array, wherein the second object is a variable object newly added to the activity list array; a second calling module, used to call a second preset strategy to process the target activity list array according to a second preset interval duration, obtain the second preset format time associated with the current time, and associate the second preset format time with the activity identifier of the second task activity.
[0018] Optionally, the timing processing device also includes: a second construction module, used to construct the second preset strategy based on the second preset interval time before calling the second preset strategy to process the target activity list array according to the second preset interval time, wherein the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval time to obtain the current object value of the second object, convert the current object value into the second preset format time, and update the target activity list array.
[0019] Optionally, the timing processing device also includes: a first display module, used to display preset display information of other task activities on the display page based on the target activity list array; a first cancellation module, used to cancel the call operation of the first preset strategy or the second preset strategy before opening or closing the display page.
[0020] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned multi-tasking-based timing processing method.
[0021] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned multi-tasking-based timing processing method.
[0022] In the present disclosure, an activity list array of a target user is obtained, the activity list array is traversed, first activity information of a first task activity whose activity type is identified by a first preset identifier and second activity information of a second task activity whose activity type is identified by a second preset identifier are obtained, based on the activity start time in the first activity information, a first preset timing processing is performed on the first task activity to obtain a first preset format time associated with the current time, based on the activity start time in the second activity information, a second preset timing processing is performed on the second task activity to obtain a second preset format time associated with the current time, and the first preset format time and the second preset format time are displayed on a display page of a target terminal of the target user.
[0023] In the present disclosure, by traversing the activity list array of the target user, the first activity information of the first task activity with the activity type identified as the first preset identifier and the second activity information of the second task activity with the activity type identified as the second preset identifier can be obtained, and then the first task activity is subjected to the first preset timing processing according to the activity start time in the first activity information to obtain the first preset format time associated with the current time, and the second task activity is subjected to the second preset timing processing according to the activity start time in the second activity information to obtain the second preset format time associated with the current time, and then the first preset format time and the second preset format time can be displayed on the display page of the target terminal of the target user, so that timing processing can be performed on different task activities at the same time, which effectively improves the service efficiency, and further solves the technical problem that the timing of different task activities cannot be processed simultaneously in the related technology, resulting in low service efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 is a flowchart of an optional multi-task-based timing processing method according to an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of an optional activity state classification according to an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of an optional multi-task sign-in and sign-out timing processing flow according to an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of an optional multi-task-based timing processing device according to an embodiment of the present invention;
[0029] Figure 5 The hardware structure block diagram of an electronic device (or mobile device) for a multi-task-based timing processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0033] The present invention can realize multi-task sign-in and sign-out activity reminders through data processing and parallel processing of multiple groups of timers. By clearly displaying the activities registered by the user, the activity status and the sign-in and sign-out timing in a list on the user client, the user will have a clear idea of the activities to participate in and it will be easier to participate in the activities. Compared with the related art that the same user can only sign up for one activity within a certain period of time, the present invention has achieved a breakthrough in the number of activity participation. In addition, multiple countdowns and cumulative timings can be displayed simultaneously in a page list without affecting other functional modules in the page, so that the system can run stably and efficiently.
[0034] The present invention has been proven feasible through experiments and use. For example, all activity information registered by users can be displayed in a list on the home page, and multiple activity status displays can be distinguished. Among them, a countdown is realized within 48 hours, and cumulative timing is performed after the activity has been signed in, so that the entire process of activity sign-in and sign-out is networked and paperless, reducing the manpower cost of event organization and participation. Data is updated in real time each time the home page is entered, which improves service efficiency.
[0035] The present invention is described in detail below in conjunction with various embodiments.
[0036] Embodiment 1
[0037] According to an embodiment of the present invention, an embodiment of a multi-tasking-based timing processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0038] Figure 1 is a flowchart of an optional multi-task-based timing processing method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0039] Step S101, obtaining an activity list array of a target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information includes at least: an activity start time and an activity type identifier.
[0040] Step S102 , traverse the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier.
[0041] Step S103: Based on the activity start time in the first activity information, a first preset timing process is performed on the first task activity to obtain a first preset format time associated with the current time.
[0042] Step S104: Based on the activity start time in the second activity information, a second preset timing process is performed on the second task activity to obtain a second preset format time associated with the current time.
[0043] Step S105: display the first preset format time and the second preset format time on a display page of a target terminal of a target user.
[0044] Through the above steps, the activity list array of the target user can be obtained, and the activity list array can be traversed to obtain the first activity information of the first task activity whose activity type is identified by the first preset identifier and the second activity information of the second task activity whose activity type is identified by the second preset identifier. Based on the activity start time in the first activity information, the first task activity is subjected to the first preset timing processing to obtain the first preset format time associated with the current time. Based on the activity start time in the second activity information, the second task activity is subjected to the second preset timing processing to obtain the second preset format time associated with the current time. The first preset format time and the second preset format time are displayed on the display page of the target terminal of the target user. In an embodiment of the present invention, by traversing the activity list array of the target user, the first activity information of the first task activity whose activity type is identified as the first preset identifier and the second activity information of the second task activity whose activity type is identified as the second preset identifier can be obtained, and then the first task activity is subjected to the first preset timing processing according to the activity start time in the first activity information to obtain the first preset format time associated with the current time, and the second task activity is subjected to the second preset timing processing according to the activity start time in the second activity information to obtain the second preset format time associated with the current time, and then the first preset format time and the second preset format time can be displayed on the display page of the target terminal of the target user, so that timing processing can be performed on different task activities at the same time, which effectively improves the service efficiency, thereby solving the technical problem that the timing of different task activities cannot be processed simultaneously in the related technology, resulting in low service efficiency.
[0045] The embodiment of the present invention is described in detail below in combination with the above steps.
[0046] An optional embodiment, before obtaining the activity list array of the target user, also includes: obtaining the activity start time in the activity information of each task activity; determining the activity type of the task activity based on the activity start time and the current time, and associating the task activity with an activity type identifier corresponding to the activity type; and updating the activity type of the task activity according to a preset interval time.
[0047] In an embodiment of the present invention, the activity status (i.e., activity type) of a task activity can be divided into multiple states, for example, 7 activity states: S1, activities within 3 days and 48 hours from the start of the activity, S2, activities within 48 hours from the start of the activity, S3, signed-in activities, S4, activities showing the length of signed-in time, S5, activities showing the length of signed-out time, S6, ended activities, and S7, canceled activities. Specifically, the activity start time in the activity information of each task activity can be collected first, and then the activity type of the task activity can be determined based on the difference between the activity start time and the current time (for example, if the activity starts after 3 days, the activity status of the activity can be determined to be S1), and the activity type identifier corresponding to the activity type can be associated with the task activity (that is, a corresponding activity type identifier can be set for each activity type, for example, S1, S2, S3, S4, S5, S6, S7, etc., and the activity type identifier can be associated with the task activity). Furthermore, the activity type of the task activity may be updated at preset intervals (eg, the activity type of all task activities may be re-determined every day according to the current time), so that the activity type of the task activity is updated over time to remain up to date.
[0048] Figure 2 is a schematic diagram of an optional activity state classification according to an embodiment of the present invention, such as Figure 2 As shown, there are 7 activity states: S1: 3 / 2 / 1 days left before the activity starts, S2: countdown within 48 hours before the activity starts (for example, the activity starts at 09:23:41), S3: sign-in, S4: sign-out timing (for example, sign-out 00:00:01), S5: signed-out timing (for example, signed-out 02:00:23), S6: activity ended, and S7: activity canceled.
[0049] Step S101, obtaining an activity list array of a target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information includes at least: an activity start time and an activity type identifier.
[0050] In an embodiment of the present invention, an activity list array of a target user (e.g., a certain user) may be obtained first (i.e., an array consisting of activity information of all task activities in which the target user participates), and the activity list array includes: activity information of at least one task activity, and the activity information may include: activity start time and activity type identifier.
[0051] Step S102 , traverse the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier.
[0052] In an embodiment of the present invention, the activity type identifier in the activity list array can be extracted to classify the activity status, and by traversing the activity list array, the first activity information (including: the activity start time of the first task activity) of the first task activity whose activity type identifier is the first preset identifier (i.e., S2 the activity type identifier of the activity within 48 hours from the start of the activity) and the second activity information (including: the activity start time of the second task activity) of the second task activity whose activity type identifier is the second preset identifier (i.e., S4 the activity type identifier of the activity that has already signed in) are obtained, so as to perform multi-task countdown processing on the first task activity and multi-task cumulative timing processing on the second task activity.
[0053] Step S103: Based on the activity start time in the first activity information, a first preset timing process is performed on the first task activity to obtain a first preset format time associated with the current time.
[0054] Optionally, based on the activity start time in the first activity information, the first task activity is subjected to a first preset timing processing to obtain a first preset format time associated with the current time, comprising: determining a first time value from the activity start time based on the activity start time and the current time; converting the first time value into a first second value of a preset type, and assigning the object value of the first object to the first second value to obtain a target activity list array, wherein the first object is a variable object newly added to the activity list array; calling a first preset strategy to process the target activity list array according to a first preset interval duration to obtain a first preset format time associated with the current time, and associating the first preset format time with the activity identifier of the first task activity.
[0055] In an embodiment of the present invention, the first task activity can be subjected to a first preset timing process (i.e., a multi-task countdown process) according to the activity start time in the first activity information to obtain a first preset format time associated with the current time (i.e., a countdown time composed of a string format of instant, minute, and second). Specifically, the millisecond value param (i.e., a first time value) of the distance from the activity start time in the obtained traversal activity list array object can be converted into an integer type second value (i.e., based on the activity start time and the current time, the first time value from the activity start time is determined, and the first time value is converted into a preset type of first second value), and then the converted second value is assigned to the newly added variable formatSeconds1 (i.e., the first object) in the array object, and the variable signItem (i.e., the target activity list array) is declared to store the modified array (i.e., the object value of the first object is assigned to the first second value to obtain the target activity list array, wherein the first object is a variable object newly added in the activity list array). Then, the setInterval1 method (i.e., the first preset strategy) is called with a first preset interval duration (i.e., 1 second) as a period (i.e., based on the first preset interval duration, the first preset strategy is called to process the target activity list array to obtain the first preset format time associated with the current time). Then, the array Interval1 may be declared to store the id (ie, the activity identifier) returned by the setInterval1 method (ie, to associate the first preset format time with the activity identifier of the first task activity).
[0056] Optionally, before calling the first preset strategy to process the target activity list array according to the first preset interval duration, it also includes: constructing a first preset strategy based on the first preset interval duration, wherein the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, convert the current object value into a first preset format time, and update the target activity list array.
[0057] In an embodiment of the present invention, a first preset strategy (i.e., a setInterval1 method) can be constructed according to the first preset interval duration, and the setInterval1 method executes the following: the formatSeconds1 value in the array signItem is subtracted from the first preset interval duration and converted into a string format of hours, minutes, and seconds (i.e., the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, and convert the current object value into the first preset format time), and signItem is updated (i.e., the target activity list array is updated) so that the timing time of each task activity in the target activity list array is updated in real time.
[0058] Step S104: Based on the activity start time in the second activity information, a second preset timing process is performed on the second task activity to obtain a second preset format time associated with the current time.
[0059] Optionally, based on the activity start time in the second activity information, the second task activity is subjected to a second preset timing processing to obtain a second preset format time associated with the current time, comprising: determining a second time value for participating in the second task activity based on the activity start time and the current time; converting the second time value into a second second value of a preset type, and assigning the object value of the second object to the second second value to obtain a target activity list array, wherein the second object is a variable object newly added to the activity list array; calling a second preset strategy to process the target activity list array according to a second preset interval duration to obtain a second preset format time associated with the current time, and associating the second preset format time with the activity identifier of the second task activity.
[0060] In an embodiment of the present invention, a second preset timing process (i.e., multi-task cumulative timing process) can be performed on the second task activity according to the activity start time in the second activity information to obtain a second preset format time associated with the current time (i.e., a timing time composed of a character string format of time, minutes, and seconds), specifically: the millisecond value of the activity participation time (i.e., the second time value) can be obtained by subtracting the millisecond value of the activity start time and the current time in the obtained traversal activity list array object, and converting the two values into a second value of an integer type (i.e., based on the activity start time and the current time, determining the second time value for participating in the second task activity; converting the second time value into a second value of a preset type), and assigning the converted second value to a newly added variable formatSeconds2 in the array object, and using the variable signItem (i.e., the target activity list array) to store the modified array (i.e., assigning the object value of the second object to the second second value to obtain the target activity list array, and the second object being a variable object newly added in the activity list array). The setInterval2 method (i.e., the second preset strategy) is called with a second preset interval (e.g., 1 second) as a period (i.e., according to the second preset interval, the second preset strategy is called to process the target activity list array to obtain the second preset format time associated with the current time). Then, the array Interval2 can be declared to store the id (i.e., activity ID) returned by the setInterval2 method (i.e., the second preset format time is associated with the activity ID of the second task activity).
[0061] Optionally, before calling the second preset strategy to process the target activity list array according to the second preset interval duration, it also includes: constructing a second preset strategy based on the second preset interval duration, wherein the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval duration to obtain the current object value of the second object, convert the current object value into a second preset format time, and update the target activity list array.
[0062] In an embodiment of the present invention, a second preset strategy (i.e., setInterval2 method) can be constructed according to the second preset interval duration, and the setInterval2 method executes as follows: the formatSeconds2 value in the array signItem is added to the second preset interval duration and converted into a string format of hours, minutes, and seconds (i.e., the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval duration to obtain the current object value of the second object, and convert the current object value into the second preset format time), and update signItem (i.e., update the target activity list array) so that the timing time of each task activity in the target activity list array is updated in real time.
[0063] Step S105: display the first preset format time and the second preset format time on a display page of a target terminal of a target user.
[0064] In an embodiment of the present invention, the first preset format time of the first task activity (i.e., the countdown time to be displayed that is updated in real time) and the second preset format time of the second task activity (i.e., the timing time to be displayed that is updated in real time) can be displayed on the display page of the target terminal of the target user to remind the user to sign in or out.
[0065] Optionally, the timing processing method further includes: based on the target activity list array, displaying preset display information of other task activities on the display page; before opening or closing the display page, canceling the calling operation of the first preset strategy or the second preset strategy.
[0066] In an embodiment of the present invention, preset display information of other task activities (e.g., countdown days for a task activity, sign-in reminder for a task activity, current status of a task activity, etc.) can be displayed on the display page of the user terminal according to the target activity list array of the real-time updated timing time. In this embodiment, before opening or closing the display page, the clearInterval method (i.e., timing cancellation strategy) can be executed by traversing the array Interval1 or Interval2 to cancel the execution of the setInterval method, which can effectively avoid timing errors.
[0067] Another optional specific implementation is described in detail below.
[0068] Figure 3 is a schematic diagram of an optional multi-task sign-in and sign-out timing processing flow according to an embodiment of the present invention, such as Figure 3 As shown, the following process is included:
[0069] (1) Extract the activity type identifier in the activity list array to classify the activity status.
[0070] (2) Traverse the activity list array and identify the activities whose activity type is S2.
[0071] (3) Perform multi-task countdown processing on activities with activity type identification of S2. Get the activity start time in the array object, convert it to an integer value of seconds, assign it to the newly added variable formatSeconds1 in the array object, and declare the variable signItem to store the modified array. Call the setInterval1 method with a period of 1 second. The setInterval1 method executes as follows: subtract 1 from the formatSeconds1 value in the array signItem and convert it to a string format of hours, minutes and seconds, and update signItem. Declare the array Interval1 to store the id returned by the setInterval1 method, traverse Interval1 and execute the clearInterval method to cancel the execution of the setInterval1 method.
[0072] (4) Traverse the activity list array and identify the activities with activity type identification S4.
[0073] (5) Perform multi-task cumulative timing processing on activities with activity type identification of S4. Get the activity start time in the array object, get the millisecond value of the current time, subtract the two values to get the millisecond value of the activity participation time, convert it to an integer type of second value, assign it to the newly added variable formatSeconds2 in the array object, and store the modified array through the variable signItem. Call the setInterval2 method with a period of 1 second. The setInterval2 method executes as follows: add 1 to the formatSeconds2 value in the array signItem and convert it to the hour, minute, and second string format, and update signItem. Declare the array Interval2 to store the id returned by the setInterval2 method, traverse Interval2 and execute the clearInterval method to cancel the execution of the setInterval2 method.
[0074] (6) Traverse the signItem array and identify activities with activity type identification of S1, S2, S3, S4, S5, S6, and S7.
[0075] (7) Display the activity text and style of S1, S2, S3, S4, S5, S6, and S7 according to the activity ID and time in the signItem array.
[0076] In the embodiment of the present invention, the function of simultaneously registering for multiple service activities within a certain time period can be realized through the sign-in and sign-out timer, so that users can register for multiple task activities at the same time, and can intelligently distinguish the activity status, thereby improving service efficiency. At the same time, by creating an activity list on the homepage, the relevant information of the activities that users sign up for is displayed globally, activity reminders are made, and sign-in and sign-out functions are provided, which simplifies the operation steps. In addition, reminders are made in days within 3 days beyond 48 hours of the event, and reminders are made in hours, minutes, and seconds within 48 hours of the event. This can reduce the probability of users not participating due to forgetting the time, improve user participation, and save the event organizers the manpower cost of organizing the event.
[0077] The following is a detailed description in conjunction with another embodiment.
[0078] Embodiment 2
[0079] A multi-task-based timing processing device provided in this embodiment includes a plurality of implementation units, each of which corresponds to each implementation step in the above-mentioned first embodiment.
[0080] Figure 4 is a schematic diagram of an optional multi-task-based timing processing device according to an embodiment of the present invention, such as Figure 4 As shown, the timing processing device may include: an acquisition unit 40, a traversal unit 41, a first processing unit 42, a second processing unit 43, and a display unit 44, wherein:
[0081] The acquisition unit 40 is used to acquire an activity list array of the target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information at least includes: an activity start time and an activity type identifier;
[0082] A traversal unit 41 is used to traverse the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier;
[0083] The first processing unit 42 is used to perform a first preset timing process on the first task activity based on the activity start time in the first activity information to obtain a first preset format time associated with the current time;
[0084] The second processing unit 43 is used to perform a second preset timing process on the second task activity based on the activity start time in the second activity information to obtain a second preset format time associated with the current time;
[0085] The display unit 44 is used to display the first preset format time and the second preset format time on a display page of a target terminal of a target user.
[0086] The timing processing device can obtain the activity list array of the target user through the acquisition unit 40, traverse the activity list array through the traversal unit 41, obtain the first activity information of the first task activity whose activity type is identified as the first preset identifier and the second activity information of the second task activity whose activity type is identified as the second preset identifier, perform the first preset timing processing on the first task activity based on the activity start time in the first activity information through the first processing unit 42 to obtain the first preset format time associated with the current time, perform the second preset timing processing on the second task activity based on the activity start time in the second activity information through the second processing unit 43 to obtain the second preset format time associated with the current time, and display the first preset format time and the second preset format time on the display page of the target terminal of the target user through the display unit 44. In an embodiment of the present invention, by traversing the activity list array of the target user, the first activity information of the first task activity whose activity type is identified as the first preset identifier and the second activity information of the second task activity whose activity type is identified as the second preset identifier can be obtained, and then the first task activity is subjected to the first preset timing processing according to the activity start time in the first activity information to obtain the first preset format time associated with the current time, and the second task activity is subjected to the second preset timing processing according to the activity start time in the second activity information to obtain the second preset format time associated with the current time, and then the first preset format time and the second preset format time can be displayed on the display page of the target terminal of the target user, so that timing processing can be performed on different task activities at the same time, which effectively improves the service efficiency, thereby solving the technical problem that the timing of different task activities cannot be processed simultaneously in the related technology, resulting in low service efficiency.
[0087] Optionally, the timing processing device also includes: a first acquisition module, used to obtain the activity start time in the activity information of each task activity before obtaining the activity list array of the target user; a first determination module, used to determine the activity type of the task activity based on the activity start time and the current time, and associate the activity type identifier corresponding to the activity type with the task activity; a first update module, used to update the activity type of the task activity according to a preset interval time.
[0088] Optionally, the first processing unit includes: a second determination module, used to determine a first time value from the activity start time based on the activity start time and the current time; a first conversion module, used to convert the first time value into a first second value of a preset type, and assign the object value of the first object to the first second value to obtain a target activity list array, wherein the first object is a variable object newly added to the activity list array; a first calling module, used to call a first preset strategy to process the target activity list array according to a first preset interval duration, obtain a first preset format time associated with the current time, and associate the first preset format time with the activity identifier of the first task activity.
[0089] Optionally, the timing processing device also includes: a first construction module, which is used to construct a first preset strategy based on the first preset interval duration before calling the first preset strategy to process the target activity list array according to the first preset interval duration, wherein the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, convert the current object value into a first preset format time, and update the target activity list array.
[0090] Optionally, the second processing unit includes: a third determination module, used to determine the second time value for participating in the second task activity based on the activity start time and the current time; a second conversion module, used to convert the second time value into a second second value of a preset type, and assign the object value of the second object to the second second value to obtain a target activity list array, wherein the second object is a variable object newly added to the activity list array; a second calling module, used to call a second preset strategy to process the target activity list array according to a second preset interval duration, obtain a second preset format time associated with the current time, and associate the second preset format time with the activity identifier of the second task activity.
[0091] Optionally, the timing processing device also includes: a second construction module, which is used to construct a second preset strategy based on the second preset interval duration before calling the second preset strategy to process the target activity list array according to the second preset interval duration, wherein the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval duration to obtain the current object value of the second object, convert the current object value into a second preset format time, and update the target activity list array.
[0092] Optionally, the timing processing device also includes: a first display module, used to display preset display information of other task activities on the display page based on the target activity list array; a first cancellation module, used to cancel the call operation of the first preset strategy or the second preset strategy before opening or closing the display page.
[0093] The above-mentioned timing processing device may also include a processor and a memory. The above-mentioned acquisition unit 40, traversal unit 41, first processing unit 42, second processing unit 43, display unit 44, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0094] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the first preset format time and the second preset format time are displayed on the display page of the target terminal of the target user by adjusting the kernel parameters.
[0095] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0096] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining an activity list array of a target user, traversing the activity list array, obtaining first activity information of a first task activity whose activity type is identified by a first preset identifier and second activity information of a second task activity whose activity type is identified by a second preset identifier, performing a first preset timing process on the first task activity based on the activity start time in the first activity information to obtain a first preset format time associated with the current time, performing a second preset timing process on the second task activity based on the activity start time in the second activity information to obtain a second preset format time associated with the current time, and displaying the first preset format time and the second preset format time on a display page of a target terminal of the target user.
[0097] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned multi-tasking-based timing processing method.
[0098] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the above-mentioned multi-tasking-based timing processing method.
[0099] Figure 5 1 is a hardware structure block diagram of an electronic device (or mobile device) for a multi-task-based timing processing method according to an embodiment of the present invention. Figure 5As shown, the electronic device may include one or more ( Figure 5 502a, 502b, ..., 502n are used to illustrate) processor 502 (processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 504 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 5 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 5 More or fewer components as shown, or with Figure 5 Different configurations shown.
[0100] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0101] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0102] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0104] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0106] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A timing processing method based on multi-task, characterized in that: include: Acquire an activity list array of the target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information includes at least: activity start time and activity type identifier; Traversing the activity list array, obtaining first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier; Based on the activity start time in the first activity information, performing a first preset timing process on the first task activity to obtain a first preset format time associated with the current time; Based on the activity start time in the second activity information, performing a second preset timing process on the second task activity to obtain a second preset format time associated with the current time; The first preset format time and the second preset format time are displayed on a display page of the target terminal of the target user.
2. The timing processing method according to claim 1, characterized in that: Before getting the target user's activity list array, also include: Obtain the activity start time in the activity information of each of the task activities; Determine the activity type of the task activity based on the activity start time and the current time, and associate the activity type identifier corresponding to the activity type with the task activity; The activity type of the task activity is updated according to a preset interval.
3. The timing processing method according to claim 1, characterized in that: The step of performing a first preset timing process on the first task activity based on the activity start time in the first activity information to obtain a first preset format time associated with the current time includes: Based on the activity start time and the current time, determining a first time value from the activity start time; Convert the first time value into a first second value of a preset type, and assign the object value of the first object to the first second value, to obtain a target activity list array, wherein the first object is a variable object newly added in the activity list array; According to the first preset interval duration, a first preset strategy is called to process the target activity list array to obtain the first preset format time associated with the current time, and the first preset format time is associated with the activity identifier of the first task activity.
4. The timing processing method according to claim 3, characterized in that: Before calling the first preset strategy to process the target activity list array according to the first preset interval duration, the method further includes: Based on the first preset interval duration, construct the first preset strategy, wherein the first preset strategy is to subtract the first preset interval duration from the object value of the first object in the target activity list array to obtain the current object value of the first object, convert the current object value into the first preset format time, and update the target activity list array.
5. The timing processing method according to claim 1, characterized in that: The step of performing a second preset timing process on the second task activity based on the activity start time in the second activity information to obtain a second preset format time associated with the current time includes: Determine a second time value for participating in the second task activity based on the activity start time and the current time; Convert the second time value into a second second value of a preset type, and assign the object value of the second object to the second second value, to obtain a target activity list array, wherein the second object is a variable object newly added in the activity list array; According to the second preset interval duration, a second preset strategy is called to process the target activity list array to obtain the second preset format time associated with the current time, and the second preset format time is associated with the activity identifier of the second task activity.
6. The timing processing method according to claim 5, characterized in that: Before calling the second preset strategy to process the target activity list array according to the second preset interval, the method further includes: Based on the second preset interval duration, construct the second preset strategy, wherein the second preset strategy is to add the object value of the second object in the target activity list array to the second preset interval duration to obtain the current object value of the second object, convert the current object value into the second preset format time, and update the target activity list array.
7. The timing processing method according to claim 4 or 6, characterized in that: The timing processing method further includes: Based on the target activity list array, displaying preset display information of other task activities on the display page; Before opening or closing the display page, cancel the calling operation of the first preset strategy or the second preset strategy.
8. A timing processing device based on multi-tasking, characterized in that: include: An acquisition unit, configured to acquire an activity list array of a target user, wherein the activity list array includes: activity information of at least one task activity, and the activity information includes at least: an activity start time and an activity type identifier; A traversal unit, configured to traverse the activity list array to obtain first activity information of a first task activity whose activity type identifier is a first preset identifier and second activity information of a second task activity whose activity type identifier is a second preset identifier; A first processing unit, configured to perform a first preset timing process on the first task activity based on the activity start time in the first activity information, to obtain a first preset format time associated with the current time; A second processing unit, configured to perform a second preset timing process on the second task activity based on the activity start time in the second activity information, to obtain a second preset format time associated with the current time; A display unit is used to display the first preset format time and the second preset format time on a display page of a target terminal of the target user.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the multi-task-based timing processing method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the multi-tasking-based timing processing method described in any one of claims 1 to 7.
