Method, apparatus, and storage medium for sending virtual resource

CN117135221BActive Publication Date: 2026-10-30BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210540110.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2026-10-30
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

[0004]然而,在上述这种虚拟资源转移的获取方法中,如果大量的终端设备同时向服务器请求虚拟资源,那么服务器向终端设备发送的大量虚拟资源会占用的过多带宽的问题

Benefits of technology

[0029]根据本公开实施例的第五方面,提供一种计算机程序产品,包括计算机指令,计算机指令被处理器执行时实现上述第一方面任一种可选地实现方式中所述的虚拟资源的发送方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117135221B_ABST
    Figure CN117135221B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a virtual resource sending method and device, electronic equipment and storage medium, and relates to the technical field of computers. The method comprises: after receiving a resource acquisition request, obtaining a first time range; when the time of the resource acquisition request is within the first time range, sending a number of virtual resources corresponding to the account type to the target user account according to the account type corresponding to the target user account. In this way, when the first time range is the time period in which the peak value of the received quantity of resource acquisition requests is located, the first time range can represent a peak time period, different numbers of virtual resources are sent to user accounts of different types in the peak time period, thereby reducing the bandwidth occupied by the user accounts in the peak time period to acquire virtual resources, also reducing the bandwidth occupied by the server to send virtual resources to the user accounts in the peak time period, and also reducing the broadband fee, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for sending virtual resources. Background Technology

[0002] In related technologies, a virtual resource page is displayed on the live streaming page of a content community application. This virtual resource page showcases virtual resources with different content or dynamic effects. User accounts can browse these virtual resources on the virtual resource page and transfer them to the streamer's account.

[0003] To encourage users to transfer more virtual resources, these resources need to be updated frequently. To ensure that users can see the updated content in a timely manner, when a user opens the content community application, the terminal device with the application installed will download the virtual resource material package from the server.

[0004] However, in the above-mentioned method of acquiring virtual resources, if a large number of terminal devices simultaneously request virtual resources from the server, the server will consume too much bandwidth by sending a large number of virtual resources to the terminal devices. Summary of the Invention

[0005] This disclosure provides a method, apparatus, electronic device, and storage medium for sending virtual resources, to at least solve the problem of excessive bandwidth usage when acquiring virtual resources in related technologies.

[0006] The technical solution disclosed herein is as follows:

[0007] According to a first aspect of the present disclosure, a method for sending virtual resources is provided, comprising: after receiving a resource acquisition request, acquiring a first time range; the resource acquisition request is used to indicate that a target user account requests to acquire virtual resources for transfer to other user accounts; the first time range is used to indicate the time period in which the peak of the number of resource acquisition requests received occurs; when the time of sending the resource acquisition request is within the first time range, sending a number of virtual resources corresponding to the account type to the target user account according to the account type corresponding to the target user account.

[0008] Optionally, before the above-mentioned "after receiving the resource acquisition request, acquire the first time range", the method further includes: acquiring the bandwidth data of the virtual resources acquired by each user account among multiple user accounts within a first preset time period, and the time information corresponding to the bandwidth data; each bandwidth data corresponds to a time information; determining the first time range based on the bandwidth data and the time information; the first time range includes the time range in which the bandwidth occupied by multiple user accounts for acquiring virtual resources is greater than or equal to the preset bandwidth.

[0009] Optionally, the above-mentioned "sending a number of virtual resources corresponding to the account type to the target user account" includes: sending a first number of virtual resources to the target user account when the account type is a broadcaster account; sending a first number of virtual resources to the target user account when the account type is a first-type non-broadcaster account; and sending a second number of virtual resources to the target user account when the account type is a second-type non-broadcaster account; the second number is less than the first number.

[0010] Optionally, the above-mentioned "sending a second number of virtual resources to the target user account when the account type is a second type of non-broadcast account" includes: when the account type is a second type of non-broadcast account, sending a second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is greater than or equal to a preset resolution; and sending a compressed second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is less than the preset resolution.

[0011] Optionally, the above method further includes: when the account type is a non-broadcaster account, obtaining the total amount of virtual incentive resources corresponding to the virtual resources transferred by the target user account to other user accounts within a second preset time period; when the total amount of virtual incentive resources is less than the preset incentive resource amount, determining that the account type is a second type of non-broadcaster account; when the total amount of virtual incentive resources is greater than or equal to the preset incentive resource amount, determining that the account type is a first type of non-broadcaster account.

[0012] Optionally, the above-mentioned "sending a second number of virtual resources to the target user account when the account type is a second type non-broadcaster account" includes: when the account type is a second type non-broadcaster account, filtering the first number of virtual resources to obtain a second number of virtual resources; and sending the second number of virtual resources to the target user account.

[0013] Optionally, the above-mentioned "sending a second number of virtual resources to the target user account when the account type is a second type of non-broadcaster account" includes: when the account type is a second type of non-broadcaster account, extracting a preset number of virtual resources from the first number of virtual resources to obtain a second number of virtual resources; and sending the second number of virtual resources to the target user account.

[0014] Optionally, the above-mentioned "intercepting a preset number of virtual resources to obtain the second number of virtual resources" further includes: inserting a preset number of virtual resources into the intercepted preset number of virtual resources to obtain the second number of virtual resources.

[0015] Optionally, the above method further includes: when the time of sending the resource acquisition request is within a second time range, sending a first number of virtual resources to the target user account; the second time range includes the time range during which the bandwidth occupied by multiple user accounts acquiring virtual resources is less than a preset bandwidth.

[0016] Optionally, before the above-mentioned "after receiving the resource acquisition request, obtain the first time range", the method further includes: obtaining the transfer quantity of each type of virtual resource within a third preset time period; sorting the virtual resources according to the transfer quantity from largest to smallest to obtain the first quantity of virtual resources.

[0017] According to a second aspect of the present disclosure, a virtual resource sending apparatus is provided, including a time range acquisition unit and a resource sending unit; the time range acquisition unit is configured to acquire a first time range after receiving a resource acquisition request; the resource acquisition request is used to indicate that a target user account requests to acquire virtual resources for transfer to other user accounts; the first time range is used to indicate the time period in which the peak of the received amount of the resource acquisition request occurs; the resource sending unit is configured to send a quantity of virtual resources corresponding to the account type of the target user account to the target user account when the time of sending the resource acquisition request is within the first time range.

[0018] Optionally, the aforementioned virtual resource sending device further includes a time range determining unit; the time range determining unit is used to: obtain bandwidth data of virtual resources obtained by each user account among multiple user accounts within a first preset time period, and time information corresponding to the bandwidth data; each bandwidth data corresponds to a time information; determine a first time range based on the bandwidth data and the time information; the first time range includes the time range in which the bandwidth occupied by multiple user accounts for obtaining virtual resources is greater than or equal to the preset bandwidth.

[0019] Optionally, the resource sending unit is further specifically used to: send a first number of virtual resources to the target user account when the account type is a broadcaster account; send a first number of virtual resources to the target user account when the account type is a first type of non-broadcaster account; and send a second number of virtual resources to the target user account when the account type is a second type of non-broadcaster account; the second number is less than the first number.

[0020] Optionally, the resource sending unit is also specifically used for: when the account type is a second type of non-broadcast account, sending a second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution; and sending a compressed second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is less than the preset resolution.

[0021] Optionally, the resource sending unit is also specifically used to: when the account type is a non-broadcaster account, obtain the total amount of virtual incentive resources corresponding to the virtual resources transferred by the target user account to other user accounts within a second preset time period; when the total amount of virtual incentive resources is less than the preset incentive resource amount, determine that the account type is a second type of non-broadcaster account; when the total amount of virtual incentive resources is greater than or equal to the preset incentive resource amount, determine that the account type is a first type of non-broadcaster account.

[0022] Optionally, the resource sending unit is also specifically used for: when the account type is a second type of non-broadcaster account, filtering the first number of virtual resources to obtain a second number of virtual resources; and sending the second number of virtual resources to the target user account.

[0023] Optionally, the resource sending unit is also specifically used for: when the account type is a second type of non-broadcaster account, to extract a preset number of virtual resources from the first number of virtual resources to obtain a second number of virtual resources; and to send the second number of virtual resources to the target user account.

[0024] Optionally, the resource sending unit is further specifically used to: insert a preset number of virtual resources into the intercepted preset number of virtual resources to obtain a second number of virtual resources.

[0025] Optionally, the resource sending unit is further specifically used to: send a first number of virtual resources to the target user account when the time of sending the resource acquisition request is within a second time range; the second time range includes the time range during which the bandwidth occupied by multiple user accounts to acquire virtual resources is less than a preset bandwidth.

[0026] Optionally, the aforementioned virtual resource sending device further includes a resource acquisition unit; the resource acquisition unit is used to: acquire the transfer quantity of each type of virtual resource within a third preset time period; sort the virtual resources according to the transfer quantity from largest to smallest, and obtain a first quantity of virtual resources.

[0027] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the virtual resource transmission method described in any optional implementation of the first aspect.

[0028] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the virtual resource transmission method described in any optional implementation of the first aspect.

[0029] According to a fifth aspect of the present disclosure, a computer program product is provided, including computer instructions that, when executed by a processor, implement the virtual resource sending method described in any optional implementation of the first aspect.

[0030] The technical solutions provided by the embodiments of this disclosure bring at least the following beneficial effects: When the first time range is the time period in which the peak of the number of resource acquisition requests is received, the first time range can represent the peak time period. If the time when the resource acquisition request is sent is within the first time range, the server can acquire different amounts of virtual resources for different types of user accounts on the terminal device. In this way, different amounts of virtual resources can be sent to different types of user accounts during the peak time period, thereby reducing the bandwidth occupied by user accounts acquiring virtual resources during the peak time period, and also reducing the bandwidth occupied by the server sending virtual resources to user accounts during the peak time period. At the same time, it can also reduce broadband costs, etc.

[0031] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0033] Figure 1 This is a schematic diagram illustrating the structure of a virtual resource transfer system according to an exemplary embodiment of the present disclosure;

[0034] Figure 2 This is a flowchart illustrating a method for sending virtual resources according to an exemplary embodiment of the present disclosure;

[0035] Figure 3 This is a schematic diagram illustrating the interaction between a server and a terminal device according to an exemplary embodiment of the present disclosure;

[0036] Figure 4 This is a schematic diagram illustrating another interaction between a server and a terminal device according to an exemplary embodiment of the present disclosure;

[0037] Figure 5 This is a flowchart illustrating yet another method for sending virtual resources according to an exemplary embodiment of the present disclosure;

[0038] Figure 6 This is a schematic diagram illustrating a virtual resource page according to an exemplary embodiment of the present disclosure;

[0039] Figure 7This is a flowchart illustrating yet another method for sending virtual resources according to an exemplary embodiment of the present disclosure;

[0040] Figure 8 This is a flowchart illustrating yet another method for sending virtual resources according to an exemplary embodiment of the present disclosure;

[0041] Figure 9 This is a flowchart illustrating yet another method for sending virtual resources according to an exemplary embodiment of the present disclosure;

[0042] Figure 10 This is a schematic diagram illustrating another interaction between a server and a terminal device according to an exemplary embodiment of the present disclosure;

[0043] Figure 11 This is a schematic diagram of the structure of a virtual resource sending device according to an exemplary embodiment of the present disclosure;

[0044] Figure 12 This is a schematic diagram of the structure of a server according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0045] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0046] It should be noted that, in the embodiments of this disclosure, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this disclosure should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

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

[0048] In this disclosure, "at least one" means one or more. "More than one" means two or more.

[0049] It should also be understood that the term "comprising" indicates the presence of the described feature, whole, step, operation, element and / or component, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements and / or components.

[0050] The method for sending virtual resources provided in this disclosure can be applied to a virtual resource transfer system. Figure 1 This is a schematic diagram illustrating the structure of a virtual resource transfer system according to an exemplary embodiment of this disclosure. Figure 1 As shown, the virtual resource transfer system includes at least one terminal device 100 and at least one server 110. The terminal device 100 is connected to the server 110. The terminal device 100 communicates with the server 110 via wired or wireless communication. The terminal device 100 can also be used to interact with the server 110 for data exchange.

[0051] Terminal device 100 can be any computer device, including but not limited to mobile phones, tablets, desktop computers, laptops, in-vehicle terminals, handheld terminals, augmented reality (AR) devices, virtual reality (VR) devices, and other devices that can install and use content community applications (such as Kuaishou). This disclosure does not impose any special limitations on the specific form of terminal device 100. It can interact with user accounts through one or more methods such as a keyboard, touchpad, touchscreen, remote control, voice interaction, or handwriting devices.

[0052] Server 110 can be a single server, a server cluster consisting of multiple servers, or a cloud computing service center; this embodiment does not limit the specific implementation. Server 110 sends virtual resources to the terminal device 100 corresponding to the target application.

[0053] It is understood that the terminal device 100 and the server 110 may be set up independently or integrated into one device, and this disclosure does not limit this.

[0054] In the following embodiments provided in this disclosure, the terminal device 100 and the server 110 are described as being set up independently of each other.

[0055] In practical applications, the method for sending virtual resources provided in this disclosure can be applied to electronic devices, which may be terminal devices or servers.

[0056] In related technologies, a virtual resource page is displayed on the live streaming page of a content community application. This virtual resource page showcases virtual resources with different content or dynamic effects. User accounts can browse these virtual resources on the virtual resource page and transfer them to the streamer's account.

[0057] To encourage users to transfer more virtual resources, these resources need to be updated frequently. To ensure that users can see the updated content in a timely manner, when a user opens the content community application, the terminal device 100 with the application installed will download or obtain the virtual resource material package from the server 110.

[0058] Currently, server 110 needs to rely on a third-party Content Delivery Network (CDN) to distribute virtual resources to terminal device 100. If a large number of terminal devices 100 simultaneously download or obtain virtual resource packages from server 110, then server 110 distributing virtual resources to a large number of terminal devices 100 will consume too much bandwidth in the CDN, resulting in high bandwidth costs.

[0059] To avoid the problem of excessive bandwidth consumption that current virtual resource transfer methods tend to cause, this disclosure provides a method for sending virtual resources. The following description, with reference to the accompanying drawings, takes the application of the virtual resource sending method to a server as an example to illustrate the method for sending virtual resources provided in this disclosure.

[0060] Figure 2 This is a flowchart illustrating a method for sending virtual resources according to an exemplary embodiment of this disclosure, which can be applied to server 110. For example... Figure 2 As shown, the method for sending virtual resources provided in this embodiment may include the following steps S101-S102.

[0061] S101. Upon receiving a resource acquisition request, obtain the first time range.

[0062] The resource acquisition request indicates that the target user account's terminal device is requesting virtual resources to be transferred to another user account. Typically, the target user account is logged into the target application on the terminal device. Understandably, the terminal device sends this resource acquisition request to the server when it launches the target application.

[0063] Virtual resources can refer to virtual items, virtual gifts, etc., within the target application. Specifically, the virtual resources requested by the terminal device from the server can be images, dynamic effect data, or other material information corresponding to the virtual resources. After obtaining the virtual resources, the terminal device will display them on the target application's virtual resources page. The target user account can select one or more virtual resources to transfer to other user accounts.

[0064] Virtual resources are updated or added based on the user account needs of the target application. These updated or added virtual resources are pre-configured on the server by the target application's administrator. Since virtual resource updates or additions are unpredictable, to ensure that user accounts can promptly view these updates or additions on the target application, the terminal device sends a resource retrieval request to the server every time the user account launches the target application. In other words, the terminal device sends a resource retrieval request every time the target application is launched.

[0065] In this embodiment of the disclosure, the first time range can represent the time period in which the peak number of resource acquisition requests received on the server occurs, i.e., the peak time period. Since the server sends the corresponding virtual resources to the terminal device of the user account that initiated the resource acquisition request after receiving it, the first time range can also represent the peak time period when the user account acquires virtual resources. Furthermore, when the terminal device sends a resource acquisition request to the server, the user account on the terminal device has usually already started using the target application; therefore, the first time range can also represent the peak time period when the user account uses the target application on the terminal device.

[0066] For example, the first time range is 12:00-14:00, 18:00-21:00 every day, etc. Alternatively, the first time range can also be a preset time period, such as holidays or New Year's Eve. This disclosure does not limit the specific time corresponding to the first time range. Obtaining the first time range by the server is beneficial for determining how to formulate virtual resource delivery strategies when user accounts use the target application during peak periods in subsequent steps.

[0067] S102. When the resource acquisition request is sent within the first time range, send the number of virtual resources corresponding to the account type to the target user account.

[0068] It is understandable that since the terminal device sends a resource acquisition request every time the target application is launched, the time when the resource acquisition request is sent can be regarded as the time when the target application is launched.

[0069] When the target application starts, the terminal device will also send some other requests to the server to support the startup of the target application. Furthermore, in some embodiments, before obtaining the first time range, the server may also receive application requests sent by the terminal device where the target user account is located when the target application starts. The application requests include target application startup requests and resource acquisition requests.

[0070] Since the application request includes a target application startup request and a resource acquisition request, it can be assumed that the terminal device corresponding to the target user account sends a resource acquisition request to the server at the same time as the target application starts, thereby enabling the terminal device to acquire virtual resources in a timely manner when the target application starts. This can also be regarded as the target user account on the terminal device acquiring virtual resources.

[0071] The target user account type may include, but is not limited to, broadcaster accounts and non-broadcaster accounts; and non-broadcaster accounts may further include type I non-broadcaster accounts and type II non-broadcaster accounts. The type I non-broadcaster accounts and type II non-broadcaster accounts can be determined based on the total amount of virtual incentive resources transferred by non-broadcaster accounts to other user accounts within a second preset time period.

[0072] In this embodiment of the disclosure, since the target user account usually uses a specific terminal device to perform operations such as transferring virtual resources, the operation of sending virtual resources to the target user account in this embodiment of the disclosure can also be regarded as the operation of sending virtual resources to the terminal device corresponding to the target user account.

[0073] The technical solution provided by the above embodiments can bring at least the following beneficial effects: When the first time range is the time period in which the peak of the resource acquisition request reception occurs, the first time range can represent the peak time period. If the time when the resource acquisition request is sent is within the first time range, the server can acquire different amounts of virtual resources for different types of user accounts on the terminal device. In this way, different amounts of virtual resources can be sent to different types of user accounts during the peak time period, thereby reducing the bandwidth occupied by user accounts acquiring virtual resources during the peak time period, and also reducing the bandwidth occupied by the server sending virtual resources to user accounts during the peak time period. At the same time, it can also reduce broadband costs, etc.

[0074] Account types can include broadcaster accounts and non-broadcaster accounts. Non-broadcaster accounts can also include multiple different types. In some embodiments, the server can distribute more virtual resources to the terminal devices where broadcaster accounts are located, and less virtual resources to the terminal devices where non-broadcaster accounts are located. In other embodiments, if non-broadcaster accounts also include multiple types, the server can distribute different amounts of virtual resources to the terminal devices where different types of non-broadcaster accounts are located.

[0075] Exemplary, in one embodiment, such as Figure 3 As shown, the method of sending a number of virtual resources corresponding to the account type of the target user account can also specifically include the following steps S201-S203.

[0076] S201. If the account type is a broadcaster account, send the first quantity of virtual resources to the target user account.

[0077] If the target user account is a streamer account, the streamer account needs to monitor the transfer of virtual resources to its own account in real time during the live stream in order to interact with some non-streamer accounts or other streamer accounts. To ensure that the streamer account can stream and interact smoothly, in this embodiment of the disclosure, if the streamer account requests virtual resources from the server during peak hours, the server can issue a first quantity of virtual resources to that streamer account.

[0078] For example, the first quantity could represent all virtual resources that have been configured and are available for use on the target application.

[0079] S202. If the account type is a first-class non-broadcaster account, send the first quantity of virtual resources to the target user account.

[0080] Unlike broadcaster accounts, non-broadcaster accounts only need to interact with one broadcaster account and do not need to see all virtual resources. However, some non-broadcaster accounts frequently transfer virtual resources to broadcaster accounts or prefer to transfer virtual resources to broadcaster accounts. In this embodiment, these non-broadcaster accounts are referred to as first-type non-broadcaster accounts. If the target user account is a first-type non-broadcaster account, in order to encourage them to transfer more virtual resources to broadcaster accounts, the server can distribute a first quantity of virtual resources to the first-type non-broadcaster accounts.

[0081] In this embodiment of the disclosure, the target user account can be further determined as either a first-type non-broadcast account or a second-type non-broadcast account based on the total amount of virtual incentive resources corresponding to the virtual resources transferred by the target user account (which belongs to the non-broadcast account type) to other user accounts within a second preset time period.

[0082] S203. If the account type is a second type of non-broadcaster account, send a second number of virtual resources to the target user account.

[0083] As discussed in step S202 above, the second type of non-broadcaster account may be user accounts that transfer relatively few virtual resources or dislike transferring virtual resources. It's understandable that even if these second-type non-broadcaster accounts view a large amount of virtual resources, it won't significantly impact their transfer behavior. Therefore, the server can distribute a smaller amount of virtual resources—the second quantity—to target user accounts whose account type is the second type of non-broadcaster account.

[0084] In steps S201-S203 above, the second quantity is less than the first quantity, which means that the virtual resources issued by the server to the second type of non-broadcast accounts are less than the virtual resources issued to the first type of non-broadcast accounts and / or broadcast accounts.

[0085] The technical solution provided by the above embodiments can bring at least the following beneficial effects: Account types can include broadcaster accounts, first-type non-broadcast accounts, and second-type non-broadcast accounts. The server can distribute a first quantity of virtual resources to broadcaster accounts and first-type non-broadcast accounts; while for second-type non-broadcast accounts, a second quantity of virtual resources can be distributed. Since the second quantity is less than the first quantity, during peak periods, the server can distribute different quantities of virtual resources to different types of user accounts on terminal devices. Distributing more virtual resources to key accounts such as broadcaster accounts and first-type non-broadcast accounts, and distributing fewer virtual resources to ordinary accounts such as second-type non-broadcast accounts, can reduce the bandwidth occupied by user accounts acquiring virtual resources during peak periods, and also reduce the bandwidth occupied by the server sending virtual resources to user accounts during peak periods, while also reducing broadband costs, etc.

[0086] In one embodiment, such as Figure 4 As shown, when the account type is a second type of non-broadcaster account, the method of sending a second number of virtual resources to the target user account may further include the following steps S301-S303.

[0087] S301. If the target user account is a type 2 non-broadcaster account, determine whether the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution.

[0088] The resolution of a terminal device indicates the number of pixels it can display. Generally, high-end terminal devices can display more pixels and therefore have higher resolutions; while low-end terminal devices can display fewer pixels and therefore have lower resolutions.

[0089] In this embodiment of the disclosure, considering that low-end terminal devices may have difficulty displaying high-resolution virtual resource images or dynamic effects, the server can determine the type of terminal device by comparing its resolution with a preset resolution in step S301 when the account type is a second-class non-broadcast account.

[0090] S302. When the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution, send a second number of virtual resources to the target user account.

[0091] If the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution, then the terminal device can be determined to be a high-end model. Because the terminal device has a relatively high resolution, the server can send a second, uncompressed number of virtual resources to the terminal device, thereby enabling the delivery of a second number of virtual resources to the target user account on that terminal device.

[0092] The virtual resources here can refer to the images, dynamic effect data, and other materials corresponding to each virtual resource.

[0093] S303. When the resolution of the terminal device corresponding to the target user account is less than the preset resolution, send the compressed second number of virtual resources to the target user account.

[0094] If the resolution of the terminal device corresponding to the target user account is less than the preset resolution, then the terminal device can be identified as a low-end model. Because the terminal device has a low resolution, in order to ensure that the terminal device can display the virtual resources correctly, the server can first compress the aforementioned second number of virtual resources, and then send the compressed second number of virtual resources to the terminal device, thereby achieving the sending of the compressed second number of virtual resources to the target user account on that terminal device.

[0095] The compressed virtual resources, including images and dynamic effect data, will have smaller file sizes, making them easier to display on lower-resolution devices.

[0096] The technical solutions provided in the above embodiments can bring at least the following beneficial effects: If the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution, the terminal device can be considered a high-end model. Such terminal devices can display content with relatively high resolution. Therefore, for such terminal devices, the server can directly send a second number of virtual resources to them without considering the resolution of the virtual resource materials. If the resolution of the terminal device corresponding to the target user account is less than the preset resolution, the terminal device can be considered a low-end model. Considering the lower resolution of such terminal devices, the server can send a compressed second number of virtual resources to them. It can be seen that by sending virtual resources of different formats to terminal devices with different resolutions in this disclosure, it can simultaneously ensure that terminal devices with different resolutions can normally display the images or dynamic effects corresponding to the second number of virtual resources.

[0097] In one embodiment, such as Figure 5 As shown, the above method may further include the following steps S401-S403.

[0098] S401. If the account type is a non-broadcaster account, obtain the total amount of virtual incentive resources corresponding to the virtual resources transferred from the target user account to other user accounts within the second preset time period.

[0099] The second preset duration can represent a period of time prior to the target user account's use of the target application, such as one month, 15 days, or one week. Other user accounts can refer to non-broadcaster accounts or broadcaster accounts other than the target user account.

[0100] Virtual incentive resources are used to represent the virtual assets, virtual currencies, etc., corresponding to virtual resources. Typically, one virtual resource corresponds to one virtual incentive resource amount, indicating how many virtual incentive resources a target user account needs to consume to transfer one virtual resource to another user account. For example, if virtual resource 1 corresponds to 200 virtual incentive resources, then if the target user account wants to transfer one virtual resource 1 to another user account, it will need to consume 200 virtual incentive resources; while if the target user account wants to transfer three virtual resources 1 to another user account, it will need to consume 600 virtual incentive resources.

[0101] Figure 6 This is a schematic diagram illustrating a virtual resource page according to an exemplary embodiment of the present disclosure. For example... Figure 6As shown, the virtual resource page 111 can be displayed in the lower half of the live streaming page, and many different virtual resources can be displayed on the virtual resource page 111. Therefore, a target user account may transfer more than one type of virtual resource within a second preset time period. In this embodiment, it is necessary to obtain the total amount of virtual incentive resources corresponding to one or more virtual resources transferred by the target user account to other user accounts within the second preset time period.

[0102] For example, if the second preset duration is one month, and the target user account transfers five types of virtual resources within that month: Virtual Resource 1, Virtual Resource 2, Virtual Resource 3, Virtual Resource 4, and Virtual Resource 5, with the transfer quantities of Virtual Resource 1 being 5, Virtual Resource 2 being 9, Virtual Resource 3 being 1, Virtual Resource 4 being 6, and Virtual Resource 5 being 10, and assuming that the virtual incentive resource amount corresponding to each type of virtual resource is the same, 500, then in step S401 above, obtaining the total amount of virtual incentive resources corresponding to the virtual resources transferred by the target user account to other user accounts within the second preset duration is equivalent to obtaining the total amount of virtual incentive resources corresponding to the five types of virtual resources transferred by the target user account to other user accounts within the previous month. Specifically, the total amount of virtual incentive resources is (5+9+1+6+10)×500=15500.

[0103] In this embodiment of the disclosure, it is also possible to determine whether a target user account is a high-consumption user based on the total amount of virtual incentive resources consumed by the target user account within the past second preset time period. Furthermore, the server can adopt different virtual resource delivery strategies for high-consumption user accounts and low-consumption user accounts respectively.

[0104] S402. If the total amount of virtual incentive resources is less than the preset amount of incentive resources, the account type is determined to be a second-class non-broadcaster account.

[0105] In this embodiment of the disclosure, the total amount of virtual incentive resources consumed by the target user account in the past second preset period can be compared with the preset incentive resource amount. If it is less than the preset incentive resource amount, it can be determined that the target user account has consumed relatively few virtual incentive resources or has not consumed any virtual incentive resources in the past second preset period. Thus, the target user account can be a low-consumption user account, that is, it belongs to the second type of non-broadcaster account.

[0106] Understandably, even if these low-consumption user accounts view a lot of virtual resources on the virtual resource page, it won't significantly affect their behavior of transferring virtual resources. Therefore, the server can provide fewer virtual resources to these types of user accounts.

[0107] S403. If the total amount of virtual incentive resources is greater than or equal to the preset amount of incentive resources, the account type is determined to be a Class I non-broadcaster account.

[0108] The technical solutions provided by the above embodiments can bring at least the following beneficial effects: In a target application, user accounts may need different amounts of virtual incentive resources to transfer different virtual resources. This disclosure can statistically analyze the total amount of virtual incentive resources corresponding to all virtual resources transferred by a user account within a second preset time period (e.g., one month), and then determine which type of non-broadcast account the user account is based on the total amount of virtual incentive resources. If the total amount of virtual resources is less than the preset incentive resource amount, then it can be considered that the user account does not frequently transfer virtual resources or does not transfer virtual resources at all. During peak periods, a smaller amount of second-order virtual resources can be allocated to such user accounts, thereby saving bandwidth occupied by the allocation of virtual resources. If the total amount of virtual incentive resources is greater than or equal to the preset incentive resource amount, then it can be considered that the target user account frequently transfers virtual resources and is a high-consumption user account. During peak periods, a larger amount of first-order virtual resources can be allocated to such user accounts, thereby encouraging the user account to transfer more virtual resources.

[0109] In some embodiments, the virtual resources provided by the server to the target user account, which is a low-consumption user account, can be filtered from a first number of virtual resources. The number of filtered virtual resources is a second number, which is less than the first number. Then, the second number of virtual resources is sent to the target user account. This filtering operation of the first number of virtual resources helps to delete some unqualified virtual resources and avoid these virtual resources consuming too much bandwidth.

[0110] In one embodiment, such as Figure 7 As shown, when the account type is a second type of non-broadcaster account, the method of sending a second number of virtual resources to the target user account may further include the following steps S501-S502.

[0111] S501. When the account type is a second type of non-broadcaster account, a preset number of virtual resources are extracted from the first number of virtual resources to obtain a second number of virtual resources.

[0112] In some embodiments, in step S501, the number of transfers of each type of virtual resource within a first preset time period can also be obtained. The virtual resources are then sorted from largest to smallest based on their transfer counts to generate a resource list. Expired and offline virtual resources are then deleted from the resource list to generate a deleted resource list. Finally, a preset number of virtual resources are extracted from the beginning of the deleted resource list to obtain a second number of virtual resources.

[0113] The first preset duration can represent a period of time before the target user account uses the target application, such as the previous day or two. Typically, the first preset duration is relatively short, thus ensuring the timeliness of virtual resource sorting.

[0114] In the above process, obtaining the number of transfers of each type of virtual resource within a first preset time period from the first number of virtual resources helps to more clearly and intuitively determine which virtual resource has a larger number of transfers and is more likely to be favored by user accounts.

[0115] When generating a resource list, for example, if the first quantity is 10, after obtaining the number of times each of the 10 virtual resources has been transferred within the first preset time period, these 10 virtual resources need to be sorted from largest to smallest according to their respective transfer quantities to generate a resource list.

[0116] Typically, when virtual resources are configured to a server by technical or administrative personnel, the virtual resources themselves include corresponding resource images, dynamic effects, and other materials. Furthermore, the technical or administrative personnel will also configure an online time and an offline time for each virtual resource. The online time indicates that the virtual resource can be distributed to the terminal device by the server on a specific day or at a specific time. The offline time indicates that the virtual resource will no longer be used on a specific day or at a specific time.

[0117] In the above process, in order to avoid the waste of bandwidth caused by the offline virtual resources being reassigned to the second type of non-broadcaster accounts, expired offline virtual resources can be deleted from the previously sorted resource list.

[0118] The aforementioned preset quantity can be set according to the actual needs of the user account or the business functions of the target application, and is not limited in this embodiment. Furthermore, since the virtual resources in the list are arranged sequentially according to the quantity being transferred, truncating from the beginning of the list allows for the extraction of a second number of virtual resources that are more favored by the user account. This ensures that the second number of virtual resources better meets the user account's needs while also preventing excessive bandwidth consumption during distribution.

[0119] S502, Send a second number of virtual resources to the target user account.

[0120] The technical solution provided by the above embodiments can bring at least the following beneficial effects: sorting, deleting and truncating the first number of virtual resources helps to eliminate images or dynamic data and other materials corresponding to virtual resources that are expired or have a low number of historical transfers, thus avoiding these materials from occupying too much bandwidth.

[0121] Additionally, during certain holidays or events, target applications may provide specific preset virtual resources to match the characteristics of the current period. Similarly, to match the live streaming content of certain broadcasters, target applications may also provide specific preset virtual resources. In such cases, if the aforementioned second type of non-broadcaster accounts use the target application during peak hours, even if the server distributes fewer virtual resources to these user accounts, these specific virtual resources must still be included among them, so that these user accounts can also experience these preset virtual resources.

[0122] Specifically, the server inserts a preset number of virtual resources into the preset number of virtual resources captured in the aforementioned embodiment, and then obtains a second number of virtual resources. The server then distributes these virtual resources to the target user account.

[0123] As can be seen, preset virtual resources can be virtual resources that match the current period or the current live broadcast content. Inserting these virtual resources into the extracted resource list and then distributing them to the target user account by the server ensures that the terminal device corresponding to the target user account can access more comprehensive virtual resources. Furthermore, if the target user account is not a broadcaster account, then non-broadcaster accounts can also experience these preset virtual resources.

[0124] In one embodiment, such as Figure 8 As shown, before obtaining the first time range method after receiving the resource acquisition request, the following steps S601-S602 may be included.

[0125] S601. Obtain the bandwidth data of virtual resources acquired by each user account among multiple user accounts within a first preset time period, as well as the time information corresponding to the bandwidth data. One bandwidth data point corresponds to one piece of time information.

[0126] As mentioned above, the first time range refers to the period during which the peak volume of resource acquisition requests occurs, i.e., the peak time period. However, the peak time period may change depending on the current period or certain events. For example, on weekdays, the peak time periods for user accounts to use the target application to transfer or acquire virtual resources may be 8-9 am, 12 pm-2 pm, 6 pm-8 pm, etc., while on weekends, the peak time periods for user accounts to use the target application to transfer or acquire virtual resources may be 10 am-12 pm, 6 pm-10 pm, etc.

[0127] To ensure that the peak time period of the current period is determined more accurately, in this embodiment of the disclosure, the peak time period of the current period can be determined based on the acquisition of virtual resources in the past first preset time period.

[0128] The virtual resource acquisition information refers to the bandwidth data used by the terminal device when acquiring virtual resources and the time information of acquiring virtual resources. For example, if the bandwidth data used by the terminal device to acquire virtual resources at 12:00 on the previous day is 500M (MByte), then it can be determined that the bandwidth data corresponding to the time information 12:00 is 500M.

[0129] It is worth noting that at the same time, many terminal devices may simultaneously obtain virtual resources from the server. Therefore, in step S601, the bandwidth data obtained refers to the total bandwidth data and time information of all terminal devices obtaining virtual resources in the aforementioned virtual resource transfer system.

[0130] S602. Determine the first time range based on bandwidth data and time information.

[0131] The first time range includes one or more time periods in which the bandwidth used by multiple user accounts to acquire virtual resources is greater than or equal to the preset bandwidth. For example, if the preset bandwidth is 400M, and the bandwidth used by a terminal device to acquire virtual resources at 12:00 noon, 1:00 pm, 1:00 pm, 1:00 pm, and 1:00 pm is 100M, it can be seen that the bandwidth used at 12:00, 1:00 pm, and 2:00 pm is greater than the preset bandwidth of 400M. Therefore, the time period from 12:00 pm to 2:00 pm can be defined as the first time range.

[0132] The technical solution provided by the above embodiments can bring at least the following beneficial effects: The first time range, i.e., the peak time period, needs to be determined by the bandwidth data and time information occupied by all virtual resources distributed by the server within a first preset time period (e.g., the previous day). The bandwidth data and time information can represent the amount of bandwidth used by the server to distribute virtual resources to all terminal devices using the target application at a certain moment. If the bandwidth is too large, it indicates that there are many terminal devices currently using the target application, and the current moment can be considered as the peak download time. When the bandwidth is continuously greater than or equal to the preset bandwidth, it can be determined that these bandwidths correspond to the peak download time period. The first time range here can be determined based on the bandwidth data and time information occupied within a first preset time period that is closer to the current time, which can more closely reflect the virtual resource download situation corresponding to the current time, thereby making the judgment on whether the current resource request time is within the first preset time period in the aforementioned embodiments more accurate.

[0133] After determining the first time range, in this embodiment of the disclosure, other time periods besides the first time range can be directly determined as the second time range, i.e., off-peak time periods. Alternatively, in this embodiment of the disclosure, the second time range can also be determined based on the aforementioned bandwidth data and time information. Furthermore, the second time range includes one or more time periods where the bandwidth occupied by multiple user accounts acquiring virtual resources is less than a preset bandwidth.

[0134] Subsequently, when the time of the resource acquisition request sent by the server falls within the second time range, the server no longer needs to determine the account type of the target user account and can directly issue the first quantity of virtual resources to the target user account.

[0135] As can be seen, the second time range is the off-peak period. Based on the bandwidth data and time information of all virtual resources distributed within the first preset time period (e.g., the previous day), the server can determine not only the first time range but also the second time range. Since fewer terminal devices are using the target application within the second time range, the first number of virtual resources can be uniformly sent to user accounts regardless of their account type. This ensures that all user accounts using the target application can see or transfer the same virtual resources within the second time range.

[0136] In one embodiment, such as Figure 9 As shown, before obtaining the first time range method after receiving the resource acquisition request, the method may specifically include the following steps S701-S702.

[0137] S701. Obtain the number of transfers of each type of virtual resource within a third preset time period.

[0138] The third preset duration can represent the length of time since the target application for displaying virtual resources was launched, such as 3 years, 5 years, 1 year, etc.

[0139] S702. Sort the virtual resources from largest to smallest according to the number of transfers, and obtain the first number of virtual resources.

[0140] The technical solution provided by the above embodiments can bring at least the following beneficial effects: The third preset duration can represent a period of time from the launch of the target application to the current moment. Obtaining the transfer count of each virtual resource within the third preset duration is beneficial for sorting the virtual resources. After these virtual resources are downloaded to the terminal device, the virtual resources can be displayed on the virtual resource page in the previously sorted order. In this way, the user account can more clearly see which virtual resources have been transferred more frequently, making it easier for the user account to select the virtual resources they want to transfer.

[0141] Based on the above-described method for obtaining virtual resources, Figure 10 This illustrates yet another type of interaction between a server and a terminal device. For example, such as... Figure 10 As shown, during the process of sending virtual resources, the live streaming API (Application Program Interface) that sends gift materials (i.e., virtual resources) to users (i.e., the target user account on the terminal device) is part of the server. The data storage structure that saves gift materials, peak and off-peak time configurations, and payment data is also part of the server.

[0142] like Figure 10 As shown, when a user requests the full amount of gifts from the live streaming API, the live streaming API reads the peak and off-peak time configurations (i.e., the first time range and the second time range) from the data storage structure, and returns the full amount of gift materials (i.e., the first amount of virtual resources mentioned above) to the user during off-peak periods (e.g., 0:00-11:00, 15:00-18:00).

[0143] During peak hours, the full amount of gift content is returned to the streamer. If, during peak hours, the user requesting the full amount of gift content is not a streamer, the live streaming API also needs to read the user's payment data (i.e., the total amount of virtual incentive resources transferred by the user within the previous second preset duration) from the data storage structure. This payment data is used to determine whether the non-streamer user is a high-paying user (i.e., a first-class non-streamer account). The live streaming API then returns the full amount of gift content to the high-paying user.

[0144] If, during peak hours, the user requesting the full set of gift materials is a low-paying ordinary user (i.e., a second type of user account), the live streaming API will continue to read the gift sorting from the data storage structure (i.e., the relevant information in step S501 above), sort the gifts according to the number of gifts sent yesterday (i.e., the relevant information in step S501 above), then filter out expired gifts (i.e., the relevant information in step S501 above), truncate the gift materials according to the maximum value N (N is a positive integer) (i.e., the relevant information in step S501 above), and then insert the event and the gifts that must be sent (i.e., insert the preset number of virtual resources into the preset number of virtual resources truncated in the above embodiment). Finally, the API will also classify the terminal device model used by the ordinary user. If it is a low-end model, the live streaming API will return a compressed gift list (i.e., the compressed second number of virtual resources mentioned above) to the ordinary user; if it is a high-end model, the live streaming API will return an uncompressed gift list (i.e., the second number of virtual resources mentioned above) to the ordinary user.

[0145] See Figure 10The server can also determine the interval information of peak and off-peak time periods by pulling yesterday's usage data from the CDN (i.e., the content in steps S601-S602 above), and save the peak and off-peak time periods in the data storage structure.

[0146] In addition, the server can also pre-sort the gifts by pulling the gift-giving statistics of the entire site (i.e., the content of steps S701-S702 above).

[0147] The foregoing primarily describes the solutions provided by the embodiments of this disclosure from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the method steps of the various examples described in conjunction with the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0148] Based on this understanding, this disclosure also provides a virtual resource sending device that can be applied to electronic devices. Figure 11 This is a schematic diagram illustrating the structure of a virtual resource sending device according to an exemplary embodiment of this disclosure. Figure 11 As shown, the device may include a time range acquisition unit 801 and a resource sending unit 802.

[0149] The time range acquisition unit 801 is used to acquire a first time range after receiving a resource acquisition request; the resource acquisition request indicates that a target user account requests to acquire virtual resources for transfer to other user accounts; the first time range indicates the time period in which the peak of the resource acquisition request reception occurs. For example, the time range acquisition unit 801 can be used to perform the above step S101.

[0150] The resource sending unit 802 is used to send a quantity of virtual resources corresponding to the account type of the target user account when the resource acquisition request is sent within a first time range. For example, the resource sending unit 802 can be used to perform the above step S102.

[0151] Optionally, the aforementioned virtual resource sending device further includes a time range determining unit; the time range determining unit is configured to: acquire bandwidth data of virtual resources acquired by each user account among multiple user accounts within a first preset time period, and time information corresponding to the bandwidth data; each bandwidth data corresponds to a time information; determine a first time range based on the bandwidth data and the time information; the first time range includes the time range during which the bandwidth occupied by multiple user accounts acquiring virtual resources is greater than or equal to the preset bandwidth. For example, the time range determining unit can be used to perform the above steps S601-S602.

[0152] Optionally, the resource sending unit 802 is further configured to: send a first quantity of virtual resources to the target user account when the account type is a broadcaster account; send a first quantity of virtual resources to the target user account when the account type is a first type of non-broadcaster account; and send a second quantity of virtual resources to the target user account when the account type is a second type of non-broadcaster account; the second quantity being less than the first quantity. For example, the resource acquisition unit 802 can be used to perform the above steps S201-S203.

[0153] Optionally, the resource sending unit 802 is further configured to: when the account type is a second type of non-broadcast account, send a second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is greater than or equal to a preset resolution; and send a compressed second number of virtual resources to the target user account when the resolution of the terminal device corresponding to the target user account is less than the preset resolution. For example, the resource sending unit 802 can be used to perform the above steps S301-S303.

[0154] Optionally, the resource sending unit 802 is further configured to: when the account type is a non-broadcaster account, obtain the total amount of virtual incentive resources corresponding to the virtual resources transferred by the target user account to other user accounts within a second preset time period; when the total amount of virtual incentive resources is less than the preset incentive resource amount, determine that the account type is a second type of non-broadcaster account; when the total amount of virtual incentive resources is greater than or equal to the preset incentive resource amount, determine that the account type is a first type of non-broadcaster account. For example, the resource sending unit 802 can be used to perform the above steps S401-S403.

[0155] Optionally, the resource sending unit 802 is further configured to: when the account type is a second type of non-broadcaster account, filter the first number of virtual resources to obtain a second number of virtual resources; and send the second number of virtual resources to the target user account. For example, the resource sending unit 802 can be used to perform the above steps S501-S502.

[0156] Optionally, the resource sending unit 802 is further configured to: when the account type is a second type of non-broadcaster account, extract a preset number of virtual resources from the first number of virtual resources to obtain a second number of virtual resources; and send the second number of virtual resources to the target user account.

[0157] Optionally, the resource sending unit 802 is further configured to: send a first number of virtual resources to the target user account when the time of sending the resource acquisition request is within a second time range; the second time range includes the time range during which the bandwidth occupied by multiple user accounts to acquire virtual resources is less than a preset bandwidth.

[0158] Optionally, the aforementioned virtual resource sending device further includes a resource acquisition unit; the resource acquisition unit is configured to: acquire the transfer quantity of each type of virtual resource within a third preset time period; sort the virtual resources according to the transfer quantity from largest to smallest, and obtain a first quantity of virtual resources. For example, the resource acquisition unit can be used to perform the above steps S701-S702.

[0159] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0160] Figure 12 This is a schematic diagram illustrating the structure of a server according to an exemplary embodiment of this disclosure. Figure 12 As shown, the server 110 may include at least one processor 1101 and a memory 1102 for storing executable instructions of the processor 1101. The processor 1101 is configured to execute the instructions in the memory 1102 to implement the virtual resource sending method described in the above embodiments.

[0161] In addition, server 110 may also include a communication bus 1103 and at least one communication interface 1104.

[0162] Processor 1101 may be a processor (central processing unit, CPU), microprocessor unit, ASIC, or one or more integrated circuits for controlling the execution of programs according to the present disclosure.

[0163] The communication bus 1103 may include a path for transmitting information between the aforementioned components.

[0164] Communication interface 1104 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0165] The memory 1102 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but 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.

[0166] The memory 1102 stores instructions for executing the present invention, and its execution is controlled by the processor 1101. The processor 1101 executes the instructions stored in the memory 1102 to implement the functions of the method disclosed herein.

[0167] As an example, combined Figure 11 The time range acquisition unit 801 and resource sending unit 802 in the virtual resource sending device perform the same functions as... Figure 12 The processor 1101 in it has the same function.

[0168] In a specific implementation, as one embodiment, the processor 1101 may include one or more CPUs, for example... Figure 12 CPU0 and CPU1 in the CPU.

[0169] In a specific implementation, as one example, server 110 may include multiple processors, for example... Figure 12 Processors 1101 and 1105 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0170] In a specific implementation, as one embodiment, server 110 may further include an output device 1106 and an input device 1107. Output device 1106 communicates with processor 1101 and can display information in various ways. For example, output device 1106 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. Input device 1107 communicates with processor 1101 and can accept user input in various ways. For example, input device 1107 may be a mouse, keyboard, touchscreen device, or sensing device, etc.

[0171] Those skilled in the art will understand that Figure 12 The structure shown does not constitute a limitation on server 110 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0172] Furthermore, this disclosure also provides a computer-readable storage medium including computer instructions. When the instructions in the computer-readable storage medium are executed by the processor of the aforementioned electronic device such as a server, the electronic device is able to execute the virtual resource transmission method provided in the above embodiments. Optionally, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0173] In addition, this disclosure also provides a computer program product, including computer instructions, which, when executed on the aforementioned server or other electronic device, cause the electronic device to perform the virtual resource sending method provided in the above embodiments.

[0174] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0175] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for sending virtual resources, characterized in that, include: Obtain the bandwidth data of the virtual resources acquired by each user account among multiple user accounts within a first preset time period, as well as the time information corresponding to the bandwidth data; Each of the bandwidth data corresponds to one of the time information; Based on the bandwidth data and the time information, a first time range is determined; the first time range includes the time range during which the bandwidth occupied by the multiple user accounts for acquiring the virtual resources is greater than or equal to a preset bandwidth; Upon receiving a resource acquisition request, a first time range is obtained; the resource acquisition request indicates that a target user account is requesting to acquire virtual resources for transfer to other user accounts; the first time range indicates the time period in which the peak of the number of resource acquisition requests received occurs. When the resource acquisition request is sent within a first time range, the number of virtual resources corresponding to the account type is sent to the target user account according to the account type of the target user account.

2. The method for sending virtual resources according to claim 1, characterized in that, The step of sending the number of virtual resources corresponding to the account type to the target user account includes: When the account type is a streamer account, a first quantity of the virtual resources is sent to the target user account; If the account type is a first type of non-broadcaster account, a first quantity of the virtual resources is sent to the target user account; If the account type is a second type of non-broadcaster account, a second quantity of the virtual resources is sent to the target user account; the second quantity is less than the first quantity.

3. The method for sending virtual resources according to claim 2, characterized in that, In the case where the account type is a second type of non-broadcaster account, sending a second quantity of the virtual resources to the target user account includes: When the account type is the second type of non-broadcast account, when the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution, the second number of virtual resources are sent to the target user account. When the resolution of the terminal device corresponding to the target user account is less than the preset resolution, the compressed second number of virtual resources are sent to the target user account.

4. The method for sending virtual resources according to claim 2, characterized in that, The method further includes: If the account type is a non-broadcaster account, obtain the total amount of virtual incentive resources corresponding to the virtual resources transferred from the target user account to other user accounts within a second preset time period; If the total amount of virtual incentive resources is less than the preset amount of incentive resources, the account type is determined to be the second type of non-broadcaster account; If the total amount of virtual incentive resources is greater than or equal to the preset amount of incentive resources, the account type is determined to be the first type of non-broadcaster account.

5. The method for sending virtual resources according to claim 2, characterized in that, In the case where the account type is a second type of non-broadcaster account, sending a second quantity of the virtual resources to the target user account includes: If the account type is the second type of non-broadcaster account, the first number of virtual resources are filtered to obtain the second number of virtual resources; Send the second quantity of the virtual resources to the target user account.

6. The method for sending virtual resources according to claim 2, characterized in that, In the case where the account type is a second type of non-broadcaster account, sending a second quantity of the virtual resources to the target user account includes: When the account type is the second type of non-broadcaster account, a preset number of virtual resources are extracted from the first number of virtual resources to obtain the second number of virtual resources; Send a second quantity of the virtual resources to the target user account.

7. The method for sending virtual resources according to claim 6, characterized in that, The step of intercepting a preset number of virtual resources to obtain the second number of virtual resources further includes: Insert a preset number of virtual resources into the preset number of virtual resources obtained to obtain the second number of virtual resources.

8. The method for sending virtual resources according to any one of claims 2-7, characterized in that, The method further includes: When the resource acquisition request is sent within a second time range, a first number of virtual resources are sent to the target user account; the second time range includes the time range during which the bandwidth occupied by multiple user accounts acquiring the virtual resources is less than a preset bandwidth.

9. The method for sending virtual resources according to claim 8, characterized in that, The process of obtaining the first time range after receiving the resource acquisition request also includes: Obtain the number of each type of virtual resource transferred within a third preset time period; The virtual resources are sorted from largest to smallest according to the number of transfers to obtain a first number of virtual resources.

10. A device for sending virtual resources, characterized in that, It includes a time range acquisition unit and a resource sending unit; it also includes a time range determination unit; The time range determination unit is used to obtain bandwidth data of the virtual resources obtained by each user account among multiple user accounts within a first preset time period, and time information corresponding to the bandwidth data; each bandwidth data corresponds to a piece of time information; and a first time range is determined based on the bandwidth data and the time information; the first time range includes the time range in which the bandwidth occupied by the multiple user accounts for obtaining the virtual resources is greater than or equal to the preset bandwidth. The time range acquisition unit is used to acquire a first time range after receiving a resource acquisition request; the resource acquisition request is used to indicate that a target user account requests to acquire virtual resources for transfer to other user accounts; the first time range is used to indicate the time period in which the peak of the number of resource acquisition requests received occurs; The resource sending unit is configured to send the number of virtual resources corresponding to the account type to the target user account when the time of sending the resource acquisition request is within a first time range.

11. The virtual resource sending device according to claim 10, characterized in that, The resource sending unit is further specifically used for: When the account type is a broadcaster account, a first quantity of the virtual resources is sent to the target user account; when the account type is a first type of non-broadcaster account, a first quantity of the virtual resources is sent to the target user account. If the account type is a second type of non-broadcaster account, a second quantity of the virtual resources is sent to the target user account; the second quantity is less than the first quantity.

12. The virtual resource sending device according to claim 11, characterized in that, The resource sending unit is further specifically used for: When the account type is the second type of non-broadcast account, when the resolution of the terminal device corresponding to the target user account is greater than or equal to the preset resolution, the second number of virtual resources are sent to the target user account. When the resolution of the terminal device corresponding to the target user account is less than the preset resolution, the compressed second number of virtual resources are sent to the target user account.

13. The virtual resource sending device according to claim 11, characterized in that, The resource sending unit is further specifically used for: If the account type is a non-broadcaster account, obtain the total amount of virtual incentive resources corresponding to the virtual resources transferred from the target user account to other user accounts within a second preset time period; If the total amount of virtual incentive resources is less than the preset incentive resource amount, the account type is determined to be the second type of non-broadcaster account; if the total amount of virtual incentive resources is greater than or equal to the preset incentive resource amount, the account type is determined to be the first type of non-broadcaster account.

14. The virtual resource sending device according to claim 11, characterized in that, The resource sending unit is further specifically used for: If the account type is the second type of non-broadcaster account, the first number of virtual resources are filtered to obtain the second number of virtual resources; the second number of virtual resources are then sent to the target user account.

15. The virtual resource sending device according to claim 11, characterized in that, The resource sending unit is further specifically used for: If the account type is the second type of non-broadcaster account, a preset number of virtual resources are extracted from the first number of virtual resources to obtain the second number of virtual resources; the second number of virtual resources are then sent to the target user account.

16. The virtual resource sending device according to claim 15, characterized in that, The resource sending unit is further specifically used for: Insert a preset number of virtual resources into the preset number of virtual resources obtained to obtain the second number of virtual resources.

17. The virtual resource sending apparatus according to any one of claims 11-16, characterized in that, The resource sending unit is further specifically used for: When the resource acquisition request is sent within a second time range, a first number of virtual resources are sent to the target user account; the second time range includes the time range during which the bandwidth occupied by multiple user accounts acquiring the virtual resources is less than a preset bandwidth.

18. The virtual resource sending device according to claim 17, characterized in that, It also includes a resource acquisition unit; the resource acquisition unit is used for: Obtain the number of transfers of each type of virtual resource within a third preset time period; sort the virtual resources in descending order of the number of transfers to obtain a first number of virtual resources.

19. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the method for sending virtual resources as described in any one of claims 1-9.

20. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method of sending virtual resources as described in any one of claims 1-9.

21. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the method for sending virtual resources as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Resource allocation method and device, server and storage medium

    CN114155026A