CN113965770B - 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
CN113965770B
CN113965770B CN202111236003.1A CN202111236003A CN113965770B CN 113965770 B CN113965770 B CN 113965770B CN 202111236003 A CN202111236003 A CN 202111236003A CN 113965770 B CN113965770 B CN 113965770B
Authority
CN
China
Prior art keywords
virtual resource
information
user account
virtual
identifier
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.)
Active
Application number
CN202111236003.1A
Other languages
Chinese (zh)
Other versions
CN113965770A (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

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 device, a server and a storage medium of virtual resources, relates to the technical field of data processing, and aims to at least solve the problems of poor acceptance and stability of new and old versions of virtual resources when the virtual resources are updated in the related technology. The method comprises the following steps: receiving a first request, wherein the first request comprises an identification of a first virtual resource and target configuration information, and the first request is used for requesting to modify the configuration information of the first virtual resource into the target configuration information based on the target configuration information; creating a second virtual resource based on the target configuration information; the identification of the second virtual resource is the same as the identification 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 disclosure relates to the technical field of data processing, and in particular relates to a virtual resource processing method, device, server and storage medium.
Background
In the live broadcast process of the live broadcast room, the client side can provide virtual resources on the live broadcast page so that a user account can be given to the live broadcast, and the live broadcast is encouraged to produce better live broadcast content.
In the related art, in order to facilitate the user to know the condition of the virtual resource received by the anchor, the virtual resource received by the anchor is displayed on the detail page of the anchor. However, when the virtual resource is updated, the acceptance of the new and old versions of the virtual resource is poor, so that the stability of the statistical data of the virtual resource is poor, and the use experience of the user account is seriously affected.
Disclosure of Invention
The disclosure provides a processing method, a device, a server and a storage medium for virtual resources, which at least solve the problems that virtual resources of new and old versions cannot be joined and the statistical data stability of the virtual resources is poor when the virtual resources are updated in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a method for processing a virtual resource, including: receiving a first request, wherein the first request comprises an identification of a first virtual resource and target configuration information, and the first request is used for requesting to modify the configuration information of the first virtual resource into the target configuration information based on the target configuration information; creating a second virtual resource based on the target configuration information; the identification of the second virtual resource is the same as the identification of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.
In one possible implementation, the second virtual resource is configured with first put information, where the first put information is used to characterize a put account range 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 the second request is used for requesting to read virtual resources corresponding to the first user account identifier; based on the corresponding relation between the user account identifier and the identifier of the virtual resource, determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource; returning information of the second virtual resource to the electronic device under the condition that the first user account is determined to be in the range of the put account characterized by the first put amount information based on the first user account identification; and returning information of the first virtual resource to the electronic device under the condition that the first user account is not in the range of the delivery account characterized by the first release information based on the first user account identification.
In another possible implementation, the first put information includes a put number segment; the method further comprises the steps of: calculating a first user account identifier based on a preset algorithm to obtain a target value; under the condition that the target value is in the put number section, determining the range of the put account, characterized by the first put information, of the first user account; and under the condition that the target value is not in the discharge number section, determining that the first user account is not in the range of the delivery account characterized by the first discharge information.
In another possible embodiment, before receiving the first request, the method further includes: releasing the 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 identifier, the first virtual resource is released according to the release account range characterized by the second release information.
In another possible implementation manner, before the first virtual resource is released according to the release account range characterized by the second release information, the method further includes: releasing the first virtual resource based on a release account range characterized by third release information of the first virtual resource configuration; the third put information is smaller than the second put information.
In another possible embodiment, the method further comprises: based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include a first virtual resource and a second virtual resource.
According to a second aspect of an embodiment of the present disclosure, there is provided a processing apparatus for a virtual resource, including: 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 being for requesting modification of the configuration information of the first virtual resource to the target configuration information based on the target configuration information; a creation module configured to execute creating a second virtual resource based on the target configuration information; the identification of the second virtual resource is the same as the identification of the first virtual resource, and the configuration information of the second virtual resource is target configuration information.
In one possible implementation, the second virtual resource is configured with first put information, the first put information being used to characterize a put account range of the second virtual resource, the receiving module being further configured to perform: receiving a second request sent by the electronic equipment, wherein the second request comprises a first user account identifier, and the second request is used for requesting to read virtual resources corresponding to the first user account identifier; based on the corresponding relation between the user account identifier and the identifier of the virtual resource, determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource; returning information of the second virtual resource to the electronic device under the condition that the first user account is determined to be in the range of the put account characterized by the first put amount information based on the first user account identification; and returning information of the first virtual resource to the electronic device under the condition that the first user account is not in the range of the delivery account characterized by the first release information based on the first user account identification.
In another possible implementation, the first put information includes a put number segment; the apparatus further includes a determination module configured to perform: calculating a first user account identifier based on a preset algorithm to obtain a target value; under the condition that the target value is in the put number section, determining the range of the put account, characterized by the first put information, of the first user account; and under the condition that the target value is not in the discharge number section, determining that the first user account is not in the range of the delivery account characterized by the first discharge information.
In another possible implementation, the apparatus further includes a delivery module configured to perform, prior to receiving the first request: releasing the 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 identifier, the first virtual resource is released according to the release account range characterized by the second release information.
In another possible implementation, the placement module is further configured to perform, prior to placing the first virtual resource, a placement account range characterized according to the second placement information: releasing the first virtual resource based on a release account range characterized by third release information of the first virtual resource configuration; the third put information is smaller than the second put information.
In another possible implementation, the apparatus further includes a statistics module configured to perform: based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include a first virtual resource and a second virtual resource.
According to a third aspect of embodiments of the present disclosure, there is provided a server comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method of processing virtual resources of the first aspect and any of its possible implementation manners described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of a background server, causes the server to perform the method of processing virtual resources of the first aspect and any of its possible implementation manners.
According to a fifth aspect of the disclosed embodiments, there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause a server to perform the method of processing 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 online first virtual resource 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 re-created, namely the identification of the first virtual resource corresponds to the two new and old versions of virtual resources at the same time, so that the two new and old versions of virtual resources are accepted through the identification of the first virtual resource, the acceptance of the virtual resource during updating is ensured, and the stability of the statistic data before and after the virtual resource updating 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 disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow chart illustrating a method of processing virtual resources according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating another method of processing virtual resources according to an example embodiment;
FIG. 3 is a flow chart illustrating another method of processing virtual resources according to an example embodiment;
FIG. 4 is a flowchart illustrating another method of processing virtual resources, according to an example embodiment;
FIG. 5 is a block diagram of another virtual resource processing apparatus, shown in accordance with an exemplary embodiment;
fig. 6 is a block diagram of a server, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of 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 foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Before describing the information processing method provided by the present disclosure in detail, a brief description is first provided of an application scenario and an implementation environment related to the present disclosure.
First, an application scenario related to the present disclosure will be briefly described.
With the development of the live broadcast industry, in order to meet the requirement of user expression on the preference degree of live broadcast content, different types of virtual resources are arranged in a live broadcast room, so that users express the preference of different degrees of live broadcast by giving different types of virtual resources. When the host broadcast is live in the live broadcast room, the user account sends a virtual resource acquisition request to the server by clicking a control of the live broadcast room, and when receiving the virtual resource returned by the server, the user account gives the virtual resource to the host broadcast.
In order to facilitate the user account to know the condition of the virtual resource received by the anchor, the virtual resource received by the anchor is displayed on a detail page of the anchor. For example, clicking on the head portrait of the anchor may enter the detail page of the anchor information, clicking on the corresponding price control on the detail page may expand the virtual resources in the form of a list on which the virtual resources received by the anchor are shown. However, when the server updates the virtual resource, the acceptance of the new and old versions of the virtual resource is poor, so that the stability of the statistical data of the virtual resource is poor, and the use experience of the user account is seriously affected.
In view of 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 has been online is updated, a second virtual resource (i.e., a new version of virtual resource) that has the same identifier as the first virtual resource (i.e., an old version of virtual resource) is newly created, that is, the identifier of the first virtual resource corresponds to two new and old versions of virtual resources at the same time, so that the two new and old versions of virtual resources are accepted by the identifier of the first virtual resource, thereby ensuring the acceptance of the virtual resource during update, and further ensuring the stability of statistics data before and after the update of the virtual resource.
Next, an implementation environment (implementation architecture) to which the present disclosure relates will be briefly described below.
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, a user account views live using an electronic device and views virtual resources of a host 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, or the like, which is not limited in this disclosure.
For easy understanding, the following describes the processing method of virtual resources provided in the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for processing 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, the first request including an identification of a first virtual resource and target configuration information, the first request for requesting modification of the configuration information of the first virtual resource to the target configuration information based on the target configuration information.
Optionally, the first virtual resource includes a virtual gift resource and a virtual achievement resource. The virtual gift resources are used for representing resources presented 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 for the virtual resource to display to the user account.
In one embodiment, the first virtual resource is a virtual resource that is already fully online, meaning that all user accounts of the platform can view the virtual resource.
In another embodiment, the first virtual resource is an incompletely online virtual resource, where a portion of the user accounts of the platform may view the virtual resource and another portion of the user accounts may not view the virtual resource.
In S102, creating a second virtual resource based on the target configuration information; the identification of the second virtual resource is the same as the identification 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 identification of the first virtual resource corresponds to two virtual resources, i.e., the first virtual resource and the second virtual resource. Specifically, in terms of configuration information, the first virtual resource is an old version of virtual resource, and the second virtual resource is a new version of 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, create storage information of the second virtual resource.
Further, the server can also construct a notification type local cache for the virtual resources stored in the database server, for example, the notification type local cache can be constructed through a Zookeeper, so that when the database server updates the virtual resources, the local cache of the server is notified to the database server to pull the storage information of the virtual resources again in a Zookeeper mode, and therefore the fact that the virtual resources can be perceived by the terminal quickly after being modified is guaranteed. And the virtual resource can be directly obtained from the local cache of the server when the terminal requests to display the virtual resource, so that the pressure of the database server can be reduced.
In the above embodiment, when the online first virtual resource is updated, a second virtual resource (i.e., a new version virtual resource) having the same identifier as the first virtual resource (i.e., an old version of virtual resource) is newly created, that is, the identifier of the first virtual resource corresponds to the two new and old versions of virtual resources at the same time, so that the two new and old versions of virtual resources are accepted through the identifier of the first virtual resource, which ensures the acceptance of the virtual resource during updating, and further ensures the stability of the statistics data before and after the virtual resource updating.
In one possible implementation, the second virtual resource is configured with first put information, the first put information being used to characterize a put account range of the second virtual resource. Referring 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 a 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 identification is an identification of the anchor account. For example, the first user account identification may be an ID of the anchor account, a user name of the anchor account, or other identification capable of determining the identity of the anchor account.
It should be noted that the first user account identifier is an identifier of the first user account.
In S104, it is determined that the virtual resources corresponding to the first user account identifier include 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 one embodiment, after receiving the second request, the server reads the first virtual resource and the second virtual resource corresponding to the first user account identifier from the local cache based on a correspondence between the user account identifier and the identifier of the virtual resource.
In another embodiment, after receiving the second request, the server obtains the first virtual resource and the second virtual resource corresponding to the first user account identifier from the database server 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 identifier of the virtual resource received by the first user account identifier. Further, a correspondence between each anchor account identifier (i.e., the first user account identifier) and the received identifier of the virtual resource is established.
In S105, in case it is determined based on the first user account identification that the first user account is within the range of the delivery account characterized by the first put information, 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 includes at least 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 put information includes at least one user account identification. In case the first user account identification is the same as at least one user account identification comprised in the first put information, it is determined that the first user account identification belongs to the first put information, i.e. the first user account is within a range of put accounts characterized by the first put information.
In another embodiment, the first put information includes a put number segment, and after the first user account identifier is preset, if the processed first user account identifier belongs to a range corresponding to the put number segment, it is determined that the first user account identifier belongs to the first put information, that is, a put account range represented by the first put information by the first user account.
Further, the first user account indicates that the first user account has the authority to display the new version of the virtual resource (namely the second virtual resource) in the range of the released account characterized by the first release information, and at the moment, the information of the second virtual resource is returned to the electronic equipment.
At S106, in the event that it is determined based on the first user account identification that the first user account is not within the range of the delivery account characterized by the first put information, information of the first virtual resource is returned to the electronic device.
Optionally, the information of the first virtual resource returned to the electronic device includes at least 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 put information includes at least one user account identification. In the case that the first user account identification is not identical to at least one user account identification included in the first put information, it is determined that the first user account identification does not belong to the first put information, i.e. the first user account is not in the range of the put account characterized by the first put information.
In another embodiment, the first put information includes a put number segment, and after the first user account identifier is preset, if the processed first user account identifier does not belong to a range corresponding to the put number segment, it is determined that the first user account identifier does not belong to the first put information, that is, the first user account is not within a put account range represented by the first put information.
Further, the first user account is not in the scope of the released account characterized by the first release information, which indicates that the first user account does not have the authority 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 resource historically received by the anchor account (i.e., the first user account) is read through the correspondence between the identifier of the anchor account (i.e., the first user account identifier) and the identifier of the virtual resource, so that when the virtual resource is updated, it is ensured that the anchor account can read the virtual resource of both the new version and the old version. For the anchor account in the new version virtual resource release range, configuring new version virtual resources for the anchor account, so that the anchor account can display new version virtual resources, and the anchor account not in the new version virtual resource release range configures version virtual resources for the anchor account, so that the anchor account displays old version virtual resources, thereby ensuring the acceptance of both new and old versions when the virtual resources are updated.
In one possible implementation, the first put information includes a put number segment; the processing method of the virtual resource further comprises the following steps:
step one: and calculating the first user account identifier based on a preset algorithm to obtain a target value.
Optionally, the put number section may include a target value corresponding to one user account identifier, and may also include target values corresponding to at least two user account identifiers. Illustratively, in the case where the put number segment includes five target values for which the user account identifications correspond, the put number segment may be 1-5. In the case where the put number segment includes target values for two user account identifications, the put number segment may be 1-2.
In one embodiment, the preset algorithm comprises a modulo algorithm. For example, the target value is obtained after modulo 100 the first user account identification.
Step two: and under the condition that the target value is in the put number section, determining the range of the put account, characterized by the first put information, of the first user account.
In one embodiment, for example, the put number segment is 1-5 and the target value is 3, then the first user account is within the range of the put account characterized by the first put information.
Step three: and under the condition that the target value is not in the discharge number section, determining that the first user account is not in the range of the delivery account characterized by the first discharge information.
In one embodiment, for example, where the put number segment is 1-5 and the target value is 6, the first user account is not within the range of the put account characterized by the first put information.
In the above embodiment, when the put information includes the put number segment, the target value is obtained after the first user account identifier is preset, and according to the relationship between the target value and the put number segment, it is determined whether the first user account identifier belongs to the put account identifier represented by the first put information, on one hand, the storage space occupied by the put information can be reduced, on the other hand, the security can be improved, and the situation that a false request displays a new version of virtual resource is avoided.
In a possible implementation manner, in conjunction with 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, which includes a second user account identifier allowing the first virtual resource to be displayed.
Optionally, the server acquires 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 whitelist.
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 identification belongs.
In one embodiment, the server creates a first virtual resource based on the initial configuration information and puts the first virtual resource based on a preset white list.
In another embodiment, the server sends a creation request to the database server requesting the database server to create the first virtual resource, the creation request including the initial configuration information. After the database server creates the first virtual resource, the server receives a creation success response returned by the database server, wherein the creation success response is used for representing that an account corresponding to the second user account identifier in the white list has the authority to display the first virtual resource, and at the moment, the server puts in the first virtual resource based on the white list.
In one example, the server sends a create request to the database server through a remote procedure call framework.
Optionally, before the step of sending the creation request to the database server by the server through the remote procedure call framework, the method may further include: the server acquires the distributed lock from the database server through the remote procedure call framework to judge whether the creation request is identical with the creation request being executed; in the event of 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 remote calling framework sends a creation request to the database server, so that the situation that the database server executes the creation request twice on the virtual resource corresponding to the identifier of the same virtual resource, and the storage information corresponding to the virtual resource is created in error is avoided, and the stability of the storage information creation of the virtual resource is further ensured.
In S108, under the condition that the configuration information of the first virtual resource meets 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 information.
Optionally, the configuration information of the first virtual resource meeting the preset condition includes: the display content information of the first virtual resource satisfies a preset condition, for example, the display content information is consistent with information to be expressed by the image information.
Optionally, the second release information characterizes a release account range that is 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 put into all user accounts of the platform.
In the above embodiment, before the first virtual resource is online, the first virtual resource is put into the second user account identifier in the white list, so that the verification of the display content of the first virtual resource is realized, and the first virtual resource is online again under the condition that the display content of the first virtual resource is correct, thereby ensuring the online stability of the first virtual resource.
In a possible implementation manner, in conjunction with fig. 3, as shown in fig. 4, before S108, the processing method of the virtual resource further includes: s109.
In S109, when the configuration information of the first virtual resource is confirmed to satisfy 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 information of the first virtual resource configuration.
Wherein the third put information is smaller than the second put information.
Optionally, under the condition that the configuration information of the first virtual resource meets the preset condition, the server acquires third release information of the first virtual resource, where the third release information is used to characterize a release account range of the first virtual resource.
Optionally, the third put information comprises a put percentage, wherein the put percentage is used to characterize the ratio of the number of put accounts to the total number of accounts. For example, the percentage of the discharge may be 1%. After the server obtains the discharge percentage of the first virtual resource, determining a discharge number segment of the first virtual resource based on the discharge percentage and the anchor account identifier of the platform. The put 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 a preset process on the anchor account identifier.
For example, when the percentage of the placement is 1% and the number of the anchor account identifiers corresponding to the platform is 100, the number of the placement accounts is 1, that is, only one anchor account can display the first virtual resource.
In one embodiment, the server obtains the third put information. And updating the storage information of the first virtual resource in the local cache of the server based on the third discharge information, so that the storage information comprises the third discharge information, and discharging the first virtual resource based on the third discharge information.
In another embodiment, after the server obtains the third put information, the server sends a first virtual resource put update request to the database server, requesting the database server to update the storage information of the first virtual resource, so that the storage information packages the third put information. After the server receives the update success response returned by the database server, the server scales the first virtual resource based on the third scaling information. For example, the server may send a first virtual resource inventory update request to the database server through a remote procedure call framework.
Further, before the server sends the first virtual resource allocation update request to the database server, the method may further include: the server acquires the distributed lock from the database server through the remote procedure call framework to judge whether the volume update request is the same as the volume update request being executed; in the event that the distributed lock is successfully acquired, the server sends a volume update request to the database server through the remote procedure call framework. Under the condition that the server successfully acquires the distributed lock, the remote calling framework sends a release amount update request to the database server, so that the problem that the database server executes the release amount update request twice on the same virtual resource at the same time to cause update errors of release amount information corresponding to the virtual resource can be avoided, and further stability of release amount information update of the virtual resource is guaranteed.
In the above embodiment, after the display content of the virtual resource is determined to be correct by the second user account identifier in the white list, and before the first virtual resource is released in a large range (i.e., before the release account range is released according to the second release information), a smaller range of release is performed on the first virtual resource (i.e., the release account range is released according to the third release information), so that the first virtual resource is released gradually in a manner of expanding the release range gradually, and smooth and stable online of the first virtual resource is further realized.
In one possible implementation manner, the processing method of the virtual resource further includes: based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include a first virtual resource and a second virtual resource.
Optionally, counting the information of the virtual resource of each user account includes: and counting the number 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 by the identifier of the virtual resource, so that the stability of information statistics of the virtual resource is ensured when the information version is switched.
The foregoing description of the solution provided by the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform 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 implemented as hardware or computer software driven 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 for virtual resources according to an example 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 identification of a first virtual resource and target configuration information, and the first request is for modifying the configuration information of the first virtual resource 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 execute creating a second virtual resource based on the target configuration information; the identification of the second virtual resource is the same as the identification 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 used to execute S102.
In one possible implementation, the second virtual resource is configured with first put information, the first put information being used to characterize a put account range of the second virtual resource, the receiving module being further configured to perform: receiving a second request sent by the electronic equipment, wherein the second request comprises a first user account identifier, and the second request is used for requesting to read virtual resources corresponding to the first user account identifier; based on the corresponding relation between the user account identifier and the identifier of the virtual resource, determining that the virtual resource corresponding to the first user account identifier comprises a first virtual resource and a second virtual resource; returning information of the second virtual resource to the electronic device under the condition that the first user account is determined to be in the range of the put account characterized by the first put amount information based on the first user account identification; and returning information of the first virtual resource to the electronic device under the condition that the first user account is not in the range of the delivery account characterized by the first release 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 put information includes a put number segment; the apparatus further includes a determination module configured to perform: calculating a first user account identifier based on a preset algorithm to obtain a target value; under the condition that the target value is in the put number section, determining the range of the put account, characterized by the first put information, of the first user account; and under the condition that the target value is not in the discharge number section, determining that the first user account is not in the range of the delivery account characterized by the first discharge information.
In another possible implementation, the apparatus further comprises a delivery module configured to, prior to receiving the first request, perform: releasing the 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 identifier, the first virtual resource is released according to the release account range characterized by the second release information. For example, as shown in FIG. 3, the drop module may be used to perform S107-S108.
In another possible implementation, the launch module is further configured to execute, prior to launching the first virtual resource, a launch account range characterized according to the second launch information: releasing the first virtual resource based on a release account range characterized by third release information of the first virtual resource configuration; the third put information is smaller than the second put information. For example, as shown in fig. 4, the delivery module may be used to perform S109.
In another possible embodiment, the apparatus further comprises a statistics module configured to perform: based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include a first virtual resource and a second virtual resource.
Fig. 6 is a block diagram illustrating a server 600, which server 600 may vary widely in configuration or performance and may include one or more processors 601 and one or more memories 602, according to an example embodiment. The memory 602 stores at least one instruction, where the at least one instruction is loaded and executed by the processor 601 to implement the processing method of virtual resources provided by each method embodiment, for example, S101-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 embodiments also provide a computer-readable storage medium including instructions, such as a memory 602 including instructions, executable by the processor 601 of the background server 600 to perform the above-described processing method of virtual resources in S101-S102.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a Read-Only Memory (ROM), a random access Memory (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 embodiments also provide a computer program product comprising one or more instructions executable by the processor 601 of the server 600 to perform the above-described method of processing list elements in S101-S102.
It should be noted that, when the instructions in the computer readable storage medium or one or more instructions in the computer program product are executed by the processor 601 of the server 600, the respective processes of the embodiments of the processing method of the virtual resource are implemented, and the same technical effects as those of the processing methods S101 to S102 of the virtual resource can be achieved, so that repetition is avoided, and no further description is provided herein.
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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for processing virtual resources, comprising:
receiving a first request, wherein the first request comprises identification of a first virtual resource and target configuration information, and the first request is used for requesting to modify the configuration information of the first virtual resource into the target configuration information based on the target configuration information;
creating a second virtual resource based on the target configuration information under the condition of updating the first virtual resource; the first virtual resource is an old version virtual resource, the second virtual resource is a new version virtual resource, 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 of processing a virtual resource according to claim 1, wherein the second virtual resource is configured with first put information, the first put information being used to characterize a put account range of the second virtual resource, the method further comprising:
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 virtual resources 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 relation between the user account identifier and the identifier of the virtual resource;
returning information of the second virtual resource to the electronic device under the condition that the first user account is determined to be in the range of the delivery account characterized by the first release information based on the first user account identification;
and returning information of the first virtual resource to the electronic equipment under the condition that the first user account is not in the range of the delivery account characterized by the first release information based on the first user account identification.
3. The method for processing virtual resources according to claim 2, wherein the first put information includes a put number segment; the method further comprises the steps of:
calculating the first user account identifier based on a preset algorithm to obtain a target value;
determining a range of the first user account in the delivery account characterized by the first delivery information under the condition that the target value is in the delivery number segment;
And if the target value is not in the put number section, determining that the first user account is not in the range of the put account characterized by the first put information.
4. The method of processing a virtual resource of claim 1, wherein prior to receiving the first request, the method further comprises:
releasing the 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 identifier, the first virtual resource is released according to the release account range characterized by the second release information.
5. The method for processing virtual resources according to claim 4, wherein, before the delivering the first virtual resource, the method further comprises:
releasing the first virtual resource based on a release account range characterized by third release information of the first virtual resource configuration; the third put information is smaller than the second put information.
6. The method for processing virtual resources according to claim 1, further comprising:
based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include the first virtual resource and the second virtual resource.
7. A processing apparatus for 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 being for requesting modification of the configuration information of the first virtual resource to the target configuration information based on the target configuration information;
a creation module configured to execute creating a second virtual resource based on the target configuration information in a case where the first virtual resource is updated; the first virtual resource is an old version virtual resource, the second virtual resource is a new version virtual resource, 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 processing apparatus of claim 7, wherein the second virtual resource is configured with first put information characterizing a put account range of the second virtual resource, the receiving module 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 virtual resources corresponding to the first user account identifier;
based on the corresponding relation between the user account identifier and the identifier of the virtual resource, determining that the virtual resource corresponding to the first account identifier comprises the first virtual resource and the second virtual resource;
returning information of the second virtual resource to the electronic device if the first user account is determined to be within the range of the delivery account characterized by the first put amount information based on the first user account identification;
and returning information of the first virtual resource to the electronic equipment under the condition that the first user account is not in the range of the delivery account characterized by the first release information based on the first user account identification.
9. The virtual resource processing apparatus of claim 8, wherein the first put information comprises a put number segment; the apparatus further includes a determination module configured to perform:
calculating the first user account identifier based on a preset algorithm to obtain a target value;
determining a range of the first user account in the delivery account characterized by the first delivery information under the condition that the target value is in the delivery number segment;
and if the target value is not in the put number section, determining that the first user account is not in the range of the put account characterized by the first put information.
10. The processing apparatus of virtual resources of claim 7, wherein the apparatus further comprises a launch module configured to perform, prior to receiving the first request:
releasing the 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 identifier, the first virtual resource is released according to the release account range characterized by the second release information.
11. The processing apparatus of virtual resources according to claim 10, wherein the placement module is further configured to perform, prior to placement of the first virtual resource, prior to placement of the range of placement accounts characterized according to the second placement information:
releasing the first virtual resource based on a release account range characterized by third release information of the first virtual resource configuration; the third put information is smaller than the second put information.
12. The apparatus for processing virtual resources according to claim 7, wherein the apparatus further comprises a statistics module configured to perform:
based on the identification of the virtual resources, counting the information of the virtual resources of each user account; wherein the virtual resources include the first virtual resource and the second virtual resource.
13. 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 a virtual resource as claimed in any one of claims 1-6.
14. A computer readable storage medium, characterized in that 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 virtual resources according to 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 CN113965770A (en) 2022-01-21
CN113965770B true 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)

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105160522A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Virtual resource transfer method, related device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113965770A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
US10387856B2 (en) Online payment method, system, and apparatus
CN107241336B (en) Identity verification method and device
CN110433496B (en) Cloud game resource allocation method, electronic device and storage medium
CN113965770B (en) Virtual resource processing method, device, server and storage medium
CN111930283B (en) Message display method and computing device
CN112445874A (en) Node information checking method, device, equipment and storage medium
CN112486620A (en) Cross-process off-screen rendering method and device, electronic equipment and storage medium
CN113434105A (en) Screen projection control method and device, storage medium and electronic equipment
EP3016013A1 (en) Information processing device, terminal device, information processing program, and information processing method
CN114221866A (en) Method, device and medium for upgrading terminal
CN109104292B (en) Update deployment processing method, related device, and computer-readable storage medium
CN110837381B (en) Software upgrading method and device for projection equipment
CN106293814B (en) Upgrading method and device
CN111131440A (en) Resource scheduling method and device and server
US20220405147A1 (en) Task processing method, electronic device and storage medium
CN107968799B (en) Information acquisition method, terminal equipment and system
CN110855750B (en) Downloading method of software development kit and related equipment
CN114553786A (en) Network request fusing method and device, computer equipment and storage medium
EP3293924A1 (en) Message processing method and device
CN107122164B (en) Method, device, equipment and storage medium for acquiring function address and applying function address
CN113316171B (en) 5G icon display control method and device, terminal equipment and storage medium
CN111107165A (en) Disconnection reconnection method, disconnection reconnection device and computer readable storage medium
CN110278331B (en) System attribute feedback method, device, terminal and storage medium
CN112463282B (en) Interface display method, device, storage medium and electronic device

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