Electronic resource allocation method, device, electronic equipment and storage medium

By receiving and processing electronic resource pre-allocation requests, calling the interface of the target business party to obtain the allocation results, and stripping off the electronic resource allocation logic, the problem of complexity and poor flexibility caused by the coupling of electronic resource allocation strategies in the existing technology is solved, and high efficiency is achieved. Electronic resource allocation and system iteration.

CN113077280BActive Publication Date: 2024-09-24BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110170227.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-05
Publication Date
2024-09-24
Estimated Expiration
2041-02-05

AI Technical Summary

Technical Problem

In the existing technology, the electronic resource allocation strategy is coupled with the red envelope rain service, resulting in complex code, which is not conducive to rapid iteration, cannot meet the distribution needs of multiple types of electronic resources, and reduces flexibility.

Method used

By receiving the electronic resource pre-allocation request from the target application, calling the electronic resource allocation interface of the target business party, obtaining the allocation results, and generating the pre-allocation results, the electronic resource allocation logic is stripped from the issuance service, and each business party can flexibly control the allocation strategy.

Benefits of technology

It improves the scalability of the system and the flexibility of electronic resource allocation, meets various types of allocation needs, reduces system coupling, and supports rapid iteration and access to new business parties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113077280B
    Figure CN113077280B
Patent Text Reader

Abstract

The present disclosure relates to an electronic resource allocation method, device, electronic device and storage medium, the method comprising: receiving an electronic resource pre-allocation request corresponding to a first account in a target application; calling an electronic resource allocation interface of at least one target business party according to configuration information of an electronic resource issuance behavior identifier in the electronic resource pre-allocation request, and sending an electronic resource allocation request to the at least one target business party; the configuration information includes identification information of the at least one target business party; obtaining an electronic resource allocation result returned by at least one target business party; generating an electronic resource pre-allocation result according to the electronic resource allocation result returned by at least one target business party; and returning a response message to a terminal corresponding to the first account according to the electronic resource pre-allocation result. The present disclosure improves the scalability of the system, meets the allocation requirements of various types of electronic resources, and improves the flexibility of electronic resource allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an electronic resource allocation method, device, electronic device and storage medium. Background Art

[0002] With the development of computer technology, various applications available for terminals have greatly enriched people's lives. For example, some applications will provide "electronic red envelope rain" activities in holiday scenes to create a festive atmosphere, promote interaction with users and improve user stickiness. "Electronic red envelope rain" refers to a large number of electronic red envelopes displayed on the interface at the same time. Since the number of electronic red envelopes is large and can last for a period of time, it is figuratively called electronic red envelope rain. In an electronic red envelope rain event, users can see the start time of the red envelope rain through the widgets displayed in advance on the relevant interface. When the start time arrives, the current interface will have a game animation of red envelope rain. Users can click on the screen to participate in the game. After the game animation ends, the electronic resources obtained by the user will be displayed, such as gold coins, coupons, etc.

[0003] In the related art, the electronic resources obtained by users can be pre-allocated before the start time of the electronic red envelope rain activity. However, the electronic resource allocation strategies of all business parties in the related art are coupled to the red envelope rain service. The code is large, complex and prone to errors, which is not conducive to the rapid iteration of the service platform itself. It has poor scalability and cannot meet the allocation needs of various types of electronic resources, thereby reducing the flexibility of electronic resource allocation. Summary of the invention

[0004] The present disclosure provides an electronic resource allocation method, device, electronic device and storage medium to at least solve the problem of poor flexibility of electronic resource allocation in the related art due to the coupling of electronic resource allocation strategies of all business parties in one service during the electronic resource pre-allocation process. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an electronic resource allocation method, comprising:

[0006] Receive an electronic resource pre-allocation request corresponding to a first account in a target application, wherein the electronic resource pre-allocation request includes an electronic resource distribution behavior identifier;

[0007] Calling the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource issuance behavior identifier, and sending an electronic resource allocation request to the at least one target business party; the configuration information includes the identification information of the at least one target business party;

[0008] Acquire the electronic resource allocation result returned by the at least one target business party; the electronic resource allocation result is generated by the at least one target business party according to the electronic resource allocation request;

[0009] Generate an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party;

[0010] A response message is returned to the terminal corresponding to the first account according to the electronic resource pre-allocation result.

[0011] In an exemplary implementation, the calling of the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource distribution behavior identifier includes:

[0012] Acquire at least one preset resource allocation service; the at least one resource allocation service corresponds to at least one business party;

[0013] Determining, according to the identification information of the at least one target service party, a target resource allocation service corresponding to each of the target service parties from the at least one resource allocation service;

[0014] The electronic resource allocation interface of the corresponding target business party is called through the target resource allocation service.

[0015] In an exemplary embodiment, the method further comprises:

[0016] determining an electronic resource allocation interface of the at least one business party;

[0017] For each business party of the at least one business party, a resource allocation service corresponding to the business party is created according to the electronic resource allocation interface of the business party.

[0018] In an exemplary embodiment, the configuration information further includes priority information of different types of electronic resources;

[0019] The step of generating an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party includes:

[0020] Determine at least one type of electronic resources allocated to the first account according to the electronic resource allocation result returned by the at least one target business party;

[0021] Determine a target type with the highest priority among the at least one type according to priority information of different types of electronic resources in the configuration information;

[0022] Determine, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal, and obtain a style setting result;

[0023] An electronic resource pre-allocation result is generated according to the style setting result and the electronic resource allocation result.

[0024] In an exemplary implementation, generating the electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result includes:

[0025] Determine the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types;

[0026] An electronic resource pre-allocation result is generated according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type, and the electronic resource allocation result.

[0027] In an exemplary implementation, determining, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal includes:

[0028] Acquire a preset rendering style from the electronic resource allocation results corresponding to the electronic resources of the target type;

[0029] According to the preset display style and the preset rendering style, a display style of the target type of electronic resources allocated to the first account on the terminal is determined.

[0030] According to a second aspect of an embodiment of the present disclosure, there is provided an electronic resource allocation device, comprising:

[0031] A pre-allocation request receiving unit is configured to execute and receive an electronic resource pre-allocation request corresponding to a first account in a target application, wherein the electronic resource pre-allocation request includes an electronic resource distribution behavior identifier;

[0032] An interface calling unit is configured to call the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource issuance behavior identifier, and send an electronic resource allocation request to the at least one target business party; the configuration information includes the identification information of the at least one target business party;

[0033] A first acquisition unit is configured to acquire an electronic resource allocation result returned by the at least one target business party; the electronic resource allocation result is generated by the at least one target business party according to the electronic resource allocation request;

[0034] A result generating unit is configured to generate an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party;

[0035] The message returning unit is configured to return a response message to the terminal corresponding to the first account according to the electronic resource pre-allocation result.

[0036] In an exemplary embodiment, the interface calling unit includes:

[0037] A service acquisition unit, configured to execute acquisition of at least one preset resource allocation service; the at least one resource allocation service corresponds to at least one business party;

[0038] A first determining unit is configured to determine, according to the identification information of the at least one target business party, a target resource allocation service corresponding to each target business party from the at least one resource allocation service;

[0039] The interface calling subunit is configured to call the electronic resource allocation interface of the corresponding target business party through the target resource allocation service.

[0040] In an exemplary embodiment, the device further comprises:

[0041] A second determining unit is configured to determine the electronic resource allocation interface of the at least one business party;

[0042] The service creation unit is configured to execute, for each business party of the at least one business party, creating a resource allocation service corresponding to the business party according to the electronic resource allocation interface of the business party.

[0043] In an exemplary implementation, the configuration information further includes priority information of different types of electronic resources; the result generating unit includes:

[0044] A third determining unit is configured to determine at least one type of electronic resources allocated to the first account according to the electronic resource allocation result returned by the at least one target business party;

[0045] A fourth determining unit is configured to determine a target type with the highest priority among the at least one type according to priority information of different types of electronic resources in the configuration information;

[0046] A style setting unit is configured to determine, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal, and obtain a style setting result;

[0047] The first result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result.

[0048] In an exemplary embodiment, the first result generating subunit includes:

[0049] A fifth determining unit is configured to determine the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types;

[0050] The second result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type and the electronic resource allocation result.

[0051] In an exemplary embodiment, the style setting unit includes:

[0052] A rendering style acquisition unit is configured to acquire a preset rendering style from the electronic resource allocation result corresponding to the electronic resource of the target type;

[0053] The style setting subunit is configured to determine the display style of the target type of electronic resources allocated to the first account on the terminal according to the preset display style and the preset rendering style.

[0054] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0055] processor;

[0056] a memory for storing instructions executable by the processor;

[0057] The processor is configured to execute the instructions to implement the electronic resource allocation method of the first aspect.

[0058] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the electronic resource allocation method of the first aspect.

[0059] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the electronic resource allocation method of the first aspect is implemented.

[0060] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0061] By receiving an electronic resource pre-allocation request corresponding to a first account in a target application, calling an electronic resource allocation interface of at least one target business party according to configuration information corresponding to an electronic resource issuance behavior identifier in the electronic resource pre-allocation request, sending an electronic resource allocation request to the at least one target business party, and obtaining an electronic resource allocation result returned by the at least one target business party based on the electronic resource allocation request, and then sending an electronic resource pre-allocation response message to the terminal corresponding to the first account according to the electronic resource allocation result, the electronic resource allocation logic of each business party is separated from the electronic resource issuance service, reducing the coupling degree of the system. The electronic resource issuance service is mainly responsible for realizing a framework of main processes including receiving client requests and returning electronic resources obtained by users, while specific electronic resource allocation, including the type and quantity of allocated electronic resources, will be realized through the electronic resource allocation interface of the business party. Each business party can flexibly control its own electronic resource allocation strategy, and the adjustment and iteration of the electronic resource allocation strategy will not affect the main process of the issuance service, thereby improving the scalability of the system, meeting the allocation requirements of various types of electronic resources, and improving the flexibility of electronic resource allocation.

[0062] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0064] Figure 1 is a schematic diagram of an application environment of an electronic resource allocation method according to an exemplary embodiment;

[0065] Figure 2 is a flow chart of an electronic resource allocation method according to an exemplary embodiment;

[0066] Figure 3 It is an optional flow chart showing calling the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource distribution behavior identifier according to an exemplary embodiment;

[0067] Figure 4 is another optional flow chart showing calling the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource distribution behavior identifier according to an exemplary embodiment;

[0068] Figure 5is an optional flow chart showing the generation of an electronic resource pre-allocation result according to an electronic resource allocation result returned by at least one target business party according to an exemplary embodiment;

[0069] Figure 6a and Figure 6b is a schematic diagram showing allocated electronic resources on a terminal of a first account based on electronic resource pre-allocation results when different types of electronic resources have the highest priority according to an exemplary embodiment;

[0070] Figure 7 is an optional flow chart showing the generation of an electronic resource pre-allocation result according to a style setting result and an electronic resource allocation result according to an exemplary embodiment;

[0071] Figure 8 The invention is a block diagram of an electronic resource allocation device according to an exemplary embodiment.

[0072] Fig. 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0073] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0074] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0075] See also Figure 1 , which is a schematic diagram of an application environment of an electronic resource distribution method according to an exemplary embodiment, the application environment may include a terminal 110, a distribution server 120 and at least one business party 130, and the terminal 110, the distribution server 120 and the at least one business party 130 may be connected via a wired network or a wireless network.

[0076] The terminal 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal 110 is installed with client software such as an application (Application, referred to as App) that can realize the human-computer interaction function. The application may be an independent application or a subroutine in the application. Exemplarily, the application may include a game application, a live broadcast application, etc. The user of the terminal 110 may log in to the application through the pre-registered user information and interact with the terminal 110 through the application, wherein the user information may include an account number and a password.

[0077] The issuing server 120 may be a server that provides background services for the application in the terminal 110, or may be another server that is connected and communicated with the background server of the application, and may be a single server or a server cluster composed of multiple servers. Specifically, the issuing server 120 may implement the issuing service of electronic resources in the electronic resource issuing behavior.

[0078] It should be noted that the electronic resources in the embodiments of the present disclosure refer to resources that can be used to exchange goods or services, such as electronic currency, points, gold beans, gift certificates, redemption certificates, coupons, gift cards, virtual currencies that can only be used on a certain platform, and can also be game props or diamonds that can be exchanged for game props in the game, etc. The embodiments of the present disclosure do not specifically limit this.

[0079] Each of the at least one business party 130 can provide a type of business, which may include live broadcasting, games, e-commerce, etc. Each business party 130 may correspond to an independent electronic device, and each business party stores its own electronic resource allocation logic. The electronic resource allocation logic of each business party may be the same or different, and may be set by the corresponding business party according to actual needs. Among them, the electronic resource allocation logic can be used to generate an electronic resource allocation result, which may include information such as the type of electronic resources allocated to the user and the quantity of electronic resources. That is, the electronic resource allocation logic of at least one business party 130 is independent of the issuance service of the issuance server 120.

[0080] Since the electronic resource allocation logic is separated from the issuance service, the types, quantities, display methods, and data volumes required for display of the electronic resources allocated by each business party based on their respective electronic resource allocation logic are different, so a unified interface protocol is needed to abstract a common data structure. In the embodiment of the present disclosure, each business party 130 implements an electronic resource allocation interface according to a preset interface protocol, and the electronic resource allocation interface can be called by the issuance server 120, and receives an electronic resource allocation request sent by the issuance server 120. Exemplarily, the electronic resource allocation interface can be implemented as an RPC (Remote Procedure Call Protocol) interface, so that the issuance server 120 can send an electronic resource allocation request to the business party 130 by calling the RPC interface, and the business party 130 can receive the electronic resource allocation request through the RPC interface, and return the electronic resource allocation result to the issuance server 120 through the RPC interface.

[0081] Specifically, the request parameters and return format can be defined in the RPC interface implemented by the business party 130, wherein the request parameters can include the account number to which the electronic resources need to be allocated and the electronic resource issuance behavior identifier, so that when the issuance server 120 calls the RPC interface to send the electronic resource allocation request to the business party 130, the corresponding account number and electronic resource issuance behavior identifier can be added to the electronic resource allocation request. After receiving the electronic resource allocation request through the RPC interface, the business party 130 can call its own electronic resource allocation logic according to the account number and electronic resource issuance behavior identifier therein to determine the electronic resource allocation result of the account number in the electronic resource issuance behavior corresponding to the electronic resource issuance behavior identifier, and return the electronic resource allocation result to the issuance server 120 through the RPC interface in accordance with the defined return format. Exemplarily, the return format defined in the RPC interface can include the type of electronic resources allocated to the account number (such as a coupon for full discount), the subtype of the electronic resources of the business party under this type (such as a coupon for full discount of 50 yuan), and the quantity and display style information of the electronic resources.

[0082] Specifically, the response format of the interface for obtaining electronic resources returned by the issuing server 120 to the terminal 110 may include an electronic resource allocation list prizeList field, which is used to store the electronic resource pre-allocation result. The pre-allocation result may include general information such as the type of electronic resource, the subtype of the electronic resource of the business party under this type, the number of electronic resources, pictures, etc. It may also include an extended field for the business party to customize the display method of the allocated electronic resources on the terminal, etc.

[0083] In the embodiments of the present disclosure, in order to enable the issuing server 120 to distinguish between different business parties and the types of electronic resources allocated by the business parties, the issuing server 120 may maintain all business parties that provide electronic resources and all types corresponding to the electronic resources. Exemplarily, the business parties maintained by the issuing server 120 may include live broadcasting, e-commerce, games, etc.; the types corresponding to the electronic resources may include gold coins, gifts, coupons, gift packs, etc.

[0084] The electronic resource distribution method of the disclosed embodiment can be applied to a live broadcast scenario, in which electronic resources can be distributed to users entering the live broadcast room. For example, the electronic resource distribution behavior launched by the live broadcast platform during festivals can be in the form of electronic red envelope rain.

[0085] In an electronic red envelope rain activity, the distribution of electronic resources to users entering the live broadcast room may include three stages: electronic resource pre-allocation stage, red envelope rain falling stage and settlement stage. Specifically, when a user enters the live broadcast room, he can see the start time of the red envelope rain through the red envelope pendant displayed in the live broadcast room in advance. The electronic resource pre-allocation stage usually occurs within a preset time period before the start of the red envelope rain (such as the first 5 minutes). The terminal corresponding to the user entering the live broadcast room can send an electronic resource pre-allocation request to the distribution server during the electronic resource pre-allocation stage. The distribution server can obtain the electronic resource allocation result in response to the electronic resource pre-allocation request, and generate an electronic resource pre-allocation result based on the electronic resource allocation result, and then generate a response message based on the electronic resource pre-allocation result and return it to the terminal corresponding to the user. The response message carries a token corresponding to the above electronic resource pre-allocation result. The red envelope rain falling phase occurs in the time period between the start time and the end time of the red envelope rain. During this time period, there will be a large number of falling electronic red envelopes in the live broadcast interface of the current live broadcast room. Users can click on the falling electronic red envelopes. After the red envelope rain falling phase ends, the settlement phase will begin. At this time, the terminal can send an electronic resource issuance request to the issuance server based on the user's clicks on the falling electronic red envelopes. The electronic resource issuance request carries the token returned in the previous electronic resource pre-allocation phase. When the issuance server determines that the user is eligible for electronic resource issuance based on the user's clicks on the falling electronic red envelopes, the issuance server can obtain the corresponding electronic resource pre-allocation result based on the corresponding token, and send the electronic resource pre-allocation result to the terminal corresponding to the user, so that the terminal can display the electronic resources obtained by the user in this electronic red envelope rain activity based on the electronic resource pre-allocation result.

[0086] The disclosed embodiment aims at the problem that when the electronic resource pre-allocation is performed in the above-mentioned electronic resource pre-allocation stage in the related technology, since the electronic resource allocation strategies of all business parties are coupled in the Red Packet Rain service, the code is large and complex and prone to errors, which is not conducive to rapid iteration and has poor scalability. It cannot meet the allocation requirements of various types of electronic resources, thereby reducing the flexibility of electronic resource allocation. An electronic resource allocation method is provided, which separates the electronic resource allocation logic of each business party from the electronic resource issuance service. The electronic resource issuance service is mainly responsible for implementing a framework of main processes including receiving client requests and returning the electronic resources obtained by the user. The specific electronic resource allocation, including the type and quantity of the allocated electronic resources, will be implemented through the electronic resource allocation interface of each business party, so that each business party can control its own electronic resource allocation strategy, improve the scalability of the system, meet the allocation requirements of various types of electronic resources, and improve the flexibility of electronic resource allocation.

[0087] Figure 2 is a flow chart of an electronic resource allocation method according to an exemplary embodiment. Figure 2 As shown, the electronic resource allocation method is applied to Figure 1 Taking the issuing server as an example, the following steps are included.

[0088] In step S21, an electronic resource pre-allocation request corresponding to a first account in a target application is received, wherein the electronic resource pre-allocation request includes an electronic resource distribution behavior identifier.

[0089] The target application may be a live broadcast application, a game application, etc., and the first account may be an account pre-registered by a user of the terminal for logging into the target application. For example, when the target application is a live broadcast application, the first account may be an account for entering the live broadcast room.

[0090] The electronic resource distribution behavior identifier is used to identify an electronic resource distribution behavior, which refers to the activity of distributing a large amount of electronic resources in the target application in the form of game animations within a specified time period. Exemplarily, the electronic resource distribution behavior can be in the form of electronic red envelope rain.

[0091] Specifically, the electronic resource pre-allocation request may be generated by the terminal of the first account within a preset time period before the start of the electronic resource issuance behavior after detecting that the first account has entered the target application. When generating the electronic resource pre-allocation request, the terminal of the first account may obtain the first account and the electronic resource issuance behavior identifier of the electronic resource issuance behavior that is about to begin, and generate the electronic resource pre-allocation request based on the first account and the electronic resource issuance behavior identifier, and then send the electronic resource pre-allocation request to the issuance server, so that the issuance server receives the electronic resource pre-allocation request corresponding to the first account in the target application.

[0092] In actual applications, a large number of users will participate in an electronic resource distribution behavior. In order to avoid the adverse impact of a large number of electronic resource pre-allocation requests at the same time on the processing performance of the distribution server, the terminal of the first account can randomly select a time point for generating an electronic pre-allocation request from the above-mentioned preset time period, so that the electronic resource pre-allocation requests of each user can be scattered within the above-mentioned preset time period, avoiding the impact of a large number of electronic resource pre-allocation requests at the same time on the distribution server, which is conducive to improving the processing efficiency of electronic resource pre-allocation requests.

[0093] In step S22, the electronic resource allocation interface of at least one target business party is called according to the configuration information corresponding to the electronic resource issuance behavior identifier, and an electronic resource allocation request is sent to the at least one target business party.

[0094] The configuration information corresponding to the electronic resource distribution behavior identifier includes identification information of the at least one target business party.

[0095] In the embodiment of the present disclosure, the issuing server allows the target business party that provides electronic resources in each electronic resource issuing behavior to be set, and can then store configuration information corresponding to each electronic resource issuing behavior identifier.

[0096] Specifically, the issuance server can provide an input interface for the identification information of the target business party corresponding to the electronic resource issuance behavior identifier through the operation configuration background interface. The identification information of the target business party is used to uniquely identify a business party. After receiving the identification information of at least one target business party input through the input interface, the configuration information of the corresponding electronic resource issuance behavior identifier can be generated according to the identification information of the at least one target business party. The identification information of the target business party can be the name of the business type provided by the target business party, such as live broadcast, e-commerce, games, etc.

[0097] Exemplarily, the input interface may be associated with all business parties maintained by the issuing server, so that the identification information of the target business party may be input by selecting the target business party from a drop-down list.

[0098] After receiving the electronic resource pre-allocation request, the issuance server can extract the electronic resource issuance behavior identifier in the electronic resource pre-allocation request and determine the configuration information corresponding to the electronic resource issuance behavior identifier, so that at least one target business party matching the electronic resource issuance behavior identifier can be determined based on the identification information of at least one target business party in the configuration information, and then the electronic resource allocation interface of each target business party in the at least one target business party can be called, and the electronic resource allocation request can be sent to the corresponding target business party through the electronic resource allocation interface.

[0099] In step S23, the electronic resource allocation result returned by the at least one target business party is obtained.

[0100] The electronic resource allocation result is generated by at least one target business party according to the electronic resource allocation request. After generating the electronic resource allocation result, each target business party can return its electronic resource allocation result to the issuing server through its electronic resource allocation interface, so that the issuing server can obtain the electronic resource allocation result returned by each target business party. Specifically, each target business party can return the electronic resource allocation result according to the return format defined in the electronic resource allocation interface.

[0101] It can be understood that the electronic resource allocation request sent by the issuance server calling the electronic resource allocation interface of the target business party carries the request parameters defined in the electronic resource allocation interface, and the request parameters may include the first account and the electronic resource issuance behavior identifier, so that the target business party calls its own electronic resource allocation logic to generate the electronic resource allocation result of the first account in the electronic resource issuance behavior corresponding to the electronic resource issuance behavior identifier.

[0102] It can be understood that since the electronic resource allocation result is generated by the target business party calling its own electronic resource allocation logic, the target business party can flexibly control the allocation results such as the type and quantity of electronic resources allocated to a certain account in an electronic resource distribution behavior through the electronic resource allocation logic.

[0103] In step S24, an electronic resource pre-allocation result is generated according to the electronic resource allocation result returned by the at least one target business party.

[0104] Specifically, after obtaining the electronic resource allocation results returned by each target business party, the issuing server can process the electronic resource allocation results returned by each target business party based on the response format of the interface for obtaining electronic resources returned to the terminal of the first account to generate an electronic resource pre-allocation result.

[0105] In step S25, a response message is returned to the terminal corresponding to the first account according to the electronic resource pre-allocation result.

[0106] Specifically, after generating the electronic resource pre-allocation result, the issuing server can generate a corresponding token according to the electronic resource pre-allocation result, and generate a response message according to the token, and return the response message to the terminal corresponding to the first account. It is understandable that the issuing server will store the corresponding relationship between the token and the electronic resource pre-allocation result, so that when receiving the electronic resource issuance request sent by the terminal of the first account, when determining that the first account has the electronic resource issuance qualification, the corresponding electronic resource pre-allocation result can be obtained according to the token carried in the electronic resource issuance request, and the electronic resource pre-allocation result can be sent to the terminal corresponding to the first account, so that the terminal of the first account can display the electronic resources obtained by the first account in the electronic resource issuance behavior according to the electronic resource pre-allocation result.

[0107] The embodiments of the present disclosure reduce the coupling degree of the system by separating the electronic resource allocation logic of each business party from the electronic resource issuance service. The electronic resource issuance service is mainly responsible for implementing a framework of main processes including receiving client requests and returning the electronic resources obtained by users, which is conducive to the rapid iteration of the issuance service itself and the rapid access of new business parties. The specific electronic resource allocation, including the type and quantity of allocated electronic resources, will be implemented through the electronic resource allocation interface of the business party. Each business party can flexibly control its own electronic resource allocation strategy, realizing the platformization of electronic resource allocation logic. The adjustment and iteration of each business party's electronic resource allocation strategy will not affect the main process of the issuance service, thereby improving the scalability of the system, meeting the allocation needs of various types of electronic resources, and improving the flexibility of electronic resource allocation.

[0108] In the embodiment of the present disclosure, in order to process the abnormal allocation result returned by the business party and facilitate configurability to further improve the flexibility of electronic resource allocation, in an exemplary implementation, the issuing server can package and implement a layer of Service, namely, resource allocation service, for different business parties, which is responsible for calling the electronic resource allocation interface of the corresponding business party. Based on this, the above step S22, when calling the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource issuance behavior identifier, can include Figure 3 The following steps:

[0109] In step S221, at least one preset resource allocation service is acquired, where the at least one resource allocation service corresponds to at least one business party.

[0110] Specifically, the issuing server may package and implement a resource allocation service for each business party in at least one business party currently maintained. Based on this, before step S221, Figure 4 As shown, the method may also include the following steps:

[0111] In step S224, an electronic resource allocation interface of at least one business party is determined.

[0112] In step S225, for each business party of the at least one business party, a resource allocation service corresponding to the business party is created according to the electronic resource allocation interface of the business party.

[0113] Specifically, for each business party, a calling method for calling the electronic resource allocation interface can be implemented in its corresponding resource allocation service according to the electronic resource allocation interface of the business party, so that the resource allocation service can call the electronic resource allocation interface of the corresponding business party through the calling method.

[0114] The embodiments of the present disclosure implement a resource allocation service for each business party, thereby enabling independent calling of the electronic resource allocation interface of each business party and independent processing of the returned electronic resource allocation results, thereby improving the efficiency and flexibility of overall electronic resource allocation.

[0115] In step S222, according to the identification information of the at least one target service party, a target resource allocation service corresponding to each target service party is determined from the at least one resource allocation service.

[0116] Exemplarily, at least one resource allocation service can be traversed, and for each traversed resource allocation service, it is determined whether the resource allocation service matches the at least one target business party based on the identification information of the at least one target business party, that is, the business party corresponding to the resource allocation service is matched with the at least one target business party. If the business party corresponding to the resource allocation service is matched in the at least one target business party, it is determined that the resource allocation service matches the at least one target business party. At this time, it can be determined that the resource allocation service is the target resource allocation service corresponding to the matched target business party; conversely, if the business party corresponding to the resource allocation service is not matched in the at least one target business party, it is determined that the resource allocation service does not match the at least one target business party, and the resource allocation service can be ignored, and the traversal continues to the next resource allocation service.

[0117] For example, the business party corresponding to resource allocation service 1 is live broadcast, and the target business parties in the configuration information corresponding to the electronic resource issuance behavior identifier include live broadcast, e-commerce and games. Then it can be determined that resource allocation service 1 is the target resource allocation service of the target business party's live broadcast, and the electronic resource allocation interface of the live broadcast party can be called through this resource allocation service 1.

[0118] In step S223, the electronic resource allocation interface of the corresponding target business party is called through the target resource allocation service.

[0119] The embodiments of the present disclosure implement a resource allocation service for each business party, thereby enabling independent calling of the electronic resource allocation interface of each business party and independent processing of the returned electronic resource allocation results, thereby improving the efficiency and flexibility of overall electronic resource allocation.

[0120] In the embodiments of the present disclosure, the electronic resource allocation is platform-based, and the allocation strategy is no longer coupled to the main process of the issuance service, but is implemented in the interface of each business party. The main process of the platform is not affected, and decoupling is achieved. For the newly connected business party, it is only necessary to implement the electronic resource allocation interface according to the protocol, and implement the resource allocation service corresponding to the electronic resource allocation interface on the issuance server side. There is no need to care about the specific electronic resource allocation strategy of the newly connected business party, and the newly connected business party can be added to the configuration information corresponding to the electronic resource issuance behavior identifier to realize the electronic resource allocation of the newly connected business in the electronic resource issuance behavior.

[0121] In actual applications, in order to meet the needs of business parties to highlight the electronic resources they distribute in certain electronic resource distribution behaviors, the distribution server also allows the display priority of the allocated electronic resources to be adjusted to achieve different priorities for various electronic resources in different electronic resource distribution behaviors. Considering that the types of electronic resources that can be distributed by business parties are different and not fixed, the types of electronic resources distributed do not correspond one-to-one to the target business parties. For example, when the target business party is a live broadcast, the types of electronic resources that can be distributed can include gifts, gold coins, etc., and the priorities of different types of electronic resources need to be configured through the operation configuration background.

[0122] Based on this, in an exemplary embodiment, the configuration information corresponding to the electronic resource issuance behavior identifier may also include priority information of different types of electronic resources, and the priority information of different types of electronic resources may be configured through the priority configuration interface provided by the operation configuration background interface. For example, the priority information of different types of electronic resources may be: live broadcast-gold coins (level 1), live broadcast-free gifts (level 2), e-commerce-coupons (level 3), games-game gift packs (level 4), among which level 1 has the highest priority, and the priority gradually decreases as the value increases. In actual applications, the issuance server may store priority information of different types of electronic resources in the form of key-value pairs, where the key is the type of electronic resource, and the value is the corresponding priority information, and the smaller the value, the higher the priority.

[0123] Therefore, the above step S24 may include the following steps when generating the electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party: Figure 5 The following steps are shown:

[0124] In step S241, at least one type of electronic resources allocated to the first account is determined according to the electronic resource allocation result returned by the at least one target business party.

[0125] In step S242, a target type with the highest priority among the at least one type is determined according to the priority information of the different types of electronic resources in the configuration information.

[0126] In step S243, the display style of the target type of electronic resources allocated to the first account on the terminal is determined according to the preset display style, and a style setting result is obtained.

[0127] Specifically, when various types of electronic resources allocated to a first account are displayed on a terminal corresponding to the first account, the various types of electronic resources can be displayed in sequence according to the priority information of the above-mentioned various types of electronic resources. For the electronic resources with the highest priority, while displaying it in the first place, it can also be displayed in a preset display style, which may include an enlarged display.

[0128] Take the preset display style of enlarged display as an example. Figure 6a As shown, the electronic resources allocated to the account include gold coins and gifts, among which gold coins have the highest priority. When the electronic resources allocated to the account are displayed on the terminal of the account, the gold coins are displayed before the gifts, that is, the gold coins are in the first place, and the number of the gold coins in the first place is magnified; and Figure 6bIn the example, the electronic resources allocated to the account include coupons and gifts, and the coupon has the highest priority. When the electronic resources allocated to the account are displayed on the terminal of the account, the coupon is displayed before the gift, that is, the coupon is in the first place, and the coupon in the first place is enlarged and displayed.

[0129] In actual applications, if the business party needs to highlight the electronic resources it allocates, then the business party can add extended information for indicating the preset rendering style in the electronic resource allocation result when returning the electronic resource allocation result. Therefore, when the issuing server determines the display style of the target type of electronic resources allocated to the first account on the terminal according to the preset display style, it can obtain the preset rendering style from the electronic resource allocation result corresponding to the electronic resource of the target type, and then determine the display style of the target type of electronic resources allocated to the first account on the terminal according to the preset display style and the above-mentioned preset rendering style to obtain the style setting result, thereby realizing personalized rendering of the electronic resources that need to be highlighted.

[0130] The disclosed embodiment can highlight the target type of electronic resources through the priority information of different types of electronic resources in the configuration information of the electronic resource distribution behavior identifier. Therefore, in the electronic resource distribution behaviors of different sessions, the needs of the business party can be met by adjusting the priority information of different types of electronic resources, which greatly improves the flexibility of electronic resource allocation.

[0131] In step S244, an electronic resource pre-allocation result is generated according to the style setting result and the electronic resource allocation result.

[0132] Specifically, when generating the electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result, it can be generated according to the response format of the aforementioned issuing server used to return the interface for obtaining the electronic resource to the terminal. The response format may include an electronic resource allocation list prizeList field. In the prizeList field, for each electronic resource allocation result, the electronic resource allocation result is saved according to the aforementioned style setting result.

[0133] In order to further improve the flexibility of electronic resource allocation, the issuing server can also adjust the actions and text information of the electronic resource collection control on the terminal according to the type with the highest priority. Based on this, the issuing server can store the attribute information of the electronic resource collection control corresponding to different types of electronic resources that are pre-configured, and the attribute information may include text information and / or action type. Specifically, the issuing server can store the attribute information of the electronic resource collection control corresponding to different types of electronic resources in the form of key-value pairs, where the key is the type of electronic resource and the value is the attribute information of the corresponding electronic resource collection control. The following is an example of the issuing server storing the attribute information of the electronic resource collection control corresponding to different types of electronic resources in the form of key-value pairs:

[0134]

[0135] Therefore, in an exemplary embodiment, the above step S244 may include generating the electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result: Figure 7 The following steps:

[0136] In step S2441, the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type is determined according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types.

[0137] In step S2442, an electronic resource pre-allocation result is generated according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type, and the electronic resource allocation result.

[0138] Through the above steps, when the user's terminal displays the electronic resources obtained by the user according to the electronic resource pre-allocation result, not only can the target type of electronic resources allocated to the user be highlighted according to the preset display style in the style setting result, but the electronic resource collection control can also be adjusted synchronously so that the action type and text information of the electronic resource collection control can match the highlighted electronic resources. Figure 6a and Figure 6b As shown, when gold coins have the highest priority, the text information on the electronic red envelope receiving button is "Happy to accept", and when the platform universal coupons have the highest priority, the text information on the electronic red envelope receiving button is "Use coupon".

[0139] In actual applications, the attribute information of the electronic resource collection control corresponding to the above-mentioned pre-configured different types of electronic resources can be global, that is, all sessions of electronic resource distribution behaviors use the same above-mentioned configuration. In order to achieve different collection button texts and / or actions for electronic resource distribution behaviors in different sessions, so as to further improve the flexibility of electronic resource allocation, the attribute information of the electronic resource collection control corresponding to the different types of electronic resources can be included in the configuration information corresponding to the electronic resource distribution behavior identifier, so that the above-mentioned step S2441 can obtain the attribute information of the electronic resource collection control corresponding to the different types of electronic resources from the configuration information corresponding to the electronic resource distribution behavior identifier when implementing.

[0140] Figure 8 is a block diagram of an electronic resource allocation device according to an exemplary embodiment. Figure 8 The electronic resource allocation device 800 includes a pre-allocation request receiving unit 810, an interface calling unit 820, a first obtaining unit 830, a result generating unit 840 and a message returning unit 850.

[0141] The pre-allocation request receiving unit 810 is configured to receive an electronic resource pre-allocation request corresponding to a first account in a target application, wherein the electronic resource pre-allocation request includes an electronic resource distribution behavior identifier;

[0142] The interface calling unit 820 is configured to call the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource issuance behavior identifier, and send an electronic resource allocation request to the at least one target business party; the configuration information includes the identification information of the at least one target business party;

[0143] The first acquisition unit 830 is configured to acquire the electronic resource allocation result returned by the at least one target business party; the electronic resource allocation result is generated by the at least one target business party according to the electronic resource allocation request;

[0144] The result generating unit 840 is configured to generate an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party;

[0145] The message returning unit 850 is configured to return a response message to the terminal corresponding to the first account according to the electronic resource pre-allocation result.

[0146] In an exemplary implementation, the interface calling unit 820 includes:

[0147] A service acquisition unit, configured to execute acquisition of at least one preset resource allocation service; the at least one resource allocation service corresponds to at least one business party;

[0148] A first determining unit is configured to determine, according to the identification information of the at least one target business party, a target resource allocation service corresponding to each target business party from the at least one resource allocation service;

[0149] The interface calling subunit is configured to call the electronic resource allocation interface of the corresponding target business party through the target resource allocation service.

[0150] In an exemplary embodiment, the device further comprises:

[0151] A second determining unit is configured to determine the electronic resource allocation interface of the at least one business party;

[0152] The service creation unit is configured to execute, for each business party of the at least one business party, creating a resource allocation service corresponding to the business party according to the electronic resource allocation interface of the business party.

[0153] In an exemplary implementation, the configuration information further includes priority information of different types of electronic resources; the result generating unit 840 includes:

[0154] A third determining unit is configured to determine at least one type of electronic resources allocated to the first account according to the electronic resource allocation result returned by the at least one target business party;

[0155] A fourth determining unit is configured to determine a target type with the highest priority among the at least one type according to priority information of different types of electronic resources in the configuration information;

[0156] A style setting unit is configured to determine, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal, and obtain a style setting result;

[0157] The first result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result.

[0158] In an exemplary embodiment, the first result generating subunit includes:

[0159] A fifth determining unit is configured to determine the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types;

[0160] The second result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type and the electronic resource allocation result.

[0161] In an exemplary embodiment, the style setting unit includes:

[0162] A rendering style acquisition unit is configured to acquire a preset rendering style from the electronic resource allocation result corresponding to the electronic resource of the target type;

[0163] The style setting subunit is configured to determine the display style of the target type of electronic resources allocated to the first account on the terminal according to the preset display style and the preset rendering style.

[0164] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0165] In an exemplary embodiment, an electronic device is also provided, including a processor; a memory for storing processor executable instructions; wherein, when the processor is configured to execute the instructions stored in the memory, the electronic resource allocation method provided in any of the above embodiments is implemented.

[0166] The electronic device may be a terminal, a server or a similar computing device. For example, the electronic device is a server. Fig. 9 is a block diagram of an electronic device for electronic resource allocation according to an exemplary embodiment. Fig. 9As shown, the server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 910 (the processor 910 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 930 for storing data, and one or more storage media 920 (such as one or more mass storage devices) for storing application programs 923 or data 922. Among them, the memory 930 and the storage medium 920 can be short-term storage or permanent storage. The program stored in the storage medium 920 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 910 can be configured to communicate with the storage medium 920 and execute a series of instruction operations in the storage medium 920 on the server 900. The server 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input and output interfaces 940, and / or one or more operating systems 921, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.

[0167] The input / output interface 940 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the server 900. In one example, the input / output interface 940 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 940 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0168] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 930 including instructions, and the instructions can be executed by the processor 910 of the device 900 to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0169] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, and when the computer program / instruction is executed by a processor, the electronic resource allocation method provided in any of the above embodiments is implemented.

[0170] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0171] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for allocating electronic resources, It is characterized in that include: Receive an electronic resource pre-allocation request corresponding to a first account in a target application, the electronic resource pre-allocation request including an electronic resource distribution behavior identifier for identifying an electronic resource distribution behavior to be started, the electronic resource pre-allocation request is generated by a terminal corresponding to the first account within a preset time period before the electronic resource distribution behavior starts after detecting that the first account enters the target application; Calling the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource issuance behavior identifier, and sending an electronic resource allocation request to the at least one target business party; The configuration information includes identification information of the at least one target business party; Acquire the electronic resource allocation result returned by the at least one target business party; the electronic resource allocation result is generated by the at least one target business party according to the electronic resource allocation request by calling respective electronic resource allocation logic; Generate an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party; A response message is returned to the terminal corresponding to the first account according to the electronic resource pre-allocation result, so that the terminal corresponding to the first account sends an electronic resource issuance request based on the response message after the electronic resource issuance behavior is completed, and the electronic resource issuance request is used to request to obtain the electronic resource pre-allocation result.

2. The electronic resource allocation method according to claim 1, It is characterized in that The calling of the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource distribution behavior identifier includes: Acquire at least one preset resource allocation service; the at least one resource allocation service corresponds to at least one business party; Determining, according to the identification information of the at least one target service party, a target resource allocation service corresponding to each of the target service parties from the at least one resource allocation service; The electronic resource allocation interface of the corresponding target business party is called through the target resource allocation service.

3. The electronic resource allocation method according to claim 2, It is characterized in that The method further comprises: determining an electronic resource allocation interface of the at least one business party; For each business party of the at least one business party, a resource allocation service corresponding to the business party is created according to the electronic resource allocation interface of the business party.

4. The electronic resource allocation method according to claim 1, It is characterized in that The configuration information also includes priority information of different types of electronic resources; The step of generating an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party includes: Determine at least one type of electronic resources allocated to the first account according to the electronic resource allocation result returned by the at least one target business party; Determine a target type with the highest priority among the at least one type according to priority information of different types of electronic resources in the configuration information; Determine, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal, and obtain a style setting result; An electronic resource pre-allocation result is generated according to the style setting result and the electronic resource allocation result.

5. The electronic resource allocation method according to claim 4, It is characterized in that The step of generating an electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result includes: Determine the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types; An electronic resource pre-allocation result is generated according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type, and the electronic resource allocation result.

6. The electronic resource allocation method according to claim 4, It is characterized in that The step of determining, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal includes: Acquire a preset rendering style from the electronic resource allocation results corresponding to the electronic resources of the target type; According to the preset display style and the preset rendering style, a display style of the target type of electronic resources allocated to the first account on the terminal is determined.

7. An electronic resource allocation device, It is characterized in that include: a pre-allocation request receiving unit, configured to execute and receive an electronic resource pre-allocation request corresponding to a first account in a target application, wherein the electronic resource pre-allocation request includes an electronic resource distribution behavior identifier for identifying an electronic resource distribution behavior to be started, and the electronic resource pre-allocation request is generated by a terminal corresponding to the first account within a preset time period before the start of the electronic resource distribution behavior after detecting that the first account enters the target application; An interface calling unit is configured to call the electronic resource allocation interface of at least one target business party according to the configuration information corresponding to the electronic resource distribution behavior identifier, and send an electronic resource allocation request to the at least one target business party; The configuration information includes identification information of the at least one target business party; A first acquisition unit is configured to acquire an electronic resource allocation result returned by the at least one target business party; the electronic resource allocation result is generated by the at least one target business party according to the electronic resource allocation request by calling respective electronic resource allocation logic; A result generating unit is configured to generate an electronic resource pre-allocation result according to the electronic resource allocation result returned by the at least one target business party; The message returning unit is configured to execute returning a response message to the terminal corresponding to the first account according to the electronic resource pre-allocation result, so that the terminal corresponding to the first account sends an electronic resource issuance request based on the response message after the electronic resource issuance behavior is completed, and the electronic resource issuance request is used to request to obtain the electronic resource pre-allocation result.

8. The electronic resource allocation device according to claim 7, It is characterized in that The interface calling unit comprises: A service acquisition unit, configured to execute acquisition of at least one preset resource allocation service; the at least one resource allocation service corresponds to at least one business party; A first determining unit is configured to determine, according to the identification information of the at least one target business party, a target resource allocation service corresponding to each target business party from the at least one resource allocation service; The interface calling subunit is configured to call the electronic resource allocation interface of the corresponding target business party through the target resource allocation service.

9. The electronic resource allocation device according to claim 8, It is characterized in that The device also includes: A second determining unit is configured to determine the electronic resource allocation interface of the at least one business party; The service creation unit is configured to execute, for each business party of the at least one business party, creating a resource allocation service corresponding to the business party according to the electronic resource allocation interface of the business party.

10. The electronic resource allocation device according to claim 7, It is characterized in that The configuration information also includes priority information of different types of electronic resources; The result generating unit comprises: A third determining unit is configured to determine at least one type of electronic resources allocated to the first account according to the electronic resource allocation result returned by the at least one target business party; A fourth determining unit is configured to determine a target type with the highest priority among the at least one type according to priority information of different types of electronic resources in the configuration information; A style setting unit is configured to determine, according to a preset display style, a display style of the target type of electronic resources allocated to the first account on the terminal, and obtain a style setting result; The first result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result and the electronic resource allocation result.

11. The electronic resource allocation device according to claim 10, It is characterized in that The first result generating subunit comprises: A fifth determining unit is configured to determine the attribute information of the electronic resource collection control corresponding to the electronic resource of the target type according to the attribute information of the electronic resource collection control corresponding to the electronic resource of different types; The second result generating subunit is configured to generate an electronic resource pre-allocation result according to the style setting result, the property information of the electronic resource collection control corresponding to the electronic resource of the target type and the electronic resource allocation result.

12. The electronic resource allocation device according to claim 10, It is characterized in that The style setting unit includes: A rendering style acquisition unit is configured to acquire a preset rendering style from the electronic resource allocation result corresponding to the electronic resource of the target type; The style setting subunit is configured to determine the display style of the target type of electronic resources allocated to the first account on the terminal according to the preset display style and the preset rendering style.

13. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the electronic resource allocation method according to any one of claims 1 to 6. 14 . A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the electronic resource allocation method according to claim 1 .

15. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the electronic resource allocation method according to any one of claims 1 to 6 is implemented.