CN113965770A - Virtual resource processing method, device, server and storage medium - Google Patents

Virtual resource processing method, device, server and storage medium Download PDF

Info

Publication number
CN113965770A
CN113965770A CN202111236003.1A CN202111236003A CN113965770A CN 113965770 A CN113965770 A CN 113965770A CN 202111236003 A CN202111236003 A CN 202111236003A CN 113965770 A CN113965770 A CN 113965770A
Authority
CN
China
Prior art keywords
virtual resource
information
user account
release
virtual
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.)
Granted
Application number
CN202111236003.1A
Other languages
Chinese (zh)
Other versions
CN113965770B (en
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 CN202111236003.1A priority Critical patent/CN113965770B/en
Publication of CN113965770A publication Critical patent/CN113965770A/en
Application granted granted Critical
Publication of CN113965770B publication Critical patent/CN113965770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4784Supplemental services, e.g. displaying phone caller identification, shopping application receiving rewards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a processing method, a processing device, a server and a storage medium of virtual resources, relates to the technical field of data processing, and at least solves the problem that when the virtual resources are updated in the related art, the virtual resources of new and old versions are poor in carrying capacity and stability. The method comprises the following steps: receiving a first request, wherein the first request comprises an identifier of a first virtual resource and target configuration information, and the first request is used for requesting that the configuration information of the first virtual resource is modified into the target configuration information based on the target configuration information; creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.

Description

Virtual resource processing method, device, server and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing virtual resources, a server, and a storage medium.
Background
In the live broadcast process of the anchor broadcast in the live broadcast room, the client side can provide virtual resources on a live broadcast page so that a user account can be given to the anchor broadcast, and the anchor broadcast is encouraged to produce higher-quality live broadcast content.
In the related art, in order to facilitate a user to know the condition of the virtual resource received by the anchor, the virtual resource received by the anchor is displayed on a details page of the anchor. However, when the virtual resource is updated, the virtual resource of the new version and the old version has poor connectivity, so that the stability of the statistical data of the virtual resource is also poor, and the use experience of the user account is seriously affected.
Disclosure of Invention
The present disclosure provides a method and an apparatus for processing virtual resources, a server, and a storage medium, so as to at least solve the problems that, in the related art, new and old versions of virtual resources cannot be linked when updating the virtual resources, and the statistical data stability of the virtual resources is poor. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for processing virtual resources is provided, including: receiving a first request, wherein the first request comprises an identifier of a first virtual resource and target configuration information, and the first request is used for requesting that the configuration information of the first virtual resource is modified into the target configuration information based on the target configuration information; creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.
In a possible implementation manner, the second virtual resource is configured with first wager information, where the first wager information is used to characterize a scope of a wager account of the second virtual resource, and the method further includes: receiving a second request sent by the electronic equipment, wherein the second request comprises a first user account identifier and is used for requesting to read virtual resources corresponding to the first user account identifier; determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource based on the corresponding relation between the user account identifier and the identifier of the virtual resource; under the condition that the first user account is determined to be in the release account range represented by the first release amount information based on the first user account identification, returning information of the second virtual resource to the electronic equipment; and returning the information of the first virtual resource to the electronic equipment under the condition that the first user account is determined not to be in the range of the release account represented by the first release amount information based on the first user account identification.
In another possible implementation, the first player information includes a player number segment; the method further comprises the following steps: calculating the first user account identification based on a preset algorithm to obtain a target value; under the condition that the target value is in the play number segment, determining the range of the first user account in the release account represented by the first play information; in the event that the target value is not within the player number segment, it is determined that the first user account is not within the range of the impression account characterized by the first player information.
In another possible implementation, before receiving the first request, the method further includes: putting a first virtual resource based on a preset white list, wherein the white list comprises a second user account identifier allowing the first virtual resource to be displayed; and under the condition that the configuration information of the first virtual resource meets the preset condition based on the second user account identification, releasing the first virtual resource according to the release account range represented by the second release information.
In another possible implementation manner, before the first virtual resource is released according to the release account range represented by the second release amount information, the method further includes: based on the release account range represented by the third release amount information configured by the first virtual resource, releasing the first virtual resource; the third play amount information is smaller than the second play amount information.
In another possible embodiment, the method further comprises: counting the information of the virtual resources of each user account based on the identification of the virtual resources; the virtual resources comprise a first virtual resource and a second virtual resource.
According to a second aspect of the embodiments of the present disclosure, there is provided a processing apparatus for virtual resources, including: the receiving module is configured to execute receiving a first request, wherein the first request comprises an identifier of a first virtual resource and target configuration information, and the first request is used for requesting that the configuration information of the first virtual resource is modified into the target configuration information based on the target configuration information; a creation module configured to perform creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.
In a possible implementation manner, the second virtual resource is configured with first wager information, the first wager information being used to characterize a scope of a wager account of the second virtual resource, and the receiving module is further configured to perform: receiving a second request sent by the electronic equipment, wherein the second request comprises a first user account identifier and is used for requesting to read virtual resources corresponding to the first user account identifier; determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource based on the corresponding relation between the user account identifier and the identifier of the virtual resource; under the condition that the first user account is determined to be in the release account range represented by the first release amount information based on the first user account identification, returning information of the second virtual resource to the electronic equipment; and returning the information of the first virtual resource to the electronic equipment under the condition that the first user account is determined not to be in the range of the release account represented by the first release amount information based on the first user account identification.
In another possible implementation, the first player information includes a player number segment; the apparatus further comprises a determination module configured to perform: calculating the first user account identification based on a preset algorithm to obtain a target value; under the condition that the target value is in the play number segment, determining the range of the first user account in the release account represented by the first play information; in the event that the target value is not within the player number segment, it is determined that the first user account is not within the range of the impression account characterized by the first player information.
In another possible embodiment, the apparatus further includes a delivery module configured to, before receiving the first request, perform: putting a first virtual resource based on a preset white list, wherein the white list comprises a second user account identifier allowing the first virtual resource to be displayed; and under the condition that the configuration information of the first virtual resource meets the preset condition based on the second user account identification, releasing the first virtual resource according to the release account range represented by the second release information.
In another possible embodiment, the placement module is further configured to, before placing the first virtual resource according to the placement account range characterized by the second placement information, perform: based on the release account range represented by the third release amount information configured by the first virtual resource, releasing the first virtual resource; the third play amount information is smaller than the second play amount information.
In another possible implementation, the apparatus further includes a statistics module configured to perform: counting the information of the virtual resources of each user account based on the identification of the virtual resources; the virtual resources comprise a first virtual resource and a second virtual resource.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the processing method of the virtual resource of the first aspect and any possible implementation thereof.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of a backend server, cause the server to perform the processing method of the virtual resource of the first aspect and any possible implementation manner thereof.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the computer program product comprising computer instructions that, when run on an electronic device, cause a server to perform the processing method of virtual resources of the first aspect and any of its possible implementations.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: when the first virtual resource which is online is updated, a second virtual resource (namely, a new-version virtual resource) with the same identification as the first virtual resource (namely, an old-version resource) is created again, namely, the identification of the first virtual resource simultaneously corresponds to the virtual resources of the new and old versions, so that the virtual resources of the new and old versions are connected through the identification of the first virtual resource, the connection performance of the virtual resources during updating is ensured, and the stability of statistical data before and after the virtual resources are updated is further ensured.
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 illustrative embodiment;
FIG. 3 is a flow diagram illustrating another method of processing virtual resources in accordance with an illustrative embodiment;
FIG. 4 is a flow diagram illustrating another method of processing virtual resources in accordance with an illustrative 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 a server in accordance with an example 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.
Before describing the information processing method provided by the present disclosure in detail, the application scenario and implementation environment related to the present disclosure are briefly described.
First, a brief description is given of an application scenario to which the present disclosure relates.
With the development of the live broadcast industry, in order to meet the requirement of expressing the love degree of the user on live broadcast content, different types of virtual resources are set in the live broadcast room, so that the user can express the love degree of the live broadcast in different degrees by presenting the different types of virtual resources. When the anchor broadcasts in the live broadcast room, the user account sends a virtual resource acquisition request to the server by clicking the control of the live broadcast room, and when receiving the virtual resource returned by the server, the virtual resource is given to the anchor.
In order to facilitate the user account to know the condition of the virtual resources received by the anchor, the virtual resources received by the anchor are displayed on a details page of the anchor. For example, clicking the avatar of the anchor can enter the detail page of the anchor information, clicking the corresponding price control on the detail page, and expanding the virtual resources in a list form, wherein the virtual resources received by the anchor are displayed on the list. However, when the server updates the virtual resources, the virtual resources of the new and old versions have poor connectivity, which results in poor stability of the statistical data of the virtual resources, and seriously affects the use experience of the user account.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a server, and a storage medium for processing a virtual resource, where when a first virtual resource that is already online is updated, a second virtual resource (i.e., a virtual resource of a new version) having the same identifier as the first virtual resource (i.e., a resource of an old version) is created again, that is, the identifier of the first virtual resource corresponds to the virtual resources of two new and old versions at the same time, so that the virtual resources of the two new and old versions are connected by the identifier of the first virtual resource, the connection when the virtual resource is updated is ensured, and the stability of statistical data before and after the virtual resource is updated is ensured.
Next, the following briefly describes an implementation environment (implementation architecture) related to the present disclosure.
The processing method of the virtual resource provided by the embodiment of the disclosure can be applied to a server. The server may be any one server or a server cluster, which is not limited in this disclosure.
In one embodiment, the user account views the live broadcast using the electronic device and views the virtual resource of the anchor account through the electronic device. The electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a desktop computer, a portable computer, a vehicle-mounted terminal, a wearable device, and the like, which is not limited in this disclosure.
For the convenience of understanding, the processing method of the virtual resource provided by the present disclosure is specifically described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a processing method of a virtual resource for a server according to an exemplary embodiment. As shown in fig. 1, the processing method of the virtual resource includes S101-S102.
In S101, a first request is received, where the first request includes an identifier of a first virtual resource and target configuration information, and the first request is used to request that configuration information of the first virtual resource be modified into the target configuration information based on the target configuration information.
Optionally, the first virtual resource comprises a virtual gift resource and a virtual achievement resource. The virtual gift resources are used for representing resources donated to the anchor account by the user account, and the virtual achievement resources are used for representing resources issued to the anchor account by the live broadcast platform.
Optionally, the target configuration information includes image information of the first virtual resource. For example, the image information may be content information that is used by the virtual resource for display to the user account.
In one embodiment, the first virtual resource is a virtual resource that has been completely online, meaning that all user accounts of the platform can view the virtual resource.
In another embodiment, the first virtual resource is a virtual resource that is not completely online, where the virtual resource is not completely online, and the virtual resource is visible to a part of user accounts of the platform, and the virtual resource is not visible to another part of user accounts.
In S102, a second virtual resource is created based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.
Optionally, after receiving the first request, the server creates a second virtual resource based on the target configuration information carried in the first request. At this time, the identifier of the first virtual resource corresponds to two virtual resources, namely, the first virtual resource and the second virtual resource. Specifically, in view of the configuration information, the first virtual resource is an old version of the virtual resource, and the second virtual resource is a new version of the virtual resource.
In one embodiment, the second virtual resource is created by a server.
In another embodiment, the second virtual resource is created by the server through a database server. Specifically, after receiving the first request, the server sends a creation request of the second virtual resource to the database server to request the database server to create the second virtual resource, for example, to create storage information of the second virtual resource.
Further, the server may also construct a notification-type local cache for the virtual resource stored in the database server, for example, the notification-type local cache may be constructed by Zookeeper, so that when the database server updates the virtual resource, the server is notified of the local cache in a Zookeeper manner to re-pull the storage information of the virtual resource from the database server, thereby ensuring that the virtual resource can be quickly perceived by the terminal after being modified. And when the terminal requests to display the virtual resource, the virtual resource can be directly acquired from the local cache of the server, so that the pressure of the database server can be reduced.
In the above embodiment, when the first virtual resource that has been online is updated, a second virtual resource (i.e., a new version of virtual resource) having the same identifier as the first virtual resource (i.e., an old version of resource) is created again, that is, the identifier of the first virtual resource corresponds to the new and old versions of virtual resource at the same time, so that the new and old versions of virtual resource are connected by the identifier of the first virtual resource, thereby ensuring the connectivity of the virtual resource when being updated, and further ensuring the stability of the statistical data before and after the virtual resource is updated.
In a possible implementation manner, the second virtual resource is configured with first volume information, and the first volume information is used for representing a delivery account range of the second virtual resource. With reference to fig. 1, as shown in fig. 2, the processing method of the virtual resource further includes: S103-S106.
In S103, a second request sent by the electronic device is received, where the second request includes the first user account identifier, and the second request is used to request to read the virtual resource corresponding to the first user account identifier.
Optionally, the electronic device sends a second request to the server in response to the user account triggering operation, and requests the server to read the virtual resource corresponding to the first user account identifier. Wherein the first user account identifier is an identifier of the anchor account. For example, the first user account identification may be an ID of the anchor account, a username of the anchor account, or other identification that enables the uniqueness of the anchor account to be determined.
It should be noted that the identifier of the first user account is an identifier of the first user account.
In S104, it is determined that the virtual resource corresponding to the first user account identifier includes the first virtual resource and the second virtual resource based on the correspondence between the user account identifier and the identifier of the virtual resource.
In an embodiment, after receiving the second request, the server reads, from the local cache, the first virtual resource and the second virtual resource corresponding to the first user account identifier based on the correspondence between the user account identifier and the identifier of the virtual resource.
In another embodiment, after receiving the second request, the server obtains, from the database server, the first virtual resource and the second virtual resource corresponding to the first user account identifier based on the correspondence between the user account identifier and the identifier of the virtual resource.
Optionally, the server performs real-time statistics on the virtual resource identifier received by each anchor account identifier, for example, performs real-time statistics on the virtual resource identifier received by the first user account identifier. Further, a correspondence between each anchor account identification (i.e. the first user account identification) and the received identification of the virtual resource is established.
In S105, in the case that it is determined that the first user account is within the range of the placement account represented by the first placement information based on the first user account identifier, information of the second virtual resource is returned to the electronic device.
Optionally, the information of the second virtual resource returned to the electronic device at least includes second image information of the second virtual resource. The second image information is used to characterize content information displayed on the electronic device.
In one embodiment, the first wager information includes at least one user account identification. And under the condition that the first user account identification is the same as at least one user account identification included in the first discharge information, determining that the first user account identification belongs to the first discharge information, namely, the first user account is in the range of the release account represented by the first discharge information.
In another embodiment, the first payout information includes a payout number segment, and after the first user account identifier is subjected to preset processing, if the processed first user account identifier belongs to a range corresponding to the payout number segment, it is determined that the first user account identifier belongs to the first payout information, that is, the first user account is within a payout account range represented by the first payout information.
Further, the first user account indicates that the first user account has the right to display the new version of the virtual resource (i.e., the second virtual resource) in the release account range represented by the first release information, and at this time, the information of the second virtual resource is returned to the electronic device.
And S106, in the case that the first user account is determined not to be within the range of the release account represented by the first release amount information based on the first user account identification, returning the information of the first virtual resource to the electronic device.
Optionally, the information of the first virtual resource returned to the electronic device at least includes first image information of the first virtual resource. The first image information is used to characterize content information displayed on the electronic device.
In one embodiment, the first wager information includes at least one user account identification. And under the condition that the first user account identification is different from at least one user account identification included in the first discharge information, determining that the first user account identification does not belong to the first discharge information, namely that the first user account is not in the range of the release account represented by the first discharge information.
In another embodiment, the first payout information includes a payout number segment, and after the first user account identifier is subjected to preset processing, if the processed first user account identifier does not belong to a range corresponding to the payout number segment, it is determined that the first user account identifier does not belong to the first payout information, that is, the first user account is not in the payout account range represented by the first payout information.
Further, the first user account is not in the range of the release account represented by the first release amount information, which indicates that the first user account does not have the right to display the new version of the virtual resource (i.e., the second virtual resource), and at this time, the old version of the virtual resource (i.e., the first virtual resource) is returned to the electronic device.
In the above embodiment, the virtual resources historically received by the anchor account (i.e., the first user account) are read according to the corresponding relationship between the identifier of the anchor account (i.e., the identifier of the first user account) and the identifier of the virtual resource, so that when the virtual resources are updated, it is ensured that the anchor account can read the virtual resources of the new and old versions. The anchor account which is in the new version virtual resource release range is configured with the new version virtual resource, so that the new version virtual resource can be displayed, while the anchor account which is not in the new version virtual resource release range is configured with the version virtual resource, so that the old version virtual resource is displayed, and the compatibility of the new version and the old version is ensured when the virtual resource is updated.
In one possible embodiment, the first player information includes a player number segment; the processing method of the virtual resource further comprises the following steps:
the method comprises the following steps: and calculating the first user account identification based on a preset algorithm to obtain a target value.
Optionally, the play number segment may include a target value corresponding to one user account identifier, or may include target values corresponding to at least two user account identifiers. Illustratively, the play size field may be 1-5 where the play size field includes a target value corresponding to five user account identifications. In the case where the play number segment includes a target value corresponding to two user account identifications, the play number segment may be 1-2.
In one embodiment, the preset algorithm comprises a modulo algorithm. For example, the target value is obtained modulo 100 the first user account identification.
Step two: and in the case that the target value is in the player number segment, determining the range of the first user account in the release account represented by the first player information.
In one embodiment, for example, if the player number segment is 1-5 and the target value is 3, then the first user account is within the range of the impression account represented by the first player information.
Step three: in the event that the target value is not within the player number segment, it is determined that the first user account is not within the range of the impression account characterized by the first player information.
In one embodiment, for example, if the player number segment is 1-5 and the goal value is 6, then the first user account is not within the range of the impression account represented by the first player information.
In the above embodiment, when the play information includes the play number segment, the first user account identifier is subjected to preset processing to obtain the target value, and whether the first user account identifier belongs to the play account identifier represented by the first play information is determined according to the relationship between the target value and the play number segment.
In a possible implementation manner, with reference to fig. 1, as shown in fig. 3, the processing method of the virtual resource further includes: S107-S108.
In S107, the first virtual resource is released based on a preset white list, where the white list includes a second user account identifier allowing the first virtual resource to be displayed.
Optionally, the server obtains initial configuration information of the first virtual resource, and creates the first virtual resource according to the initial configuration information. The initial configuration information includes image information of the first virtual resource, an identification of the first virtual resource, and a white list.
In one example, the identification of the first virtual resource may be an ID of the first virtual resource. Alternatively, the identification of the first virtual resource may be a unique code of the first virtual resource. The image information corresponds to display content information when the virtual resource is displayed on the terminal, that is, display content information when the first virtual resource is displayed on the terminal to which the second user account identifier belongs.
In one embodiment, the server creates a first virtual resource based on the initial configuration information, and based on a preset white list, the delivery is based on the first virtual resource.
In another embodiment, the server sends a create request to the database server to request the database server to create the first virtual resource, the create request including the initial configuration information. After the database server creates the first virtual resource, the server receives a successful creating response returned by the database server, the successful creating response is created and applied to an account corresponding to the second user account identifier in the representation white list, and the account has the authority of displaying the first virtual resource, and at the moment, the server puts in the first virtual resource based on the white list.
In one example, a server sends a create request to a database server through a remote procedure call framework.
Optionally, before the step of sending, by the server, the creation request to the database server through the remote procedure call framework, the method may further include: the server acquires a distributed lock from a database server through a remote process call frame to judge whether a creation request is the same as an executing creation request; in the event of a successful acquisition of the distributed lock, the server sends a create request to the database server through the remote procedure call framework. Under the condition that the server successfully acquires the distributed lock, the server sends a creation request to the database server through the remote call frame, so that the problem that the database server executes two creation requests for the virtual resource corresponding to the identifier of the same virtual resource at the same time to cause a storage information creation error corresponding to the virtual resource can be avoided, and the stability of the storage information creation of the virtual resource is further ensured.
In S108, when it is determined that the configuration information of the first virtual resource satisfies the preset condition based on the second user account identifier, the first virtual resource is released according to the release account range represented by the second release amount information.
Optionally, the step of when the configuration information of the first virtual resource meets the preset condition includes: the display content information of the first virtual resource meets a preset condition, for example, the display content information is consistent with information to be expressed by the image information.
Optionally, the range of the placement accounts represented by the second placement information is a range of the placement accounts greater than or equal to the first threshold. For example, the first threshold may be 90%, i.e., the first virtual resource is placed on a majority of the user accounts. Alternatively, the first threshold may also be 100%, i.e. the first virtual resource is placed to the user accounts owned by the platform.
In the above embodiment, before the first virtual resource is online, the first virtual resource is released to the second user account identifier in the white list, so that the display content of the first virtual resource is checked, and the first virtual resource is online under the condition that the display content of the first virtual resource is correct, thereby ensuring the stability of online of the first virtual resource.
In a possible implementation manner, with reference to fig. 3, as shown in fig. 4, before S108, the method for processing the virtual resource further includes: and S109.
In S109, when it is determined that the configuration information of the first virtual resource satisfies the preset condition based on the second user account identifier, the first virtual resource is released based on the release account range represented by the third release amount information configured for the first virtual resource.
Wherein the third play amount information is smaller than the second play amount information.
Optionally, when the configuration information of the first virtual resource meets the preset condition, the server obtains third release information of the first virtual resource, where the third release information is used to represent a release account range of the first virtual resource.
Optionally, the third wager information comprises a wager percentage, wherein the wager percentage is indicative of a percentage of the number of placed accounts in the total number of accounts. For example, the shot size percentage may be 1%. After the server obtains the play percentage of the first virtual resource, the play number segment of the first virtual resource is determined based on the play percentage and the anchor account identifier of the platform. The play number segment may be a number segment directly formed by the anchor account identifier, or may be a number segment formed by a target value obtained by performing preset processing on the anchor account identifier.
Illustratively, when the volume percentage is 1%, and the number of the anchor account id corresponding to the platform is 100, the number of the drop account is 1, that is, only one anchor account can display the first virtual resource.
In one embodiment, the server obtains the third volume information. And updating the storage information of the first virtual resource in the local cache of the server based on the third release information so that the storage information comprises the third release information, and releasing the first virtual resource based on the third release information.
In another embodiment, after acquiring the third play amount information, the server sends a first virtual resource play amount updating request to the database server, and requests the database server to update the storage information of the first virtual resource, so that the storage information packet contains the third play amount information. And after the server receives an update success response returned by the database server, the server puts the first virtual resource based on the third putting information. For example, the server may send a first virtual resource inventory update request to the database server through the remote procedure call framework.
Further, before the server sends the first virtual resource placement update request to the database server, the method may further include: the server acquires the distributed lock from the database server through a remote process call frame to judge whether the release update request is the same as the release update request being executed; and under the condition of successfully acquiring the distributed lock, the server sends a release updating request to the database server through the remote procedure call framework. Under the condition that the server successfully acquires the distributed lock, the server sends the release updating request to the database server through the remote calling frame, so that the situation that the database server executes the release updating request for the same virtual resource twice at the same time to cause the update error of the release information corresponding to the virtual resource can be avoided, and the stability of the release information updating of the virtual resource is further ensured.
In the above embodiment, after the second user account identifier in the white list determines that the display content of the virtual resource is correct, and before the first virtual resource is released in a large range (i.e., before the first virtual resource is released according to the release account range represented by the second release information), the first virtual resource is released in a smaller range (i.e., the first virtual resource is released in the release account range represented by the third release information), so that the first virtual resource is gradually released in a manner of gradually expanding the release range, and the first virtual resource is smoothly and stably online.
In a possible implementation, the processing method of the virtual resource further includes: counting the information of the virtual resources of each user account based on the identification of the virtual resources; the virtual resources comprise a first virtual resource and a second virtual resource.
Optionally, the counting the information of the virtual resources of each user account includes: and counting the quantity of the virtual resources received by each user account.
In the above embodiment, the information of the new and old versions (i.e., the first virtual resource and the second virtual resource) of the virtual resource is counted through the identifier of the virtual resource, so that the stability of information counting of the virtual resource is ensured when the information versions are switched.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the disclosure also provides a processing device of the virtual resource.
FIG. 5 is a block diagram illustrating a processing device of a virtual resource in accordance with an exemplary embodiment. Referring to fig. 5, the apparatus includes a determination receiving module 501 and a creating module 502.
The receiving module 501 is configured to perform receiving a first request, where the first request includes an identifier of a first virtual resource and target configuration information, and the first request is used to request that configuration information of the first virtual resource be modified into the target configuration information based on the target configuration information. For example, as shown in fig. 1, the receiving module 501 is configured to execute S101.
A creation module 502 configured to perform creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is target configuration information. For example, as shown in FIG. 1, the creation module 502 is configured to execute S102.
In a possible implementation manner, the second virtual resource is configured with first wager information, the first wager information being used to characterize a scope of a wager account of the second virtual resource, and the receiving module is further configured to perform: receiving a second request sent by the electronic equipment, wherein the second request comprises a first user account identifier and is used for requesting to read virtual resources corresponding to the first user account identifier; determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource based on the corresponding relation between the user account identifier and the identifier of the virtual resource; under the condition that the first user account is determined to be in the release account range represented by the first release amount information based on the first user account identification, returning information of the second virtual resource to the electronic equipment; and returning the information of the first virtual resource to the electronic equipment under the condition that the first user account is determined not to be in the range of the release account represented by the first release amount information based on the first user account identification. For example, as shown in FIG. 2, the receiving module 501 is configured to perform S103-S106.
In another possible embodiment, the first player information includes a player number segment; the apparatus further comprises a determination module configured to perform: calculating the first user account identification based on a preset algorithm to obtain a target value; under the condition that the target value is in the play number segment, determining the range of the first user account in the release account represented by the first play information; in the event that the target value is not within the player number segment, it is determined that the first user account is not within the range of the impression account characterized by the first player information.
In another possible embodiment, the apparatus further comprises a delivery module configured to, before receiving the first request, perform: putting a first virtual resource based on a preset white list, wherein the white list comprises a second user account identifier allowing the first virtual resource to be displayed; and under the condition that the configuration information of the first virtual resource meets the preset condition based on the second user account identification, releasing the first virtual resource according to the release account range represented by the second release information. For example, as shown in FIG. 3, the placement module may be configured to perform S107-S108.
In another possible embodiment, the placement module is further configured to, before placing the first virtual resource according to the placement account range characterized by the second placement information, perform: based on the release account range represented by the third release amount information configured by the first virtual resource, releasing the first virtual resource; the third play amount information is smaller than the second play amount information. For example, as shown in fig. 4, the delivery module may be configured to perform S109.
In another possible implementation, the apparatus further includes a statistics module configured to perform: counting the information of the virtual resources of each user account based on the identification of the virtual resources; the virtual resources comprise a first virtual resource and a second virtual resource.
Fig. 6 is a block diagram illustrating a server 600 according to an exemplary embodiment, where the server 600 may have a large difference due to different configurations or performances, and may include one or more processors 601 and one or more memories 602. The memory 602 stores therein at least one instruction, and the at least one instruction is loaded and executed by the processor 601 to implement the processing method of the virtual resource provided by the above-described method embodiments, for example, S101 to S102. Of course, the server 600 may also include other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, the disclosed embodiment further provides a computer-readable storage medium including instructions, for example, the memory 602 including instructions, which are executable by the processor 601 of the background server 600 to perform the processing method of the virtual resource in S101-S102.
Alternatively, the computer-readable storage medium may be a non-transitory computer-readable storage medium, which may be, for example, a Read-Only Memory (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, the disclosed embodiment also provides a computer program product including one or more instructions executable by the processor 601 of the server 600 to perform the processing method of the list elements in S101-S102 described above.
It should be noted that when executed by the processor 601 of the server 600, the instructions in the computer-readable storage medium or one or more instructions in the computer program product implement the processes of the embodiment of the processing method for virtual resources, and can achieve the same technical effects as those of the processing methods S101 to S102 for virtual resources, and therefore, for avoiding repetition, no further description is provided here.
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 method for processing virtual resources is characterized by comprising the following steps:
receiving a first request, wherein the first request comprises an identifier of a first virtual resource and target configuration information, and the first request is used for requesting that the configuration information of the first virtual resource is modified into the target configuration information based on the target configuration information;
creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is the target configuration information.
2. The method for processing the virtual resource according to claim 1, wherein the second virtual resource is configured with first release information, and the first release information is used to characterize a release account range of the second virtual resource, and the method further comprises:
receiving a second request sent by electronic equipment, wherein the second request comprises a first user account identifier, and the second request is used for requesting to read a virtual resource corresponding to the first user account identifier;
determining that the virtual resource corresponding to the first user account identifier comprises the first virtual resource and the second virtual resource based on the corresponding relationship between the user account identifier and the identifier of the virtual resource;
returning the information of the second virtual resource to the electronic equipment under the condition that the first user account is determined to be in the release account range represented by the first release amount information based on the first user account identification;
and returning the information of the first virtual resource to the electronic equipment under the condition that the first user account is determined not to be in the range of the release account represented by the first release amount information based on the first user account identification.
3. The method according to claim 2, wherein the first player information includes a player number segment; the method further comprises the following steps:
calculating the first user account identification based on a preset algorithm to obtain a target value;
determining the range of the first user account in the release account represented by the first release information under the condition that the target value is in the release number segment;
and determining that the first user account is not in the range of the release account represented by the first release information if the target value is not in the release number segment.
4. The method of processing virtual resources of claim 1, wherein prior to receiving the first request, the method further comprises:
the first virtual resource is released based on a preset white list, and the white list comprises a second user account identifier allowing the first virtual resource to be displayed;
and under the condition that the configuration information of the first virtual resource meets the preset condition based on the second user account identification, releasing the first virtual resource according to the release account range represented by the second release information.
5. The method for processing virtual resources according to claim 4, wherein before the releasing the first virtual resource according to the release account range characterized by the second release amount information, the method further comprises:
based on the release account range represented by the third release amount information configured by the first virtual resource, releasing the first virtual resource; the third play amount information is smaller than the second play amount information.
6. The method for processing virtual resources according to claim 1, further comprising:
counting the information of the virtual resources of each user account based on the identification of the virtual resources; wherein the virtual resource comprises the first virtual resource and the second virtual resource.
7. An apparatus for processing virtual resources, comprising:
a receiving module configured to perform receiving a first request, the first request including an identification of a first virtual resource and target configuration information, the first request requesting that configuration information of the first virtual resource be modified to the target configuration information based on the target configuration information;
a creation module configured to perform creating a second virtual resource based on the target configuration information; the identifier of the second virtual resource is the same as the identifier of the first virtual resource, and the configuration information of the second virtual resource is the target configuration information.
8. The apparatus for processing the virtual resource according to claim 7, wherein the second virtual resource is configured with first wager information, the first wager information being used to characterize a scope of a wager account of the second virtual resource, the receiving module is further configured to perform:
receiving a second request sent by electronic equipment, wherein the second request comprises a first user account identifier, and the second request is used for requesting to read a virtual resource corresponding to the first user account identifier;
determining that the virtual resource corresponding to the first account identifier comprises the first virtual resource and the second virtual resource based on the corresponding relationship between the user account identifier and the identifier of the virtual resource;
returning information of the second virtual resource to the electronic device in the case that the first user account is determined to be in the release account range represented by the first release amount information based on the first user account identification;
and returning the information of the first virtual resource to the electronic equipment under the condition that the first user account is determined not to be in the range of the release account represented by the first release amount information based on the first user account identification.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of processing of the virtual resource of any of claims 1-6.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing the virtual resource of any of claims 1-6.
CN202111236003.1A 2021-10-22 2021-10-22 Virtual resource processing method, device, server and storage medium Active CN113965770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111236003.1A CN113965770B (en) 2021-10-22 2021-10-22 Virtual resource processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111236003.1A CN113965770B (en) 2021-10-22 2021-10-22 Virtual resource processing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN113965770A true CN113965770A (en) 2022-01-21
CN113965770B CN113965770B (en) 2023-08-22

Family

ID=79466429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111236003.1A Active CN113965770B (en) 2021-10-22 2021-10-22 Virtual resource processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113965770B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745571A (en) * 2022-04-15 2022-07-12 网易(杭州)网络有限公司 Live broadcast state information synchronization method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096416A1 (en) * 2015-07-31 2018-04-05 Tencent Technology (Shenzhen) Company Limited Virtual resource transfer method, client device, application server, and system
CN111861432A (en) * 2020-07-29 2020-10-30 北京达佳互联信息技术有限公司 Virtual resource information updating method and device, server and storage medium
CN112100204A (en) * 2020-09-18 2020-12-18 广州华多网络科技有限公司 Virtual resource regulation and control method and device, computer equipment and storage medium
CN112351298A (en) * 2020-10-29 2021-02-09 腾讯科技(深圳)有限公司 Virtual resource processing method and device, storage medium and electronic equipment
CN112672175A (en) * 2020-12-11 2021-04-16 北京字跳网络技术有限公司 Live broadcast interaction method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096416A1 (en) * 2015-07-31 2018-04-05 Tencent Technology (Shenzhen) Company Limited Virtual resource transfer method, client device, application server, and system
CN111861432A (en) * 2020-07-29 2020-10-30 北京达佳互联信息技术有限公司 Virtual resource information updating method and device, server and storage medium
CN112100204A (en) * 2020-09-18 2020-12-18 广州华多网络科技有限公司 Virtual resource regulation and control method and device, computer equipment and storage medium
CN112351298A (en) * 2020-10-29 2021-02-09 腾讯科技(深圳)有限公司 Virtual resource processing method and device, storage medium and electronic equipment
CN112672175A (en) * 2020-12-11 2021-04-16 北京字跳网络技术有限公司 Live broadcast interaction method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745571A (en) * 2022-04-15 2022-07-12 网易(杭州)网络有限公司 Live broadcast state information synchronization method and device, electronic equipment and readable storage medium
CN114745571B (en) * 2022-04-15 2024-01-23 网易(杭州)网络有限公司 Live state information synchronization method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113965770B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN108259643B (en) Binding method and device of intelligent device and user operation terminal, and electronic device
CN108494799B (en) Data sharing method and system
CN110433496B (en) Cloud game resource allocation method, electronic device and storage medium
CN105208047B (en) Inserting method and server on distribution system services device
JP2018007964A (en) Video game processing program and video game processing system
CN103457783A (en) Method and system for testing mobile network application
WO2015120789A1 (en) Information processing method and game server
CN105871938B (en) A kind of virtual resource configuration system, method and device
CN112486620A (en) Cross-process off-screen rendering method and device, electronic equipment and storage medium
CN113965770A (en) Virtual resource processing method, device, server and storage medium
CN106648769A (en) Application upgrading method, server and user device
CN111131052B (en) Method and device for updating routing information
CN111611017A (en) Display card selection method and related device
CN112449205A (en) Information interaction method and device, terminal equipment and storage medium
CN107968799B (en) Information acquisition method, terminal equipment and system
JP6412667B1 (en) Server, method, and program for providing game
CN108121574A (en) Hot upgrade method, device and the virtual machine system of a kind of kernel module
CN113077280A (en) Electronic resource allocation method and device, electronic equipment and storage medium
CN111107165A (en) Disconnection reconnection method, disconnection reconnection device and computer readable storage medium
JP7185093B1 (en) Information processing device, information processing method and program
CN110895507B (en) Simulation test method and device, simulation server and storage medium
CN113244630B (en) Resource allocation method and device, electronic equipment and storage medium
CN114489408B (en) Animation processing system, method, device and storage medium
US9849374B2 (en) Automatic generation of social group for an online-user
CN111176763B (en) Method and device for calling help function of command

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
GR01 Patent grant
GR01 Patent grant