Resource allocation method, device, apparatus and medium
By automating the acquisition and verification of resource distribution keys, the problem of manually developing code in complex marketing campaigns is solved, enabling an efficient and flexible resource distribution process that meets highly customized needs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FUTU NETWORK TECH (SHENZHEN) CO LTD
- Filing Date
- 2026-01-30
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, complex customized marketing campaigns require developers to manually develop prize distribution codes, resulting in high development costs, low efficiency, and difficulty in quick adjustments.
By automating resource allocation configuration strategies through resource allocation keys, business personnel can obtain and verify configuration strategies and trigger the entire resource allocation process, reducing development difficulty and improving efficiency.
It enables efficient and flexible resource allocation, meets highly customized needs, eliminates the need for developers to write additional code, and reduces the difficulty and cost of resource allocation.
Smart Images

Figure CN122243569A_ABST
Abstract
Description
Technical Field
[0001] This disclosure generally relates to the field of data processing technology, and specifically to a resource distribution method, apparatus, device, and medium. Background Technology
[0002] With the development of computer technology, in order to attract a large number of users to conduct online resource transactions, various marketing activities are usually set up for users to distribute various activity prizes to users who participate in the marketing activities, so as to attract a large number of users to learn about various resource trading businesses.
[0003] However, different marketing activities need to be carried out in each market operation. For complex customized marketing activities, R&D personnel often need to develop customized activity configuration code. This means that when it is necessary to add or adjust the activity prize distribution rules, corresponding prize distribution code needs to be developed, which increases development costs. Summary of the Invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a resource distribution method, apparatus, device and medium that realizes resource distribution based on resource distribution keys. That is, business personnel can use resource distribution keys to provide the resource distribution configuration strategy required for resource distribution, thereby triggering the entire resource distribution process, improving the efficiency of resource distribution and reducing the difficulty of resource distribution.
[0005] In a first aspect, embodiments of this application provide a resource allocation method, including: In response to a resource allocation request, obtain the resource allocation key from the resource allocation request; The resource allocation key is parsed to obtain the resource allocation configuration strategy corresponding to the resource allocation key; the resource allocation configuration strategy is generated based on configuration information, which is obtained through previous configuration operations, and the resource allocation configuration strategy corresponds one-to-one with the resource allocation key; The resource allocation configuration strategy is validated. If the validation passes, resources are allocated according to the resource allocation configuration strategy.
[0006] Secondly, embodiments of this application provide a resource distribution device, including: The response module is used to respond to a resource allocation request and obtain the resource allocation key in the resource allocation request. The parsing module is used to parse the resource distribution key to obtain the resource distribution configuration strategy corresponding to the resource distribution key; the resource distribution configuration strategy is generated based on configuration information, which is obtained through previous configuration operations, and the resource distribution configuration strategy corresponds one-to-one with the resource distribution key; The resource allocation module is used to verify the resource allocation configuration strategy. If the verification passes, the resource allocation is performed according to the resource allocation configuration strategy.
[0007] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in embodiments of this application.
[0008] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in embodiments of this application.
[0009] Fifthly, embodiments of this application provide a computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, it implements the method described in embodiments of this application.
[0010] The resource distribution method, apparatus, device, and medium provided in this application embodiment, in response to a resource distribution request, obtains a resource distribution key from the resource distribution request; parses the resource distribution key to obtain a resource distribution configuration strategy corresponding to the resource distribution key; the resource distribution configuration strategy is generated based on configuration information obtained through prior configuration operations; the resource distribution configuration strategy is verified; if the verification is successful, resource distribution is performed according to the resource distribution configuration strategy, thereby realizing resource distribution based on the resource distribution key. That is, business personnel can use the resource distribution key to provide the resource distribution configuration strategy required for resource distribution, thereby triggering the entire resource distribution process, improving the efficiency of resource distribution, and reducing the difficulty of resource distribution.
[0011] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0012] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 The implementation environment architecture diagram of the resource allocation method provided in the embodiments of this application is shown; Figure 2 A flowchart illustrating a resource allocation method provided in an embodiment of this application is shown; Figure 3 The diagram shows an interactive interface of a resource allocation configuration strategy provided in an embodiment of this application. Figure 4 A flowchart illustrating a resource allocation method provided in another embodiment of this application is shown; Figure 5 A flowchart illustrating a resource allocation method according to another embodiment of this application is shown; Figure 6 A schematic diagram of the structure of a resource distribution device provided in an embodiment of this application is shown; Figure 7 A schematic diagram of the structure of a computer system suitable for implementing an electronic device or server according to embodiments of this application is shown. Detailed Implementation
[0013] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0014] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0015] In various financial product trading scenarios, clients can register various resource accounts on a trading platform and then use the virtual or electronic resources within these accounts to invest in various trading products, thereby maximizing the value and benefits of the underlying resources. These trading products can be financial products such as stocks, funds, options, and cryptocurrencies, or combinations of one or more of these. The underlying resources can be the balance information of different types of encrypted digital currencies that clients can use to trade various trading products across different resource accounts.
[0016] Therefore, to improve the targeted customer acquisition of trading platforms, various marketing campaigns are typically set up to offer users various prizes, thereby attracting a large number of users to learn about various trading products and, with the help of these prizes, to invest some of their assets in the corresponding trading products. However, in the product operation process of each market, different strategies and activities need to be carried out according to the different differences of each market. For complex customized marketing activities, it is often necessary for R&D personnel to manually develop customized programs, which will encounter problems such as low development efficiency, difficulty in code reuse, difficulty in quickly adjusting online activities, and high development costs for activities with dynamic parameters.
[0017] Based on this, this application proposes a resource distribution method, apparatus, device, and medium, which realizes resource distribution based on resource distribution keys. That is, business personnel can use resource distribution keys to provide the resource distribution configuration strategies required for resource distribution, thereby triggering the entire resource distribution process, improving the efficiency of resource distribution, and reducing the difficulty of resource distribution.
[0018] For the specific implementation environment of the resource distribution method proposed in this application, please refer to [link / reference needed]. Figure 1 . Figure 1 The implementation environment architecture diagram of the resource allocation method provided in the embodiments of this application is shown.
[0019] like Figure 1 As shown, the implementation environment architecture includes: client terminal device 101, server 102 and business terminal device 103.
[0020] The client terminal device 101 is used to run an application client and provide an interactive interface to the user. This interface displays resource distribution messages, transaction information, etc., to the user. The terminal device 101 can be a desktop computer, laptop computer, smartphone, tablet computer, e-book reader, smart glasses, smartwatch, in-vehicle device, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR), virtual reality (VR) device, etc., but is not limited to these.
[0021] The business terminal device 103 is used to provide business personnel with the configuration interface proposed in this application embodiment and to receive and obtain configuration information. The server 102 is used to execute the resource configuration method proposed in this application embodiment.
[0022] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0023] The client terminal device 101 and the server 102, as well as the server 102 and the service terminal device 103, are directly or indirectly connected via wired or wireless communication. Optionally, the aforementioned wireless or wired network uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to any combination of Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless network, private network, or virtual private network.
[0024] also, Figure 1 The number of client terminal devices, servers, and business terminal devices shown is merely exemplary and may actually include other numbers of client terminal devices, servers, and business terminal devices; however, this application does not specifically limit this number.
[0025] The resource distribution method proposed in this application can be implemented by a resource distribution device, which can be installed on a terminal device or a server.
[0026] To further illustrate the technical solutions provided in the embodiments of this application, a detailed description is provided below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiments of this application provide method operation instruction steps as shown in the following embodiments or drawings, the method may include more or fewer operation instruction steps based on conventional or non-creative effort. In steps where there is no logically necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application. In actual processing or when the device executes the method, it may be executed sequentially or in parallel according to the method shown in the embodiments or drawings.
[0027] It should be noted that the information (including but not limited to user account information, user operation information and other related personal information), data (including but not limited to data used for analysis, data stored, data displayed and other related personal information), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0028] Please refer to Figure 2 , Figure 2 A flowchart illustrating a resource allocation method provided in an embodiment of this application is shown. Figure 2 As shown, the method includes: Step 201: In response to the resource distribution request, obtain the resource distribution key from the resource distribution request.
[0029] It should be noted that resource allocation requests can be initiated by users with resource allocation request permissions, specifically business personnel providing market operation services within the trading platform. It should be understood that business personnel can execute various business functions related to marketing activities on the business clients provided by the trading platform, such as developing new marketing campaigns and configuring specific campaign prizes. Specifically, business personnel can trigger resource allocation requests by launching a target marketing campaign, enabling the server to allocate resources to user objects participating in the target marketing campaign and meeting the resource allocation requirements.
[0030] Step 202: Parse the resource distribution key to obtain the resource distribution configuration strategy corresponding to the resource distribution key; the resource distribution configuration strategy is generated based on the configuration information, which is obtained through the previous configuration operation, and the resource distribution configuration strategy corresponds one-to-one with the resource distribution key.
[0031] It should be noted that the resource allocation key is a unique key that encapsulates the resource allocation configuration strategy. Business personnel generate the resource allocation key by configuring various configuration information related to resource allocation through prior configuration operations, and call the configured resource allocation key when a resource allocation request is triggered to pass in the resource allocation configuration strategy.
[0032] The resource allocation configuration strategy is used to indicate various configuration information during the resource allocation process, which may include, but is not limited to, basic configuration information, resource budget configuration information, and resource allocation configuration information.
[0033] The basic configuration information includes, but is not limited to, the activity name, activity identifier, activity initiator, activity target, and activity time of the resource distribution activity corresponding to the resource distribution.
[0034] Resource budget allocation information is used to indicate the budget information of the distributed resource targets, including but not limited to the total budget quantity corresponding to the value of the resource targets, the upper limit threshold of the value of the resource targets distributed by a single person, etc. It can be understood that the resource targets include but are not limited to cash resource targets, coupon resource targets, virtual points resources, etc. The corresponding value of the resource targets refers to the value of different types of resource targets converted relative to the reference value.
[0035] Resource allocation configuration information is used to indicate the rules for triggering resource allocation, including but not limited to the allocated resource targets, the triggering conditions for resource allocation, and the allocation logic information. The triggering conditions for resource allocation are used to indicate under what circumstances resource allocation will be carried out, and the allocation logic information for resource allocation is used to indicate the resource quantity of the allocated resource targets and the resource value per unit of resource targets each time resource allocation is carried out.
[0036] In one feasible embodiment, before obtaining the resource allocation request, the method further includes: in response to a configuration operation on at least one configuration item in the resource allocation configuration strategy, obtaining configuration information corresponding to each configuration item, and generating a resource allocation configuration strategy based on the configuration information.
[0037] In other words, the trading platform can provide business personnel with an interactive interface for resource allocation configuration. This interface includes multiple configuration items for configuring information related to resource allocation, including but not limited to basic configuration information, resource budget configuration information, and resource allocation configuration information. Business personnel perform corresponding configuration operations on these items, inputting the corresponding configuration information. The trading platform then retrieves this configuration information through the interactive interface and generates a resource allocation configuration strategy based on it.
[0038] Furthermore, in this embodiment of the application, the configuration items include dynamic configuration items and fixed configuration items. Obtaining the configuration information corresponding to each configuration item includes: obtaining the fixed configuration information corresponding to the fixed configuration item, and obtaining the dynamic configuration information acquisition interface corresponding to the dynamic configuration item; the dynamic configuration information acquisition interface is used to receive the dynamic configuration information corresponding to the dynamic configuration item.
[0039] It should be noted that fixed configuration items can be configuration items whose configuration parameters remain unchanged, such as configuration items under basic configuration information or configuration items under resource allocation configuration information.
[0040] In some embodiments, the fixed configuration item may also be the configuration item corresponding to all configuration information or the configuration item corresponding to some configuration information under the resource allocation configuration strategy, and this application does not make specific limitations.
[0041] In other embodiments, fixed configuration items can also be fixed configuration items formed based on configuration operations. For example, the input method for the prize amount can be dynamic input or fixed input. When a business user performs a selection configuration operation to make the input method for the prize amount fixed, the value corresponding to the prize amount is the value corresponding to the fixed input operation. That is, the prize amount is the fixed value corresponding to the prize amount under the fixed input method obtained by the business user through the fill-in configuration operation, which is used as configuration information. In other words, configuration operations can include selection operations or fill-in operations. Developers can develop corresponding selection information or corresponding fill-in controls for at least one configuration item for the business user in advance according to the needs of the business user. This application does not make specific limitations.
[0042] Therefore, the resource allocation method proposed in this application embodiment enables business personnel to configure resource allocation configuration strategies through a visual interactive interface. At the same time, it breaks through the limitations of existing fixed resource allocation strategy templates and realizes dynamic configuration item settings that meet highly customized needs. This satisfies the needs of business personnel for dynamic adjustment of resource allocation, and eliminates the need for developers to write separate codes for dynamic configuration behaviors, thereby achieving a resource allocation implementation solution with high efficiency, high reusability, and low code volume.
[0043] In one specific embodiment, such as Figure 3 As shown, an interactive interface is provided for business personnel to configure resource allocation configuration strategies, specifically a configuration interface for resource allocation configuration strategies. The interactive interface includes configuration items corresponding to resource allocation configuration information under the resource allocation configuration strategy. Further, the configuration items corresponding to the resource allocation configuration information include fixed configuration items and dynamic configuration items. Fixed configuration items include the configuration information of the resource target, i.e. Figure 3 The configuration information includes the name of the prize and the quantity of resources allocated each time resources are distributed. Figure 3 The "Single Person, Single Reward" item, a dynamically configurable item, includes the resource value of the unit resource target, i.e. Figure 3 The "face value of a single cash coupon" in the text. It should be understood that in... Figure 3 In the embodiment shown, the type of a single cash voucher denomination is selected as "dynamic". Therefore, this configuration item is a dynamic configuration item in this embodiment, and the configuration information is the pre-set "please enter in the interface". Correspondingly, if the type of a single cash voucher denomination is selected as "fixed", this configuration item is converted into a fixed configuration item. The fixed denomination configuration information of a single cash voucher is formed by entering the denomination value in the corresponding information configuration control.
[0044] In one embodiment, after obtaining the resource allocation configuration policy, a corresponding resource allocation key can be generated based on the resource allocation policy. Specifically, the resource allocation key may include key metadata and a verification signature; wherein, the key metadata includes, but is not limited to, policy identifiers and policy version identifiers used to identify each configuration information under the resource allocation configuration policy, for example, the key metadata may be 'org_activity_type_v3X89m', where "org_activity_type" represents the policy identifier and "v3X89m" represents the policy version identifier, specifically obtained by encrypting each configuration information under the resource allocation configuration policy using a first encryption algorithm based on a first key, and compressing the encrypted configuration information using a preset compression algorithm; the verification signature is used to verify the validity of the resource allocation key, specifically obtained by encrypting the key metadata based on a second key using a second encryption algorithm.
[0045] After obtaining the resource distribution key, it can be parsed to obtain key metadata and a verification signature. Based on the key metadata and a locally stored second key, a second encryption algorithm is used to obtain a signature to be verified. This signature is then matched with the verification signature carried by the resource distribution key to verify its validity. Specifically, if the signature to be verified matches the verification signature carried by the resource distribution key, the resource distribution key is considered valid; otherwise, it is considered invalid. After determining that the resource distribution key is valid, the key metadata can be further decompressed and decrypted using a preset decompression algorithm and a first key to obtain various configuration information under the resource distribution configuration strategy. Specifically, the strategy version identifier in the key metadata can be decompressed using a preset decompression algorithm, and the decompressed data can be decrypted using a corresponding first decryption algorithm based on the first key to obtain various configuration information under the resource distribution configuration strategy.
[0046] It should be understood that resource distribution involves numerous types of resources, each with inconsistent supported characteristics (e.g., cash resources, coupon resources, virtual points resources, etc.). If all these characteristic parameters were to be input by business personnel when triggering a resource distribution request, the code complexity of the resource distribution request, which includes all parameter information, would be significantly increased. Furthermore, manually informing users of the resource distribution configuration strategy is prone to errors. Therefore, this application proposes converting the resource distribution strategy into a resource distribution key. Business personnel can generate the corresponding resource distribution configuration strategy through a pre-configuration operation, and then pass the resource distribution configuration strategy via the resource distribution key, thereby greatly reducing the code complexity for the caller and minimizing the transmission of redundant fields. Simultaneously, the pre-implemented configuration operation allows for flexible configuration based on market needs. For example, configuration items such as the resource value per unit of resource can be configured as dynamic configuration items, enabling the integration of dynamic configuration information when triggering a resource distribution request. This effectively achieves both the dynamic adjustability of marketing activity resource distribution and reduces the development difficulty for developers.
[0047] Step 203: Verify the resource allocation configuration strategy. If the verification passes, allocate resources according to the resource allocation configuration strategy.
[0048] In other words, to ensure the accuracy and reliability of resource allocation, after obtaining the resource allocation configuration policy through the resource allocation key, the resource allocation policy is further verified. If the verification passes, the current resource allocation policy is determined to be an executable resource allocation policy, and resource allocation is carried out according to the resource allocation configuration policy. If the verification fails, the current resource allocation policy is determined to be an unexecutable resource allocation policy, and an alarm is reported.
[0049] Therefore, the resource allocation method provided in this application embodiment, in response to a resource allocation request, obtains the resource allocation key in the resource allocation request; parses the resource allocation key to obtain the resource allocation configuration strategy corresponding to the resource allocation key; the resource allocation configuration strategy is generated based on configuration information, which is obtained through prior configuration operations; verifies the resource allocation configuration strategy; if the verification is successful, resource allocation is performed according to the resource allocation configuration strategy, thereby realizing resource allocation based on the resource allocation key. That is, business personnel can use the resource allocation key to provide the resource allocation configuration strategy required for resource allocation, thereby triggering the entire resource allocation process, improving the efficiency of resource allocation, and reducing the difficulty of resource allocation.
[0050] In some preferred embodiments, during the activity, it is necessary to quickly adjust the activity strategy to adapt to market trends. For example, during the activity, resources with non-fixed target values may be distributed to specific users. Based on this, this application also proposes a dynamic configuration scheme for resource distribution configuration strategy, that is, a scheme for dynamic configuration through the dynamic configuration information acquisition interface corresponding to the dynamic configuration item.
[0051] Specifically, in response to a resource allocation request, the system obtains the dynamic configuration information corresponding to the resource allocation request through the dynamic configuration information acquisition interface, verifies the dynamic configuration information, and if the verification is successful, improves the resource allocation configuration strategy based on the dynamic configuration information and performs resource allocation according to the improved resource allocation configuration strategy.
[0052] In other words, some configuration items in the resource allocation configuration strategy do not have fixed information configuration during the configuration phase. Instead, they receive corresponding dynamic configuration information based on the dynamic configuration information interface configured in the resource allocation configuration strategy. Specifically, in response to a resource allocation request, the dynamic configuration information corresponding to the resource allocation request is obtained based on the dynamic configuration information acquisition interface. For example, if the dynamic configuration information acquisition interface is the resource allocation request acquisition interface, the resource allocation request is obtained through the resource allocation request acquisition interface, and the resource allocation request is parsed to obtain the dynamic configuration information carried in the resource allocation request. Then, the dynamic configuration information is verified. If the dynamic configuration information meets the preset configuration conditions, the dynamic configuration information verification is determined to be successful. A complete resource allocation configuration strategy is generated based on the dynamic configuration information, and resource allocation is performed according to the complete resource allocation configuration strategy. If the dynamic configuration information does not meet the preset configuration conditions, the dynamic configuration information verification is determined to be unsuccessful, and feedback on the verification failure is sent to the business personnel.
[0053] It should be understood that the preset configuration conditions include at least information configuration format conditions and threshold conditions. That is, by verifying the information configuration format conditions and threshold conditions of the dynamic configuration information, it is ensured that the dynamic configuration information is executable configuration information, thereby ensuring that the resource distribution configuration strategy generated based on the dynamic configuration information can be effectively executed.
[0054] For example, taking dynamically allocated amounts as the dynamic configuration information, business personnel add a dynamically allocated amount to resource allocation requests to allocate resources to target users according to this amount. After obtaining the dynamically allocated amount, the amount is validated against information configuration format conditions and threshold conditions. This means determining whether the dynamically allocated amount is filled in according to the preset format and whether it reaches the upper limit threshold of the value corresponding to the resource allocated to a single person, the total budget quantity of the corresponding value of the resource, etc., to avoid operational accidents caused by excessive allocation amounts. If the dynamically allocated amount meets both the information configuration format condition validation and the threshold condition validation, the dynamic allocation amount is determined to have passed the validation. The dynamically allocated amount is then added to the resource allocation configuration information to form a complete resource allocation configuration strategy. Finally, resources are allocated to target users according to the dynamically allocated amount in the resource allocation configuration strategy.
[0055] Therefore, this application achieves complete input of resource allocation configuration information by first setting dynamic configuration items and then inputting dynamic configuration information. Only the corresponding dynamic information acquisition interface needs to be configured for the dynamic configuration items to realize the input of external dynamic configuration information, thus realizing highly customized resource allocation configuration without the need for additional development by R&D personnel.
[0056] In some embodiments, a resource allocation configuration strategy includes at least basic configuration information, resource budget configuration information, and resource allocation configuration information. The basic configuration information characterizes the basic information of the marketing activity corresponding to the resource allocation strategy. Optionally, the basic configuration information may include, but is not limited to, the activity name, the target audience, the target users, and the activity time of the corresponding marketing activity. The resource budget configuration information indicates the budget information of the allocated resource targets, including but not limited to the total budget amount corresponding to the value of the resource targets, and the upper limit threshold for the value of resource targets allocated to a single user. It is understood that resource targets include, but are not limited to, cash resource targets, coupon resource targets, virtual points-type resources, etc. The corresponding value of a resource target refers to the value of different types of resource targets converted relative to their reference value. Resource allocation configuration information is used to indicate the rules for triggering resource allocation, including but not limited to the allocated resource targets, the triggering conditions for resource allocation, and the allocation logic information. The triggering conditions for resource allocation are used to indicate under what circumstances resource allocation will be carried out, and the allocation logic information for resource allocation is used to indicate the resource quantity of the allocated resource targets and the resource value per unit of resource targets each time resource allocation is carried out.
[0057] In other words, in this embodiment of the application, the basic configuration information, resource budget configuration information and resource distribution configuration information in the resource distribution configuration strategy can be customized according to the needs of the activity. That is, business personnel can configure the corresponding resource distribution configuration strategy in advance according to market demand and generate the corresponding resource distribution key so as to obtain the pre-customized resource distribution configuration strategy through the resource distribution key when the resource distribution request is triggered.
[0058] In some embodiments, verifying the resource allocation configuration strategy may include: sequentially calling the basic configuration module, the resource budget configuration module, and the resource allocation configuration module in a preset order to verify the basic configuration information, resource budget configuration information, and resource allocation configuration information of the target resource allocation activity, respectively.
[0059] In other words, in this embodiment of the application, modular configuration is used to verify multiple sub-items in the resource allocation configuration strategy separately. This effectively ensures the reliability of resource allocation verification while decoupling business logic from code, greatly reducing the amount of redundant code development.
[0060] Specifically, after obtaining the resource allocation configuration strategy, the basic configuration information, resource budget configuration information, and resource allocation configuration information within the strategy can be parsed. For example... Figure 4As shown, after obtaining the resource distribution request containing the resource distribution key, the resource distribution key is parsed to obtain the resource distribution configuration strategy corresponding to the resource distribution key, that is, the resource distribution configuration strategy of the target resource distribution activity is obtained, and the basic configuration module is called to verify the resource distribution configuration strategy of the target resource distribution activity. Specifically, the basic configuration module can be invoked to obtain the basic configuration information of the resource distribution configuration policy corresponding to the target resource distribution activity based on the policy identifier of the key metadata in the resource distribution key. The basic configuration information includes, but is not limited to, activity name, activity type, activity time, etc. By comparing the basic configuration information in the basic configuration module with the basic configuration information in the decrypted resource distribution configuration policy, it is determined whether the two are consistent. If they are consistent, the verification passes. At the same time, the basic configuration verification of the target resource distribution activity is also performed based on the basic configuration information of the resource distribution configuration policy. If the verification passes, the verification of the next configuration information of the target resource distribution activity is triggered. For example, the basic configuration verification can be a time verification, that is, to determine whether the target resource distribution activity is still within the validity period. If the current time is still within the activity time indicated by the basic configuration information of the resource distribution configuration policy, that is, the target resource distribution activity is still within the validity period, the basic configuration information verification is determined to have passed. If the current time is not within the activity time indicated by the basic configuration information of the resource distribution configuration policy, that is, the activity validity period of the target resource distribution activity has ended, the basic configuration information verification is determined to have failed.
[0061] Furthermore, after the basic configuration information of the target resource allocation activity is verified, the resource budget configuration module is invoked to obtain the resource budget configuration information of the resource allocation configuration policy corresponding to the target resource allocation activity based on the policy identifier of the key metadata in the resource allocation key. The resource budget configuration information in the resource budget configuration module and the resource budget configuration information in the decrypted resource allocation configuration policy are compared to determine whether they are consistent. If they are consistent, the verification is successful. At the same time, the resource budget configuration information is also verified. Specifically, the resource budget configuration module is invoked to perform budget deduction calculation on the resource budget configuration information of the target resource allocation activity. If the budget deduction calculation result meets the preset conditions, the resource budget configuration information verification is successful. If the budget deduction result does not meet the preset conditions, the resource budget configuration information verification is unsuccessful.
[0062] In some embodiments, the preset condition can be that the budget deduction calculation result is less than or equal to the remaining value of the resource allocation budget. It should be understood that resource allocation activities are usually a reward mechanism, and an overall allocation budget is usually set in advance for each resource allocation activity so that the corresponding resource allocation activity will stop after the overall allocation budget has been written off, thereby avoiding the over-allocation of resources and enabling real-time tracking of resource allocation.
[0063] Specifically, in this application example, after each resource allocation is completed, the remaining amount of the resource allocation budget can be formed based on the overall allocation budget. Then, the budget is deducted according to the resource budget configuration information in the current resource allocation request to obtain the amount of resource allocation budget required to execute the current resource allocation request. If the amount of the resource allocation budget is less than or equal to the remaining amount of the resource allocation budget, the resource budget configuration information verification is determined to be successful. If the amount of the resource allocation budget is greater than the remaining amount of the resource allocation budget, the resource budget configuration information verification is determined to be unsuccessful.
[0064] Furthermore, after the resource budget configuration information is verified, the resource allocation configuration module is invoked to obtain the resource allocation configuration information from the resource allocation configuration strategy corresponding to the target resource allocation activity. This resource allocation configuration information is then verified, including but not limited to a consistency check between the resource allocation configuration information stored in the resource allocation configuration module and the parsed resource allocation configuration information, to prevent tampering. Specifically, if the resource allocation configuration information stored in the resource allocation configuration module matches the parsed resource allocation configuration information, the verification is considered successful; otherwise, the verification is considered unsuccessful.
[0065] In one embodiment, the configuration items corresponding to the resource allocation configuration information may include dynamic configuration items and fixed configuration items. That is, the resource allocation configuration information may include fixed resource allocation configuration information and dynamic resource allocation configuration information. For example, the configuration information of the resource target and the configuration information of the resource quantity of the resource target allocated each time a resource allocation is performed are fixed configuration items, while the configuration information of the resource value per unit of resource target is a dynamic configuration item. After obtaining the resource allocation request, the resource allocation key carried by the resource allocation request can be parsed to obtain the fixed resource allocation configuration information in the corresponding resource allocation configuration strategy. In response to the resource allocation request, the dynamic resource allocation configuration information is obtained from the dynamic configuration information acquisition interface. Then, the resource allocation configuration module is called. The fixed resource allocation configuration information and the dynamic resource allocation configuration information are verified by using the resource allocation configuration information of the resource allocation configuration strategy stored in the resource allocation configuration module. Specifically, this can be a verification of the parameter format of the fixed resource allocation configuration information and the dynamic resource allocation configuration information or a verification of whether they are within a threshold.
[0066] Furthermore, after the resource allocation configuration information is verified, the resource allocation configuration module allocates resources based on the verified resource allocation configuration information.
[0067] In some feasible embodiments, after verifying the basic configuration information and resource budget configuration information of the resource allocation activity in the resource allocation configuration strategy, the resource allocation configuration module can be directly called to allocate resources according to the resource allocation configuration information. This application does not make specific limitations.
[0068] In one embodiment, resource allocation according to the resource allocation configuration strategy may specifically include receiving resource allocation events. A resource allocation event is an event triggered by a user object when the triggering conditions for resource allocation in the corresponding resource allocation configuration information are met. After receiving the resource allocation event, a certain number of resource targets can be transferred to the user object based on the allocation logic information of the resource allocation.
[0069] It should be understood that if any step fails the verification of the basic configuration information, resource budget configuration information, and resource allocation configuration information of the resource allocation activity, feedback will be sent to the business personnel to promptly remind them that the corresponding resource allocation request cannot be executed and to take appropriate measures to avoid operational accidents.
[0070] In one specific embodiment, after obtaining a resource allocation request, the resource allocation request is parsed to obtain the resource allocation key and dynamic configuration parameters. The resource allocation key is parsed to obtain the resource allocation configuration strategy corresponding to the resource allocation key. The resource allocation configuration strategy is parsed to obtain the basic configuration information, resource budget configuration information, and resource allocation configuration information of the resource allocation activity. The basic configuration module is called to verify the basic configuration information of the resource allocation activity, and the resource budget configuration module is called to calculate the budget deduction based on the maximum value of the threshold conditions in the resource allocation configuration information. If the budget deduction calculation result meets the preset conditions, the dynamic configuration parameters are added to the resource allocation configuration information to form complete resource allocation configuration information. The resource allocation configuration module is called to verify the complete resource allocation configuration information, including but not limited to verifying the information configuration format conditions and threshold conditions corresponding to the dynamic configuration parameters. If the resource allocation configuration information passes the verification, the resource allocation configuration module performs resource allocation according to the resource allocation configuration information.
[0071] Alternatively, after parsing the resource allocation configuration strategy to obtain the basic configuration information, resource budget configuration information, and resource allocation configuration information for the resource allocation activity, dynamic configuration parameters are added to the resource allocation configuration information to form complete resource allocation configuration information. The basic configuration is then called to verify the basic configuration information of the resource allocation activity, and the resource budget configuration module is called to perform budget deduction calculation based on the complete resource allocation configuration information. If the budget deduction calculation result meets the preset conditions, the resource allocation configuration module is called to verify the complete resource allocation configuration information. If the resource allocation configuration information verification passes, the resource allocation configuration module performs resource allocation according to the resource allocation configuration information.
[0072] It should be understood that when dynamic configuration parameters are first added to the resource allocation configuration information to form complete resource allocation configuration information, the information configuration format conditions and threshold conditions of the dynamic configuration parameters are checked through the budget deduction calculation and judgment of the resource budget configuration module. That is, if the parameter format of the dynamic configuration parameters is abnormal, the resource budget configuration module cannot perform the budget deduction calculation. If the dynamic configuration parameters are too large, the budget deduction calculation result cannot meet the condition of the remaining budget value.
[0073] Therefore, this application can provide business personnel with highly customized resource allocation configuration strategies during the resource allocation process. While meeting the high customization requirements of resource allocation, it eliminates the need for R&D personnel to perform additional code processing, thereby reducing redundant code development.
[0074] It should be understood that during the configuration of resource allocation strategy, the basic configuration module, resource budget configuration module and resource allocation configuration module need to be called in sequence according to the preset order to configure the basic configuration information, resource budget configuration information and resource allocation configuration information respectively.
[0075] Specifically, in response to the configuration operation of the basic configuration information of the preset resource distribution configuration strategy, the basic configuration module is called to store the basic configuration information; in response to the configuration operation of the resource budget configuration information, the resource budget configuration module is called to store the resource budget configuration information; in response to the configuration operation of the resource distribution configuration information, the resource distribution configuration module is called to store the resource distribution configuration information; and a resource distribution key is generated based on the basic configuration information, resource distribution budget configuration information and resource distribution target configuration information of the preset resource distribution configuration strategy.
[0076] For example, such as Figure 5As shown, the system retrieves the configuration request input by business personnel through the interactive interface provided by the platform. It then calls the basic configuration module to store the basic configuration information of the pre-defined resource allocation strategy carried in the configuration request, including but not limited to activity name, activity type, and activity time. This is to facilitate the verification of the basic configuration information for subsequent actual resource allocation activities. Next, the system calls the resource budget configuration module to store the resource allocation budget configuration information carried in the configuration request. It should be understood that the resource allocation budget configuration information is used to generate the resource budget configuration information. That is, business personnel configure and store the resource allocation budget configuration information in the form of configuration information, thereby combining multiple configuration information to form the resource budget configuration information, which is then used for verification based on the resource allocation request after it is received. Similarly, after calling the resource budget configuration module, the system calls the resource allocation configuration module to store the configuration information of the resource allocation target, forming the resource allocation configuration information. Finally, based on the basic configuration information, resource budget configuration information, and resource allocation configuration information, the system generates a globally unique key with key metadata, which may include the resource allocation version number and the activity identifier.
[0077] It should be noted that although the operation of the method of the present invention is described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in that specific order, or that all the operations shown must be performed in order to achieve the desired result.
[0078] Figure 6 A schematic diagram of the structure of a resource distribution device provided in an embodiment of this application is shown.
[0079] like Figure 6 As shown, the resource distribution device 10 includes: Response module 11 is used to respond to a resource allocation request and obtain the resource allocation key in the resource allocation request; The parsing module 12 is used to parse the resource distribution key to obtain the resource distribution configuration strategy corresponding to the resource distribution key; the resource distribution configuration strategy is generated based on configuration information, which is obtained through previous configuration operations, and the resource distribution configuration strategy corresponds one-to-one with the resource distribution key; The resource distribution module 13 is used to verify the resource distribution configuration strategy. If the verification passes, the resource is distributed according to the resource distribution configuration strategy.
[0080] In some embodiments, the response module 11 is further configured to: In response to a configuration operation on at least one configuration item in the resource distribution configuration strategy, configuration information corresponding to each configuration item is obtained; Based on the configuration information, the resource distribution configuration strategy is generated.
[0081] In some embodiments, the configuration items include dynamic configuration items and fixed configuration items, and the response module 11 is further configured to: Obtain the fixed configuration information corresponding to the fixed configuration item, and obtain the dynamic configuration information acquisition interface corresponding to the dynamic configuration item; the dynamic configuration information acquisition interface is used to receive the dynamic configuration information corresponding to the dynamic configuration item.
[0082] In some embodiments, the response module 11 is further configured to: In response to a resource allocation request, the dynamic configuration information corresponding to the resource allocation request is obtained based on the dynamic configuration information acquisition interface. Dispatch module 13 is also used for: The dynamic configuration information is verified. If the verification passes, the resource allocation configuration strategy is improved based on the dynamic configuration information. Resource allocation is performed based on the improved resource allocation configuration strategy.
[0083] In some embodiments, the resource allocation configuration strategy includes at least basic configuration information of resource allocation activities, resource budget configuration information, and resource allocation configuration information. The resource allocation configuration module 13 is further configured to: According to a preset order, the basic configuration module, resource budget configuration module, and resource distribution configuration module are called sequentially to verify the basic configuration information, resource budget configuration information, and resource distribution configuration information of the target resource distribution activity, respectively.
[0084] In some embodiments, the response module 11 is further configured to: In response to the configuration operation of the basic configuration information of the preset resource distribution configuration strategy, the basic configuration module is invoked to store the basic configuration information. In response to a configuration operation on resource budget configuration information, the resource budget configuration module is invoked to store the resource budget configuration information. In response to a configuration operation on resource allocation configuration information, the resource allocation configuration module is invoked to store the resource allocation configuration information; The resource distribution key is generated based on the basic configuration information of the preset resource distribution configuration strategy, the resource budget configuration information, and the resource distribution configuration information.
[0085] It should be understood that the modules or modules described in the resource distribution device 10 are related to the reference. Figure 2The steps in the described method correspond to each other. Therefore, the operations and features described above for the method also apply to the resource distribution device 10 and the modules contained therein, and will not be repeated here. The resource distribution device 10 can be pre-implemented in the browser or other security applications of the electronic device, or it can be loaded into the browser or other security applications of the electronic device by means of downloading. The corresponding modules in the resource distribution device 10 can cooperate with the modules in the electronic device to implement the solution of the embodiments of this application.
[0086] The division of modules or units mentioned in the detailed description above is not mandatory. In fact, according to the embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0087] The following is for reference. Figure 7 , Figure 7 A schematic diagram of the structure of a computer system suitable for implementing the embodiments of this application is shown. like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 702 or programs loaded from storage section 708 into random access memory (RAM) 703. RAM 703 also stores various programs and data required for the system's operating instructions. The CPU 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0088] The following components are connected to I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 710 as needed so that computer programs read from it can be installed into storage section 708 as needed.
[0089] Specifically, according to embodiments of this application, the flowchart above refers to... Figure 2The described process can be implemented as a computer software program. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program contains program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs the functions defined in the system of this application.
[0090] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0091] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operational instructions of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two connected blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified functions or operational instructions, or using a combination of dedicated hardware and computer instructions.
[0092] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be housed in a processor; for example, a processor can be described as including a response module, a parsing module, and a dispatch module. The names of these units or modules do not necessarily limit the unit or module itself; for example, a response module can also be described as "responding to a resource dispatch request, obtaining the resource dispatch key in the resource dispatch request."
[0093] In another aspect, this application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments, or may exist independently and not assembled into the electronic device. The aforementioned computer-readable storage medium stores one or more programs that, when used by one or more processors, execute the resource dispatch method described in this application.
[0094] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the foregoing disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A resource distribution method, characterized in that, include: In response to a resource distribution request from a target resource distribution activity, obtain the resource distribution key from the resource distribution request; The resource allocation key is parsed to obtain the resource allocation configuration strategy corresponding to the resource allocation key; the resource allocation configuration strategy is generated based on configuration information, which is obtained through previous configuration operations, and the resource allocation configuration strategy corresponds one-to-one with the resource allocation key; The resource allocation configuration strategy is validated. If the validation passes, resources are allocated according to the resource allocation configuration strategy.
2. The resource distribution method according to claim 1, characterized in that, Also includes: In response to a configuration operation on at least one configuration item in the resource distribution configuration strategy, configuration information corresponding to each configuration item is obtained; Based on the configuration information, a resource allocation configuration strategy is generated.
3. The resource distribution method according to claim 2, characterized in that, The configuration items include dynamic configuration items and fixed configuration items. Obtaining the configuration information corresponding to each configuration item includes: Obtain the fixed configuration information corresponding to the fixed configuration item, and obtain the dynamic configuration information acquisition interface corresponding to the dynamic configuration item; the dynamic configuration information acquisition interface is used to receive the dynamic configuration information corresponding to the dynamic configuration item.
4. The resource distribution method according to claim 1, characterized in that, Also includes: In response to a resource allocation request, the dynamic configuration information corresponding to the resource allocation request is obtained based on the dynamic configuration information acquisition interface. The dynamic configuration information is verified. If the verification passes, the resource allocation configuration strategy is improved based on the dynamic configuration information. Resource allocation is performed based on the improved resource allocation configuration strategy.
5. The resource distribution method according to claim 1, characterized in that, The resource allocation configuration strategy includes at least the basic configuration information, resource budget configuration information, and resource allocation configuration information of the target resource allocation activity. The verification of the resource allocation configuration strategy includes: According to a preset order, the basic configuration module, resource budget configuration module, and resource distribution configuration module are called sequentially to verify the basic configuration information, resource budget configuration information, and resource distribution configuration information of the target resource distribution activity, respectively.
6. The resource distribution method according to claim 5, characterized in that, Also includes: In response to the configuration operation of the basic configuration information of the preset resource distribution configuration strategy, the basic configuration module is invoked to store the basic configuration information. In response to a configuration operation on resource budget configuration information, the resource budget configuration module is invoked to store the resource budget configuration information. In response to a configuration operation on resource allocation configuration information, the resource allocation configuration module is invoked to store the resource allocation configuration information; The resource distribution key is generated based on the basic configuration information of the preset resource distribution configuration strategy, the resource budget configuration information, and the resource distribution configuration information.
7. A resource distribution device, characterized in that, include: The response module is used to respond to a resource allocation request and obtain the resource allocation key in the resource allocation request. The parsing module is used to parse the resource distribution key to obtain the resource distribution configuration strategy corresponding to the resource distribution key; the resource distribution configuration strategy is generated based on configuration information, which is obtained through previous configuration operations, and the resource distribution configuration strategy corresponds one-to-one with the resource distribution key; The resource allocation module is used to verify the resource allocation configuration strategy. If the verification passes, the resource allocation is performed according to the resource allocation configuration strategy.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the resource allocation method as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the resource dispatch method as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the resource dispatch method as described in any one of claims 1-6.