Virtual resource processing method and apparatus, server, and storage medium
By receiving and updating virtual resource transfer information, the system identifies second virtual resources in user accounts, solving the problem of unintelligent virtual resource processing in existing technologies. This enables more accurate resource management and difference tracking, improving the intelligence of virtual resource processing.
Patent Information
- Application Number
- CN202310430304.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Existing virtual resource processing methods only return the virtual resources used in the conversion after the user cancels the conversion operation, which lacks intelligence.
Receive first virtual resource transfer information, identify user account and corresponding second virtual resource, update resources in user account according to second virtual resource, including deducting or clearing resource difference, and record and compensate virtual resource difference when necessary.
It improves the intelligence of virtual resource processing, enables accurate updates of user account resources and tracking of differences, and enhances the accuracy and traceability of resource management.
Smart Images

Figure CN116389781B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of Internet, and particularly relates to a virtual resource processing method and device, a server and a storage medium. BACKGROUND
[0002] With the development of Internet technology, a technology for virtual resource exchange appears, and a user can convert a first virtual resource carried by the user into a second virtual resource of another type.
[0003] In the related art, after the user converts the first virtual resource carried by the user into the second virtual resource, the user can initiate a canceling operation for the conversion of the first virtual resource, and the first virtual resource used in the conversion process is returned to the user. However, in the virtual resource processing method, after the user cancels the conversion operation of the first virtual resource, only the first virtual resource used in the conversion is returned, and therefore, the existing virtual resource processing method is not intelligent enough. SUMMARY
[0004] The present disclosure provides a virtual resource processing method, device, server and storage medium to at least solve the problem that the virtual resource processing method in the related art is not intelligent enough. The technical solutions of the present disclosure are as follows.
[0005] According to a first aspect of the embodiments of the present disclosure, a virtual resource processing method is provided, comprising:
[0006] receiving first virtual resource transfer information; the first virtual resource transfer information matches a first virtual resource transfer request triggered by a user account, and the first virtual resource transfer request is used to request to obtain first virtual resources to be transferred; the first virtual resources to be transferred are first virtual resources that have been converted into corresponding second virtual resources, and the second virtual resources after conversion are used to convert into live streaming resource objects in a live streaming room;
[0007] identifying the user account and the second virtual resources corresponding to the first virtual resources to be transferred from the first virtual resource transfer information;
[0008] updating the second virtual resources in the user account according to the second virtual resources corresponding to the first virtual resources to be transferred.
[0009] In an example embodiment, the updating the second virtual resource in the user account according to the second virtual resource corresponding to the first virtual resource to be transferred comprises: in a case that the second virtual resource in the user account is greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, deducting the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account.
[0010] In an example embodiment, the updating the second virtual resource in the user account according to the second virtual resource corresponding to the first virtual resource to be transferred comprises: in a case that the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, emptying the second virtual resource in the user account, and recording a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account.
[0011] In an example embodiment, after the recording the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, the method further comprises: receiving second virtual resource transfer information of the user account; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, the second virtual resource transfer request being used to convert the first virtual resource in the user account into a second virtual resource to be converted; identifying the user account and the second virtual resource to be converted from the second virtual resource transfer information; and updating the second virtual resource in the user account according to the second virtual resource to be converted and the virtual resource difference.
[0012] In an example embodiment, the updating the second virtual resource in the user account according to the second virtual resource to be converted and the virtual resource difference comprises: in a case that the second virtual resource to be converted is greater than or equal to the virtual resource difference, adding a difference between the second virtual resource to be converted and the virtual resource difference into the second virtual resource in the user account; and in a case that the second virtual resource to be converted is less than the virtual resource difference, updating the recorded virtual resource difference to a difference between the virtual resource difference and the second virtual resource to be converted.
[0013] In an example embodiment, after the receiving the first virtual resource transfer information for the first virtual resource to be transferred, the method further comprises: sending the first virtual resource transfer information to a service server; the service server being used to perform first service processing for the user account according to the first virtual resource transfer information.
[0014] In an example embodiment, after the sending of the first virtual resource transfer information to the service server, further comprising: in a case that the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, recording a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account; in a case that the second virtual resource transfer information of the user account is received, sending the second virtual resource transfer information to the service server until the second virtual resource to be converted is greater than or equal to the virtual resource difference; the service server is configured to perform a second service processing for the user account according to the second virtual resource transfer information; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into the second virtual resource to be converted.
[0015] In an example embodiment, after the identifying of the user account from the first virtual resource transfer information, further comprising: obtaining virtual resource transfer notification information matched with the second virtual resource corresponding to the first virtual resource to be transferred; and sending the virtual resource transfer notification information to the user account.
[0016] According to a second aspect of the embodiments of the present disclosure, a virtual resource processing apparatus is provided, comprising:
[0017] The first transfer receiving unit is configured to perform receiving first virtual resource transfer information; the first virtual resource transfer information matches a first virtual resource transfer request triggered by a user account, and the first virtual resource transfer request is used to request obtaining first virtual resource to be transferred; the first virtual resource to be transferred is a first virtual resource that has been converted into corresponding second virtual resource, and the converted second virtual resource is used to be converted into a live resource object in a live room;
[0018] The first transfer identifying unit is configured to perform identifying the user account and the second virtual resource corresponding to the first virtual resource to be transferred from the first virtual resource transfer information.
[0019] The second resource updating unit is configured to perform updating the second virtual resource in the user account according to the second virtual resource corresponding to the first virtual resource to be transferred.
[0020] In an example embodiment, the second resource updating unit is further configured to perform, in a case that the second virtual resource in the user account is greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, deducting the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account.
[0021] In an example embodiment, the second resource updating unit is further configured to perform, in a case that the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, emptying the second virtual resource in the user account and recording a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account.
[0022] In an example embodiment, the second resource updating unit is further configured to perform receiving second virtual resource transfer information of the user account; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, the second virtual resource transfer request being used to convert the first virtual resource in the user account into a second virtual resource to be converted; identifying the user account and the second virtual resource to be converted from the second virtual resource transfer information; and updating the second virtual resource in the user account according to the second virtual resource to be converted and the virtual resource difference.
[0023] In an example embodiment, the second resource updating unit is further configured to perform, in a case that the second virtual resource to be converted is greater than or equal to the virtual resource difference, adding a difference between the second virtual resource to be converted and the virtual resource difference into the second virtual resource in the user account; and in a case that the second virtual resource to be converted is less than the virtual resource difference, updating the recorded virtual resource difference to a difference between the virtual resource difference and the second virtual resource to be converted.
[0024] In an example embodiment, the virtual resource processing apparatus further comprises a first information sending unit configured to perform sending the first virtual resource transfer information to a service server; the service server is used to perform first service processing for the user account according to the first virtual resource transfer information.
[0025] In an example embodiment, the virtual resource processing apparatus further comprises: a second information sending unit configured to: record a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, in a case that the second virtual resource corresponding to the first virtual resource to be transferred is less than the second virtual resource in the user account; send second virtual resource transfer information to the service server, in a case that the second virtual resource transfer information is received, until the second virtual resource to be converted is greater than or equal to the virtual resource difference; the service server is configured to perform second service processing for the user account according to the second virtual resource transfer information; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into the second virtual resource to be converted.
[0026] In an example embodiment, the virtual resource processing apparatus further comprises: a transfer notification sending unit configured to: acquire virtual resource transfer notification information matched with the second virtual resource corresponding to the first virtual resource to be transferred; and send the virtual resource transfer notification information to the user account.
[0027] According to a third aspect of the embodiments of the present disclosure, a server is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the virtual resource processing method according to any one of the embodiments of the first aspect.
[0028] According to a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, when instructions in the computer readable storage medium are executed by a processor of a server, the server is enabled to perform the virtual resource processing method according to any one of the embodiments of the first aspect.
[0029] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, the computer program product comprises instructions, when the instructions are executed by a processor of an electronic device, the electronic device is enabled to perform the virtual resource processing method according to any one of the embodiments of the first aspect.
[0030] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:
[0031] The first virtual resource transfer information is matched with a first virtual resource transfer request triggered by the user account, the first virtual resource transfer request is used to request to obtain the first virtual resource to be transferred, the first virtual resource to be transferred is the first virtual resource which has been converted into the corresponding second virtual resource, and the converted second virtual resource is used to be converted into a live resource object in a live room. From the first virtual resource transfer information, the user account and the second virtual resource corresponding to the first virtual resource to be transferred are identified. According to the second virtual resource corresponding to the first virtual resource to be transferred, the second virtual resource in the user account is updated. The present disclosure can update the second virtual resource in the user account according to the second virtual resource corresponding to the first virtual resource to be transferred when the first virtual resource transfer information of the first virtual resource to be transferred which has been converted into the second virtual resource is received. Compared with the prior art which only returns the first virtual resource to be transferred, the present disclosure can update the second virtual resource in the user account, thereby improving the intelligence of the virtual resource processing method.
[0032] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0033] The accompanying drawings incorporated in the specification and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure, and do not limit the present disclosure.
[0034] Figure 1 is an application environment diagram of a virtual resource processing method according to an exemplary embodiment.
[0035] Figure 2 is a flowchart of a virtual resource processing method according to an exemplary embodiment.
[0036] Figure 3 is a flowchart of updating the second virtual resource in the user account according to an exemplary embodiment.
[0037] Figure 4 is a flowchart of a virtual resource processing method according to an exemplary embodiment.
[0038] Figure 5 is a block diagram of a virtual resource processing device according to an exemplary embodiment.
[0039] Figure 6 is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0040] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings.
[0041] It should be noted that the terms "first", "second" and the like in the specification and claims of the present disclosure and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0042] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties.
[0043] The virtual resource processing method provided by the present disclosure can be applied to an application environment as shown in Figure 1 The terminal 101 interacts with the server 102 and the server 103 through the network. Specifically, the user account can initiate a first virtual resource transfer request for obtaining the first virtual resource to be transferred to the server 102 for managing the first virtual resource through the terminal 101, wherein the first virtual resource to be transferred has been converted into a second virtual resource for converting into a live resource object in a live room, and the server 102 can return the first virtual resource to be transferred to the user account of the terminal 101 according to the first virtual resource transfer request, and generate corresponding first virtual resource transfer information and send it to the server 103 for managing the second virtual resource. After receiving the first virtual resource transfer information, the server 103 can identify the user account triggering the first virtual resource transfer request and the second virtual resource corresponding to the first virtual resource to be transferred from the first virtual resource transfer information, and can update the second virtual resource in the user account using the second virtual resource corresponding to the first virtual resource to be transferred. The terminal 101 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 102 and the server 103 can be implemented by independent servers or a server cluster composed of multiple servers.
[0044] Figure 2is a flowchart of a virtual resource processing method according to an exemplary embodiment, as Figure 2 shown, the virtual resource processing method is used in the server 103, comprising the following steps.
[0045] In step S201, receiving first virtual resource transfer information; the first virtual resource transfer information matches the first virtual resource transfer request triggered by the user account, and the first virtual resource transfer request is used to request to obtain the first virtual resource to be transferred; the first virtual resource to be transferred is the first virtual resource that has been converted into the corresponding second virtual resource, and the converted second virtual resource is used to convert into a live resource object in a live room.
[0046] Among them, the server 103 can be a server for managing the second virtual resource, and the second virtual resource refers to a virtual resource used in a live room and converted into a live resource object, which can be a certain live room currency. The second virtual resource can be used in the live room to be converted into a live resource object such as a live room special effect or a live room gift. The second virtual resource can be converted by the first virtual resource carried by the user account, that is, the user account can first convert the first virtual resource carried by the user account into the second virtual resource, and then realize the conversion of the second virtual resource into the live resource object in the live room. The first virtual resource to be transferred refers to the first virtual resource that has been converted into the second virtual resource and needs to be obtained by the user, and the user account can initiate a first virtual resource transfer request for obtaining the first virtual resource to be transferred to the server 102 for managing the first virtual resource through the terminal 101, so that the server 102 can generate the corresponding first virtual resource transfer information according to the request and send it to the server 103.
[0047] Specifically, when the user account can convert the first virtual resource carried by the user account into the corresponding second virtual resource in advance, if the user account needs to return the first virtual resource to be transferred which has been converted into the second virtual resource, the user account can initiate a first virtual resource transfer request for the first virtual resource to be transferred to the server 102 for managing the first virtual resource through the terminal 101, at this time the server 102 can respond to the request and return the above-mentioned first virtual resource to be transferred to the user account, and also generate the first virtual resource transfer information matched with the first virtual resource to be transferred and send it to the server 103 for managing the second virtual resource, and the server 103 receives the above-mentioned first virtual resource transfer information.
[0048] In step S202, the user account and the second virtual resource corresponding to the first virtual resource to be transferred are identified from the first virtual resource transfer information.
[0049] The first virtual resource transfer information generated by the server 102 can carry user account information triggering the first virtual resource transfer request and the resource amount of the first virtual resource to be transferred. The server 103 can store the conversion relationship between the first virtual resource and the second virtual resource. After the server 103 receives the first virtual resource transfer information, the user account triggering the first virtual resource transfer request and the first virtual resource to be transferred can be identified from the first virtual resource transfer information. Then, the conversion relationship is used to obtain the second virtual resource corresponding to the first virtual resource to be transferred.
[0050] For example, the conversion relationship between the first virtual resource and the second virtual resource is 1:1, that is, the user account can convert 10 first virtual resources carried by the user account into 10 second virtual resources in advance. If the user triggers a first virtual resource transfer request to the server 102 for 5 first virtual resources of the 10 first virtual resources that have been converted into 10 second virtual resources, the server 102 can generate first virtual resource transfer information by taking the 5 first virtual resources as the first virtual resource to be transferred and sending the first virtual resource transfer information to the server 103. Then, the server 103 can identify the user account initiating the first virtual resource transfer request according to the first virtual resource transfer information, and can obtain the corresponding second virtual resource according to the first virtual resource to be transferred. Since the first virtual resource to be transferred is 5 first virtual resources, the corresponding second virtual resource can also be 5 second virtual resources.
[0051] In step S203, the second virtual resource in the user account is updated according to the second virtual resource corresponding to the first virtual resource to be transferred.
[0052] Finally, after the server 103 obtains the second virtual resource corresponding to the first virtual resource to be transferred, the second virtual resource in the user account can be updated, for example, the second virtual resource corresponding to the first virtual resource to be transferred can be deducted from the second virtual resource in the user account.
[0053] In the virtual resource processing method, the first virtual resource transfer information is received; the first virtual resource transfer information matches a first virtual resource transfer request triggered by the user account, and the first virtual resource transfer request is used to request to obtain the first virtual resource to be transferred; the first virtual resource to be transferred is the first virtual resource that has been converted into the corresponding second virtual resource, and the converted second virtual resource is used to be converted into a live resource object in the live room; and the second virtual resource in the user account is updated according to the second virtual resource corresponding to the first virtual resource to be transferred. In the case that the first virtual resource transfer information of the first virtual resource to be transferred that has been converted into the second virtual resource is received, the second virtual resource in the user account can be updated according to the second virtual resource corresponding to the first virtual resource to be transferred. Compared with the prior art that only returns the first virtual resource to be transferred, the present disclosure can update the second virtual resource in the user account, thereby improving the intelligence of the virtual resource processing method.
[0054] In an exemplary embodiment, step S203 can further include: in the case that the second virtual resource in the user account is greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, deducting the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account.
[0055] If the second virtual resource in the user account is to be greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, for example, the user account currently carries 10 second virtual resources, and the second virtual resource corresponding to the first virtual resource to be transferred can be 5, then the server 103 can update the second virtual resource in the user account by deducting the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account, that is, deducting 5 second virtual resources corresponding to the first virtual resource to be transferred from the 10 second virtual resources carried by the user account, so that the second virtual resource carried by the user account can be updated to 5, thereby realizing the synchronous update of the second virtual resource in the user account.
[0056] In the embodiment, if the second virtual resource in the user account is to be greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, the server 103 can deduct the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account to update the second virtual resource, so that in the case of returning the first virtual resource to be transferred to the user account, the corresponding second virtual resource of the user account can be deducted to ensure the synchronous update of the first virtual resource and the second virtual resource.
[0057] In an example embodiment, step S203 can further include: in a case where the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, emptying the second virtual resource in the user account, and recording a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account.
[0058] The virtual resource difference refers to a difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account. If the second virtual resource in the user account is to be less than the second virtual resource corresponding to the first virtual resource to be transferred, for example, the user account can previously convert 10 first virtual resources into 10 second virtual resources, and convert 5 of the 10 second virtual resources into live resource objects, so that the second virtual resource carried by the current user account is 5. At this time, if the user account triggers the first virtual resource transfer request for the above 10 first virtual resources, the server 102 can set the first virtual resource to be transferred to 10, so that the corresponding second virtual resource is 10. At this time, if the second virtual resource in the user account is to be less than the second virtual resource corresponding to the first virtual resource to be transferred, the server 103 can first empty the second virtual resource in the user account, i.e., empty the 5 second virtual resources in the user account, and record a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, which is 5 second virtual resources, to represent that the server 103 currently lacks 5 second virtual resources for the user account.
[0059] In the embodiment, if the second virtual resource in the user account is to be less than the second virtual resource corresponding to the first virtual resource to be transferred, the server 103 can first empty the second virtual resource in the user account, and record a virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, to update the second virtual resource, so that in a case where the server 103 lacks the second virtual resource for the user account, the missing second virtual resource can be recorded after the second virtual resource is emptied, further improving the accuracy of the second virtual resource update and the traceability of the missing second virtual resource.
[0060] In addition, as shown in Figure 3 After recording the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, the method can further include:
[0061] In step S301, second virtual resource transfer information of a user account is received; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert first virtual resources in the user account into second virtual resources to be converted.
[0062] The second virtual resources to be converted refer to second virtual resources that the user needs to convert from the first virtual resources. After the server 103 records the missing virtual resource difference, the user account can again initiate, through the terminal 101, a second virtual resource transfer request to the server 102 for managing the first virtual resources, for converting the first virtual resources carried by the user account into the second virtual resources to be converted. Then, the server 102 can generate corresponding second virtual resource transfer information according to the request and send the second virtual resource transfer information to the server 103, which receives the second virtual resource transfer information.
[0063] Specifically, when the server 103 finds that the user account is missing the second virtual resources, the user account can again initiate, through the terminal 101, a second virtual resource transfer request to the server 102 for managing the first virtual resources, for converting the first virtual resources carried by the user account into the corresponding second virtual resources to be converted. At this time, the server 102 can receive the first virtual resources of the user account for converting into the second virtual resources to be converted, and generate second virtual resource transfer information matching the second virtual resources to be converted, and send the second virtual resource transfer information to the server 103 for managing the second virtual resources, which receives the second virtual resource transfer information.
[0064] In step S302, the user account and the second virtual resources to be converted are identified from the second virtual resource transfer information.
[0065] In step S303, the second virtual resources in the user account are updated according to the second virtual resources to be converted and the virtual resource difference.
[0066] The second virtual resource transfer information generated by the server 102 can carry the user account information triggering the second virtual resource transfer request and the resource amount of the second virtual resource to be converted. After the server 103 receives the second virtual resource transfer information, the server 103 can identify the user account triggering the second virtual resource transfer request and the second virtual resource to be converted. Then, the server 102 can further update the second virtual resource in the user account by using the second virtual resource to be converted and the recorded second virtual resource, i.e., the virtual resource difference. For example, the server 102 can compensate for the second virtual resource missing in the server 103, i.e., compensate for the virtual resource difference, by using the second virtual resource to be converted, to update the second virtual resource in the user account.
[0067] In the embodiment, if the server 103 is missing the second virtual resource, i.e., the virtual resource difference is recorded, when the user account initiates the second virtual resource transfer request for converting the first virtual resource carried by the user account into the second virtual resource to be converted again, the server 103 can update the second virtual resource in the user account by using the second virtual resource to be converted and the recorded virtual resource difference. Compared with directly using the second virtual resource to be converted to update the second virtual resource in the user account, the embodiment further introduces the virtual resource difference representing the second virtual resource missing in the server 103 for the user account, so that the accuracy of updating the second virtual resource in the user account can be further improved.
[0068] Further, the step S303 can further include: in a case where the second virtual resource to be converted is greater than or equal to the virtual resource difference, adding the difference between the second virtual resource to be converted and the virtual resource difference into the second virtual resource in the user account; and in a case where the second virtual resource to be converted is less than the virtual resource difference, updating the recorded virtual resource difference to the difference between the virtual resource difference and the second virtual resource to be converted.
[0069] In this embodiment, server 103 can update the second virtual resources in the user account according to the relationship between the second virtual resources to be converted and the virtual resource difference. If the second virtual resources to be converted are greater than or equal to the virtual resource difference, that is, the second virtual resources to be converted are more than the second virtual resources that server 103 is missing for the user account, then server 103 can add the difference between the converted second virtual resources and the virtual resource difference to the second virtual resources in the user account. For example, if the virtual resource difference recorded in the user account is 5 second virtual resources, indicating that server 103 is missing 5 second virtual resources for the user account, then if the second virtual resources to be converted are 8, which is greater than the virtual resource difference, then server 103 can add the difference between the second virtual resources to be converted and the virtual resource difference, that is, 3 second virtual resources, to the second virtual resources in the user account, so the user account has 3 second virtual resources.
[0070] If the second virtual resource to be converted is less than the virtual resource difference, meaning the second virtual resource to be converted is less than the second virtual resource missing for the user account by server 103, then server 103 can use the difference between the virtual resource difference and the converted second virtual resource to update the recorded virtual resource difference. For example, if the recorded virtual resource difference for the user account is 5 second virtual resources, indicating that server 103 is missing 5 second virtual resources for the user account, and if the second virtual resource to be converted is 3, which is less than the virtual resource difference, then server 103 can use the difference between the virtual resource difference and the second virtual resource to be converted, i.e., 2 second virtual resources, as the updated virtual resource difference for the user account, indicating that server 103 is still missing 2 second virtual resources for the user account.
[0071] In this embodiment, if the second virtual resource to be converted is greater than or equal to the virtual resource difference, the server 103 can add the difference between the second virtual resource to be converted and the virtual resource difference to the second virtual resource in the user's account. If the second virtual resource to be converted is less than the virtual resource difference, the recorded virtual resource difference can be updated to the difference between the virtual resource difference and the second virtual resource to be converted. In this way, when the server 103 performs the conversion of the second virtual resource in the absence of the second virtual resource, it can first use the converted second virtual resource to compensate for the missing second virtual resource, thereby updating the second virtual resource in the user's account more intelligently.
[0072] In an exemplary embodiment, after step S201, the process may further include: sending first virtual resource transfer information to a service server; the service server is used to perform a first service processing for a user account based on the first virtual resource transfer information.
[0073] Here, the business server refers to the server used to perform certain business functions on user accounts. This business server could be a risk control server, a live streaming server, etc. The first business processing refers to the first business processing performed on the user account by the business server upon receiving the first virtual resource transfer information. This first business processing could be certain risk control strategies for the user account, such as hiding or displaying a display element indicating the conversion of the first virtual resource into a second virtual resource, or certain live streaming strategies for the user account, such as canceling certain gift resources for the user account while watching the live stream. Furthermore, the processing method of the aforementioned first business processing can be matched with the first virtual resource transfer information; it can be based on the first virtual resource to be transferred as represented by the first virtual resource transfer information, executing the corresponding first business processing method.
[0074] Specifically, after the server 103 receives the first virtual resource transfer information, it can also send the first virtual resource transfer information to the business server. The business server can then perform the first business processing on the user account based on the obtained first virtual resource transfer information. In this way, the corresponding business processing can be performed on the user account that has acquired the first virtual resource to be transferred, thereby further improving the intelligence of virtual resource processing.
[0075] In this embodiment, the business server can perform corresponding business processing based on the user account that acquires the first virtual resource to be transferred, which further improves the intelligence of virtual resource processing.
[0076] In addition, after sending the first virtual resource transfer information to the business server, the process further includes: if the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, recording the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account; upon receiving the second virtual resource transfer information from the user account, sending the second virtual resource transfer information to the business server until the second virtual resource to be converted is greater than or equal to the virtual resource difference; the business server is used to perform a second business processing for the user account based on the second virtual resource transfer information; the second virtual resource transfer information matches the second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into the second virtual resource to be converted.
[0077] If the second virtual resource in the user account obtained by server 103 is less than the second virtual resource corresponding to the first virtual resource to be transferred, that is, when server 103 is dealing with a user account lacking a second virtual resource, when the user account triggers a second virtual resource transfer request to convert the first virtual resource into the second virtual resource to be converted, so that server 103 obtains the second virtual resource transfer information, server 103 can also synchronously send the above-mentioned second virtual resource transfer information to the business server, so that the business server performs business processing in a manner matching the second virtual resource transfer information, that is, performs second business processing for the user account, until the second virtual resource to be converted is greater than or equal to the virtual resource difference, that is, at this time server 103 is no longer dealing with a user account lacking a second virtual resource.
[0078] Generally, when server 103 does not handle the missing second virtual resource for a user account, the business server will not perform corresponding business processing on the user account when the user account converts the first virtual resource into the second virtual resource. Furthermore, the business processing method executed by the business server for the user account when server 103 handles the missing second virtual resource differs from the case when server 103 does not handle the missing second virtual resource, and the processing method can also differ depending on the number of missing second virtual resources. Therefore, when server 103 handles the missing second virtual resource for a user account, if the user account triggers a second virtual resource transfer request to convert the first virtual resource into the second virtual resource, server 103 can also send the corresponding second virtual resource transfer information to the business server. The business server can then update its business processing method for the user account based on the second virtual resource transfer information, i.e., execute the second business processing on the user account, thereby further improving the intelligence of the business processing.
[0079] In this embodiment, if the server 103 is missing a second virtual resource for a user account, when the user account initiates a second virtual resource transfer request, the server 103 can also synchronize the second virtual resource transfer information to the business server. The business server will then execute a second business process for the user account to update the business processing method for that user account. This process continues until the server 103 is no longer missing a second virtual resource for the user account. Through this method, when the server 103 performs a second virtual resource conversion after the second virtual resource is missing, the business processing method for the user account can be updated in real time to further improve the intelligence of the business processing.
[0080] In an exemplary embodiment, after step S202, the method may further include: obtaining virtual resource transfer notification information that matches the second virtual resource corresponding to the first virtual resource to be transferred; and sending the virtual resource transfer notification information to the user account.
[0081] The virtual resource transfer notification information is used to inform a user account that its second virtual resource has been updated. Since server 103 updates the second virtual resource in the user account after receiving the first virtual resource transfer information, it needs to inform the user account about the transfer information. Specifically, after server 103 determines the user account that triggered the first virtual resource transfer request and the second virtual resource corresponding to the first virtual resource to be transferred, it can further generate virtual resource transfer notification information for the second virtual resource corresponding to the first virtual resource to be transferred, and send this notification information to the user account's terminal 101. This notification information can be used to inform the user account of the reason for the update of its second virtual resource, as well as the quantity of the second virtual resource carried by the user account after the update, etc.
[0082] In this embodiment, after the server 103 obtains the first virtual resource transfer information, it can also send the virtual resource transfer notification information that matches the second virtual resource corresponding to the first virtual resource to be transferred to the user account, so as to inform the user account that its second virtual resource has been updated, thereby further improving the intelligence of the second virtual resource update.
[0083] In one exemplary embodiment, a virtual resource processing method is also provided, such as... Figure 4 As shown, the method may include the following steps:
[0084] Step s1: The user account requests a first virtual resource transfer request from the server that manages the first virtual resource to obtain the first virtual resource that has been converted into the corresponding second virtual resource. The first server that manages the first virtual resource then transfers the first virtual resource to the user account.
[0085] Step s2: The first server synchronizes the corresponding first virtual resource transfer information to the second server managing the second virtual resources. The second server then updates the user account's current second virtual resources. Specifically, if the user account's current second virtual resources are greater than or equal to the second virtual resources corresponding to the first virtual resource to be transferred, the corresponding second virtual resources are directly deducted; if the user account's current second virtual resources are less than the second virtual resources corresponding to the first virtual resource to be transferred, the user account's remaining second virtual resources are deducted first, and then the server records the missing second virtual resources for the user.
[0086] Step s3: Synchronize the above-mentioned first virtual resource transfer information with the business server, such as the risk control server and the live streaming server. The risk control server and the live streaming server then perform the first business processing of the corresponding policy for the user account based on the first virtual resource transfer information.
[0087] Step s4: Send a virtual resource transfer notification to inform the user account of the reason for the deduction of the second virtual resource.
[0088] Step s5: When the server is concerned about the user's missing second virtual resource, if the user account sends a second virtual resource transfer request to the first server to convert the first virtual resource into the second virtual resource, the first server sends the corresponding second virtual resource transfer information to the second server.
[0089] Step s6: The second server updates the user account's current second virtual resources. Specifically, it first uses the second virtual resources to be converted to supplement the missing second virtual resources, and then adds the remaining second virtual resources to the second virtual resources carried by the user account.
[0090] Step s7: Synchronize the above-mentioned second virtual resource transfer information with the business server, namely the risk control server and the live streaming server. The risk control server and the live streaming server then perform the second business processing of the user account according to the corresponding policy based on the second virtual resource transfer information, until the server does not have any missing second virtual resources for the user account.
[0091] In the above embodiments, when a user account initiates a first virtual resource transfer request, the second virtual resource in the user account can be updated, thereby improving the intelligence of the virtual resource processing method. At the same time, when the server finds that the second virtual resource is missing from the user account, when the user account initiates another second virtual resource transfer request, the missing second virtual resource can be introduced, which can further improve the accuracy of updating the second virtual resource in the user account.
[0092] It should be understood that, although Figures 2-4 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 2-4 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.
[0093] It is understood that the same / similar parts between the various embodiments of the methods described above in this specification can be referred to each other. Each embodiment focuses on the differences from other embodiments, and relevant parts can be referred to the description of other method embodiments.
[0094] Figure 5 This is a block diagram illustrating a virtual resource processing apparatus according to an exemplary embodiment. (Refer to...) Figure 5 The device includes a first transfer receiving unit 501, a first transfer identification unit 502, and a second resource updating unit 503.
[0095] The first transfer receiving unit 501 is configured to receive first virtual resource transfer information; the first virtual resource transfer information matches a first virtual resource transfer request triggered by a user account, the first virtual resource transfer request is used to request the acquisition of a first virtual resource to be transferred; the first virtual resource to be transferred is a first virtual resource that has been converted into a corresponding second virtual resource, and the converted second virtual resource is used to be converted into a live resource object in the live broadcast room;
[0096] The first transfer identification unit 502 is configured to identify the user account and the second virtual resource corresponding to the first virtual resource to be transferred from the first virtual resource transfer information.
[0097] The second resource update unit 503 is configured to update the second virtual resource in the user account based on the second virtual resource corresponding to the first virtual resource to be transferred.
[0098] In an exemplary embodiment, the second resource update unit 503 is further configured to deduct the second virtual resource corresponding to the first virtual resource to be transferred from the second virtual resource in the user account when the second virtual resource in the user account is greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred.
[0099] In an exemplary embodiment, the second resource update unit 503 is further configured to, when the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, clear the second virtual resource in the user account and record the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account.
[0100] In an exemplary embodiment, the second resource update unit 503 is further configured to receive second virtual resource transfer information from a user account; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, the second virtual resource transfer request being used to convert a first virtual resource in the user account into a second virtual resource to be converted; the user account and the second virtual resource to be converted are identified from the second virtual resource transfer information; and the second virtual resource in the user account is updated according to the second virtual resource to be converted and the virtual resource difference.
[0101] In an exemplary embodiment, the second resource update unit 503 is further configured to perform the following actions: when the second virtual resource to be converted is greater than or equal to the virtual resource difference, add the difference between the second virtual resource to be converted and the virtual resource difference to the second virtual resource in the user account; when the second virtual resource to be converted is less than the virtual resource difference, update the recorded virtual resource difference to the difference between the virtual resource difference and the second virtual resource to be converted.
[0102] In one exemplary embodiment, the virtual resource processing apparatus further includes: a first information sending unit configured to send first virtual resource transfer information to a service server; the service server is configured to perform first service processing for a user account based on the first virtual resource transfer information.
[0103] In one exemplary embodiment, the virtual resource processing apparatus further includes: a second information sending unit configured to, when the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, record the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account; and, upon receiving second virtual resource transfer information from the user account, send the second virtual resource transfer information to a business server until the second virtual resource to be converted is greater than or equal to the virtual resource difference; the business server is configured to perform a second business processing for the user account based on the second virtual resource transfer information; the second virtual resource transfer information is matched with a second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into the second virtual resource to be converted.
[0104] In one exemplary embodiment, the virtual resource processing apparatus further includes: a transfer notification sending unit configured to perform the following: acquiring virtual resource transfer notification information matching a second virtual resource corresponding to a first virtual resource to be transferred; and sending the virtual resource transfer notification information to a user account.
[0105] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0106] Figure 6 This is a block diagram illustrating an electronic device 600 for virtual resource processing according to an exemplary embodiment. For example, the electronic device 600 may be a server. (Refer to...) Figure 6The electronic device 600 includes a processing component 620, which further includes one or more processors, and memory resources represented by memory 622 for storing instructions, such as application programs, that can be executed by the processing component 620. The application programs stored in memory 622 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 620 is configured to execute instructions to perform the methods described above.
[0107] Electronic device 600 may further include: a power supply component 624 configured to perform power management of electronic device 600, a wired or wireless network interface 626 configured to connect electronic device 600 to a network, and an input / output (I / O) interface 628. Electronic device 600 may operate on an operating system stored in memory 622, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or similar.
[0108] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 622 including instructions, which can be executed by a processor of an electronic device 600 to perform the above-described method. The storage medium may be a computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.
[0109] In an exemplary embodiment, a computer program product is also provided, the computer program product including instructions that can be executed by a processor of an electronic device 600 to perform the above-described method.
[0110] It should be noted that the above-mentioned apparatus, electronic equipment, computer-readable storage medium, computer program product, etc., may also include other implementation methods according to the description of the method embodiments. For specific implementation methods, please refer to the description of the relevant method embodiments, which will not be elaborated here.
[0111] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0112] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for processing virtual resources, characterized in that, include: Receive the first virtual resource transfer information; The first virtual resource transfer information matches the first virtual resource transfer request triggered by the user account. The first virtual resource transfer request is used to request the acquisition of the first virtual resource to be transferred. The first virtual resource to be transferred is the first virtual resource that has been converted into the corresponding second virtual resource. The converted second virtual resource is used to be converted into a live resource object in the live room. From the first virtual resource transfer information, identify the user account and the second virtual resource corresponding to the first virtual resource to be transferred; Update the second virtual resource in the user account according to the second virtual resource corresponding to the first virtual resource to be transferred; After receiving the first virtual resource transfer information of the first virtual resource, the method further includes: sending the first virtual resource transfer information to the business server; The business server is used to perform a first business process for the user account based on the first virtual resource transfer information; the business server includes a risk control server and a live streaming server, and the first business process includes hiding and displaying an identification control on the user account's client for converting the first virtual resource into a second virtual resource, and canceling the gift resources of the user account during the live streaming service.
2. The method according to claim 1, characterized in that, The step of updating the second virtual resource in the user account based on the second virtual resource corresponding to the first virtual resource to be transferred includes: If the second virtual resource in the user account is greater than or equal to the second virtual resource corresponding to the first virtual resource to be transferred, the second virtual resource corresponding to the first virtual resource to be transferred shall be deducted from the second virtual resource in the user account.
3. The method according to claim 1, characterized in that, The step of updating the second virtual resource in the user account based on the second virtual resource corresponding to the first virtual resource to be transferred includes: If the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, the second virtual resource in the user account is cleared, and the difference in virtual resources between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account is recorded.
4. The method according to claim 3, characterized in that, After recording the difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account, the method further includes: Receive second virtual resource transfer information from the user account; the second virtual resource transfer information matches a second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into a second virtual resource to be converted. The user account and the second virtual resource to be converted are identified from the second virtual resource transfer information. The second virtual resource in the user account is updated based on the second virtual resource to be converted and the difference between the virtual resources.
5. The method according to claim 4, characterized in that, The step of updating the second virtual resource in the user account based on the second virtual resource to be converted and the virtual resource difference includes: If the second virtual resource to be converted is greater than or equal to the difference in virtual resources, the difference between the second virtual resource to be converted and the difference in virtual resources is added to the second virtual resource in the user account. If the second virtual resource to be converted is less than the virtual resource difference, the recorded virtual resource difference will be updated to the difference between the virtual resource difference and the second virtual resource to be converted.
6. The method according to claim 1, characterized in that, After sending the first virtual resource transfer information to the business server, the process further includes: If the second virtual resource in the user account is less than the second virtual resource corresponding to the first virtual resource to be transferred, record the virtual resource difference between the second virtual resource corresponding to the first virtual resource to be transferred and the second virtual resource in the user account. Upon receiving the second virtual resource transfer information of the user account, the second virtual resource transfer information is sent to the business server until the second virtual resource to be converted is greater than or equal to the virtual resource difference; the business server is used to perform a second business processing for the user account according to the second virtual resource transfer information; the second virtual resource transfer information is matched with the second virtual resource transfer request triggered by the user account, and the second virtual resource transfer request is used to convert the first virtual resource in the user account into the second virtual resource to be converted.
7. The method according to claim 1, characterized in that, After identifying the user account from the first virtual resource transfer information, the process further includes: Obtain virtual resource transfer notification information that matches the second virtual resource corresponding to the first virtual resource to be transferred; The virtual resource transfer notification information will be sent to the user account.
8. A virtual resource processing device, characterized in that, include: The first transfer receiving unit is configured to receive the first virtual resource transfer information; The first virtual resource transfer information matches the first virtual resource transfer request triggered by the user account. The first virtual resource transfer request is used to request the acquisition of the first virtual resource to be transferred. The first virtual resource to be transferred is the first virtual resource that has been converted into the corresponding second virtual resource. The converted second virtual resource is used to be converted into a live resource object in the live room. The first transfer identification unit is configured to identify the user account and the second virtual resource corresponding to the first virtual resource to be transferred from the first virtual resource transfer information. The second resource update unit is configured to update the second virtual resource in the user account based on the second virtual resource corresponding to the first virtual resource to be transferred; The first information sending unit is configured to send the first virtual resource transfer information to the business server; the business server is used to perform a first business process for the user account based on the first virtual resource transfer information; the business server includes a risk control server and a live streaming server, and the first business process includes hiding and displaying an identification control for converting the first virtual resource into a second virtual resource on the user account's client, and canceling the gift resources of the user account during the live streaming service.
9. A server, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the virtual resource processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the server, the server is able to perform the virtual resource processing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Resource data correction method and device, electronic equipment and storage medium
CN115801805A