Adaptive Order Generation Method, Device, Storage Medium and Electronic Device
Through the adaptive order generation method of virtual item management, the problem of inconsistent cycles of different task release platforms is solved, and the automatic adaptation cycle changes are realized, which improves the generation efficiency and accuracy of virtual item request orders.
Patent Information
- Application Number
- CN202210812832.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-11
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-07-11
AI Technical Summary
The virtual item distribution cycles of different task release platforms are inconsistent and may change, making it difficult for third parties to provide unified virtual item distribution services.
Through the adaptive order generation method of the virtual item management side, a mapping relationship is established based on the first cycle and the second cycle segmentation result after the change, a virtual item request order is generated, and a periodic change is automatically adapted to different task publishing platforms.
The latest virtual item request orders are generated without distinction, automatic and batches to adapt to the task release platform, improving the compatibility and adaptability of the virtual item management end, and improving the efficiency and accuracy of request order generation.
Smart Images

Figure CN115393002B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computer technology, and in particular, to an adaptive order generation method, apparatus, storage medium, and electronic device. Background Art
[0002] In the Internet world, in order to guide users to participate in the circulation of virtual items by releasing tasks, the task publishing platforms corresponding to different application programs need to manage tasks and virtual items simultaneously, which obviously increases the pressure on the task publishing platforms. In this case, the virtual item agency service is a feasible solution. However, different task publishing platforms have different cycles for distributing virtual items, and the cycles may change, which makes it difficult for third parties to provide a unified virtual item agency service for each task publishing platform. Summary of the Invention
[0003] In order to solve at least one of the above technical problems, embodiments of the present application provide an adaptive order generation method, apparatus, storage medium, and electronic device.
[0004] On the one hand, embodiments of the present application provide an adaptive order generation method, which is applied to a virtual item management terminal. The method includes:
[0005] Performing virtual item agency statistics on a target account to obtain virtual item sending orders respectively corresponding to the target account in each first cycle. The virtual item sending order includes the quantity information of virtual items sent from the virtual item management terminal to the target account within the first cycle, and the target account obtains the virtual items by executing tasks on the task publishing platform;
[0006] Responding to a second cycle change instruction to obtain a changed target second cycle and a first segmentation result corresponding to the target second cycle. The first segmentation result represents the situation of segmenting the target second cycle into a combination of the first cycles;
[0007] Obtaining a second segmentation result, which represents the situation of segmenting the second cycle before the change into a combination of the first cycles;
[0008] Generating a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result. The virtual item request order is used to request virtual items within the target second cycle from the task publishing platform.
[0009] In one embodiment, both the first segmentation result and the second segmentation result include at least two segmented time periods, and each segmented time period is a complete first cycle or an incomplete first cycle. Before generating a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result, the method further includes:
[0010] For each segmented time period in the first segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the second segmentation result, and the two time periods with the association relationship are within the same first cycle;
[0011] For each segmented time period in the second segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the first segmentation result, and the two time periods with the association relationship are within the same first cycle;
[0012] Perform a merging process on the established association relationships to obtain the mapping relationship.
[0013] In one embodiment, generating a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result includes:
[0014] Access a target interface to obtain an intermediate virtual item request order, and the target interface is used to trigger the execution of a method for generating a virtual item request order within the second cycle before the change;
[0015] Generate a virtual item request order within the target second cycle according to the intermediate virtual item request order and the mapping relationship.
[0016] In one embodiment, the method further includes:
[0017] Update the target interface according to the first segmentation result.
[0018] In one embodiment, the method further includes:
[0019] In response to the second cycle change instruction, mark the target second cycle, and perform adaptive order generation according to the marking result;
[0020] In other second cycles after the target second cycle, directly access the updated target interface to generate corresponding virtual item request orders.
[0021] In one embodiment, the first segmentation result and the second segmentation result are determined based on the same segmentation method, and the determination method of the first segmentation result includes:
[0022] Obtain a target value according to the position of the start date of the first cycle in the week;
[0023] Traverse each date in the target second cycle and perform the following operations:
[0024] Determine whether the date corresponds to the target value;
[0025] If so, mark the date;
[0026] Otherwise, find the target date corresponding to the nearest target value before the date and mark the target date;
[0027] After the traversal, perform deduplication processing on each marked date, and filter out the marked dates that do not fall within the target second cycle;
[0028] Determine the first segmentation result according to the start point, end point of the target second cycle, and each remaining marked date.
[0029] On the other hand, an embodiment of the present application provides an adaptive order generation device, which is applied to a virtual item management terminal. The device includes:
[0030] A sending order generation module, configured to perform statistics on the virtual item proxy distribution of a target account, and obtain virtual item sending orders corresponding to the target account in each first cycle. The virtual item sending order includes the quantity information of the virtual items sent from the virtual item management terminal to the target account within the first cycle. The target account obtains the virtual items by executing tasks on the task publishing platform;
[0031] A change instruction response module, configured to perform the following operations:
[0032] In response to a second cycle change instruction, obtain the changed target second cycle and the first segmentation result corresponding to the target second cycle. The first segmentation result represents the situation of splitting the target second cycle into a combination of the first cycles;
[0033] Obtain a second segmentation result, where the second segmentation result represents the situation of splitting the second cycle before the change into a combination of the first cycles;
[0034] Generate a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result. The virtual item request order is used to request virtual items within the target second cycle from the task publishing platform.
[0035] In one embodiment, the change instruction response module is configured to perform the following operations:
[0036] For each segmented time period in the first segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the second segmentation result. The two time periods with the association relationship are within the same first cycle;
[0037] For each segmented time period in the second segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the first segmentation result. The two time periods with the association relationship are within the same first cycle;
[0038] Perform a merging process on the established association relationships to obtain the mapping relationship.
[0039] In one embodiment, the change instruction response module is used to perform the following operations:
[0040] Access the target interface to obtain an intermediate virtual item request order. The target interface is used to trigger the execution of a method for generating a virtual item request order within the second cycle before the change;
[0041] Generate a virtual item request order within the target second cycle according to the intermediate virtual item request order and the mapping relationship.
[0042] In one embodiment, the change instruction response module is used to perform the following operations:
[0043] Update the target interface according to the first segmentation result.
[0044] In one embodiment, the change instruction response module is used to perform the following operations:
[0045] In response to the second cycle change instruction, mark the target second cycle, and perform adaptive order generation according to the marking result;
[0046] In other second cycles after the target second cycle, directly access the updated target interface to generate corresponding virtual item request orders.
[0047] In one embodiment, the change instruction response module is used to perform the following operations:
[0048] Obtain a target value according to the position of the start date of the first cycle in the week;
[0049] Traverse each date in the target second cycle and perform the following operations:
[0050] Judge whether the date corresponds to the target value;
[0051] If so, mark the date;
[0052] Otherwise, find the target date corresponding to the nearest target value before the said date, and mark the said target date;
[0053] After the traversal ends, de-duplicate each marked date, and filter out the marked dates that do not fall within the said target second period;
[0054] Determine the first segmentation result according to the start point, end point of the said target second period, and each remaining marked date.
[0055] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction or at least one segment of program is stored, and the at least one instruction or at least one segment of program is loaded and executed by a processor to implement the above-mentioned adaptive order generation method.
[0056] On the other hand, an embodiment of the present application provides an electronic device, including at least one processor, and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the at least one processor implements the above-mentioned adaptive order generation method by executing the instructions stored in the memory.
[0057] On the other hand, an embodiment of the present application provides a computer program product, including a computer program or instruction, and when the computer program or instruction is executed by a processor, it implements the above-mentioned adaptive order generation method.
[0058] An embodiment of the present application provides an adaptive order generation method, which can achieve such an effect that regardless of whether the second periods corresponding to each task publishing platform are the same, and regardless of whether there is a situation where the second period corresponding to the same task publishing platform changes, virtual item request orders that adapt to the latest second period of the task publishing platform can be generated without difference, automatically, and in batches, improving the compatibility and adaptability of the virtual item management end, without manual intervention, and significantly improving the generation efficiency and accuracy of virtual item request orders. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] To more clearly illustrate the technical solutions and advantages in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0060] Figure 1 It is a schematic flowchart of an adaptive order generation method provided by an embodiment of this specification;
[0061] Figure 2 It is a schematic flowchart of a method for automatically constructing a mapping relationship provided in an embodiment of this specification;
[0062] Figure 3 It is a block diagram of an adaptive order generation device provided in an embodiment of this application;
[0063] Figure 4 It is a schematic diagram of the hardware structure of a device for implementing the method provided in an embodiment of this application. Detailed implementation manners
[0064] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the embodiments of this application.
[0065] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or server including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0066] In order to make the purpose, technical solution and advantages of the disclosure of the embodiments of this application clearer and more understandable, the following further details the embodiments of this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the embodiments of this application, and are not used to limit the embodiments of this application.
[0067] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "a plurality" is two or more.
[0068] An embodiment of the present application provides an adaptive order generation method, which is applied to a virtual item management terminal. For the application scenario of the virtual item management terminal, the embodiment of the present application is introduced as follows.
[0069] As an intermediate management platform, the virtual item management terminal can communicate with the electronic devices held by users (including the clients logging in to accounts) and the task publishing platform respectively, so as to decouple the functions of the task publishing platform, enabling the task publishing platform to not need to manage virtual items.
[0070] The embodiment of the present application does not limit the task publishing platform, which can be considered as any task publishing platform accessing the above virtual item management terminal, or any task publishing platform subscribing to the virtual item management service of the above virtual item management terminal. For example, the task publishing platform can be the server of a game program, which can publish game tasks to users. However, users can obtain virtual item rewards in game tasks through the virtual item management terminal in the embodiment of the present application, and the server can decouple the management functions related to virtual item rewards in game tasks. For another example, the task publishing platform can be the server of a live broadcast program, which can publish live broadcast tasks to users. However, users can obtain virtual item rewards in live broadcast tasks through the virtual item management terminal in the embodiment of the present application, and the server can decouple the management functions related to virtual item rewards in live broadcast tasks. The embodiment of the present application does not limit the type and quantity of the accessed task publishing platforms.
[0071] The target account in the embodiment of the present application can be understood as the account held by any user who executes tasks on the above task publishing platform. The user should receive virtual items published by the task publishing platform according to the second period as rewards for executing tasks. However, in the embodiment of the present application, the virtual items can be issued on behalf of the task publishing platform by the virtual item management terminal. That is to say, the task publishing platform can entrust the virtual item management terminal to issue on its behalf by signing a service agreement. Because the virtual item management terminal has performed the issuing operation according to the first period, the task publishing platform no longer needs to issue virtual items to the target account. However, the virtual item management terminal needs to request the issuance of second virtual items from the platform based on the second period, so as to maintain the balance of virtual item circulation in the virtual item management terminal and even obtain the agency income of the virtual item management terminal. The virtual item management terminal performs the issuing operation according to the first period, and the second period is greater than the first period. Therefore, for users, the receiving period of virtual items is significantly shortened, which can significantly improve the user experience, increase the viscosity of users to the task publishing platform, encourage users to continue to complete tasks, and improve the task completion rate.
[0072] It should be noted that for each task publishing platform, the platform itself distributes virtual items to the virtual item management terminal in the second cycle, and the corresponding second cycles of different task publishing platforms can be different. This difference is prominently manifested in different dates. For example, some task publishing platforms use the 27th of last month to the 26th of this month as a second cycle, while some task publishing platforms use the 5th of last month to the 4th of this month as a second cycle. Moreover, the second cycle may also change. For example, the second cycle corresponding to the task publishing platform in May was originally from May 10, 2022 to June 9, 2022. However, in the middle of the month, for example, on May 12, the task publishing platform requested to modify the second cycle to from May 3, 2022 to June 2, 2022. This will make it difficult for the virtual item management terminal to uniformly generate virtual item request orders for each task publishing platform. The virtual item request order is used to request the virtual items that need to be sent to the virtual item management terminal within the valid second cycle of each task publishing platform. Once the second cycle is modified, it is difficult for the virtual item management terminal to adaptively generate the correct virtual item request order applicable to the modified second cycle.
[0073] According to the application scenario mentioned above, in this scenario, Figure 1 The flowchart of an adaptive order generation method provided by an embodiment of the present application is shown. This method also runs on the virtual item management terminal. The embodiment of the present application provides the method operation steps as described in the embodiment or flowchart, but based on routine or non-creative labor, it may include more or fewer operation steps. The order of steps listed in the embodiment is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system, terminal device or server product executes, it can be executed in the order of the method shown in the embodiment or the drawing or executed in parallel (for example, in an environment of parallel processors or multi-threaded processing). The above method may include:
[0074] S101. Conduct statistics on the virtual item agency distribution for the target account to obtain the virtual item sending orders corresponding to the target account in each first cycle. The virtual item sending order includes the quantity information of the virtual items sent from the virtual item management terminal to the target account within the first cycle. The target account obtains the virtual items by executing the tasks of the task publishing platform.
[0075] In the embodiments of the present application, virtual item distribution statistics can be performed on each target account, and virtual item sending orders corresponding to each target account in each first period can be obtained. This process is not affected by different second periods or changes in the second period. That is to say, it does not change according to the differences in the second period of the task publishing platform itself. Such an operation that can be executed without discrimination and uniformly improves the compatibility of the virtual item management terminal on the one hand and ensures that the target account can obtain virtual items in a timely manner on the other hand. The above virtual item sending order includes the quantity information of the virtual items sent from the virtual item management terminal to the above target account within the above first period.
[0076] In the embodiments of the present application, the first period is the period for the virtual item management terminal to perform virtual item distribution. Step S101 can be executed in batches, so that the virtual item management terminal can process virtual item sending orders in batches, perform distribution services in batches, and improve the execution efficiency of the distribution services. The quantity of virtual items can be determined according to the situation of the target account performing tasks on the task publishing platform. Reference can be made to the prior art, and the embodiments of the present application do not make limitations in this regard.
[0077] After generating the virtual item sending order, the virtual item management terminal can send virtual items to the corresponding target account. That is to say, the distribution service can be executed once every first period.
[0078] S102. In response to a second period change instruction, obtain the changed target second period and the first segmentation result corresponding to the target second period. The first segmentation result represents the situation of segmenting the target second period into a combination of the first periods.
[0079] To ensure that a uniquely determined segmentation result can be obtained for the target second period determined by the second period change instruction generated by any task publishing platform, so that the technical solution of the present application can be executed without discrimination, fully automatically, and in batches, the embodiments of the present application provide a segmentation method, including:
[0080] S201. Obtain a target value according to the position of the start date of the first period in the week.
[0081] The first period is the distribution period of the virtual item management terminal, which can be set. For example, from Sunday to Saturday is a distribution period. Taking this as an example in the present application, if the start date is Sunday, the target value is Sunday.
[0082] S202. Traverse each date in the target second period and perform the following operations:
[0083] Judge whether the date corresponds to the target value.
[0084] If so, mark the date.
[0085] Otherwise, find the target date corresponding to the nearest target value before the above date, and mark the above target date.
[0086] After the traversal, de-duplicate each of the marked dates, and filter out the marked dates that do not fall within the above target second period.
[0087] Determine the above first segmentation result according to the start point, end point of the above target second period, and each remaining marked date.
[0088] Specifically, all dates in the target second period can be obtained, and these dates are traversed. During the traversal, it is judged whether the date is Sunday: if so, the date is marked, and the meaning of the mark is to mark the date as the start date of a first period; if not, find the number of days offset between the date and the nearest Sunday before the date, and push the date forward by offset days to get a Sunday, and mark the Sunday. Then, de-duplicate all the obtained marked dates, and filter out the marked dates that do not fall within the above target second period, and all the start dates of the first period in the target second period are obtained.
[0089] For example, if the target second period is from May 10, 2022 to June 9, 2022, the first segmentation result is May 10 - May 14, May 15 - May 21, May 22 - May 28, May 29 - June 4, June 5 - June 9. Among them, May 15, May 22, May 29, and June 5 are the marked start dates of the first period that have been de-duplicated and fall within the target second period.
[0090] Among them, May 15 - May 21, May 22 - May 28, and May 29 - June 4 are all full periods, and May 10 - May 14 and June 5 - June 9 are all non-full periods.
[0091] S103. Obtain the second segmentation result, and the above second segmentation result represents the situation of segmenting the second period before the change into the combination of the above first periods.
[0092] In the embodiments of the present application, whether before or after the change, the same segmentation method is used, which can ensure that each segmentation of the present application has a uniquely determined result, and can ensure that for the second period before or after the change, the mapping relationship between the segmentation results has a unique result.
[0093] Continuing with the previous example, if the task publishing platform issues a second-cycle change instruction on May 12, 2022, changing the second cycle corresponding to that month on the task publishing platform from starting on the 10th of this month and ending on the 9th of the next month to starting on the 3rd of this month and ending on the 2nd of the next month, then the corresponding second cycle before the change is from May 10, 2022 to June 9, 2022, and its corresponding second segmentation result is 5.10 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.4, 6.5 - 6.9. Among them, the complete first cycle in May involved is 5.8 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.4, 6.5 - 6.11.
[0094] Correspondingly, the target second cycle is from May 3, 2022 to June 2, 2022, and its corresponding first segmentation result is 5.3 - 5.7, 5.8 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.2. Among them, the complete first cycle in May involved is 5.1 - 5.7, 5.8 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.4.
[0095] S104. Generate a virtual item request order according to the mapping relationship between the above first segmentation result and the above second segmentation result. The above virtual item request order is used to request virtual items within the above target second cycle from the task publishing platform.
[0096] In the embodiments of the present application, for the target account, the virtual item management terminal can determine the task executed by the target account and the task publishing platform where the task is located. The virtual items for this task executed by the account should originally be issued by the task publishing platform, but in the embodiments of the present application, they are issued on behalf of the task publishing platform by the virtual item management terminal. After obtaining the virtual item request order, the virtual item management terminal can request the task publishing platform to send virtual items to the virtual item management terminal, thus maintaining the virtual item circulation balance of the virtual item management terminal and even obtaining additional virtual item benefits for the agency service.
[0097] After receiving the second-cycle change instruction, a virtual item request order should originally be generated based on the virtual item sending order generated during the period from May 10, 2022 to June 9, 2022. However, due to the change in the second cycle, a virtual item request order should be generated based on the virtual item sending order generated during the period from May 3, 2022 to June 2, 2022. To automatically complete the change in the generation method of the virtual item request order, it is necessary to automatically establish the mapping relationship between the first segmentation result and the second segmentation result.
[0098] Such as Figure 2As shown in the figure, an embodiment of the present application provides a method for automatically constructing a mapping relationship, including:
[0099] S301. For each segmented time period in the above first segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the above second segmentation result. The two time periods with the association relationship are within the same first cycle.
[0100] Both the above first segmentation result and the above second segmentation result include at least two segmented time periods. Each segmented time period is a complete first cycle or an incomplete first cycle. For example, 5.3 - 5.7, 5.8 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.2, and 5.1 - 5.7, 5.8 - 5.14, 5.15 - 5.21, 5.22 - 5.28, 5.29 - 6.4 mentioned above all belong to the segmented time periods. For example, 5.1 - 5.7 and 5.3 - 5.7 are obviously within the same first cycle, and an association relationship needs to be established between them.
[0101] S302. For each segmented time period in the above second segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the above first segmentation result. The two time periods with the association relationship are within the same first cycle.
[0102] S303. Perform a merging process on the established association relationships to obtain the above mapping relationship.
[0103] For example, the association relationship from 5.3 - 5.7 to 5.1 - 5.7 results in 5.1 - 5.2 being separated and also forming an association relationship with 5.1 - 5.7. In this case, the mapping relationship can be expressed as:
[0104] {'5.1 - 5.2': ['5.1 - 5.7']}, {'5.3 - 5.7': ['5.1 - 5.7']};
[0105] Specifically, generating a virtual item request order according to the mapping relationship between the above first segmentation result and the above second segmentation result includes:
[0106] Access the target interface to obtain an intermediate virtual item request order. The above target interface is used to trigger the execution of a method for generating a virtual item request order within the second cycle before the change; generate the virtual item request order within the target second cycle according to the above intermediate virtual item request order and the above mapping relationship.
[0107] This intermediate virtual item request order can be understood as a virtual item request order generated without change in the second period. This order can be generated fully automatically, and this application does not limit the automatic generation method. In one embodiment, the following method can be used:
[0108] For each target first period, if the above target first period corresponds to a whole period in the above second segmentation result, use the virtual item sending order corresponding to the above target first period as the target order. If the above target first period corresponds to a non-whole period in the above second segmentation result, calculate the quantity information of the virtual items corresponding to the non-whole period according to the virtual item sending order corresponding to the above target first period. Determine the quantity information of the virtual items in the intermediate virtual item request order according to each of the above target orders and the quantity information of the virtual items corresponding to each of the non-whole periods, so as to obtain the intermediate virtual item request order.
[0109] The quantity information of the virtual items corresponding to the non-whole period must be less than the quantity information of the virtual items in the virtual item sending order of the whole period where it is located. In some embodiments, the quantity information of the virtual items generated daily is also recorded in the virtual item sending order, and the quantity information of the virtual items corresponding to the non-whole period can be counted according to this information.
[0110] However, the method for generating the virtual item request order corresponding to the target interface in this case cannot obtain the virtual item request order corresponding to the changed second period. Therefore, this application embodiment obtains the mapping relationship between the segmentation results before and after the change of the second period. The intermediate virtual item request order obtained according to this method can be transformed according to the mapping relationship, so as to obtain the virtual item request order within the changed target second period.
[0111] After obtaining the virtual item request order within the changed target second period, the above target interface can also be updated according to the above first segmentation result and the mapping relationship, so that the target interface can generate a virtual item request order based on the first segmentation result. In the next second period of the target second period, its corresponding segmentation result is the same as the first segmentation result, only the month has changed. In this way, the updated target interface can be directly used to generate a virtual item request order without further mapping. For example, if the target second period is from 2022-05-03 to 2022-06-02, then the next second period should be from 2022-06-03 to 2022-07-02, and so on.
[0112] In the specific implementation process, in response to the above-mentioned second-cycle change instruction, the above-mentioned target second cycle can be marked, and adaptive order generation can be performed according to the marking result. Continuing with the previous example, if May is marked, then when generating the virtual item request order corresponding to May, the method of this embodiment of the present application is executed to construct the mapping relationship, and based on this mapping relationship, the virtual item request order is obtained. In other months after that, that is, in other second cycles after the above-mentioned target second cycle, the updated above-mentioned target interface is directly accessed to generate the corresponding virtual item request order.
[0113] An embodiment of the present application provides an adaptive order generation method, which can achieve the following technical effects. Regardless of whether the second cycles corresponding to each task publishing platform are the same, and regardless of whether there is a situation where the second cycle corresponding to the same task publishing platform changes, virtual item request orders adapted to the latest second cycle of the task publishing platform can be generated without discrimination, automatically, and in batches, improving the compatibility and adaptability of the virtual item management end, without manual intervention, and significantly improving the efficiency and accuracy of generating virtual item request orders.
[0114] Please refer to Figure 3 , which shows a block diagram of an adaptive order generation device in this embodiment, applied to the virtual item management end. The above-mentioned device includes:
[0115] The order generation sending module 10 is used to perform statistics on the virtual item agency distribution of the target account, and obtain the virtual item sending orders corresponding to the target account in each first cycle. The above-mentioned virtual item sending order includes the quantity information of the virtual items sent from the virtual item management end to the above-mentioned target account within the above-mentioned first cycle. The above-mentioned target account obtains the above-mentioned virtual items by executing the tasks of the task publishing platform;
[0116] The change instruction response module 20 is used to perform the following operations:
[0117] In response to the second-cycle change instruction, obtain the changed target second cycle and the first segmentation result corresponding to the above-mentioned target second cycle. The above-mentioned first segmentation result represents the situation of segmenting the above-mentioned target second cycle into a combination of the above-mentioned first cycles;
[0118] Obtain the second segmentation result, and the above-mentioned second segmentation result represents the situation of segmenting the second cycle before the change into a combination of the above-mentioned first cycles;
[0119] Generate a virtual item request order according to the mapping relationship between the above-mentioned first segmentation result and the above-mentioned second segmentation result. The above-mentioned virtual item request order is used to request the virtual items within the above-mentioned target second cycle from the task publishing platform.
[0120] In one embodiment, the above change instruction response module is used to perform the following operations:
[0121] For each segmented time period in the above first segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the above second segmentation result, and the two time periods with the association relationship are within the same first cycle;
[0122] For each segmented time period in the above second segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the above first segmentation result, and the two time periods with the association relationship are within the same first cycle;
[0123] Perform a merging process on the established association relationships to obtain the above mapping relationship.
[0124] In one embodiment, the above change instruction response module is used to perform the following operations:
[0125] Access the target interface to obtain an intermediate virtual item request order, and the target interface is used to trigger the execution of a method for generating a virtual item request order within the second cycle before the above change;
[0126] Generate a virtual item request order within the above target second cycle according to the above intermediate virtual item request order and the above mapping relationship.
[0127] In one embodiment, the above change instruction response module is used to perform the following operations:
[0128] Update the above target interface according to the above first segmentation result and the mapping relationship.
[0129] In one embodiment, the above change instruction response module is used to perform the following operations:
[0130] In response to the above second cycle change instruction, mark the above target second cycle, and perform adaptive order generation according to the marking result;
[0131] In other second cycles after the above target second cycle, directly access the updated above target interface to generate corresponding virtual item request orders.
[0132] In one embodiment, the above change instruction response module is used to perform the following operations:
[0133] Obtain a target value according to the position of the start date of the above first cycle in the week;
[0134] Traverse each date in the above target second cycle and perform the following operations:
[0135] Determine whether the above date corresponds to the above target value;
[0136] If so, mark the above date;
[0137] Otherwise, find the target date corresponding to the nearest target value before the above date and mark the above target date;
[0138] After the traversal is completed, perform deduplication on each marked date, and filter out the marked dates that do not fall within the above target second period;
[0139] Determine the above first segmentation result according to the start point, end point of the above target second period, and each remaining marked date.
[0140] In the embodiments of the present application, the device part and the method embodiment are based on the same inventive concept and will not be elaborated here.
[0141] Furthermore, Figure 4 shows a schematic hardware structure diagram of a device for implementing the method provided in the embodiments of the present application. The above device may participate in constituting or include the device or system provided in the embodiments of the present application. As Figure 4 shown, the device 10 may include one or more (shown as 102a, 102b,..., 102n in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may further 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 power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 4 the structure shown is only schematic and does not limit the structure of the above electronic device. For example, the device 10 may further include more or fewer components than those Figure 4 shown, or have a different configuration from that Figure 4 shown.
[0142] It should be noted that the above one or more processors 102 and / or other data processing circuits are generally referred to as "data processing circuits" in this article. The data processing circuit may be embodied in whole or in part as software, hardware, firmware, or any combination thereof. In addition, the data processing circuit may be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the device 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit is a kind of processor control (such as the selection of a variable resistance terminal path connected to an interface).
[0143] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage devices corresponding to the above-mentioned methods in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above-mentioned adaptive order generation method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the device 10 through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0144] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the device 10. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0145] The display can be, for example, a touch-screen liquid crystal display (LCD), which enables a user to interact with the user interface of the device 10 (or a mobile device).
[0146] It should be noted that: the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the superiority or inferiority of the embodiments. And the above-mentioned specific embodiments of the present application have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be executed in a different order from that in the embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0147] The various embodiments in the embodiments of the present application are all described in a progressive manner. The same or similar parts among the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0148] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The above program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk, an optical disc, etc.
[0149] The instructions in the above storage medium can execute an adaptive order generation method, and the above method includes:
[0150] Perform virtual item consignment statistics on the target account to obtain the virtual item sending orders respectively corresponding to the target account in each first period. The virtual item sending orders include the quantity information of the virtual items sent from the virtual item management end to the target account within the first period. The target account obtains the virtual items by executing tasks on the task publishing platform;
[0151] In response to a second period change instruction, obtain the changed target second period and the first segmentation result corresponding to the target second period. The first segmentation result represents the situation of segmenting the target second period into a combination of the first periods;
[0152] Obtain a second segmentation result, and the second segmentation result represents the situation of segmenting the second period before the change into a combination of the first periods;
[0153] Generate a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result. The virtual item request order is used to request virtual items within the target second period from the task publishing platform.
[0154] In one embodiment, both the first segmentation result and the second segmentation result include at least two segmented time periods, and each segmented time period is a complete first period or an incomplete first period. Before generating the virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result, the method further includes:
[0155] For each segmented time period in the first segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the second segmentation result. The two time periods with the association relationship are within the same first period;
[0156] For each segmented time period in the second segmentation result, establish an association relationship between the segmented time period and the corresponding segmented time period in the first segmentation result. The two time periods with the association relationship are within the same first period;
[0157] Perform a merging process on the established association relationships to obtain the above mapping relationship.
[0158] In one embodiment, generating a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result includes:
[0159] Access a target interface to obtain an intermediate virtual item request order, where the target interface is used to trigger the execution of a method for generating a virtual item request order during the second period before the change;
[0160] Generate the virtual item request order during the target second period according to the intermediate virtual item request order and the mapping relationship.
[0161] In one embodiment, the method further includes:
[0162] Update the target interface according to the first segmentation result and the mapping relationship.
[0163] In one embodiment, the method further includes:
[0164] In response to the second period change instruction, mark the target second period, and perform adaptive order generation according to the marking result;
[0165] In other second periods after the target second period, directly access the updated target interface to generate corresponding virtual item request orders.
[0166] In one embodiment, the first segmentation result and the second segmentation result are determined based on the same segmentation method. The method for determining the first segmentation result includes:
[0167] Obtain a target value according to the position of the start date of the first period in the week;
[0168] Traverse each date in the target second period and perform the following operations:
[0169] Determine whether the date corresponds to the target value;
[0170] If so, mark the date;
[0171] Otherwise, find the target date corresponding to the nearest target value before the date, and mark the target date;
[0172] After the traversal is completed, perform deduplication processing on the marked dates, and filter out the marked dates that do not fall within the target second period;
[0173] Determine the first segmentation result according to the start point, end point of the target second period, and each remaining marked date.
[0174] The above are only the preferred embodiments of the embodiments of the present application, and are not intended to limit the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.
Claims
1. An adaptive order generation method, characterized in that, Applied to the virtual item management terminal, the method includes: Performing virtual item agency distribution statistics on a target account to obtain virtual item sending orders respectively corresponding to the target account in each first period. The virtual item sending order includes the quantity information of the virtual items sent from the virtual item management terminal to the target account within the first period. The target account obtains the virtual items by executing tasks on the task publishing platform; In response to a second period change instruction, obtaining the changed target second period and the first segmentation result corresponding to the target second period. The first segmentation result represents the situation of segmenting the target second period into a combination of the first periods; Obtaining a second segmentation result, which represents the situation of segmenting the second period before the change into a combination of the first periods; Generating a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result. The virtual item request order is used to request virtual items within the target second period from the task publishing platform.
2. The method according to claim 1, characterized in that Both the first segmentation result and the second segmentation result include at least two segmented time periods, and each segmented time period is a complete first period or an incomplete first period. Before generating the virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result, the method further includes: For each segmented time period in the first segmentation result, establishing an association relationship between the segmented time period and the corresponding segmented time period in the second segmentation result. The two time periods with the association relationship are within the same first period; For each segmented time period in the second segmentation result, establishing an association relationship between the segmented time period and the corresponding segmented time period in the first segmentation result. The two time periods with the association relationship are within the same first period; Performing a merging process on the established association relationships to obtain the mapping relationship.
3. The method according to claim 2, wherein The generating of the virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result includes: Accessing a target interface to obtain an intermediate virtual item request order. The target interface is used to trigger the execution of a method for generating a virtual item request order within the second period before the change; Generating the virtual item request order within the target second period according to the intermediate virtual item request order and the mapping relationship.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Updating the target interface according to the first segmentation result.
5. The method according to claim 4, wherein The method further includes: In response to the second period change instruction, marking the target second period and generating an adaptive order according to the marking result; In other second periods after the target second period, directly accessing the updated target interface to generate corresponding virtual item request orders.
6. The method according to claim 4, wherein The first segmentation result and the second segmentation result are determined based on the same segmentation method. The determination method of the first segmentation result includes: Obtaining a target value according to the position of the start date of the first period in the week; Traversing each date in the target second period and performing the following operations: Determine whether the date corresponds to the target value; If so, mark the date; Otherwise, find the target date corresponding to the nearest target value before the date and mark the target date; After the traversal ends, perform deduplication processing on each marked date, and filter out the marked dates that do not fall within the target second period; According to the start point, end point of the target second period, and each remaining marked date, determine the first segmentation result.
7. An adaptive order generation device, characterized in that, Applied to the virtual item management terminal, the device includes: A sending order generation module, configured to perform statistics on the virtual item proxy delivery of a target account, obtain virtual item sending orders corresponding to the target account in each first period respectively, where the virtual item sending order includes the quantity information of the virtual items sent from the virtual item management terminal to the target account within the first period, and the target account obtains the virtual items by executing tasks on the task publishing platform; A change instruction response module, configured to perform the following operations: In response to a second period change instruction, obtain the changed target second period and the first segmentation result corresponding to the target second period, where the first segmentation result represents the situation of dividing the target second period into a combination of the first periods; Obtain a second segmentation result, where the second segmentation result represents the situation of dividing the second period before the change into a combination of the first periods; Generate a virtual item request order according to the mapping relationship between the first segmentation result and the second segmentation result, where the virtual item request order is used to request virtual items within the target second period from the task publishing platform.
8. A computer-readable storage medium, characterized in that, At least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement an adaptive order generation method as described in any one of claims 1 to 6.
9. An electronic device, characterized in that, Includes at least one processor and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the at least one processor implements an adaptive order generation method as described in any one of claims 1 to 6 by executing the instructions stored in the memory.
10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instruction is executed by a processor, it implements an adaptive order generation method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Resource splitting method and device
CN112001595A
Account dividing method and device, server and medium
CN114626931A