CN112256424A - Virtual resource processing method, device and system, electronic equipment and storage medium - Google Patents

Virtual resource processing method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN112256424A
CN112256424A CN202011019089.8A CN202011019089A CN112256424A CN 112256424 A CN112256424 A CN 112256424A CN 202011019089 A CN202011019089 A CN 202011019089A CN 112256424 A CN112256424 A CN 112256424A
Authority
CN
China
Prior art keywords
virtual resource
resource acquisition
request information
account
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011019089.8A
Other languages
Chinese (zh)
Inventor
马宏智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011019089.8A priority Critical patent/CN112256424A/en
Publication of CN112256424A publication Critical patent/CN112256424A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure relates to a processing method, a device, a system, an electronic device and a storage medium of virtual resources, wherein the method comprises the following steps: acquiring identification information of each account in a service group and the current account total number; judging whether the terminal where each account is located allows sending virtual resource acquisition request information to a server or not according to the identification information, the current account total number and a preset rule, and transmitting a judgment result to the terminal where each account is located; receiving the virtual resource acquisition request information, generating and returning a virtual resource acquisition result to an allowed terminal; and generating and returning prompt information to the forbidden terminal, wherein the prompt information represents that the virtual resource acquisition fails. The method and the device for sending the virtual resource acquisition request information pre-judge which terminals can send the virtual resource acquisition request information and which terminals cannot send the virtual resource acquisition request information, reduce the number of the servers for processing the virtual resource acquisition request information, reduce the system resource occupation of the servers, and save the system resources of the servers.

Description

Virtual resource processing method, device and system, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a storage medium for processing virtual resources.
Background
In the process of acquiring the virtual resources, if a plurality of accounts participating in acquiring the virtual resources in the service group exist, each account sends virtual resource acquisition request information to the server. In the related art, the server needs to process each piece of virtual resource acquisition request information, which results in huge system resource occupation of the server. Moreover, since the total amount of the virtual resources is small, only a small number of accounts can acquire the virtual resources, and the server performs invalid processing on the virtual resource acquisition request information sent by another part of accounts, the system resources of the server are wasted. If a large number of accounts send the virtual resource acquisition request information at the same time, the instantaneous concurrent amount of virtual resource acquisition is large, and server crash is easily caused.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a system, an electronic device, and a storage medium for processing virtual resources, so as to at least solve the problems in the related art that system resources of a server occupy a lot, system resources of the server are wasted, and the server is easily crashed. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for processing virtual resources, which is applied to a server, the method including: acquiring identification information of each account in a service group and the total number of current accounts in the service group; judging whether the terminal where each account is located allows sending virtual resource acquisition request information to the server or not according to the identification information, the current account total number and a preset rule, and transmitting a judgment result to the terminal where each account is located; receiving virtual resource acquisition request information from a terminal where an account which allows to send the virtual resource acquisition request information is located, generating a virtual resource acquisition result according to the received virtual resource acquisition request information, and returning the virtual resource acquisition result to the terminal where the account which allows to send the virtual resource acquisition request information is located; and generating prompt information, and returning the prompt information to a terminal where an account which is forbidden to send the virtual resource acquisition request information is located, wherein the prompt information represents that the virtual resource acquisition fails.
Optionally, the determining, according to the identification information, the current account total number, and a preset rule, whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server includes: generating the account number which is allowed to send the virtual resource acquisition request information in the service group according to the current account total number; and judging whether the terminal where each account is located allows to send the virtual resource acquisition request information to the server or not according to the identification information, the current account total number and the account number.
Optionally, the generating, according to the current account total number, the account number allowed to send the virtual resource acquisition request information in the service group includes: when the total number of the current accounts is larger than a preset first threshold value and smaller than or equal to a preset second threshold value, generating the account number according to the total number of virtual resources to be processed in the service group; and when the current account total number is larger than the second threshold value, or when the current account total number is smaller than or equal to the first threshold value, generating the account number according to the current account total number.
Optionally, the generating the account number according to the total number of virtual resources to be processed in the service group includes: and taking the preset multiple of the total number as the account number.
Optionally, the generating the account number according to the current account total number when the current account total number is greater than the second threshold or when the current account total number is less than or equal to the first threshold includes: when the current account total number is larger than the second threshold value, taking the preset number of the current account total number or the second threshold value as the account number; or, when the current account total number is less than or equal to the first threshold, the current account total number is taken as the account number.
Optionally, the determining, according to the identification information, the current account total number, and the account number, whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server includes: mapping the identification information into a hash value by using a preset character string hash algorithm, and extracting an effective value of the hash value, wherein the effective value represents a numerical value at a preset position of the hash value; dividing the account number by the current account total number to obtain an account ratio, and multiplying the account ratio by a preset value to obtain a thousandth ratio; comparing the effective value with the thousandth ratio; if the effective value is smaller than or equal to the thousandth ratio, determining that the terminal where the account is located allows sending virtual resource acquisition request information to the server; and if the effective value is larger than the thousandth ratio, determining that the terminal where the account is located forbids sending the virtual resource acquisition request information to the server.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for processing virtual resources, which is applied to a terminal, the method including: sending virtual resource acquisition permission judgment request information to a server; receiving a judgment result generated by the server according to the virtual resource acquisition permission judgment request information, wherein the judgment result represents that the terminal is allowed or forbidden to send the virtual resource acquisition request information to the server; when the judgment result shows that the virtual resource acquisition request information is allowed to be sent to the server, sending the virtual resource acquisition request information to the server, and receiving a virtual resource acquisition result returned by the server according to the virtual resource acquisition request information; and when the judgment result shows that the virtual resource acquisition request information is forbidden to be sent to the server, and prompt information returned by the server is received, wherein the prompt information shows that the virtual resource acquisition fails.
Optionally, the sending the virtual resource obtaining permission judgment request information to the server includes: acquiring identification information of an account of the terminal and the current account total number in a service group where the account is located; and generating the virtual resource acquisition permission judgment request information according to the identification information and the current account total number, and sending the virtual resource acquisition permission judgment request information to the server.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for processing a virtual resource, which is applied to a server, the apparatus including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is configured to acquire identification information of each account in a business group and the total number of current accounts in the business group; the judging module is configured to judge whether the terminal where each account is located allows sending virtual resource acquisition request information to the server according to the identification information, the current account total number and a preset rule, and transmit a judgment result to the terminal where each account is located; the processing module is configured to receive virtual resource acquisition request information from a terminal where an account which allows the virtual resource acquisition request information to be sent is located, generate a virtual resource acquisition result according to the received virtual resource acquisition request information, and return the virtual resource acquisition result to the terminal where the account which allows the virtual resource acquisition request information to be sent is located; the processing module is further configured to generate prompt information and return the prompt information to a terminal where an account which is prohibited to send the virtual resource acquisition request information is located, wherein the prompt information indicates that the virtual resource acquisition fails.
Optionally, the determining module includes: the quantity generation module is configured to generate the account quantity which is allowed to send the virtual resource acquisition request information in the service group according to the current account total number; and the request judging module is configured to judge whether the terminal where each account is located allows to send the virtual resource acquisition request information to the server according to the identification information, the current account total number and the account number.
Optionally, the quantity generation module is configured to generate the account quantity according to the total quantity of the virtual resources to be processed in the service group when the current account total quantity is greater than a preset first threshold and is less than or equal to a preset second threshold; and when the current account total number is larger than the second threshold value, or when the current account total number is smaller than or equal to the first threshold value, generating the account number according to the current account total number.
Optionally, the number generation module is configured to use a preset multiple of the total number as the account number.
Optionally, the number generation module is configured to use the preset divisor of the current account total number or the second threshold as the account number when the current account total number is greater than the second threshold; or, when the current account total number is less than or equal to the first threshold, the current account total number is taken as the account number.
Optionally, the request determining module includes: a mapping module configured to map the identification information into a hash value using a preset string hash algorithm and extract a valid value of the hash value, the valid value representing a numerical value at a preset position of the hash value; the ratio module is configured to divide the account number by the current account total number to obtain an account ratio, and multiply the account ratio by a preset numerical value to obtain a thousandth ratio; a comparison module configured to compare the effective value with the thousandth ratio; the determining module is configured to determine that the terminal where the account is located allows sending the virtual resource acquisition request information to the server if the effective value is smaller than or equal to the thousandth ratio; and if the effective value is larger than the thousandth ratio, determining that the terminal where the account is located forbids sending the virtual resource acquisition request information to the server.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for processing virtual resources, which is applied to a terminal, the apparatus including: the sending module is configured to send the virtual resource acquisition permission judgment request information to the server; a receiving module configured to receive a determination result generated by the server according to the virtual resource acquisition permission determination request information, where the determination result indicates that the terminal is allowed or prohibited to send the virtual resource acquisition request information to the server; the request module is configured to send virtual resource acquisition request information to the server and receive a virtual resource acquisition result returned by the server according to the virtual resource acquisition request information when the judgment result indicates that the virtual resource acquisition request information is allowed to be sent to the server; the receiving module is further configured to prohibit sending the virtual resource acquisition request information to the server and receive prompt information returned by the server when the judgment result indicates that sending the virtual resource acquisition request information to the server is prohibited, wherein the prompt information indicates that virtual resource acquisition fails.
Optionally, the sending module is configured to obtain identification information of an account of the terminal, and a current account total number in a service group where the account is located; and generating the virtual resource acquisition permission judgment request information according to the identification information and the current account total number, and sending the virtual resource acquisition permission judgment request information to the server. According to a fifth aspect of the embodiments of the present disclosure, there is provided a processing system for virtual resources, including a terminal and a server, wherein the server includes the processing apparatus for virtual resources according to the third aspect; the terminal comprises the processing device of the virtual resource according to the fourth aspect.
According to a sixth aspect of an embodiment of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the processing method of the virtual resource according to the first aspect or the second aspect.
According to a seventh aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute the processing method of the virtual resource according to the first aspect or the second aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product comprising readable program code executable by a processor of an electronic device to perform the method for processing virtual resources of the first or second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the processing scheme of virtual resources provided by the embodiment of the present disclosure, when a plurality of accounts exist in a service group and an account in the service group is to acquire a virtual resource in the service group, a server may acquire identification information of each account in the service group and a current total number of accounts in the service group, and further determine whether a terminal where each account is located allows sending virtual resource acquisition request information to the server according to the identification information, the current total number of accounts and a preset rule, and transmit a determination result to the terminal where each account is located. If the judgment result received by a certain terminal indicates that the virtual resource acquisition request information is allowed to be sent to the server, the server can receive the virtual resource acquisition request information of the terminal, generate a virtual resource acquisition result according to the virtual resource acquisition request information, and return the virtual resource acquisition result to the terminal. If the judgment result received by a certain terminal indicates that the virtual resource acquisition request information is forbidden to be sent to the server, the server does not receive the virtual resource acquisition request information of the terminal, but directly generates prompt information indicating that the virtual resource acquisition fails, and returns the prompt information to the terminal.
In the virtual resource acquisition scene, the embodiment of the disclosure judges whether the terminal where each account in the service group is located allows sending the virtual resource acquisition request information to the server. If the received judgment result indicates that the terminal which is allowed to send the virtual resource acquisition request information, the virtual resource acquisition request can be sent to the server, and the virtual resource can be acquired possibly. And if the received judgment result indicates that the terminal which is forbidden to send the virtual resource acquisition request information cannot send the virtual resource acquisition request to the server, and the virtual resource cannot be acquired. Because the virtual resources are limited, the embodiment of the disclosure judges which terminals can send the virtual resource acquisition request information in advance, and which terminals cannot send the virtual resource acquisition request information, so that the number of the servers processing the virtual resource acquisition request information is reduced, the system resource occupation of the servers is reduced, the processing of the virtual resource acquisition request information sent by the terminals which cannot acquire the virtual resources is also avoided, and the system resources of the servers are saved. In addition, the number of the terminals sending the virtual resource acquisition request information to the server is reduced, namely the instantaneous concurrency of the virtual resource acquisition is reduced, the processing pressure of the server is relieved, and the risk of server breakdown is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method for processing virtual resources in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating another method of processing virtual resources in accordance with an exemplary embodiment.
Fig. 3 is an interaction flow diagram illustrating a processing scheme for red envelope within a live room, according to an example embodiment.
FIG. 4 is a block diagram illustrating a processing device of a virtual resource in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating another processing apparatus of a virtual resource in accordance with an illustrative embodiment.
FIG. 6 is a block diagram illustrating processing electronics for a virtual resource in accordance with an exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device for processing virtual resources in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a processing method of a virtual resource according to an exemplary embodiment, where as shown in fig. 1, the processing method of the virtual resource may be applied to a server, and specifically may include the following steps.
In step S11, the identification information of each account in the service group and the total number of accounts currently in the service group are obtained.
In the embodiment of the present disclosure, when a plurality of accounts exist in a service group and the accounts in the service group are to acquire virtual resources in the service group, the server may acquire identification information of each account in the service group and a total number of current accounts in the service group. The identification information may be a character string or the like, and the identification information of different accounts is different from each other.
In step S12, it is determined whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server according to the identification information, the current account total number, and a preset rule, and the determination result is transmitted to the terminal where each account is located.
In the embodiment of the present disclosure, a judgment rule, that is, a preset rule, is preset on the server, and the server may judge whether the terminal where each account in the service group is located has the authority to send the virtual resource acquisition request information according to the identification information and the current account total number acquired in step S11, and the preset rule, that is, judge whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server. Further, the server may correspondingly transmit the determination result of the terminal where each account is located to the terminal where each account is located.
It should be noted that each account in the service group may be logged in the terminal where the account is located, and each account in the service group participates in the virtual resource acquisition activity in the service group through the terminal where the account is located.
In step S13, the virtual resource acquisition request information from the terminal where the account that is allowed to send the virtual resource acquisition request information is located is received, a virtual resource acquisition result is generated according to the received virtual resource acquisition request information, and the virtual resource acquisition result is returned to the terminal where the account that is allowed to send the virtual resource acquisition request information is located.
In an embodiment of the present disclosure, the determination result may include allowing the terminal to send the virtual resource acquisition request information to the server, and prohibiting the terminal from sending the virtual resource acquisition request information to the server. Therefore, the terminal where one part of the accounts in the service group are located can send the virtual resource acquisition request information to the server, and the terminal where the other part of the accounts in the service group are located cannot send the virtual resource acquisition request information to the server.
If the determination result received by a terminal indicates that it is allowed to send virtual resource acquisition request information to the server, the terminal may send the virtual resource acquisition request information to the server after the virtual resource acquisition activity starts. In practical applications, the virtual resource obtaining request information may include, but is not limited to: identification information of an account, identification information of a terminal, identification information of a service group, and the like. After receiving the virtual resource acquisition request information, the server may allocate virtual resources to the terminal according to a preset differentiation policy, and further generate a virtual resource acquisition result of the terminal. If the server allocates virtual resources to the terminal, the virtual resource acquisition result indicates that the virtual resource acquisition is successful, and the virtual resource acquisition result may further include detailed information of the virtual resources acquired by the terminal, such as types and numbers of the virtual resources. And if the server does not allocate virtual resources to the terminal, the virtual resource acquisition result is that the virtual resource acquisition fails. And the server returns the virtual resource acquisition result to the terminal.
In step S14, a prompt message is generated, and the prompt message is returned to the terminal where the account prohibited from sending the virtual resource acquisition request message is located.
In the embodiment of the present disclosure, if the determination result received by a certain terminal indicates that sending of virtual resource acquisition request information to the server is prohibited, the terminal may not send the virtual resource acquisition request information to the server after the start of the virtual resource acquisition activity. The server can directly generate prompt information for the terminal, the prompt information can indicate that the virtual resource acquisition fails, and the prompt information is returned to the terminal.
It should be noted that the above steps S13 and S14 may belong to two execution steps in parallel relationship, and both the steps S13 and S14 may be executed after the step S12, and the execution processes of the steps S13 and S14 do not affect each other.
In the processing scheme of virtual resources provided by the embodiment of the present disclosure, when a plurality of accounts exist in a service group and an account in the service group is to acquire a virtual resource in the service group, a server may acquire identification information of each account in the service group and a current total number of accounts in the service group, and further determine whether a terminal where each account is located allows sending virtual resource acquisition request information to the server according to the identification information, the current total number of accounts and a preset rule, and transmit a determination result to the terminal where each account is located. If the judgment result received by a certain terminal indicates that the virtual resource acquisition request information is allowed to be sent to the server, the server can receive the virtual resource acquisition request information of the terminal, generate a virtual resource acquisition result according to the virtual resource acquisition request information, and return the virtual resource acquisition result to the terminal. If the judgment result received by a certain terminal indicates that the virtual resource acquisition request information is forbidden to be sent to the server, the server does not receive the virtual resource acquisition request information of the terminal, but directly generates prompt information indicating that the virtual resource acquisition fails, and returns the prompt information to the terminal.
In the virtual resource acquisition scene, the embodiment of the disclosure judges whether the terminal where each account in the service group is located allows sending the virtual resource acquisition request information to the server. If the received judgment result indicates that the terminal which is allowed to send the virtual resource acquisition request information, the virtual resource acquisition request can be sent to the server, and the virtual resource can be acquired possibly. And if the received judgment result indicates that the terminal which is forbidden to send the virtual resource acquisition request information cannot send the virtual resource acquisition request to the server, and the virtual resource cannot be acquired. Because the virtual resources are limited, the embodiment of the disclosure judges which terminals can send the virtual resource acquisition request information in advance, and which terminals cannot send the virtual resource acquisition request information, so that the number of the servers processing the virtual resource acquisition request information is reduced, the system resource occupation of the servers is reduced, the processing of the virtual resource acquisition request information sent by the terminals which cannot acquire the virtual resources is also avoided, and the system resources of the servers are saved. In addition, the number of the terminals sending the virtual resource acquisition request information to the server is reduced, namely the instantaneous concurrency of the virtual resource acquisition is reduced, the processing pressure of the server is relieved, and the risk of server breakdown is reduced.
In an exemplary embodiment of the present disclosure, in the execution process of step S12, the number of accounts in the service group that are allowed to send the virtual resource acquisition request information may be generated according to the total number of accounts currently in the service group, and then, according to the identification information of the accounts, the total number of accounts currently and the number of accounts that are allowed to send the virtual resource acquisition request information, it is determined whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server. When the total number of the current accounts in the service group is too large, it is not easy to ensure that all the accounts in the service group can send the virtual resource acquisition request information to the server, and therefore, the number of the accounts which are allowed to send the virtual resource acquisition request information in the service group needs to be determined first.
When the number of accounts allowing to send the virtual resource acquisition request information is generated, the current total number of the accounts may be compared with at least one threshold value of several preset threshold values, and the number of accounts allowing to send the virtual resource acquisition request information is generated according to the comparison result. In practical application, if the total number of the current accounts is greater than a preset first threshold and less than or equal to a preset second threshold, the number of the accounts allowing sending of the virtual resource acquisition request information is generated according to the total number of the virtual resources to be processed in the service group. The total amount of the virtual resources to be processed in the service group can be preset according to the actual virtual resource acquisition activity. Specifically, a preset multiple of the total number of the virtual resources to be processed in the service group may be used as the number of the accounts that are allowed to send the virtual resource acquisition request information. And if the current account total number is larger than a second threshold value, or the current account total number is smaller than or equal to a first threshold value, generating the account number allowing to send the virtual resource acquisition request information according to the current account total number. Specifically, if the current account total number is greater than the second threshold, the preset number of the current account total number or the second threshold is used as the account number allowed to send the virtual resource acquisition request information. And if the current account total number is smaller than or equal to the first threshold value, taking the current account total number as the account number allowed to send the virtual resource acquisition request information.
For example, as shown in table 1, the first threshold may be set to 1000, the second threshold may be set to 200000, and the total number of virtual resources to be processed in the traffic group is N. If the current account number is 400000 and 400000 is greater than 200000, the number of accounts allowed to send the virtual resource acquisition request information is a second threshold value or is one half of the current account number. If the total number of the current accounts is 100000, 100000 is greater than 1000 and is smaller than 200000, the number of the accounts allowed to send the virtual resource acquisition request information is 10N, that is, 10 times of the total number of the virtual resources to be processed in the service group is used as the number of the accounts allowed to send the virtual resource acquisition request information. If the total number of the current accounts is 500, and 500 is less than 1000, the number of the accounts which are allowed to send the virtual resource acquisition request information is 500.
Current account total Account number allowing transmission of virtual resource acquisition request information
Greater than 200000 200000
Greater than 1000 and less than or equal to 200000 N*10
Less than or equal to 1000 Current account total
TABLE 1
The embodiment of the present disclosure sets several thresholds, for example, the first threshold and the second threshold. And comparing the total number of the current accounts in the service group with a first threshold value and/or a second threshold value, and then determining the number of the accounts which are allowed to send the virtual resource acquisition request information according to the comparison result. In practical application, if the total number of current accounts in a service group is large, the number of accounts which are allowed to send virtual resource acquisition request information can be set to a certain fixed value; if the total number of the current accounts in the service group is less, the total number of the current accounts in the service group can be used as the number of the accounts which are allowed to send the virtual resource acquisition request information, namely, each account in the service group can send the virtual resource acquisition request information at the moment; if the total number of the current accounts in the service group is within a certain interval range, the multiple of the total number of the virtual resources to be processed in the service group can be used as the number of the accounts which are allowed to send the virtual resource acquisition request information. The embodiment of the disclosure not only provides various ways of determining the number of accounts allowed to send the virtual resource acquisition request information, but also each determination way can adapt to the actual situation of the total number of the current accounts in the service group.
When judging whether the terminal where each account is located allows sending the virtual resource acquisition request information to the server according to the identification information of the account, the current account total number and the account number allowing sending the virtual resource acquisition request information, mapping the identification information of the account to a hash value by using a preset character string hash algorithm, and extracting an effective value of the hash value, wherein the effective value can be a numerical value at a preset position of the hash value. Then, the account number which allows the virtual resource acquisition request information to be sent is divided by the current account total number to obtain an account ratio, and then the account ratio is multiplied by a preset value to obtain a thousandth ratio. Further, comparing the effective value with the thousandth ratio; if the effective value is smaller than or equal to the thousandth ratio, determining that the terminal allows to send the virtual resource acquisition request information to the server; and if the effective value is greater than the thousandth ratio, determining that the terminal forbids to send the virtual resource acquisition request information to the server.
For example, the preset string hash algorithm is a CityHash algorithm, the total number of current accounts is 300000, the number of accounts allowed to send the virtual resource acquisition request information is 200000, and the thousandth ratio is 200000/300000 × 1000 — 667. If the identification information of the account a is 1001, the hash value is CityHash (1001) which is 234487, the effective value is 234487%, 1000 which is 487, and 487 which is <667, the terminal where the account a is located allows sending the virtual resource acquisition request information to the server. If the identification information of the account B is 2012, the hash value is CityHash (2012) which is 558874, and the effective value is 558874% 1000 which is 874, 874>667, the terminal where the account B is located prohibits from allowing sending the virtual resource acquisition request information to the server.
For another example, the preset string hash algorithm is a CityHash algorithm, the total number of current accounts is 5000, the total number of virtual resources to be processed is 200, the number of accounts allowed to send the virtual resource acquisition request information is 200 × 10 — 2000, and the thousandth ratio is 2000/5000 × 1000 — 400. If the identification information of the account C is 100101, the hash value is CityHash (100101) which is 199887330, the effective value is 199887330% 1000 which is 330, and 330 is <400, the terminal where the account C is located allows sending the virtual resource acquisition request information to the server. If the identification information of the account D is 2033317, the hash value is CityHash (2033317) ═ 34324998, and the effective value is 34324998%, 1000 ═ 998, 998>400, the terminal where the account D is located prohibits the transmission of the virtual resource acquisition request information to the server.
The embodiment of the disclosure provides a judging mode for judging whether the terminal allows to send the virtual resource acquisition request information, wherein the judging mode maps the identification information of each account into a hash value through a character string hash algorithm, extracts an effective value from the hash value, compares the effective value of each account with the thousandth ratio of a service group, and determines whether the terminal allows to send the virtual resource acquisition request information according to a comparison result. The thousandth ratio of the service group can be a fixed value, the identification information of each account has uniqueness, and the hash value obtained by mapping through the character string hash algorithm also has uniqueness. And comparing the effective value of each account in the service group with the thousandth ratio of the service group to determine whether the terminal where each account in the service group is located allows sending the virtual resource acquisition request information. The effective value of each account is compared with the thousandth ratio, so that the fairness of judging whether the terminal where each user in the service group is located allows sending the virtual resource to obtain the request information is ensured.
It should be noted that other string hashing algorithms, such as the SHA-1 algorithm and the MD5 algorithm, may also be adopted in the embodiments of the present disclosure, and the calculation manner adopted by the embodiments of the present disclosure is not particularly limited. Moreover, the embodiments of the present disclosure do not specifically limit the first threshold, the second threshold, the preset multiple, the preset divisor, the preset position, the preset numerical value, and the like.
Fig. 2 is a flowchart illustrating another processing method for virtual resources according to an exemplary embodiment, where as shown in fig. 2, the processing method for virtual resources may be applied to a terminal, and specifically may include the following steps.
In step S21, the virtual resource acquisition authority judgment request information is sent to the server.
In the embodiment of the disclosure, an account may be logged in the terminal, and the account may belong to a service group. A service group may contain multiple accounts. The server may configure a virtual resource acquisition activity for the service group, and an account in the service group participates in the virtual resource acquisition activity. In practical application, a terminal where each account in a service group is located needs to determine whether each account has a right to acquire a virtual resource, and therefore, the terminal needs to send virtual resource acquisition right judgment request information to a server, so that the server can judge whether the terminal has the right to acquire the virtual resource according to the virtual resource acquisition right judgment request information.
In an exemplary embodiment of the present disclosure, the terminal may obtain identification information of an account logged in each terminal and a current account total number in a service group where the account is located, then generate virtual resource acquisition permission judgment request information according to the identification information of the account and the current account total number, and send the virtual resource acquisition permission judgment request information to the server.
In step S22, a determination result generated from the virtual resource acquisition authority determination request information by the server is received.
In the embodiment of the present disclosure, the server needs to determine in advance whether the terminal where each account in the service group is located has the right or qualification to send the virtual resource acquisition request information. The server can judge whether the terminal has the authority or qualification for sending the virtual resource acquisition request information according to the virtual resource acquisition authority judgment request information, and sends the judgment result of the terminal where each account is located to each terminal. The judgment result may indicate that the terminal is allowed or prohibited from sending the virtual resource acquisition request information to the server.
In step S23, when the determination result indicates that it is permitted to send the virtual resource acquisition request information to the server, the virtual resource acquisition request information is sent to the server, and the virtual resource acquisition result returned by the server according to the virtual resource acquisition request information is received.
In the embodiment of the present disclosure, if the determination result received by the terminal indicates that the virtual resource acquisition request information is allowed to be sent to the server, the virtual resource acquisition request information may be sent to the server after the virtual resource acquisition activity is started. And the server allocates the virtual resources for the terminal according to the virtual resource acquisition request information and returns a virtual resource acquisition result to the terminal.
In step S24, when the determination result indicates that the virtual resource acquisition request information is prohibited from being sent to the server, and a prompt message returned by the server is received, where the prompt message indicates that the virtual resource acquisition has failed.
In the embodiment of the present disclosure, if the determination result received by the terminal indicates that the virtual resource acquisition request information is prohibited to be sent to the server, the virtual resource acquisition request information may not be sent to the server after the virtual resource acquisition activity is started. The server directly generates prompt information for the terminal and returns the prompt information to the terminal.
The terminal in the embodiment of the disclosure may send the virtual resource acquisition permission judgment request information to the server in advance, and the server judges whether the terminal allows sending the virtual resource acquisition request information according to the virtual resource acquisition permission judgment request information. The method and the device avoid the situation that the terminal directly sends the virtual resource acquisition request information to the server, also avoid a large number of terminals simultaneously sending a large number of virtual resource acquisition request information to the server in a short time, and reduce the pressure of the server for processing the virtual resource acquisition request information.
Based on the above description about the embodiment of the processing method of the virtual resource, a processing scheme of red packet in the live broadcast room is described below by taking the virtual resource as red packet and the service group as live broadcast room, and when the virtual resource is other service object and the service group is other group object, the processing scheme of the virtual resource can be executed with reference to the relevant content of the embodiment of the present disclosure. As shown in fig. 3, fig. 3 is an interactive flow diagram illustrating a red envelope processing scheme in a live broadcast room.
And a user Z in the live broadcast room sends a red packet creation message to the web server, and the web server creates a red packet in the database according to the red packet creation message and returns a prompt message that the red packet creation is successful to the user Z. The long connection service between the web server and the database inquires a newly created red packet in the database, judges whether each user in the live broadcast room, such as user F, is allowed to send the red packet acquisition request information, and informs the web server of the judgment result. Then, the long connection service issues a red packet display signaling to the user F to notify the user F that a red packet is available. At this time, the red envelope may be displayed on the terminal where the user F is located. And if the long connection service determines that the user F allows the red packet acquisition request information to be sent, the user F executes triggering operation of red packet robbing after the red packet acquisition activity starts, and the terminal where the user F is located responds to the triggering operation of the user F to generate the red packet acquisition request information and sends the red packet acquisition request information to the webpage server. And the webpage server receives the red packet acquisition request information and judges whether the user F can rob the red packet according to the differentiation strategy. The differentiation policy may include, but is not limited to: risk control, user priority control, and random screening control. And if the webpage server determines that the user F can rob the red envelope, allocating the red envelope for the user F and returning a red envelope robbing result to the user F. And if the long connection service determines that the user F forbids to send the red packet to obtain the request information, the webpage server generates prompt information, the prompt information indicates that the red packet robbing is failed, and the prompt information is sent to the user F.
When the embodiment of the disclosure is applied to a red envelope robbing scene of a live broadcast room, the server can judge whether each account in the live broadcast room allows the red envelope robbing in advance. The account which is not allowed to rob the red envelope does not need to send red envelope acquisition request information to the server, and the account which is allowed to rob the red envelope can send the red envelope acquisition request information to the server. The number of the servers receiving the red packet acquisition request information is reduced, the workload of the servers for processing the red packet acquisition request information is also reduced, the operating pressure of the servers is relieved, and the system resources of the servers are saved.
FIG. 4 is a block diagram illustrating a processing apparatus 40 of a virtual resource in accordance with an exemplary embodiment. The apparatus 40 may be applied to a server, and the apparatus 40 may specifically include the following modules.
An obtaining module 41, configured to obtain identification information of each account in a service group and a current account total number in the service group;
a determining module 42, configured to determine, according to the identification information, the current account total number, and a preset rule, whether the terminal where each account is located allows sending virtual resource acquisition request information to the server, and transmit a determination result to the terminal where each account is located;
a processing module 43, configured to receive virtual resource acquisition request information from a terminal where an account that allows sending of the virtual resource acquisition request information is located, generate a virtual resource acquisition result according to the received virtual resource acquisition request information, and return the virtual resource acquisition result to the terminal where the account that allows sending of the virtual resource acquisition request information is located;
the processing module 43 is further configured to generate a prompt message, and return the prompt message to the terminal where the account prohibited from sending the virtual resource acquisition request message is located, where the prompt message indicates that the virtual resource acquisition fails.
In an exemplary embodiment of the disclosure, the determining module 42 includes:
the quantity generation module is configured to generate the account quantity which is allowed to send the virtual resource acquisition request information in the service group according to the current account total number;
and the request judging module is configured to judge whether the terminal where each account is located allows to send the virtual resource acquisition request information to the server according to the identification information, the current account total number and the account number.
In an exemplary embodiment of the present disclosure, the quantity generation module is configured to generate the account quantity according to a total quantity of virtual resources to be processed in the service group when the current account total number is greater than a preset first threshold and is less than or equal to a preset second threshold; and when the current account total number is larger than the second threshold value, or when the current account total number is smaller than or equal to the first threshold value, generating the account number according to the current account total number.
In an exemplary embodiment of the disclosure, the number generation module is configured to take a preset multiple of the total number as the account number.
In an exemplary embodiment of the present disclosure, the number generation module is configured to use the preset divisor of the current account total number or the second threshold value as the account number when the current account total number is greater than the second threshold value; or, when the current account total number is less than or equal to the first threshold, the current account total number is taken as the account number.
In an exemplary embodiment of the disclosure, the request determining module includes:
a mapping module configured to map the identification information into a hash value using a preset string hash algorithm and extract a valid value of the hash value, the valid value representing a numerical value at a preset position of the hash value;
the ratio module is configured to divide the account number by the current account total number to obtain an account ratio, and multiply the account ratio by a preset numerical value to obtain a thousandth ratio;
a comparison module configured to compare the effective value with the thousandth ratio;
the determining module is configured to determine that the terminal where the account is located allows sending the virtual resource acquisition request information to the server if the effective value is smaller than or equal to the thousandth ratio; and if the effective value is larger than the thousandth ratio, determining that the terminal where the account is located forbids sending the virtual resource acquisition request information to the server.
FIG. 5 is a block diagram illustrating another processing apparatus 50 of a virtual resource in accordance with an illustrative embodiment. The apparatus 50 may be applied to a terminal, and the apparatus 50 may specifically include the following modules.
A sending module 51 configured to send virtual resource acquisition permission judgment request information to the server;
a receiving module 52, configured to receive a determination result generated by the server according to the virtual resource obtaining authority determination request information, where the determination result indicates that the terminal is allowed or prohibited to send the virtual resource obtaining request information to the server;
a request module 53, configured to send virtual resource acquisition request information to the server and receive a virtual resource acquisition result returned by the server according to the virtual resource acquisition request information when the determination result indicates that the sending of the virtual resource acquisition request information to the server is allowed;
the receiving module 52 is further configured to prohibit sending the virtual resource acquisition request information to the server and receive a prompt message returned by the server when the determination result indicates that sending the virtual resource acquisition request information to the server is prohibited, where the prompt message indicates that the virtual resource acquisition fails.
In an exemplary embodiment of the present disclosure, the sending module 51 is configured to obtain identification information of an account of the terminal, and a total number of current accounts in a service group where the account is located; and generating the virtual resource acquisition permission judgment request information according to the identification information and the current account total number, and sending the virtual resource acquisition permission judgment request information to the server.
Embodiments of the present disclosure also provide a processing system of virtual resources, which may include a server and a terminal, wherein the server may include the processing apparatus 40 of virtual resources as shown in fig. 4, and the terminal may include the processing apparatus 50 of virtual resources as shown in fig. 5.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 6 is a block diagram illustrating processing electronics 600 for a virtual resource in accordance with an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the processing method for virtual resources described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, images, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the processing method of the virtual resources described above.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the electronic device 600 to perform the above-described processing method of the virtual resource is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which comprises readable program code executable by the processor 620 of the electronic device 600 to perform the above-described processing method of virtual resources. Alternatively, the program code may be stored in a storage medium of the electronic device 600, which may be a non-transitory computer-readable storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 7 is a block diagram illustrating an electronic device 700 for processing virtual resources in accordance with an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 7, electronic device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processing component 722 is configured to execute instructions to perform the processing methods of the virtual resources described above.
The electronic device 700 may also include a power component 726 that is configured to perform power management of the electronic device 700, a wired or wireless network interface 750 that is configured to connect the electronic device 700 to a network, and an input output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A processing method of virtual resources is applied to a server, and the method comprises the following steps:
acquiring identification information of each account in a service group and the total number of current accounts in the service group;
judging whether the terminal where each account is located allows sending virtual resource acquisition request information to the server or not according to the identification information, the current account total number and a preset rule, and transmitting a judgment result to the terminal where each account is located;
receiving virtual resource acquisition request information from a terminal where an account which allows to send the virtual resource acquisition request information is located, generating a virtual resource acquisition result according to the received virtual resource acquisition request information, and returning the virtual resource acquisition result to the terminal where the account which allows to send the virtual resource acquisition request information is located;
and generating prompt information, and returning the prompt information to a terminal where an account which is forbidden to send the virtual resource acquisition request information is located, wherein the prompt information represents that the virtual resource acquisition fails.
2. The method according to claim 1, wherein the determining, according to the identification information, the current account total number, and a preset rule, whether the terminal where each account is located allows sending virtual resource acquisition request information to the server comprises:
generating the account number which is allowed to send the virtual resource acquisition request information in the service group according to the current account total number;
and judging whether the terminal where each account is located allows to send the virtual resource acquisition request information to the server or not according to the identification information, the current account total number and the account number.
3. The method according to claim 2, wherein the generating the number of accounts within the service group that are allowed to send the virtual resource acquisition request information according to the current total number of accounts comprises:
when the total number of the current accounts is larger than a preset first threshold value and smaller than or equal to a preset second threshold value, generating the account number according to the total number of virtual resources to be processed in the service group;
and when the current account total number is larger than the second threshold value, or when the current account total number is smaller than or equal to the first threshold value, generating the account number according to the current account total number.
4. The method of claim 3, wherein the generating the account number according to the total number of virtual resources to be processed in the traffic group comprises:
and taking the preset multiple of the total number as the account number.
5. A processing method of virtual resources is applied to a terminal, and the method comprises the following steps:
sending virtual resource acquisition permission judgment request information to a server;
receiving a judgment result generated by the server according to the virtual resource acquisition permission judgment request information, wherein the judgment result represents that the terminal is allowed or forbidden to send the virtual resource acquisition request information to the server;
when the judgment result shows that the virtual resource acquisition request information is allowed to be sent to the server, sending the virtual resource acquisition request information to the server, and receiving a virtual resource acquisition result returned by the server according to the virtual resource acquisition request information;
and when the judgment result shows that the virtual resource acquisition request information is forbidden to be sent to the server, and prompt information returned by the server is received, wherein the prompt information shows that the virtual resource acquisition fails.
6. An apparatus for processing virtual resources, applied to a server, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is configured to acquire identification information of each account in a business group and the total number of current accounts in the business group;
the judging module is configured to judge whether the terminal where each account is located allows sending virtual resource acquisition request information to the server according to the identification information, the current account total number and a preset rule, and transmit a judgment result to the terminal where each account is located;
the processing module is configured to receive virtual resource acquisition request information from a terminal where an account which allows the virtual resource acquisition request information to be sent is located, generate a virtual resource acquisition result according to the received virtual resource acquisition request information, and return the virtual resource acquisition result to the terminal where the account which allows the virtual resource acquisition request information to be sent is located;
the processing module is further configured to generate prompt information and return the prompt information to a terminal where an account which is prohibited to send the virtual resource acquisition request information is located, wherein the prompt information indicates that the virtual resource acquisition fails.
7. An apparatus for processing virtual resources, applied to a terminal, the apparatus comprising:
the sending module is configured to send the virtual resource acquisition permission judgment request information to the server;
a receiving module configured to receive a determination result generated by the server according to the virtual resource acquisition permission determination request information, where the determination result indicates that the terminal is allowed or prohibited to send the virtual resource acquisition request information to the server;
the request module is configured to send virtual resource acquisition request information to the server and receive a virtual resource acquisition result returned by the server according to the virtual resource acquisition request information when the judgment result indicates that the virtual resource acquisition request information is allowed to be sent to the server;
the receiving module is further configured to prohibit sending the virtual resource acquisition request information to the server and receive prompt information returned by the server when the judgment result indicates that sending the virtual resource acquisition request information to the server is prohibited, wherein the prompt information indicates that virtual resource acquisition fails.
8. A virtual resource processing system comprising a server and a terminal, wherein the server comprises the virtual resource processing apparatus according to claim 6; the terminal comprises processing means of virtual resources according to claim 7.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the processing method of the virtual resource as claimed in any one of claims 1 to 5.
10. A storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a processing method of a virtual resource according to any one of claims 1 to 5.
CN202011019089.8A 2020-09-22 2020-09-22 Virtual resource processing method, device and system, electronic equipment and storage medium Pending CN112256424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011019089.8A CN112256424A (en) 2020-09-22 2020-09-22 Virtual resource processing method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011019089.8A CN112256424A (en) 2020-09-22 2020-09-22 Virtual resource processing method, device and system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112256424A true CN112256424A (en) 2021-01-22

Family

ID=74233036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011019089.8A Pending CN112256424A (en) 2020-09-22 2020-09-22 Virtual resource processing method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112256424A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051458A (en) * 2021-02-04 2021-06-29 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113535415A (en) * 2021-06-21 2021-10-22 福建天泉教育科技有限公司 Resource acquisition method and terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
CN106097057A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method and device
CN106203991A (en) * 2016-07-11 2016-12-07 广州酷狗计算机科技有限公司 The method and apparatus sending virtual resource bag
WO2018108035A1 (en) * 2016-12-13 2018-06-21 腾讯科技(深圳)有限公司 Information processing and virtual resource exchange method, apparatus, and device
CN108665294A (en) * 2017-03-30 2018-10-16 阿里巴巴集团控股有限公司 Virtual resource object processing method, device and computer system
CN109189538A (en) * 2018-09-04 2019-01-11 深圳市百宝廊珠宝首饰有限公司 Method and device for sending directional red packet
WO2019062855A1 (en) * 2017-09-29 2019-04-04 腾讯科技(深圳)有限公司 Virtual resource data processing method, computer device and storage medium
CN109951374A (en) * 2019-02-22 2019-06-28 上海掌门科技有限公司 A kind of method and apparatus of virtual resource object distribution
CN110688215A (en) * 2019-08-23 2020-01-14 咪咕文化科技有限公司 Virtual resource allocation method, server, and computer-readable storage medium
CN111178856A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 Data processing method, mobile terminal and computer-readable storage medium
CN111611075A (en) * 2020-05-19 2020-09-01 北京达佳互联信息技术有限公司 Virtual resource request processing method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
CN106097057A (en) * 2016-06-07 2016-11-09 腾讯科技(深圳)有限公司 A kind of virtual objects distribution method and device
CN106203991A (en) * 2016-07-11 2016-12-07 广州酷狗计算机科技有限公司 The method and apparatus sending virtual resource bag
WO2018108035A1 (en) * 2016-12-13 2018-06-21 腾讯科技(深圳)有限公司 Information processing and virtual resource exchange method, apparatus, and device
CN108665294A (en) * 2017-03-30 2018-10-16 阿里巴巴集团控股有限公司 Virtual resource object processing method, device and computer system
WO2019062855A1 (en) * 2017-09-29 2019-04-04 腾讯科技(深圳)有限公司 Virtual resource data processing method, computer device and storage medium
CN109189538A (en) * 2018-09-04 2019-01-11 深圳市百宝廊珠宝首饰有限公司 Method and device for sending directional red packet
CN111178856A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 Data processing method, mobile terminal and computer-readable storage medium
CN109951374A (en) * 2019-02-22 2019-06-28 上海掌门科技有限公司 A kind of method and apparatus of virtual resource object distribution
CN110688215A (en) * 2019-08-23 2020-01-14 咪咕文化科技有限公司 Virtual resource allocation method, server, and computer-readable storage medium
CN111611075A (en) * 2020-05-19 2020-09-01 北京达佳互联信息技术有限公司 Virtual resource request processing method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051458A (en) * 2021-02-04 2021-06-29 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113535415A (en) * 2021-06-21 2021-10-22 福建天泉教育科技有限公司 Resource acquisition method and terminal
CN113535415B (en) * 2021-06-21 2023-08-04 福建天泉教育科技有限公司 Resource acquisition method and terminal

Similar Documents

Publication Publication Date Title
CN106961526B (en) Notification message display method and device and electronic equipment
CN109121468B (en) Access method and device related to network slice
CN106211159B (en) Bluetooth-based identity recognition method and device
CN112468833B (en) Live broadcast interactive information processing method, device, terminal, server and storage medium
CN107888965B (en) Image gift display method and device, terminal, system and storage medium
EP3382527B1 (en) Method and apparatus for managing a shared storage system
CN109156026B (en) Method, device, equipment and storage medium for sending uplink scheduling request
CN107094094B (en) Application networking method and device and terminal
CN108702763B (en) Method and device for sending lead code and scheduling request
CN109451838B (en) Method, device and storage medium for obtaining access control parameters
CN107959757B (en) User information processing method and device, APP server and terminal equipment
CN113220482A (en) Call request processing method and device, electronic equipment and storage medium
CN106792892B (en) Access control method and device for application program
CN109328482B (en) Control instruction transmission method, base station, terminal and storage medium
CN112256424A (en) Virtual resource processing method, device and system, electronic equipment and storage medium
CN110337825B (en) Service switching method and device
CN109156025B (en) Uplink resource acquisition method, device and computer readable storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN108028810B (en) Method and device for establishing service connection
CN110637502B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN115242456B (en) User license management system, method, device, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN107894909B (en) Method, device and storage medium for limiting Activity starting
CN107070816B (en) Application identification method and device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination