Resource processing method, device and computer readable storage medium
By obtaining and pushing the most qualified available resources, the problem of inconsistent resources in different business systems is solved, users can quickly obtain effective resources, and improve experience and system stability.
Patent Information
- Application Number
- CN202011170543.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2040-10-28
AI Technical Summary
The available resources launched by different business systems make it difficult for users to quickly obtain effective resources, affecting the user experience.
All available resources are obtained through the identification of the target object and user, and according to the resource constraints and total demand, select and push the preset number of available resources that meet the conditions, and use message synchronization and interface query to achieve rapid push of resources.
It enables users to quickly obtain suitable available resources, improves user experience, and displays resources in asynchronous manner, increasing the system's throughput and stability.
Smart Images

Figure CN113765973B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a resource processing method, device and computer-readable storage medium. Background Art
[0002] With the development of Internet technology, the functions of network platforms are becoming more and more powerful, providing more and more services to users.
[0003] Usually the network platform is jointly maintained by multiple business departments. Different business systems may launch different available resources for the same target object. Summary of the invention
[0004] A technical problem to be solved by the present disclosure is: since the same business system launches different available resources, how to enable users to quickly obtain more effective available resources and improve user experience.
[0005] According to some embodiments of the present disclosure, a resource processing method is provided, including: obtaining all available resources of the user for the target object based on the identifier of the target object and the identifier of the user; selecting a preset number of available resources from each available resource based on the restriction conditions of each available resource and the total amount of resources required by the target object; and pushing the selected available resources to the user.
[0006] In some embodiments, based on the identifier of the target object and the identifier of the user, obtaining all available resources of the user for the target object includes: obtaining the identifier of the target object, the identifier of the user and a first available resource by interacting with the page of the target object, where the first available resource is an available resource determined in real time based on the historical behavior of the user; obtaining a second available resource based on the identifier of the user through message synchronization or through an interface querying various business systems, where the second available resource is an exclusive resource for the user.
[0007] In some embodiments, the method further includes: determining whether the number of pushes to the user within a preset time range reaches a threshold; if the threshold is not reached, determining whether the time interval between the current time and the last push exceeds a preset duration; if the preset duration is exceeded, executing the step of obtaining multiple available resources of the user for the target object based on the identifier of the target object and the identifier of the user.
[0008] In some embodiments, the total amount of resources required by the target object is more in line with the constraints of the selected available resources than the constraints of other available resources other than the selected available resources, and the amount of resources allowed for use by the selected available resources is larger than the amount of resources allowed for use by other available resources.
[0009] In some embodiments, the restriction conditions of each available resource include: the amount of resources allowed to be used by the available resource when the total amount of resources required by the target object reaches a preset amount, and each available resource corresponds to the same or different preset amounts; according to the restriction conditions of each available resource and the total amount of resources required by the target object, selecting a preset number of available resources from each available resource includes: sorting the difference between the preset amounts corresponding to each first available resource and each second available resource and the total amount of resources required by the target object in order from low to high, wherein when the difference between the preset amount corresponding to the available resource and the total amount of resources required by the target object is less than zero, setting the difference to zero; selecting the preset number of available resources in order from front to back.
[0010] In some embodiments, selecting a preset number of available resources from each available resource based on the restriction conditions of each available resource and the total amount of resources required by the target object also includes: when the difference between the preset quantities corresponding to multiple available resources among each first available resource and each second available resource is the same as the total amount of resources required by the target object, sorting the multiple available resources in order of the amount of resources allowed to be used from high to low.
[0011] In some embodiments, the multiple available resources also include a third available resource and a fourth available resource, the third available resource is a resource that can be obtained by any user, and the fourth available resource is a resource that the user has historically obtained but not used; based on the restriction conditions of each available resource and the total amount of resources required by the target object, selecting a preset number of available resources from each available resource also includes: using the selected preset number of available resources as alternative resources; comparing the preset amount corresponding to each alternative resource with the preset amount corresponding to each third available resource and the preset amount corresponding to each fourth available resource, and determining one or more third available resources or one or more fourth available resources with the same preset amount corresponding to the alternative resource as comparison resources; if the amount of resources allowed for use in the alternative resource is less than or equal to the amount of resources allowed for use of at least one comparison resource, filtering out the alternative resource.
[0012] In some embodiments, pushing the selected available resources to the user includes: sending the selected available resources to a message center through message synchronization, and the message center displays the selected available resources to the user on a page of the target object.
[0013] According to some other embodiments of the present disclosure, a resource processing device is provided, including: an acquisition module, used to acquire all available resources of the user for the target object according to the identifier of the target object and the identifier of the user; a selection module, used to select a preset number of available resources from various available resources according to the restriction conditions of each available resource and the total amount of resources required by the target object; and a push module, used to push the selected available resources to the user.
[0014] According to some further embodiments of the present disclosure, a resource processing device is provided, comprising: a processor; and a memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the resource processing method as described in any of the aforementioned embodiments.
[0015] According to some further embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, wherein when the program is executed by a processor, the steps of the resource processing method of any of the aforementioned embodiments are implemented.
[0016] In the present disclosure, all available resources for the target object are obtained according to the identifier of the target object and the identifier of the user, and then a preset number of available resources are selected from each available resource and pushed to the user according to the restriction conditions of each available resource and the total amount of resources required by the target object. Through the scheme of the present disclosure, available resources suitable for the target object and the user can be quickly selected and pushed to the user, and the user can quickly obtain more effective available resources, thereby improving the user experience.
[0017] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 A schematic diagram showing a flow chart of a resource processing method according to some embodiments of the present disclosure.
[0020] Figure 2 A schematic diagram showing a flow chart of a resource processing method according to some other embodiments of the present disclosure.
[0021] Figure 3 A schematic diagram showing the structure of a resource processing device according to some embodiments of the present disclosure.
[0022] Figure 4 A schematic diagram showing the structure of a resource processing device according to some other embodiments of the present disclosure.
[0023] Figure 5 A schematic diagram showing the structure of a resource processing device according to some other embodiments of the present disclosure. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0025] This disclosure proposes a resource processing method, which is combined with Figure 1 and Figure 2 Give a description.
[0026] Figure 1 Flowcharts of some embodiments of the resource processing method disclosed in the present invention. Figure 1 As shown, the method of this embodiment includes: steps S102 to S106.
[0027] In step S102, all available resources of the user for the target object are acquired according to the identifier of the target object and the identifier of the user.
[0028] In some embodiments, the available resources include: a first available resource and a second available resource. The first available resource is an available resource determined in real time based on the user's historical behavior. For example, the user visits objects other than the target object within a preset time range, and the available resources for the target object are determined for the user based on the relevance of the other objects to the target object. The algorithm for determining the first available resource is set according to the specific business and will not be repeated here. The second available resource is an exclusive resource for the user, which can be an exclusive resource configured by the network platform for the user, and only the user can obtain and use it. The available resources may also include a third available resource and a fourth available resource. For example, the third available resource is a resource that can be obtained by any user, and the fourth available resource is a resource that the user has historically obtained but not used.
[0029] In some embodiments, the target object's identifier, the user's identifier, and the first available resource are obtained by interacting with the target object's page. For example, when a user opens the target object's page, the page can synchronously notify the resource processing device (the device that implements the resource processing method) through an MQ (message queue) message. The first available resource, the third available resource, and / or the fourth available resource can be displayed on the page, and the page can send the first available resource, the third available resource, and / or the fourth available resource, as well as the target object's identifier and the user's identifier to the resource processing device.
[0030] In some embodiments, the second available resource is obtained by querying each business system through message synchronization or through an interface according to the user's identification. For example, each business system calls the incoming data through MQ synchronization or JSF (Java Server Faces) interface.
[0031] In step S104, a preset number of available resources are selected from the available resources according to the restriction conditions of the available resources and the total amount of resources required by the target object.
[0032] In some embodiments, the total amount of resources required by the target object is more in line with the constraints of the selected available resources than the constraints of other available resources other than the selected available resources, and the amount of resources allowed for use by the selected available resources is larger than the amount of resources allowed for use by other available resources.
[0033] The restriction condition of each available resource may include, for example, the amount of resources that the available resource is allowed to use when the total amount of resources required by the target object reaches a preset amount, and each available resource corresponds to the same or different preset amounts. For example, when the restriction condition is that the total amount of resources required by the target object reaches 100, the amount of resources that the available resource is allowed to use is 80. The restriction condition of each available resource may also include: when the total amount of resources required by the target object reaches a preset amount, the proportion of the amount of resources that the available resource is allowed to use to the total amount of resources required by the target object. For example, when the restriction condition is that the total amount of resources required by the target object reaches 100, the amount of resources that the available resource is allowed to use accounts for 80% of the total amount of resources required by the target object.
[0034] The ratio of the amount of resources allowed to be used by the available resources to the total amount of resources required by the target object when the total amount of resources required by the target object reaches a preset amount can be converted into the amount of resources allowed to be used by the available resources when the total amount of resources required by the target object reaches the preset amount. For example, when the total amount of resources required by the target object is less than the preset amount, the product of the total amount of resources required by the target object and the ratio is used as the amount of resources allowed to be used by the available resources, and when the total amount of resources required by the target object is greater than the preset amount, the product of the preset amount and the ratio is compared with a threshold value, and the smaller value of the product and the threshold value is selected as the amount of resources allowed to be used by the available resources.
[0035] If the restriction condition of each available resource corresponds to multiple preset quantities and each preset quantity corresponds to the resource quantity allowed for use of the available resource, the available resource can be split into multiple available resources, each of which corresponds to a preset quantity and the resource quantity allowed for use of the available resource, and then sorted.
[0036] In some embodiments, the difference between the preset quantities corresponding to each first available resource and each second available resource and the total amount of resources required by the target object are sorted in order from low to high, wherein when the difference between the preset quantities corresponding to the available resources and the total amount of resources required by the target object is less than zero, the difference is set to zero; and a preset number of available resources are selected in order from front to back.
[0037] Furthermore, when the differences between the preset amounts corresponding to multiple available resources in each of the first available resources and the second available resources and the total amount of resources required by the target object are the same, the multiple available resources are sorted in descending order according to the amount of resources allowed to be used.
[0038] In some embodiments, if the first available resources and the second available resources include resources that are identical to resources that the user has historically acquired but not used, namely, fourth available resources, then these resources that are identical to the fourth available resources are filtered out, and the difference between the preset quantities corresponding to the remaining first available resources and the second available resources and the total amount of resources required by the target object are sorted in order from low to high.
[0039] Further, a preset number of available resources are selected as alternative resources; the preset quantity corresponding to each alternative resource is compared with the preset quantity corresponding to each third available resource and the preset quantity corresponding to each fourth available resource, and one or more third available resources or one or more fourth available resources with the same preset quantity corresponding to the alternative resource are determined as comparison resources; if the resource amount allowed for use of the alternative resource is less than or equal to the resource amount allowed for use of at least one comparison resource, the alternative resource is filtered out.
[0040] Available resources can be divided into available resources of different priorities based on business needs. For example, first priority resources, second priority resources, and third priority resources. The first, second, third, and fourth available resources can include first priority resources, second priority resources, and third priority resources, respectively. In the case where there are multiple resources ranked in the same position in the sorting result, available resources can be selected according to priority. For example, first priority resources are selected first, and third priority resources are selected last.
[0041] When the alternative resources are first priority resources, the alternative resources can be directly pushed to the user. Otherwise, the preset quantity corresponding to each alternative resource is compared with the preset quantity corresponding to each third available resource and the preset quantity corresponding to each fourth available resource, as well as subsequent processes.
[0042] When the restriction conditions of alternative resources and comparison resources are the ratio of the amount of available resources allowed to be used to the total amount of resources required by the target object when the total amount of resources required by the target object reaches the preset amount, and the restriction conditions of alternative resources and comparison resources include multiple preset amounts and corresponding ratios, only the minimum preset amounts corresponding to the alternative resources and comparison resources and the ratios corresponding to the minimum preset amounts may be compared.
[0043] In step S106, the selected available resources are pushed to the user.
[0044] In some embodiments, the selected available resources are sent to the message center through message synchronization, and the message center displays the selected available resources to the user on the page of the target object. For example, the selected available resources can be sent to the message center through MQ message synchronization, and the message center displays the selected available resources to the user in the form of a floating layer. The user can click a get button to obtain the corresponding available resources.
[0045] In the method of the above embodiment, all available resources of the user for the target object are obtained according to the identifier of the target object and the identifier of the user, and then a preset number of available resources are selected from each available resource and pushed to the user according to the restriction conditions of each available resource and the total amount of resources required by the target object. Through the scheme of the above embodiment, available resources suitable for the target object and the user can be quickly selected and pushed to the user, and the user can quickly obtain more effective available resources, thereby improving the user experience.
[0046] In addition, the interface calls between systems are decoupled through message synchronization and page interaction with the target object, and available resources are displayed to users in an asynchronous manner. Even if the resource processing device as a whole is unavailable, it will not affect the user's normal browsing and subsequent processes at all, and the user will not be aware of it. Since the asynchronous method is used to display discount information, the system throughput is greatly increased, the stability of the system is guaranteed, and at the same time, more preferred available resources can be accurately delivered to users.
[0047] You can set the Do Not Disturb mode for users. Users can turn on the Do Not Disturb mode to avoid pushing available resources to users too frequently, thus improving the user experience. Figure 2 Describe the method of do not disturb processing.
[0048] Figure 2 Flowcharts of other embodiments of the resource processing method disclosed in the present invention. Figure 2 As shown, the method of this embodiment includes: steps S202 to S210.
[0049] In step S202, it is determined whether the number of pushes to the user within a preset time range reaches a threshold. If so, the process ends; otherwise, step S204 is executed.
[0050] In step S204, it is determined whether the time interval between the current time and the last push exceeds a preset time length. If it exceeds the preset time length, step S206 is executed, otherwise the process ends.
[0051] In step S206, a plurality of available resources of the user for the target object are obtained according to the identifier of the target object and the identifier of the user.
[0052] In step S208, a preset number of available resources are selected from the available resources according to the restriction conditions of the available resources and the total amount of resources required by the target object.
[0053] In step S210, the selected available resources are pushed to the user.
[0054] In some embodiments, the anti-disturbance processing method can be further refined. Obtain information about the first available resource through the page of the target object, determine whether the first available resource exists, and if so, determine whether the number of pushes to the user within the preset time range reaches a threshold, if so, end, otherwise determine whether the time interval between the current time and the last push exceeds the preset duration, if so, temporarily store the first available resource for subsequent execution of step S208, otherwise end. If the first available resource does not exist, obtain the second available resource, determine whether the second available resource exists, and if so, determine whether the number of pushes to the user within the preset time range reaches a threshold, if so, end, otherwise determine whether the time interval between the current time and the last push exceeds the preset duration, if so, temporarily store the second available resource for subsequent execution of step S208, otherwise end.
[0055] In the above embodiment, when the page of the target object receives the user's access, it can be sent to the resource processing device through the JMQ consumption service. The resource processing device executes the anti-disturbance processing method and determines whether to proceed with the subsequent process by judging the mark in JimDB (marking whether the user has turned on the anti-disturbance mechanism and the time of the last push). The second available resource obtained from the business system through the JMQ consumption service is temporarily stored in JimDB. The resource processing device also obtains the second available resource from the business system through JSF call, obtains the total amount of resources required by the target object through HTTP call service, and obtains the first, third, and fourth available resources obtained through the page of the target object. The resource processing device selects available resources based on the obtained information, sends the selected available resources to the message center through the JMQ production service, and displays them to the user. It can also send logs to the database for storage.
[0056] In the above embodiments, the available resources may be the traffic allocated by the network platform, and the target object may be the target application, which is not limited to the examples given.
[0057] The present disclosure also provides a resource processing device, Figure 3 Give a description.
[0058] Figure 3 FIG. 1 is a structural diagram of some embodiments of the resource processing device disclosed in the present invention. Figure 4 As shown, the device 30 of this embodiment includes: an acquisition module 310 , a selection module 320 , and a push module 330 .
[0059] The acquisition module 310 is used to acquire all available resources of the user for the target object according to the identifier of the target object and the identifier of the user.
[0060] In some embodiments, the acquisition module 310 is used to obtain the identifier of the target object, the identifier of the user, and the first available resource by interacting with the page of the target object. The first available resource is the available resource determined in real time based on the historical behavior of the user; and the second available resource is obtained according to the user's identifier through message synchronization or through an interface query of each business system, and the second available resource is a user-exclusive resource.
[0061] The selection module 320 is used to select a preset number of available resources from various available resources according to the restriction conditions of various available resources and the total amount of resources required by the target object.
[0062] In some embodiments, the total amount of resources required by the target object is more in line with the constraints of the selected available resources than the constraints of other available resources other than the selected available resources, and the amount of resources allowed for use by the selected available resources is larger than the amount of resources allowed for use by other available resources.
[0063] In some embodiments, the restriction conditions for each available resource include: when the total amount of resources required by the target object reaches a preset amount, the amount of resources allowed to be used by the available resource, and each available resource corresponds to the same or different preset amounts; the selection module 320 is used to sort the difference between the preset amounts corresponding to each first available resource and each second available resource and the total amount of resources required by the target object in order from low to high, wherein when the difference between the preset amount corresponding to the available resource and the total amount of resources required by the target object is less than zero, the difference is set to zero; and a preset number of available resources are selected in order from front to back.
[0064] In some embodiments, the selection module 320 is used to sort the multiple available resources in order of the amount of resources allowed to be used from high to low when the difference between the preset amounts corresponding to multiple available resources in each of the first available resources and the second available resources and the total amount of resources required by the target object is the same.
[0065] In some embodiments, the multiple available resources also include a third available resource and a fourth available resource, the third available resource is a resource that can be obtained by any user, and the fourth available resource is a resource that the user has historically obtained but not used; the selection module 320 is also used to select a preset number of available resources as alternative resources; compare the preset quantity corresponding to each alternative resource with the preset quantity corresponding to each third available resource and the preset quantity corresponding to each fourth available resource, and determine one or more third available resources or one or more fourth available resources with the same preset quantity corresponding to the alternative resource as comparison resources; if the resource amount allowed for use of the alternative resource is less than or equal to the resource amount allowed for use of at least one comparison resource, filter out the alternative resource.
[0066] The push module 330 is used to push the selected available resources to the user.
[0067] In some embodiments, the push module 330 is used to send the selected available resources to the message center through message synchronization, and the message center displays the selected available resources to the user on the page of the target object.
[0068] In some embodiments, the device also includes: an anti-disturbance module 340, which is used to determine whether the number of pushes to the user within a preset time range reaches a threshold; if the threshold is not reached, determine whether the time interval between the current time and the last push exceeds a preset duration; if the preset duration is exceeded, trigger the acquisition module 310 to obtain all available resources of the user for the target object based on the identifier of the target object and the identifier of the user.
[0069] The resource processing device in the embodiment of the present disclosure can be implemented by various computing devices or computer systems. Figure 4 as well as Figure 5 Give a description.
[0070] Figure 4 FIG. 1 is a structural diagram of some embodiments of the resource processing device disclosed in the present invention. Figure 4 As shown, the device 40 of this embodiment includes: a memory 410 and a processor 420 coupled to the memory 410 , and the processor 420 is configured to execute the resource processing method in any of some embodiments of the present disclosure based on instructions stored in the memory 410 .
[0071] The memory 410 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.
[0072] Figure 5 FIG. 1 is a structural diagram of some other embodiments of the resource processing device disclosed in the present invention. Figure 5 As shown, the device 50 of this embodiment includes: a memory 510 and a processor 520, which are similar to the memory 410 and the processor 420 respectively. It can also include an input and output interface 530, a network interface 540, a storage interface 550, etc. These interfaces 530, 540, 550 and the memory 510 and the processor 520 can be connected, for example, through a bus 560. Among them, the input and output interface 530 provides a connection interface for input and output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 540 provides a connection interface for various networked devices, for example, it can be connected to a database server or a cloud storage server. The storage interface 550 provides a connection interface for external storage devices such as SD cards and USB flash drives.
[0073] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0074] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0077] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A resource processing method, comprising: According to the identifier of the target object and the identifier of the user, all available resources of the user for the target object are acquired, wherein the available resources include: a first available resource and a second available resource, wherein the first available resource is an available resource determined in real time according to the historical behavior of the user, and the second available resource is an exclusive resource of the user; According to the restriction conditions of each available resource and the total amount of resources required by the target object, a preset amount of available resources is selected from each available resource, including: sorting the difference between the preset amount corresponding to each first available resource and each second available resource and the total amount of resources required by the target object in order from low to high, wherein, when the difference between the preset amount corresponding to the available resource and the total amount of resources required by the target object is less than zero, the difference is set to zero, and the preset amount of available resources is selected in order from front to back, and the restriction conditions of each available resource include: when the total amount of resources required by the target object reaches the preset amount, the amount of resources allowed to be used by the available resource, and each available resource corresponds to the same or different preset amounts; The selected available resources are pushed to the user.
2. The resource processing method according to claim 1, wherein: The acquiring, according to the identifier of the target object and the identifier of the user, all available resources of the user for the target object comprises: Acquire the identifier of the target object, the identifier of the user, and the first available resource by interacting with the page of the target object; The second available resource is acquired through message synchronization or querying each business system through an interface according to the user identifier.
3. The resource processing method according to claim 1, further comprising: Determine whether the number of pushes to the user within a preset time range reaches a threshold; If the threshold is not reached, determine whether the time interval between the current time and the last push exceeds the preset time length; In the case where the preset time period is exceeded, a step of acquiring a plurality of available resources of the user for the target object according to the identifier of the target object and the identifier of the user is executed.
4. The resource processing method according to claim 1, wherein: Compared with the restriction conditions of other available resources other than the selected available resources, the total amount of resources required by the target object is more in line with the restriction conditions of the selected available resources, and compared with the amount of resources allowed for use by the other available resources, the amount of resources allowed for use by the selected available resources is larger.
5. The resource processing method according to claim 1, wherein: The selecting a preset number of available resources from various available resources according to the restriction conditions of various available resources and the total amount of resources required by the target object also includes: When the difference between the preset amounts corresponding to multiple available resources in each of the first available resources and the second available resources is the same as the total amount of resources required by the target object, the multiple available resources are sorted in descending order according to the amount of resources allowed to be used.
6. The resource processing method according to claim 1, wherein: The plurality of available resources further include a third available resource and a fourth available resource, the third available resource being a resource available to any user, and the fourth available resource being a resource that the user has historically acquired but not used; The selecting a preset number of available resources from various available resources according to the restriction conditions of various available resources and the total amount of resources required by the target object also includes: selecting a preset number of available resources as candidate resources; Compare the preset amount corresponding to each candidate resource with the preset amounts corresponding to each third available resource and the preset amounts corresponding to each fourth available resource, and determine one or more third available resources or one or more fourth available resources having the same preset amount as the candidate resource as comparison resources; If the resource amount allowed to be used by the candidate resource is less than or equal to the resource amount allowed to be used by at least one comparison resource, the candidate resource is filtered out.
7. The resource processing method according to claim 1, wherein: The pushing the selected available resources to the user comprises: The selected available resources are sent to the message center through message synchronization, and the message center displays the selected available resources to the user on the page of the target object.
8. A resource processing device, comprising: an acquisition module, configured to acquire all available resources of the user for the target object according to an identifier of the target object and an identifier of the user, wherein the available resources include a first available resource and a second available resource, wherein the first available resource is an available resource determined in real time according to the historical behavior of the user, and the second available resource is an exclusive resource of the user; A selection module, used for selecting a preset number of available resources from various available resources according to the restriction conditions of various available resources and the total amount of resources required by the target object, including: sorting the difference between the preset amount corresponding to each first available resource and each second available resource and the total amount of resources required by the target object in order from low to high, wherein, when the difference between the preset amount corresponding to the available resource and the total amount of resources required by the target object is less than zero, the difference is set to zero, and the preset number of available resources is selected in order from front to back, and the restriction conditions of each available resource include: when the total amount of resources required by the target object reaches the preset amount, the amount of resources allowed to be used by the available resource, and each available resource corresponds to the same or different preset amounts; The push module is used to push the selected available resources to the user.
9. A resource processing device, comprising: processor; as well as A memory coupled to the processor is used to store instructions, and when the instructions are executed by the processor, the processor executes the resource processing method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Multi business resource allocation method, system, gateway equipment and authentication server
CN101227415A
Resource information processing and outputting method and device
CN111160950A