Virtual resource processing method, device, system, electronic device and storage medium

By determining the target service provider based on the virtual resource request type and total order volume, combined with the service provider's allocation weight, the problem of poor user experience caused by uneven service quality on social platforms is solved, and higher quality virtual resource services are achieved.

CN113869718BActive Publication Date: 2025-09-05BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111130311.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2025-09-05
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

When social platforms provide virtual products, due to the uneven service quality of service providers, users are unable to obtain virtual resources in a timely manner, affecting the user experience.

Method used

By determining the target service provider based on the type and total order volume of the virtual resource request and the allocation weight of the virtual resource service provider, a virtual resource distribution instruction is sent to the target service provider to ensure that the service provider with better service quality provides virtual resources.

Benefits of technology

It improves the user experience, avoids the provision of virtual resources by service providers with poor service quality, and ensures the service quality and efficiency of virtual resource business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113869718B_ABST
    Figure CN113869718B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a virtual resource processing method, device, system, electronic device and storage medium, and relates to the field of information processing technology, in order to at least solve the problem in the related technology that the service quality of service providers on social platforms is uneven, resulting in a poor user experience. The method includes: responding to virtual resource requests from multiple accounts, determining at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the corresponding allocation weights of multiple virtual resource service providers; sending a corresponding virtual resource distribution instruction to the at least one target service provider, so that the at least one target service provider provides virtual resources to multiple accounts. The present disclosure is used for virtual industry order processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to a virtual resource processing method, device, system, electronic device, and storage medium. Background Art

[0002] Social platforms can offer live video streaming services, and e-commerce platforms can leverage this to launch live sales services, boosting sales of related products. Live sales services can include selling physical products or virtual products, such as membership products for certain apps or top-up items for mobile devices.

[0003] In related technologies, virtual products can be provided by multiple service providers. For example, a virtual product can be a member product of a first application. Specifically, the first service provider, the second service provider, and the third service provider can all provide member products of the first application. Although users can purchase the corresponding member products through these service providers, the service quality of these service providers varies. Therefore, when a social platform receives a large number of orders for member products of the first application through live sales services, and the social platform provides the corresponding member products to users through multiple service providers, the uneven service quality of these service providers may cause some users to be unable to obtain the member products of the first application in a timely manner, resulting in a poor user experience. Summary of the Invention

[0004] The present disclosure provides a virtual resource processing method, device, system, electronic device, and storage medium to at least address the problem in related technologies of uneven service quality among service providers on social platforms, resulting in a poor user experience. The technical solutions of the present disclosure are as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a virtual resource processing method is provided, comprising: responding to virtual resource requests from multiple accounts, determining at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the corresponding allocation weights of multiple virtual resource service providers; and sending a corresponding virtual resource distribution instruction to the at least one target service provider, so that the at least one target service provider provides virtual resources to the multiple accounts.

[0006] Optionally, the above-mentioned method of determining at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the allocation weights corresponding to multiple virtual resource service providers includes: determining at least one first service provider corresponding to the virtual resource type from multiple virtual resource service providers based on the virtual resource type; determining at least one second service provider based on the total virtual resource order quantity and inventory information of at least one first service provider; the total virtual resource order quantity is the sum of the first virtual resource order quantities in all virtual resource requests; and determining at least one target service provider based on the allocation weight corresponding to at least one second service provider.

[0007] Optionally, the determining of at least one target service provider based on the allocation weight corresponding to at least one second service provider includes: determining a second service provider having an allocation weight greater than or equal to a first threshold among the at least one second service provider as the at least one target service provider.

[0008] Optionally, the above-mentioned determination of a second service provider having an allocation weight greater than or equal to the first threshold as at least one target service provider includes: when the total order volume of virtual resources requested by multiple accounts is less than or equal to the second threshold, determining the second service provider corresponding to the largest allocation weight as the target service provider; the largest allocation weight is greater than the first threshold; when the total order volume of virtual resources requested by multiple accounts is greater than the second threshold, determining the second service provider with an allocation weight greater than a third threshold as the target service provider; the third threshold is greater than the first threshold.

[0009] Optionally, when the time during which the allocation weight corresponding to the second service provider is less than the first threshold is greater than a fourth threshold, the allocation weight corresponding to the second service provider is initialized to a preset value.

[0010] Optionally, the virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any target service provider and a total virtual resource order quantity.

[0011] Optionally, before responding to the virtual resource request of the target account, the above method also includes: determining allocation weights corresponding to multiple virtual resource service providers based on inventory information and service quality indicators of multiple virtual resource service providers; service quality indicators include transaction success rate and transaction delay.

[0012] Optionally, after at least one target service provider provides virtual resources to multiple accounts, the above method also includes: updating the inventory information of the target service provider and the service quality index of the target service provider; updating the allocation weight of the target service provider based on the updated inventory information and service quality index of the target service provider.

[0013] According to a second aspect of an embodiment of the present disclosure, a virtual resource processing device is provided, including: a service provider determination unit, used to respond to virtual resource requests from multiple accounts, and determine at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the corresponding allocation weights of multiple virtual resource service providers; an instruction sending unit, used to send a corresponding virtual resource distribution instruction to at least one target service provider determined by the service provider determination unit, so that the at least one target service provider provides virtual resources to multiple accounts.

[0014] Optionally, the above-mentioned service provider determination unit is specifically used to: determine at least one first service provider corresponding to the virtual resource type from multiple virtual resource service providers based on the virtual resource type; determine at least one second service provider based on the total virtual resource order quantity and inventory information of at least one first service provider; the total virtual resource order quantity is the sum of the first virtual resource order quantities in all virtual resource requests; and determine at least one target service provider based on the allocation weight corresponding to at least one second service provider.

[0015] Optionally, the service provider determining unit is further configured to: determine, among the at least one second service provider, a second service provider whose allocation weight is greater than or equal to a first threshold as at least one target service provider.

[0016] Optionally, the above-mentioned service provider determination unit is further specifically used to: when the total order volume of virtual resources requested by multiple accounts is less than or equal to a second threshold, determine the second service provider corresponding to the largest allocation weight as the target service provider; when the total order volume of virtual resources requested by multiple accounts is greater than the second threshold, determine the second service provider with an allocation weight greater than a third threshold as the target service provider; the third threshold is greater than the first threshold.

[0017] Optionally, the above-mentioned device also includes an initialization unit; the initialization unit is used to initialize the allocation weight corresponding to the second service provider to a preset value when the time for which the allocation weight corresponding to the second service provider is less than the first threshold is greater than a fourth threshold.

[0018] Optionally, the virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any target service provider and a total virtual resource order quantity.

[0019] Optionally, the above-mentioned device also includes a weight determination unit; the weight determination unit is used to determine the corresponding allocation weights of multiple virtual resource service providers based on the service quality indicators of multiple virtual resource service providers before responding to the virtual resource request of the target account; the service quality indicators include transaction success rate and transaction delay.

[0020] Optionally, the above-mentioned device also includes an update unit; the update unit is used to update the inventory information of the target service provider and the service quality indicators of the target service provider after at least one target service provider provides virtual resources to multiple accounts; and update the allocation weight of the target service provider based on the updated inventory information and service quality indicators of the target service provider.

[0021] According to a third aspect of an embodiment of the present disclosure, a virtual resource processing system is provided, comprising: an order allocation unit and a business monitoring unit; the business monitoring unit is used to determine the inventory information and service quality indicators of each virtual resource service provider; the business monitoring unit is also used to determine the allocation weight of each virtual resource service provider based on the inventory information and service quality indicators; the order allocation unit is used to respond to virtual resource requests from multiple accounts, and determine at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the corresponding allocation weight of each virtual resource service provider; the order allocation unit is also used to send a corresponding virtual resource distribution instruction to at least one target service provider, so that the at least one target service provider provides virtual resources to multiple accounts.

[0022] Optionally, the above system also includes: an order allocation unit; the order allocation unit is configured to determine the second virtual resource order quantity corresponding to any target service provider based on the order allocation weight corresponding to at least one target service provider and the total order quantity of virtual resources when the order allocation unit determines at least one target service provider; the second virtual resource order quantity is used to indicate the virtual resource order quantity allocated to the corresponding target service provider.

[0023] Optionally, the above system also includes: a service provider on-boarding unit; a service provider on-boarding unit, used to respond to the service request of the virtual service provider and verify the identity of the virtual service provider based on the identity proof carried in the service request; the service provider on-boarding unit, also used to provide virtual order allocation services to the virtual resource service provider after the identity proof of the virtual service provider is verified.

[0024] Optionally, the above system also includes: a background configuration unit; the background configuration unit is used to provide virtual business configuration services to the target virtual resource service provider after the service provider’s on-site unit verifies the identity of the virtual resource service provider; the virtual business configuration service includes configuring the business of the target virtual resource service provider, the business page corresponding to the business, and the business execution link of the business; the target virtual resource service provider is a virtual resource service provider that has passed the identity verification.

[0025] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the virtual resource processing method provided in the first aspect.

[0026] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, the computer-readable storage medium including instructions; when the instructions are executed by a processor of an electronic device, the electronic device executes the virtual resource processing method provided in the first aspect.

[0027] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided. The computer program product includes instructions. When the instructions are executed on a processor of an electronic device, the electronic device executes the virtual resource processing method provided in the first aspect.

[0028] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the electronic device provided by the present disclosure can provide business services for multiple virtual resource service providers, and these virtual resource service providers can provide different types of virtual resource services, such as a first virtual resource service, a second virtual resource service, etc. After the electronic device receives a virtual resource request (such as a business request) from an account, it can determine at least one target service provider from the virtual resource service providers based on the requested virtual resource type, the total order volume of the virtual resource, and the allocation weight corresponding to the virtual resource service provider; because the allocation weight of the virtual resource service provider is combined when determining the target service provider, and the allocation weight is related to the service quality of the corresponding virtual resource service provider, when determining the target service provider based on the allocation weight, a service provider with better service quality determined from the virtual resource service providers can provide virtual resource business support, thereby avoiding the virtual resource service provider with poor service quality providing virtual resource services to the user, thereby improving the service quality of the virtual resource service provided to the user and improving the user experience.

[0029] 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 disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying 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 an improper limitation of the present disclosure.

[0031] Figure 1 It is an architectural diagram showing an implementation environment according to an exemplary embodiment.

[0032] Figure 2 This is one of the flowcharts of a virtual resource processing method according to an exemplary embodiment.

[0033] Figure 3 This is a second flowchart of a virtual resource processing method according to an exemplary embodiment.

[0034] Figure 4 This is a third flowchart of a virtual resource processing method according to an exemplary embodiment.

[0035] Figure 5 This is a fourth flowchart of a virtual resource processing method according to an exemplary embodiment.

[0036] Figure 6 This is the fifth flowchart of a virtual resource processing method according to an exemplary embodiment.

[0037] Figure 7 This is the sixth flowchart of a virtual resource processing method according to an exemplary embodiment.

[0038] Figure 8 The figure is a structural diagram of a virtual resource processing device according to an exemplary embodiment.

[0039] Figure 9 The figure is a structural diagram of a virtual resource processing system according to an exemplary embodiment.

[0040] Figure 10 The figure is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0041] 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 with reference to the accompanying drawings.

[0042] It should be noted that the terms "first," "second," and the like 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 precedence. It should be understood that the numbers used in this manner are interchangeable 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 apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0043] In related technologies, social platforms can sell virtual products through e-commerce live streaming. However, since a large number of orders may be generated during e-commerce live streaming, when these orders are fulfilled by a single virtual resource service provider, due to the poor inventory or service quality of the virtual resource service provider, some users may not be able to obtain the corresponding virtual products for a long time after submitting the order, thus affecting the user experience. Although when the order volume is large, these orders can be fulfilled by multiple virtual resource service providers, due to the uncontrollable service quality of these virtual resource service providers, users may still not be able to obtain the corresponding virtual products for a long time, affecting the user experience.

[0044] In response to the above problems, the embodiments of the present disclosure provide a virtual resource processing method, which can enable the same electronic device to provide business services for multiple virtual resource service providers. When a large number of orders are generated during e-commerce live broadcasts, at least one target service provider can be determined based on the virtual resource type corresponding to the order, combined with the total virtual resource order volume and the allocation weights of each virtual resource service provider. The target service provider will complete the user's order and provide the user with the corresponding virtual product. Since the present disclosure can determine a target service provider with better service quality based on the allocation weights of the virtual resource service providers, and the target service provider will complete the order business, the service quality of the order business can be guaranteed and the user experience can be improved.

[0045] Figure 1 is an architectural diagram of an implementation environment according to an exemplary embodiment. Figure 1 As shown, the following virtual resource processing method can be applied in the implementation environment. The implementation environment includes a terminal 01 and an electronic device 02. The terminal 01 establishes a communication connection with the electronic device 02 through an application installed on the terminal 01.

[0046] In one practicable embodiment, terminal 01 can run an application associated with electronic device 02, and based on this application, can log in to electronic device 02, thereby interacting with electronic device 02. This application can be a short video application, a social networking application, or a browser. In the disclosed embodiment, the short video application is used as an example for illustration. A live streamer can use this short video application to conduct e-commerce live streaming, obtain virtual resource orders from a large number of accounts, and simultaneously distribute these virtual resource orders to corresponding virtual resource service providers.

[0047] In one embodiment, the electronic device 02 may be a server, a server cluster consisting of multiple servers, or a cloud computing service center. The electronic device 02 may include a processor, a memory, a network interface, and the like.

[0048] In one embodiment, the terminal 01 is used to provide voice and / or data connectivity services to users. The terminal 01 may have different names, such as UE, end, terminal unit, terminal station, mobile station, mobile station, remote station, remote terminal, mobile device, wireless communication device, vehicle user equipment, terminal agent or terminal device.

[0049] Optionally, the terminal 01 may be any handheld device, vehicle-mounted device, wearable device, or computer with communication capabilities, which is not limited in the present embodiment. For example, the handheld device may be a smartphone. The vehicle-mounted device may be a vehicle navigation system. The wearable device may be a smart bracelet. The computer may be a personal digital assistant (PDA), a tablet computer, or a laptop computer.

[0050] Those skilled in the art should understand that the above terminals are only examples, and other existing or future terminals that are applicable to the present disclosure should also be included in the scope of protection of the present disclosure and are incorporated herein by reference.

[0051] Based on the above implementation environment, the specific implementation process of the virtual resource processing method provided by the embodiment of the present disclosure is as follows:

[0052] The virtual resource processing method provided by the embodiment of the present disclosure is exemplarily described below with reference to the accompanying drawings.

[0053] Figure 2 FIG. 1 is a flow chart showing a method for processing virtual resources according to an exemplary embodiment. Figure 2 As shown, the virtual resource processing method can be applied to the above-mentioned electronic device, and the method includes the following S11 to S12.

[0054] S11. The electronic device responds to virtual resource requests from multiple accounts and determines at least one target service provider according to the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the allocation weights corresponding to multiple virtual resource service providers.

[0055] The allocation weight is related to the service quality of multiple virtual resource service providers. For example, the better the service quality, the greater the allocation weight; the worse the service quality, the smaller the allocation weight.

[0056] As a possible implementation, the aforementioned account can be an account for a short video application, and the electronic device can be a server for the short video application. The electronic device can provide business support for multiple virtual resource service providers. For example, the electronic device can provide business support for a first virtual resource service provider, and also for a second virtual resource service provider, and so on. Business support here means that the electronic device can receive virtual resource requests from accounts and allocate the virtual resources requested by these accounts to the corresponding virtual resource service providers.

[0057] The above-mentioned virtual resource service providers may be merchants that provide virtual resources. For example, virtual resource service providers may provide membership products for various video applications, or may provide mobile phone recharge products, etc. Correspondingly, the above-mentioned virtual resource requests are order requests for accounts to purchase corresponding virtual resources.

[0058] After the user of the short video application purchases virtual resources through the corresponding account and completes the payment, a virtual resource request can be sent to the electronic device through the terminal where the short video application is installed. The virtual resource request can carry the virtual resource type and the first virtual resource order quantity.

[0059] At least one target service provider may be determined based on the virtual resource type and the first virtual resource order quantity in the virtual resource request and the allocation weights corresponding to each virtual resource service provider. These target service providers provide virtual resources for corresponding accounts.

[0060] It should be noted that the allocation weights corresponding to each virtual resource service provider can be determined by the service quality of these virtual resource service providers. The service quality of a virtual resource service provider can represent the quality of the service capabilities, service levels, or service results provided by the service provider. For example, it can be represented by its historical transaction records, which include transaction success rates, transaction delays, etc. For example, the higher the transaction success rate and the shorter the transaction delay, the better the service quality.

[0061] S12. The electronic device sends a corresponding virtual resource distribution instruction to at least one target service provider, so that the at least one target service provider provides virtual resources to multiple accounts.

[0062] As a possible implementation method, since the electronic device is a server for the short video application, in this disclosure, the electronic device actually provides a business order platform for virtual resource service providers, through which each virtual resource service provider can obtain certain virtual resource orders.

[0063] The aforementioned first virtual resource order quantity may be the amount of virtual resources required by the account. Depending on the virtual resources provided by the virtual resource service provider, the first virtual resource order quantity carried in the virtual resource request may vary. For example, when the virtual resource provided by the virtual resource service provider is virtual currency, the first virtual resource order quantity corresponding to an account may be 100, 1000, etc.; when the virtual resource provided by the virtual resource service provider is membership for various video applications, the first virtual resource order quantity corresponding to an account may be only 1.

[0064] Therefore, based on virtual resource requests received by the electronic device from multiple accounts, the types of virtual resources requested by these accounts and the total virtual resource order quantity corresponding to each type of virtual resource can be determined. For example, the electronic device can receive virtual resource requests from a first account, a second account, a third account, and a fourth account. Where the first account requests a first virtual resource, the corresponding first virtual resource order quantity may be a; the second account requests a first virtual resource, the corresponding first virtual resource order quantity may be b; the third account requests a second virtual resource, the corresponding first virtual resource order quantity may be c; and the fourth account requests a third virtual resource, the corresponding first virtual resource order quantity may be d. In this case, the virtual resource service provider that provides the first virtual resource can provide the corresponding virtual resource to the first and second accounts, the virtual resource service provider that provides the second virtual resource can provide the corresponding virtual resource to the third account, and the virtual resource service provider that provides the third virtual resource can provide the corresponding virtual resource to the fourth account. Of course, since there can be multiple virtual resource service providers that provide the same type of virtual resource, there can be multiple virtual resource service providers that provide the first virtual resource to the first and second accounts. The first, second, and third virtual resources are different types of virtual resources.

[0065] Therefore, after the electronic device determines the types of virtual resources required by multiple accounts and the virtual resource order quantities corresponding to each type of virtual resource, it can send virtual resource distribution instructions to the corresponding target service providers respectively, and the corresponding target service providers provide the corresponding virtual resource products for the accounts. For example, the first target service provider provides the first virtual resource, the second target service provider provides the second virtual resource, and the third target service provider provides the third virtual resource. Then the first target service provider can provide the corresponding first virtual resource for the first account and the second account, the second target service provider can provide the corresponding second virtual resource for the third account, and the third target service provider can provide the corresponding third virtual resource for the fourth account. Of course, in some possible situations, the virtual resource service provider can also provide multiple virtual resources. In this case, the virtual resource service provider can receive multiple virtual resource requests from the account.

[0066] In one possible implementation, the virtual resource request may also include information such as the order number and the virtual resource identifier. The virtual resource identifier refers to the fact that the same type of virtual resources may include multiple different virtual resources. For example, membership products for video applications can be divided into monthly cards, quarterly cards, annual cards, etc. according to the length of time of the membership subscription. The virtual resource identifier may refer to these monthly cards, quarterly cards or annual cards, etc.

[0067] When a virtual resource request includes an order number and a virtual resource identifier, the electronic device can perform idempotency checks and other operations after receiving the virtual resource request to prevent the virtual resource provider from repeatedly providing virtual resources to the user. Of course, the electronic device can also perform other verification operations after receiving the virtual resource request. For details, refer to conventional technical means in the art and will not be detailed here.

[0068] The technical solution provided by the above embodiment has at least the following beneficial effects: the target service provider for providing virtual resource commodities to the account determined by the present disclosure is determined based on the allocation weight of the virtual resource service provider, and since the allocation weight corresponding to the virtual resource service provider is determined by its corresponding service quality, the target service provider determined here can have a higher service quality and can provide better services to users, thereby avoiding the situation where some virtual resource service providers with poor service quality provide virtual resource commodities to users with poor service quality, thereby improving the user experience. At the same time, since the electronic device disclosed in the present disclosure can provide business support for different types of virtual resource service providers, different types of virtual resource service providers can implement order allocation and improve service quality through the method disclosed in the present disclosure, avoiding the situation in the related art of separately building virtual resource allocation processes for different types of virtual resource service providers, that is, it can realize the reuse of virtual resource processing methods and reduce the workload of virtual resource processing corresponding to multiple types of virtual resource service providers.

[0069] In one practicable manner, the aforementioned virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any target service provider and a total virtual resource order quantity.

[0070] As a possible implementation method, the second virtual resource order quantity is the order quantity allocated to the target service providers respectively. For example, the target service providers determined in step S11 include the first target service provider, the second target service provider and the third target service provider. Then, in S12, the electronic device can send virtual resource distribution instructions to the first target service provider, the second target service provider and the third target service provider respectively. Possibly, the virtual resource distribution instruction corresponding to the first target service provider can indicate that its corresponding second virtual resource order quantity can be 100; the virtual resource distribution instruction corresponding to the second target service provider can indicate that its corresponding second virtual resource order quantity can be 1000; the virtual resource distribution instruction corresponding to the third target service provider can indicate that its corresponding second virtual resource order quantity can be 500. At this time, the total virtual resource order quantity requested by all accounts can be 1600.

[0071] It should be noted that, when a target service provider is determined in S11, the electronic device may send a virtual resource distribution instruction only to the target service provider, and the second virtual resource order quantity carried in the virtual resource distribution instruction is the total virtual resource order quantity.

[0072] When multiple target service providers are determined in S11, the electronic device may send virtual resource instructions to these target service providers respectively. The second virtual resource order quantity carried by these virtual resource instructions may be determined by the order allocation weight corresponding to the target service provider and the total virtual resource order quantity.

[0073] Furthermore, the above-mentioned order allocation weights can be determined by the allocation weights corresponding to the target service providers. For example, when the target service providers include the first target service provider, the second target service provider and the third target service provider, if the allocation weight of the first target service provider is A, the allocation weight of the second target service provider is B, and the allocation weight of the third target service provider is C, then the order allocation weight of the first target service provider is A / (A+B+C), the order allocation weight of the second target service provider is B / (A+B+C), and the order allocation weight of the third target service provider is C / (A+B+C).

[0074] If the total order quantity of virtual resources is Z, the second virtual resource order quantity corresponding to the first target service provider is A / (A+B+C)*Z, the second virtual resource order quantity corresponding to the second target service provider is B / (A+B+C)*Z, and the second virtual resource order quantity corresponding to the third target service provider is C / (A+B+C)*Z.

[0075] Here, the total virtual resource order volume requested by all accounts is allocated to at least one target service provider, and these target service providers each take over part of the virtual resource order volume. This can avoid the situation where a single target service provider is unable to meet user needs when the total virtual resource order volume is too large, which may lead to a decline in user experience. In addition, the target service provider is determined based on the allocation weight, and services can also be provided by virtual resource service providers with better service quality, thereby improving the user experience.

[0076] In one practicable manner, combining Figure 2 ,like Figure 3 As shown, S11 may include S111-S113.

[0077] S111. The electronic device determines, based on the virtual resource type, at least one first service provider corresponding to the virtual resource type from a plurality of virtual resource service providers.

[0078] As a possible implementation, electronic devices can provide business support for different types of virtual resource service providers, and the virtual resources provided by these virtual resource service providers can be different. In short video applications, the same live broadcast room can sell multiple types of virtual resources, or multiple live broadcast rooms can sell virtual resources, and the virtual resources sold in these live broadcast rooms can be the same or different. Therefore, the virtual resource requests received by the electronic device at the same time may be requests for multiple types of virtual resources.

[0079] Since different types of virtual resources are provided by different virtual resource service providers, the virtual resource service provider that can provide the corresponding virtual resource, ie, the first service provider, can be determined from all virtual resource service providers based on the virtual resource type carried in the virtual resource request.

[0080] For example, in some cases, when the virtual resource types requested by all accounts are first-type virtual resources, the electronic device may determine the virtual resource service provider that provides the first-type virtual resources as the first service provider; in other cases, when the virtual resource types requested by all accounts include first-type virtual resources, second-type virtual resources, and third-type virtual resources, the electronic device may determine the virtual resource service provider that provides the first-type virtual resources as the first service provider, or may determine the virtual resource service provider that provides the second-type virtual resources as the first service provider, or may determine the virtual resource service provider that provides the third-type virtual resources as the first service provider.

[0081] It should be noted that since the virtual resource request includes the virtual resource type and can also include the corresponding account identifier (such as account number), when the electronic device instructs the target service provider to provide virtual resources, the corresponding requested virtual resources can be provided to the corresponding merchant, avoiding providing the wrong virtual resources to the account.

[0082] S112: The electronic device determines at least one second service provider according to the total order quantity of the virtual resources and the inventory information of the at least one first service provider.

[0083] The total virtual resource order quantity is the sum of the first virtual resource order quantities in all virtual resource requests.

[0084] As a possible implementation method, in order to avoid the situation where the virtual resource service provider's inventory is insufficient and the account may be unable to obtain the corresponding virtual resources, this step can determine at least one second service provider from the first service provider based on the total order volume of virtual resources, and these second service providers will meet the virtual resource needs of all accounts.

[0085] When the inventory of a first service provider is sufficient to meet the demand for the total order quantity of virtual resources, the electronic device can determine the first service provider as the second service provider; when a first service provider cannot meet the demand for the total order quantity of virtual resources, the electronic device can determine multiple first service providers as second service providers, and the total inventory of the multiple first service providers is greater than the total order quantity of virtual resources; of course, even when the inventory of a first service provider is sufficient to meet the demand for the total order quantity of virtual resources, the electronic device can also distribute the total order quantity of virtual resources to multiple first service providers and determine the multiple first service providers as second service providers.

[0086] For example, if the total virtual resource order quantity is 100,000, the inventory of first service provider 1 is 200,000, the inventory of first service provider 2 is 50,000, and the inventory of first service provider 3 is 70,000, then first service provider 1 can be determined as the second service provider, or first service provider 1 and second service provider 2 can be determined as the second service provider, or first service provider 2 and first service provider 3 can be determined as the second service provider. The total inventory of the second service provider determined here must meet the total virtual resource order quantity.

[0087] Of course, when determining the second service provider, the present disclosure may prioritize the virtual resource service provider with a larger inventory as the second service provider.

[0088] S113: The electronic device determines at least one target service provider according to the allocation weight corresponding to the at least one second service provider.

[0089] As one possible implementation, all virtual resource service providers include corresponding allocation weights. These allocation weights are determined by the virtual resource service provider's service quality. Therefore, the allocation weights can indicate the service quality of the virtual resource service provider. A larger allocation weight indicates better service quality. Therefore, at least one target service provider can be determined based on the allocation weight corresponding to the second service provider. The total inventory of these target service providers is greater than the total virtual resource order volume.

[0090] In some cases, the execution order of steps S112 and S113 can be exchanged.

[0091] The technical solution provided by the above embodiment has at least the following beneficial effects: determining the target service provider based on the virtual resource type requested by the account and the total order quantity of virtual resources, combined with the allocation weight of the virtual resource service provider, while meeting the user's virtual resource needs, it can provide better service quality and improve the user experience.

[0092] In one practicable manner, combining Figure 3 ,like Figure 4 As shown, S113 may also specifically be:

[0093] S113a: The electronic device determines, among at least one second service provider, a second service provider whose allocation weight is greater than or equal to a first threshold as at least one target service provider.

[0094] As a possible implementation, the first threshold is set to identify virtual resource service providers with better service quality. For example, if the allocation weight of a second service provider is greater than or equal to the first threshold, the second service provider can be determined to have better service quality and can provide a better user experience. Therefore, the second service provider with an allocation weight greater than or equal to the first threshold can be determined as the target service provider.

[0095] In this way, the determined allocation weights of the target service providers are all greater than the first threshold, that is, the target service providers can provide good service quality and improve the user experience.

[0096] In one practicable manner, combining Figure 4 ,like Figure 5 As shown, S113a may include S1131 - S1132 .

[0097] S1131: When the total order quantity of virtual resources requested by multiple accounts is less than or equal to a second threshold, the electronic device determines the second service provider corresponding to the largest allocation weight as the target service provider.

[0098] The maximum allocation weight is greater than the first threshold.

[0099] S1132: When the total order quantity of virtual resources requested by multiple accounts is greater than the second threshold, the electronic device determines the second service provider whose allocation weight is greater than the third threshold as the target service provider.

[0100] The third threshold is greater than the first threshold.

[0101] As a possible implementation, since there may be multiple virtual resource service providers providing virtual resources, and the total order volume of virtual resources is fixed, it is not possible to determine all virtual resource service providers as target service providers. Therefore, after determining the second service provider in step S112, the second service provider whose allocation weight is greater than or equal to the first threshold can be determined as the target service provider.

[0102] Furthermore, in some cases, if the total virtual resource order volume is less than or equal to a second threshold, a target service provider may be selected to provide the virtual resource to the user. In this case, the second service provider with the highest allocation weight may be selected as the target service provider. Of course, in this case, the inventory of the second service provider with the highest allocation weight is greater than or equal to the total virtual resource order volume.

[0103] In other cases, when the total order volume of virtual resources is greater than the second threshold, multiple second service providers may be determined as target service providers. At this time, the corresponding target service provider may be determined from the second service providers according to the third threshold.

[0104] For example, if the second service providers include second service provider 1, second service provider 2, second service provider 3, second service provider 4, and second service provider 5, the allocation weight of second service provider 1 is 0.7, the allocation weight of second service provider 2 is 0.75, the allocation weight of second service provider 3 is 0.3, the allocation weight of second service provider 4 is 0.5, the allocation weight of second service provider 5 is 0.6, and the third threshold is 0.5, then second service provider 1, second service provider 2, second service provider 4, and second service provider 5 can be determined as target service providers.

[0105] The total inventory of the target service provider determined here is greater than the total order volume of virtual resources, and as the total order volume of virtual resources changes, the above-mentioned third threshold value may also change accordingly. For example, the larger the total order volume of virtual resources, the smaller the corresponding third threshold value may be; the smaller the total order volume of virtual resources, the larger the corresponding third threshold value may be. In this way, when the total order volume of virtual resources is small, the virtual resources can be provided by the target service provider with the best service quality; when the total order volume of virtual resources is large, the delay problem that may occur when the virtual resources are provided by a target service provider is avoided. The setting of the third threshold value can be determined by technicians in this field based on the changes in the total order volume of virtual resources and the delay when the virtual resource service provider provides virtual resources.

[0106] It should be noted that, in some special cases, if the inventory of the second service provider with the largest allocation weight is less than the total order quantity of virtual resources, the second service provider with the second largest allocation weight can be determined as the target service provider, and so on.

[0107] The technical solution provided by the above embodiment has at least the following beneficial effects: according to the total order volume of virtual resources, these orders can be allocated to one or more target service providers. When the total order volume of virtual resources is less than or equal to the second threshold, a virtual resource service provider with the best service quality will provide virtual resources to provide a better user experience; when the total order volume of virtual resources is too large, even if the virtual resource service provider with the best service quality provides virtual resources, some user orders may be delayed. At this time, multiple target service providers will provide users with virtual resources, which can avoid this situation and provide a better user experience.

[0108] In an implementable manner, when the allocation weight corresponding to the second service provider is less than the first threshold for a period greater than a fourth threshold, the electronic device initializes the allocation weight corresponding to the second service provider to a preset value.

[0109] As a possible implementation method, the present disclosure uses the first threshold as the quality service segmentation of the virtual resource service provider. When the allocation weight of the virtual resource service provider is greater than or equal to the first threshold, the virtual resource service provider may be determined as the target service provider to provide virtual resources to the user; when the allocation weight of the virtual resource service provider is less than the first threshold, the virtual resource service provider will no longer be the target service provider to provide virtual resources to the user to avoid affecting the user experience.

[0110] However, in practice, if a virtual resource service provider's allocation weight is less than the first threshold for a long period of time and is unable to receive virtual resource orders, this may affect the virtual resource service provider's enthusiasm, thereby affecting the enthusiasm of the electronic device to provide a service order platform. Therefore, the fourth threshold here is actually a penalty period for virtual resource service providers with poor service quality. When the service quality of a virtual resource service provider is poor for a long period of time (for example, the allocation weight of the virtual resource service provider is less than the first threshold for a period longer than the fourth threshold), the electronic device will no longer dispatch virtual resource orders to the virtual resource service provider.

[0111] After the penalty period expires, the allocation weights of the virtual resource service providers with poor service quality can be initialized to a preset value. The preset value can be an average value of the corresponding allocation weights of all virtual resource service providers, and the preset value is greater than or equal to a first threshold. When the average value is less than the first threshold, the preset value can be set to the first threshold.

[0112] It should be noted that in the present disclosure, the allocation weight of the second service provider can be initialized during the process of determining the target server; or the allocation weights of all virtual resource service providers can be detected in real time, and the allocation weights of these virtual resource service providers can be initialized when the time when their allocation weights are less than the first threshold is greater than the fourth threshold.

[0113] In this way, by setting the first threshold, virtual resource service providers with poor service quality can be prevented from providing services to users, resulting in poor user experience; by setting the fourth threshold, a penalty period can be set for virtual resource service providers with poor service quality to urge them to improve their service quality, and the situation where virtual resource service providers leave the electronic device to provide business order platforms can be reduced.

[0114] In one practicable manner, combining Figure 5 ,like Figure 6 As shown, before the above step S111, the following steps are also included:

[0115] S10. The electronic device determines allocation weights corresponding to multiple virtual resource service providers based on the inventory information and service quality indicators of the multiple virtual resource service providers.

[0116] Among them, service quality indicators include transaction success rate and transaction delay.

[0117] As a possible implementation, the allocation weight of a virtual resource service provider can be determined by its corresponding service quality indicator. Service quality indicators are used to characterize the service capabilities, service levels, or service results provided by the service provider. For example, they may include transaction success rate, transaction latency, and the number of transaction anomalies. For example, if the service quality indicators include transaction success rate, transaction latency, and the number of transaction anomalies, the allocation weight can be determined according to the following formula:

[0118] y=(x1-x2-x3) / M.

[0119] Among them, y is the allocation weight, x1 is the number of historical successful transactions of the virtual resource service provider, which can be determined by the product of the transaction success rate and the historical transaction volume; x2 is the number of historical transaction delays of the virtual resource service provider, that is, the number of transactions with delays in the historical transaction volume; x3 is the number of transaction anomalies in the historical transaction volume of virtual resources; M is the historical transaction volume of the virtual resource service provider.

[0120] In one possible implementation, the allocation weight of a virtual resource service provider can also be related to its corresponding inventory information. The larger the inventory, the greater the allocation weight of the virtual resource service provider. For example, if there are N virtual resource service providers of the same type and the total inventory of these virtual resource service providers is P, the allocation weight can also be determined according to the following formula:

[0121] y=(x1-x2-x3) / M*Q.

[0122] Q=M i / P.

[0123] Among them, Q is the proportion of the inventory of the virtual resource service provider in the total inventory of similar virtual resource service providers, M i is the inventory of virtual resource service providers, and i is the number of similar virtual resource service providers.

[0124] Of course, the above-mentioned method for determining the allocation weight is only exemplary, and those skilled in the art may also determine the allocation weight in other ways, and are not limited to the above-mentioned determination method.

[0125] The technical solution provided by the above embodiment has at least the following beneficial effects: determining the allocation weight according to the service quality indicators and inventory of the virtual resource service provider, providing a basis for determining the target service provider, and avoiding the poor service quality of the determined target service provider affecting the user experience.

[0126] In one practicable manner, combining Figure 6 ,like Figure 7 As shown, after step S12, steps S13-S14 are also included.

[0127] S13. The electronic device updates the inventory information of the target service provider and the service quality index of the target service provider.

[0128] S14. The electronic device updates the allocation weight of the target service provider according to the updated inventory information and service quality index of the target service provider.

[0129] As a possible implementation method, since the present disclosure determines the corresponding allocation weight based on the service quality index of the virtual resource service provider, and then determines the target service provider for providing virtual resources to the user based on the allocation weight, while the virtual resource service provider provides virtual resource services to the user, its corresponding service quality index is constantly changing. Therefore, after each virtual resource service provider performs a virtual resource service, the allocation weight of the virtual resource service provider (target service provider) providing the service can be updated to update the service quality status of these virtual resource service providers in real time.

[0130] Since the allocation weight is not only related to the service quality index but also to the inventory, the inventory information and service quality index of the target service provider can be updated after each transaction is completed, and the allocation weight of the target service provider can be updated according to the above formula.

[0131] The business order platform provided by the electronic device disclosed in the present invention can integrate the virtual resources of the entire industry to cope with large-volume orders in e-commerce live broadcasts and provide better service quality for these users.

[0132] The technical solution provided by the above embodiment has at least the following beneficial effects: by updating the allocation weights of virtual resource service providers in real time, the service quality of virtual resource service providers can be continuously updated, avoiding the situation where electronic devices are unable to perceive the decline in service quality of virtual resource service providers, and then when these virtual resource service providers with declined service quality provide services, resulting in a poor user experience.

[0133] Figure 8 is a structural diagram of a virtual resource processing device according to an exemplary embodiment. Figure 8 As shown, the virtual resource processing device 20 includes a service provider determining unit 201 , an instruction sending unit 202 , an initializing unit 203 , a weight determining unit 204 and an updating unit 205 .

[0134] The service provider determination unit 201 is configured to, in response to virtual resource requests from multiple accounts, determine at least one target service provider based on the virtual resource type and the first virtual resource order quantity contained in the virtual resource request, as well as the allocation weights corresponding to multiple virtual resource service providers; the allocation weights are related to the service quality of the multiple virtual resource service providers. For example, the service provider determination unit 201 may execute the aforementioned S11.

[0135] The instruction sending unit 202 is configured to send a corresponding virtual resource distribution instruction to at least one target service provider determined by the service provider determining unit 201, so that the at least one target service provider provides virtual resources to multiple accounts. For example, the instruction sending unit 202 may execute the above S12.

[0136] Optionally, the service provider determination unit 201 is specifically configured to: determine at least one first service provider corresponding to the virtual resource type from multiple virtual resource service providers according to the virtual resource type; determine at least one second service provider according to the total virtual resource order quantity and the inventory information of at least one first service provider; the total virtual resource order quantity is the sum of the first virtual resource order quantities in all virtual resource requests; and determine at least one target service provider according to the allocation weight corresponding to at least one second service provider. For example, the service provider determination unit 201 may perform the above Figure 3 S111-S113 shown.

[0137] Optionally, the service provider determination unit 201 is further specifically configured to: determine a second service provider whose allocation weight is greater than or equal to the first threshold value among at least one second service provider as at least one target service provider. For example, the service provider determination unit 201 may perform the above Figure 4 S113a shown.

[0138] Optionally, the service provider determination unit 201 is further configured to: if the total order volume of virtual resources requested by the multiple accounts is less than or equal to a second threshold, determine the second service provider corresponding to the largest allocation weight as the target service provider; if the total order volume of virtual resources requested by the multiple accounts is greater than the second threshold, determine the second service provider with an allocation weight greater than a third threshold as the target service provider; the third threshold being greater than the first threshold. For example, the service provider determination unit 201 may execute S1131-S1132 above.

[0139] Optionally, the above device further includes an initialization unit 203.

[0140] The initialization unit 203 is configured to initialize the allocation weight corresponding to the second service provider to a preset value when the time during which the allocation weight corresponding to the second service provider is less than the first threshold is greater than a fourth threshold.

[0141] Optionally, the virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any target service provider and a total virtual resource order quantity.

[0142] Optionally, the above device further includes a weight determination unit 204.

[0143] The weight determination unit 204 is configured to determine allocation weights corresponding to the multiple virtual resource service providers based on their service quality indicators, including transaction success rate and transaction latency, before responding to the target account's virtual resource request. For example, the weight determination unit 204 may execute S10 above.

[0144] Optionally, the above device further includes an updating unit 205.

[0145] Update unit 205 is configured to update the inventory information and service quality indicators of the target service provider after at least one target service provider provides virtual resources to multiple accounts, and to update the allocation weight of the target service provider based on the updated inventory information and service quality indicators of the target service provider. For example, update unit 205 may execute steps S13-S14 above.

[0146] Regarding the apparatus 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.

[0147] Figure 9 FIG. 1 is a structural diagram of a virtual resource processing system according to an exemplary embodiment. Figure 9As shown, the virtual resource processing system 30 includes a business monitoring unit 301 , an order allocating unit 302 , an order deploying unit 303 , a service provider registering unit 304 and a background configuration unit 305 .

[0148] The service monitoring unit 301 is used to determine the inventory information and service quality indicators of each virtual resource service provider.

[0149] The service monitoring unit 301 is further configured to determine the allocation weight of each virtual resource service provider based on inventory information and service quality indicators.

[0150] The order allocation unit 302 is configured to respond to virtual resource requests from multiple accounts and determine at least one target service provider based on the virtual resource type carried in the virtual resource request, the first virtual resource order quantity, and the allocation weight corresponding to each virtual resource service provider.

[0151] The order allocating unit 302 is further configured to send a corresponding virtual resource distribution instruction to at least one target service provider, so that the at least one target service provider provides virtual resources to multiple accounts.

[0152] As a possible implementation, the virtual resource processing system can be a service order platform that provides multiple services, namely, services for users and virtual resource service providers. For example, the platform can include a service monitoring unit 301 for real-time monitoring of the operating conditions of each virtual resource service provider, such as inventory information and service quality indicators of the virtual resource service provider, and determining the allocation weight of the virtual resource service provider based on this information. The specific process can be referred to the above method embodiment.

[0153] In one possible implementation, the business monitoring unit 301 can also monitor the specific service conditions of the virtual resource service provider and provide operational support to the virtual resource service provider. For example, if the virtual resource service provider is unable to accept an order, the business monitoring unit 301 will prompt the virtual resource service provider with an error code indicating the specific problem, such as insufficient inventory or the entry into a penalty period.

[0154] According to the error code prompt, the service monitoring unit 301 can also provide the virtual resource service provider with corresponding solution strategies, such as a solution strategy for insufficient inventory, a solution strategy for entering a penalty period, etc.

[0155] The business monitoring unit 301 can also monitor whether the orders received by the virtual resource service provider are completed. When an error occurs in the order received and it cannot be completed, it instructs the order allocation unit 302 to resend the virtual resource distribution instructions to the virtual resource service provider; if the virtual resource service provider still cannot complete the order after receiving the instructions for a preset number of times, it can instruct the order allocation unit 302 to allocate the order to other virtual resource service providers.

[0156] Optionally, the above system further includes: an order allocation unit 303.

[0157] The order allocation unit 303 is to determine the second virtual resource order quantity corresponding to any target service provider based on the order allocation weight corresponding to the at least one target service provider and the total order quantity of virtual resources when the order allocation unit determines at least one target service provider; the second virtual resource order quantity is used to indicate the virtual resource order quantity allocated to the corresponding target service provider.

[0158] As a possible implementation manner, the order allocation unit 303 may allocate the total order quantity of virtual resources to multiple target service providers for execution according to the instruction of the order distribution unit 302 .

[0159] Optionally, the above system further includes: a service provider entry unit 304.

[0160] The service provider registration unit 304 is configured to respond to the service request of the virtual service provider and verify the identity of the virtual service provider according to the identity certificate carried in the service request.

[0161] The service provider registration unit 304 is further configured to provide a virtual order allocation service to the virtual resource service provider after the identity of the virtual service provider is verified.

[0162] As a possible implementation, the business order platform disclosed herein is an open service platform that allows virtual resource service providers of various virtual industries to register. The registration process may be as follows: the virtual resource service provider logs in to the service provider registration unit 304 and submits a service request, which may include the virtual resource service provider's business license, representative ID card, etc.

[0163] The administrators on the platform side can review the relevant information provided by the virtual resource service provider through the platform background. After the review is passed, the corresponding configuration background can be assigned to it, so that the virtual resource service provider can configure its own virtual resource product information according to the configuration background.

[0164] Optionally, the above system further includes: a background configuration unit 305.

[0165] The background configuration unit 305 is used to provide virtual business configuration services for the target virtual resource service provider after the service provider's identity proof is verified by the service provider's resident unit; the virtual business configuration service includes configuring the target virtual resource service provider's business, the business page corresponding to the business, and the business execution link of the business; the target virtual resource service provider is a virtual resource service provider that has passed the identity verification.

[0166] As a possible implementation, the backend configuration unit 305 can be a configuration backend provided by the business order platform for the virtual resource service provider. Through the backend configuration unit 305, the virtual resource service provider can obtain corresponding business pages, business execution links, and other information. The backend configuration unit 305 can configure relevant information through dynamic forms.

[0167] The virtual resource processing system provided by the present disclosure can provide a business order platform for virtual resource service providers in various virtual industries, thereby avoiding the need to build corresponding business order platforms for different virtual industries and reducing the workload of system construction. Based on the virtual resource processing system, virtual resource service providers of the entire virtual industry can be integrated, and then the entire virtual industry can respond to a large number of virtual resource orders, which is suitable for high-traffic orders in e-commerce live broadcasts. At the same time, since virtual resource service providers with better service quality can be identified from virtual resource service providers and provided with services, the user experience is improved.

[0168] The above only briefly describes the functions of the virtual resource processing system. Its specific construction process is a commonly used technical means in this field and will not be repeated here.

[0169] Figure 10 Schematic diagram of the structure of an electronic device 40 provided by the present disclosure. Figure 10 The electronic device 40 may include at least one processor 401 and a memory 403 for storing instructions executable by the processor 401. The processor 401 is configured to execute the instructions in the memory 403 to implement the virtual resource processing method in the above embodiment. As an example, in combination with Figure 8 The functions implemented by the service provider determination unit 201, the instruction sending unit 202, the initialization unit 203, the weight determination unit 204 and the updating unit 205 in the virtual resource processing device are similar to those implemented by the service provider determination unit 201, the instruction sending unit 202, the initialization unit 203, the weight determination unit 204 and the updating unit 205 in the virtual resource processing device. Figure 10 The function of the processor 401 in is the same.

[0170] In addition, the electronic device 40 may further include a communication bus 402 and at least one communication interface 404 .

[0171] The processor 401 may be a GPU, a microprocessing unit, an ASIC, or one or more integrated circuits for controlling the execution of the program of the disclosed solution.

[0172] The communication bus 402 may include a pathway for transmitting information between the aforementioned components.

[0173] The communication interface 404 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0174] The memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processing unit via a bus. The memory may also be integrated with the processing unit and be a volatile storage medium in the GPU.

[0175] The memory 403 is used to store instructions for executing the solution of the present disclosure, and the execution is controlled by the processor 401. The processor 401 is used to execute the instructions stored in the memory 403, thereby realizing the functions of the method of the present disclosure.

[0176] In a specific implementation, as an embodiment, the processor 401 may include one or more GPUs, such as Figure 10 GPU0 and GPU1 in .

[0177] In a specific implementation, as an embodiment, the electronic device 40 may include multiple processors, such as Figure 10 4 and 5. The processors 401 and 407 are shown in FIG. Each of these processors may be a single-CPU processor or a multi-GPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0178] In a specific implementation, as an embodiment, the electronic device 40 may further include an output device 405 and an input device 406. The output device 405 communicates with the processor 401 and can display information in a variety of ways. For example, the output device 405 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 406 communicates with the processor 401 and can receive user input in a variety of ways. For example, the input device 406 can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0179] Those skilled in the art will understand that Figure 10 The structure shown in the figure does not constitute a limitation on the electronic device 40, and the electronic device 40 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0180] In addition, the present disclosure also provides a computer-readable storage medium, which includes instructions. When the instructions are executed by a processor of an electronic device, the electronic device executes the virtual resource processing method provided in the above embodiment.

[0181] In addition, the present disclosure also provides a computer program product, which includes instructions. When the instructions are executed on a processor of an electronic device, the electronic device executes the virtual resource processing method provided in the above embodiment.

[0182] Other embodiments of the present disclosure will readily occur to those skilled in the art 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 not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0183] 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 can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A virtual resource processing method, characterized in that: include: In response to virtual resource requests from multiple accounts, determining at least one first service provider corresponding to the virtual resource type from the multiple virtual resource service providers according to the virtual resource type carried in the virtual resource requests; determining at least one second service provider according to the total order volume of the virtual resources and the inventory information of the at least one first service provider; The total virtual resource order quantity is the sum of the first virtual resource order quantities in all the virtual resource requests; determining the at least one target service provider according to the allocation weight corresponding to the at least one second service provider; A corresponding virtual resource distribution instruction is sent to the at least one target service provider, so that the at least one target service provider provides virtual resources to the multiple accounts.

2. The virtual resource processing method according to claim 1, characterized in that: The determining the at least one target service provider according to the allocation weight corresponding to the at least one second service provider includes: The at least one second service provider whose allocation weight is greater than or equal to a first threshold is determined as the at least one target service provider.

3. The virtual resource processing method according to claim 2, characterized in that: The step of determining, among the at least one second service provider, a second service provider whose allocation weight is greater than or equal to a first threshold as the at least one target service provider includes: In a case where the total order volume of virtual resources requested by the multiple accounts is less than or equal to a second threshold, determining the second service provider corresponding to the largest allocation weight as the target service provider; the largest allocation weight is greater than the first threshold; When the total order quantity of virtual resources requested by the multiple accounts is greater than the second threshold, the second service provider whose allocation weight is greater than a third threshold is determined as the target service provider; the third threshold is greater than the first threshold.

4. The virtual resource processing method according to claim 3, characterized in that: In a case where the time during which the allocation weight corresponding to the second service provider is less than the first threshold is greater than a fourth threshold, the allocation weight corresponding to the second service provider is initialized to a preset value.

5. The virtual resource processing method according to claim 1, wherein: The virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any one of the target service providers and a total virtual resource order quantity.

6. The virtual resource processing method according to claim 4 or 5, characterized in that: Before responding to the virtual resource request of the target account, the method further includes: The allocation weights corresponding to the multiple virtual resource service providers are determined according to the inventory information and service quality indicators of the multiple virtual resource service providers; the service quality indicators include transaction success rate and transaction delay.

7. The virtual resource processing method according to claim 6, characterized in that: After the at least one target service provider provides virtual resources to the multiple accounts, the method further includes: Updating the inventory information of the target service provider and the service quality indicators of the target service provider; The allocation weight of the target service provider is updated according to the updated inventory information and service quality index of the target service provider.

8. A virtual resource processing device, characterized in that: include: a service provider determination unit configured to, in response to virtual resource requests from multiple accounts, determine, based on the virtual resource types carried in the virtual resource requests, at least one first service provider corresponding to the virtual resource type from the multiple virtual resource service providers; the service provider determination unit further configured to determine at least one second service provider based on the total virtual resource order volume and inventory information of the at least one first service provider; The total virtual resource order quantity is the sum of the first virtual resource order quantities in all the virtual resource requests; The instruction sending unit is configured to send a corresponding virtual resource distribution instruction to the at least one target service provider determined by the service provider determining unit, so that the at least one target service provider provides virtual resources to the multiple accounts.

9. The virtual resource processing device according to claim 8, characterized in that: The service provider determination unit is further specifically configured to: The at least one second service provider whose allocation weight is greater than or equal to a first threshold is determined as the at least one target service provider.

10. The virtual resource processing device according to claim 9, wherein: The service provider determination unit is further specifically configured to: When the total order quantity of virtual resources requested by the multiple accounts is less than or equal to a second threshold, determining the second service provider corresponding to the largest allocation weight as the target service provider; When the total order volume of virtual resources requested by the multiple accounts is greater than the second threshold, determining the second service provider whose allocation weight is greater than a third threshold as the target service provider; The third threshold is greater than the first threshold.

11. The virtual resource processing device according to claim 10, wherein: The device further comprises an initialization unit; The initialization unit is configured to initialize the allocation weight corresponding to the second service provider to a preset value when the time during which the allocation weight corresponding to the second service provider is less than the first threshold is greater than a fourth threshold.

12. The virtual resource processing device according to claim 8, wherein: The virtual resource distribution instruction includes a second virtual resource order quantity, and the second virtual resource order quantity is related to an order allocation weight corresponding to any one of the target service providers and a total virtual resource order quantity.

13. The virtual resource processing device according to claim 11 or 12, characterized in that: The device further includes a weight determination unit; The weight determination unit is used to determine the allocation weights corresponding to the multiple virtual resource service providers according to the service quality indicators of the multiple virtual resource service providers before responding to the virtual resource request of the target account; the service quality indicators include transaction success rate and transaction delay.

14. The virtual resource processing device according to claim 13, wherein: The apparatus further comprises an updating unit; The updating unit is configured to update the inventory information of the target service provider and the service quality indicator of the target service provider after the at least one target service provider provides virtual resources to the multiple accounts; The allocation weight of the target service provider is updated according to the updated inventory information and service quality index of the target service provider.

15. A virtual resource processing system, characterized in that: include: order allocation unit and business monitoring unit; The business monitoring unit is used to determine the inventory information and service quality indicators of each virtual resource service provider; The business monitoring unit is further configured to determine the allocation weight of each virtual resource service provider based on the inventory information and the service quality index; The order allocation unit is configured to respond to virtual resource requests from multiple accounts and determine, according to the virtual resource type carried in the virtual resource request, at least one first service provider corresponding to the virtual resource type from the multiple virtual resource service providers; Determining at least one second service provider based on the total virtual resource order volume and the inventory information of the at least one first service provider; the total virtual resource order volume is the sum of the first virtual resource order volumes in all the virtual resource requests; The order allocation unit is further configured to send a corresponding virtual resource distribution instruction to the at least one target service provider, so that the at least one target service provider provides virtual resources to the multiple accounts.

16. The virtual resource processing system according to claim 15, wherein: The system further comprises: an order allocation unit; The order allocation unit is configured to determine the second virtual resource order quantity corresponding to any one of the target service providers based on the order allocation weight corresponding to the at least one target service provider and the total order quantity of virtual resources when the order allocation unit determines the at least one target service provider; the second virtual resource order quantity is used to indicate the virtual resource order quantity allocated to the corresponding target service provider.

17. The virtual resource processing system according to claim 16, wherein: The system further comprises: a service provider settlement unit; The service provider registration unit is configured to respond to the service request of the virtual service provider and verify the identity of the virtual service provider according to the identity certificate carried in the service request; The service provider settlement unit is further configured to provide a virtual order allocation service for the virtual resource service provider after the identity of the virtual service provider is verified.

18. The virtual resource processing system according to claim 17, wherein: The system further comprises: a background configuration unit; The background configuration unit is used to provide virtual business configuration services for the target virtual resource service provider after the service provider on-site unit verifies the identity of the virtual resource service provider; the virtual business configuration service includes configuring the business of the target virtual resource service provider, the business page corresponding to the business, and the business execution link of the business; the target virtual resource service provider is the virtual resource service provider that has passed the identity verification.

19. An electronic device, 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 virtual resource processing method according to any one of claims 1 to 7.

20. A computer-readable storage medium, characterized in that The computer-readable storage medium includes instructions; when the instructions are executed by a processor of an electronic device, the electronic device executes the virtual resource processing method according to any one of claims 1 to 7.

21. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed on a processor of an electronic device, the electronic device executes the virtual resource processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Order allocation method and device, computer equipment and storage medium

    CN112330341A

  • Order scheduling method, electronic equipment and storage medium

    CN112381629A

  • Virtual item distribution method, device and equipment, readable storage medium and program product

    CN117196773A