A virtual resource processing method, device and electronic equipment

CN115738287BActive Publication Date: 2026-10-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211475843.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-23
Publication Date
2026-10-27
Estimated Expiration
2042-11-23

AI Technical Summary

Technical Problem

[0003]但是,在上述处理过程中终端获取虚拟资源存在延时,可能导致虚拟资源不能被及时使用

Benefits of technology

[0013]在本申请实施例中,通过生成虚拟资源,所述虚拟资源为可用状态;向服务器发送校验请求,所述校验请求携带所述虚拟资源的信息,所述虚拟资源的信息用于校验所述虚拟资源是否满足校验规则;根据所述服务器反馈的校验结果,处理所述虚拟资源,能够在保证虚拟资源安全性的前提下,解决终端获取虚拟资源存在延时的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115738287B_ABST
    Figure CN115738287B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a virtual resource processing method and device and electronic equipment, and relate to the field of data processing. The method comprises: generating a virtual resource, the virtual resource being in an available state; sending a verification request to a server, the verification request carrying information of the virtual resource, the information of the virtual resource being used to verify whether the virtual resource meets a verification rule; and processing the virtual resource according to a verification result fed back by the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing, and more particularly to a method, apparatus, and electronic device for processing virtual resources. Background Technology

[0002] With technological advancements, resource virtualization is becoming increasingly prevalent. Various physical resources can be virtualized and applied in electronic devices; for example, coins, red envelopes, coupons, and game items can all be generated and used through electronic devices. The security of virtual resources is paramount. The typical process for processing virtual resources involves: the server generating the virtual resource and then distributing it to the terminal device for use, thereby ensuring the security of the virtual resource.

[0003] However, there is a delay in the terminal's acquisition of virtual resources during the above processing, which may result in the virtual resources not being available in a timely manner. In application areas with high time sensitivity, this could have serious consequences. For example, in interactive e-sports events, if items cannot be used in a timely manner, it may affect the outcome of the match. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, and electronic device for processing virtual resources, which can solve the problem of delay in terminal acquisition of virtual resources while ensuring the security of virtual resources.

[0005] To solve the above-mentioned technical problems, the embodiments of this application are implemented through the following aspects.

[0006] In a first aspect, embodiments of this application provide a method for processing virtual resources, applied to a terminal, comprising: generating virtual resources, wherein the virtual resources are in an available state; sending a verification request to a server, wherein the verification request carries information of the virtual resources, wherein the information of the virtual resources is used to verify whether the virtual resources meet verification rules; and processing the virtual resources according to the verification results fed back by the server.

[0007] Secondly, embodiments of this application provide a method for processing virtual resources, applied to a server, comprising: receiving a verification request sent by a terminal, the verification request carrying information about virtual resources; verifying whether the virtual resources meet verification rules based on the information about the virtual resources, and generating a verification result; and feeding back the verification result to the terminal, the verification result being used to instruct the terminal to process the virtual resources.

[0008] Thirdly, embodiments of this application provide a virtual resource processing apparatus, comprising: a generation module for generating virtual resources, wherein the virtual resources are in an available state; a sending module for sending a verification request to a server, wherein the verification request carries information of the virtual resources, and the information of the virtual resources is used to verify whether the virtual resources meet the verification rules; and a processing module for processing the virtual resources according to the verification results fed back by the server.

[0009] Fourthly, embodiments of this application provide a virtual resource processing apparatus, comprising: a receiving module for receiving a verification request sent by a terminal, the verification request carrying information about a virtual resource; a verification module for verifying whether the virtual resource meets verification rules based on the information about the virtual resource, and generating a verification result; and a feedback module for feeding back the verification result to the terminal device, the verification result being used to instruct the terminal to process the virtual resource.

[0010] Fifthly, embodiments of this application provide an electronic device, including: a memory, a processor, and computer-executable instructions stored in the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the method described in the first or second aspect.

[0011] In a sixth aspect, embodiments of this application provide a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the steps of the method described in the first or second aspect.

[0012] In a seventh aspect, embodiments of this application provide a computer program product comprising instructions that, when run on a computer, cause the computer to perform the virtual resource processing method as described in the first or second aspect.

[0013] In this embodiment, by generating virtual resources that are in an available state, sending a verification request to the server, the verification request carrying information about the virtual resources, the information about the virtual resources being used to verify whether the virtual resources meet the verification rules, and processing the virtual resources based on the verification results returned by the server, the problem of latency in terminal acquisition of virtual resources can be solved while ensuring the security of virtual resources. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 This illustration shows a flowchart of a virtual resource processing method provided in an embodiment of this application;

[0016] Figure 2 This illustration shows another flowchart of a virtual resource processing method provided in an embodiment of this application;

[0017] Figure 3 This illustration shows another flowchart of a virtual resource processing method provided in an embodiment of this application;

[0018] Figure 4 This illustration shows another flowchart of a virtual resource processing method provided in an embodiment of this application;

[0019] Figure 5 This diagram illustrates the structure of a virtual resource processing apparatus according to an embodiment of this application.

[0020] Figure 6 This diagram illustrates the structure of another virtual resource processing apparatus provided in an embodiment of this application.

[0021] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing a virtual resource processing method provided in an embodiment of this application. Detailed Implementation

[0022] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0023] Figure 1 This diagram illustrates a flowchart of a virtual resource processing method according to an embodiment of this application. This method can be executed by an electronic device, such as a terminal device. In other words, the method can be executed by software or hardware installed on the terminal device. As shown, the method may include the following steps.

[0024] Step S101: Generate virtual resources.

[0025] Virtual resources are intangible resources that can be used or traded in a network environment. The virtual resources generated by the terminal in this step are in an available state. When a user triggers the conditions for generating virtual resources on the terminal, the terminal used by the user can generate virtual resources for the user to use according to preset generation rules. The process of generating virtual resources is not affected by the latency of network communication between the server and the terminal.

[0026] For example, when a terminal runs a game app, virtual resources can be in-game items. When a user completes a pre-defined task corresponding to an item, the conditions for generating virtual resources are triggered, and the terminal generates virtual resources, i.e., items corresponding to that task, such as coins. Users can then use these coins to redeem prizes. As another example, when a terminal runs a shopping app, virtual resources can be red envelopes (cash gifts). When a user meets check-in requirements on the terminal, a red envelope can be generated, which can then be used for shopping.

[0027] Step S102: Send a verification request to the server.

[0028] The verification request carries information about the virtual resource, which is used to verify whether the virtual resource meets the verification rules. This is because, considering the potential risks associated with the user's terminal, such as cheating or virus intrusion, the terminal can send a verification request to the server via network protocol to avoid these risks. The server then uses the aforementioned verification rules to determine the legality of the virtual resource's creation. For example, if a user is running a game app on the terminal, and the virtual resource is an item within the game app, and the user tamperes with the item's trigger probability through cheating, without server verification, that user would have a higher probability of obtaining a certain item than other users, which would seriously affect the security of the virtual resource.

[0029] Optionally, the information of the virtual resource may include at least one of the following: the name, attributes, effective usage period, trigger time, trigger conditions, and trigger quantity of the virtual resource.

[0030] Step S103: Process the virtual resources based on the verification results returned by the server.

[0031] Specifically, the terminal needs to receive the verification result from the server, determined by the verification rules, via a network protocol. This verification result can instruct the terminal to perform corresponding processing on the virtual resource, including making the virtual resource valid or invalid. This step ensures the security of the virtual resource by having the server verify it.

[0032] Therefore, the virtual resource processing method provided in this application embodiment generates virtual resources in an available state; sends a verification request to a server, the verification request carrying information about the virtual resources, the information about the virtual resources being used to verify whether the virtual resources meet the verification rules; and processes the virtual resources based on the verification results fed back by the server. This method can solve the problem of delay in terminal acquisition of virtual resources while ensuring the security of virtual resources.

[0033] Figure 2 This diagram illustrates a flowchart of a virtual resource processing method according to an embodiment of this application. This method can be executed by an electronic device, such as a terminal device. In other words, the method can be executed by software or hardware installed on the terminal device. As shown, the method may include the following steps.

[0034] S201: Receive the generation rules issued by the server; generate virtual resources according to the generation rules.

[0035] The generation rule matches the verification rule. Specifically, in this embodiment, to avoid delays caused by the server issuing virtual resources, the terminal generates virtual resources. Furthermore, to ensure the security of the virtual resources generated by the terminal, the terminal should use the generation rule issued by the server to generate the virtual resources and then verify them through the server. Because the generation rule matches the verification rule, the virtual resources generated using the server-issued generation rule will naturally pass the server's verification. Conversely, if cheating or other risks occur, it indicates that the terminal did not use the server-issued generation rule to generate the virtual resources, and the cheated virtual resources will also fail the server's verification.

[0036] Optionally, the generation rule includes at least one of the following: start time, random seed, application configuration, etc. The generation rule is a random generator that uses a pseudo-random algorithm based on a random seed to perform pseudo-random calculations on the input information when the aforementioned virtual resource is triggered. In this embodiment, to adapt to the differences in operating systems used by the terminal, such as the different operating environments of Apple and Android systems, the generation rule uses a fixed-point number as the random seed to avoid differences in the precision of pseudo-random calculations. Simultaneously, the generation rule avoids using processor architecture-based acceleration algorithms such as Streaming SIMD Extensions (SSE) or Single Instruction Multiple Data (SIMD), and enforces compiler options and versions, prohibiting compilation optimization.

[0037] S202: Send a verification request to the server.

[0038] This step can be adopted. Figure 1 The description of step S102 in the embodiment will not be repeated here.

[0039] S203: If the server returns the first verification result, maintain the availability of the virtual resource.

[0040] Specifically, the first verification result indicates that the virtual resource meets the verification rules. The fact that the virtual resource meets the verification rules means that its creation is legitimate, the virtual resource meets security requirements, and the terminal will retain its usability for user use. For example, when running a racing game on the terminal, if the virtual resource is a nitro boost card, and the server reports that the nitro boost card is legitimate, the nitro boost card in the user's inventory will remain there. Within its validity period, the user can use the nitro boost card to accelerate their vehicle in the racing game.

[0041] S204: If the server returns the second verification result, the virtual resource is set to a disabled state.

[0042] Specifically, the second verification result indicates that the virtual resource does not meet the verification rules. If the virtual resource meets the verification rules, it means that the virtual resource's creation is illegal, the virtual resource is insecure, and therefore the user cannot use it. Setting the virtual resource to a disabled state can include various methods. Optionally, the virtual resource can be deleted from the terminal, or it can remain in the terminal but the user cannot use the virtual resource stored there. Virtual resources in an unusable state can be marked to distinguish them from available resources. For example, they might be displayed as grayed out and unselectable. For instance, when running a racing game on the terminal, if the virtual resource is a nitro card, even though the nitro card is stored in the item box, the user is prohibited from removing the nitro card from the item box when they want to use it, or after the nitro card is removed and used, the vehicle in the racing game will not receive a nitro boost.

[0043] In one implementation, if the number of the second verification results exceeds a preset threshold, the terminal is prohibited from generating the virtual resource. The terminal can use this implementation to punish cheating users and prevent users from cheating multiple times, thus affecting the security of the virtual resource.

[0044] In one implementation, the verification request further carries information about the terminal, information about the virtual resource set to which the virtual resource belongs, and information about the application to which the virtual resource belongs. The information about the virtual resource set to which the virtual resource belongs may, for example, include a specific level in a game to which the item belongs. The information about the application to which the virtual resource belongs may, for example, if the red envelope belongs to a shopping app, then the shopping app is the application to which the virtual resource belongs. This information assists the server in verifying virtual resources, and if a risk occurs, it can quickly identify the application engaging in cheating and the terminal that installed that application.

[0045] Therefore, the virtual resource processing method provided in this application embodiment, by receiving the generation rules issued by the server; generating virtual resources according to the generation rules; sending a verification request to the server; maintaining the availability of the virtual resources when the server returns a first verification result; and setting the virtual resources to a disabled state when the server returns a second verification result, enables the terminal to generate virtual resources based on the generation rules issued by the server, and the server to verify the virtual resources, thereby improving the security of the virtual resources.

[0046] The virtual resource processing method provided in this application prohibits the terminal from generating the virtual resource when the number of the second verification results exceeds a preset threshold, punishes cheating users, and prevents users from cheating multiple times, thus ensuring the security of virtual resources.

[0047] The virtual resource processing method provided in this application embodiment, by carrying the terminal information, the virtual resource set information to which the virtual resource belongs, and the application information to which the virtual resource belongs in the verification request, assists the server in quickly determining the application that has engaged in cheating and the terminal that has installed the application.

[0048] Figure 3 This diagram illustrates a flowchart of a virtual resource processing method according to an embodiment of this application. This method can be executed by an electronic device, such as a server-side device. In other words, the method can be executed by software or hardware installed on the server-side device. The server-side device includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. As shown in the diagram, the method may include the following steps.

[0049] Step S301: Receive the verification request sent by the terminal.

[0050] Specifically, the verification request carries information about the virtual resource. This information is used to verify whether the virtual resource meets the verification rules. The server needs to receive the verification request sent from the terminal via a network protocol, and verify the process of generating the virtual resource according to the aforementioned verification rules, further eliminating the possibility of cheating by the user's terminal.

[0051] Optionally, the information of the virtual resource includes the name of the virtual resource, the period of use, and the trigger time, trigger conditions, and trigger quantity of the virtual resource.

[0052] Step S302: Based on the information of the virtual resource, verify whether the virtual resource meets the verification rules and generate a verification result.

[0053] Optionally, the above verification rule is a random generator. This random generator uses a pseudo-random algorithm based on a random seed to generate pseudo-random numbers from the input information triggered by the virtual resource, and then determines whether the result of the pseudo-random generation is consistent with the information of the virtual resource. Since the random generator generates a fixed random number when the random seed and the pseudo-random algorithm are fixed, the above verification rule in this embodiment can verify whether the input and output corresponding to the verification request are consistent, thereby determining whether the user's terminal has engaged in cheating. For example, in a lottery activity running on the terminal, if a user clicks the lottery button and wins prize A, the server, based on the information of the virtual resource, including the name of the virtual resource (prize A) and the trigger time of clicking the lottery button, calculates using a pseudo-random algorithm that the user should have won prize Z. That is, the input prize A and the output prize Z corresponding to the verification request do not match, thus determining that the prize A obtained by the user on this terminal does not meet the verification rule.

[0054] Step S303: Feed back the verification result to the terminal.

[0055] Specifically, the verification result is used to instruct the terminal to process the virtual resource. The verification result includes at least two cases. For example, the verification result includes either the virtual resource's output on the terminal not meeting the verification rules (illegal) or the virtual resource's output on the terminal meeting the verification rules (legal).

[0056] Therefore, the virtual resource processing method provided in this application embodiment receives a verification request sent by a terminal, the verification request carrying information about the virtual resource; verifies whether the virtual resource meets the verification rules based on the information about the virtual resource, and generates a verification result; and feeds back the verification result to the terminal, the verification result being used to instruct the terminal to process the virtual resource, thereby solving the problem of delay in the terminal obtaining virtual resources while ensuring the legality of the virtual resource.

[0057] Figure 4This diagram illustrates a flowchart of a virtual resource processing method according to an embodiment of this application. This method can be executed by an electronic device, such as a server-side device. In other words, the method can be executed by software or hardware installed on the server-side device. The server-side device includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. As shown in the diagram, the method may include the following steps.

[0058] S401: Generate rules for the terminal.

[0059] Specifically, the generation rule matches the verification rule. In the embodiments of this application, the generation rule and the verification rule are based on the same random seed and calculate the same virtual resource result using the same or related pseudo-random algorithm. Optionally, the generation rule and the verification rule are developed cross-platform using the same programming language C++, and the host programs on the server and terminal run the generation rule and the verification rule by loading static or dynamic libraries. For example, the generation rule and the verification rule use a shift method as a pseudo-random algorithm. Due to the computer's unique logical shift operation, the random seed N0 can be shifted left by n bits to obtain M1, and right by n bits to obtain M2. The random number N1 is obtained by logically adding M1 and M2. The shift method is very fast and can effectively improve the generation and verification speed of virtual resources.

[0060] S402: Receive verification request sent by the terminal.

[0061] This step can be adopted. Figure 3 The description of step S301 in the embodiment will not be repeated here.

[0062] S403: Based on the information of the virtual resource, verify whether the virtual resource meets the verification rules and generate a verification result.

[0063] This step can be adopted. Figure 3 The description of step S302 in the embodiment will not be repeated here.

[0064] S404: If the virtual resource meets the verification rules, generate the first verification result.

[0065] Specifically, the first verification result instructs the terminal to set the virtual resource to an available state. When the virtual resource information obtained by the server through the verification rules in the previous step is consistent with the virtual resource information generated by the terminal, the server generates the first verification result and feeds it back to the terminal to instruct the terminal to maintain the available state of the aforementioned virtual resource.

[0066] S405: If the virtual resource does not meet the verification rules, generate a second verification result.

[0067] Specifically, the second verification result instructs the terminal to set the virtual resource to a disabled state. When the virtual resource information obtained by the server through the verification rules in the previous step is inconsistent with the virtual resource information generated by the terminal, the server generates a second verification result and feeds it back to the terminal to instruct the terminal to modify the aforementioned virtual resource to a disabled state.

[0068] S406: Send the information about the virtual resource to the associated terminal associated with the terminal.

[0069] Optionally, after generating the first verification result, the server broadcasts the user information who obtained the virtual resource and the information of the virtual resource to other terminals associated with the terminal in the same App. The associated terminals can then perform further processing on the information of the virtual resource. For example, in the case of a lottery activity running on a terminal, when a user wins a grand prize at a certain moment, the message that the user won the grand prize at that moment is displayed as an announcement at the top of the screen of all terminals associated with the lottery activity. This announcement can use different colored fonts to indicate the level of the reward. For example, if the associated terminal is the provider of the grand prize, after the grand prize information is broadcast to the provider, the provider can award prizes based on that information.

[0070] In one implementation, if the number of the second verification results returned by the server exceeds a preset threshold, the terminal is instructed to prohibit the generation of the virtual resource. This implementation allows the server to penalize cheating users, preventing repeated cheating and ensuring the security of the virtual resource. Furthermore, associated terminals can also send penalty information to the terminal associated with it. This penalty information notifies the penalty details, including the penalty target and corresponding penalty content, such as prohibiting the generation of virtual resources.

[0071] In one implementation, the verification request further carries information about the terminal, information about the set of virtual resources to which the virtual resource belongs, and information about the application to which the virtual resource belongs. This information helps the server quickly identify the application that is engaging in cheating and the terminal that has that application installed. This implementation can adopt... Figure 2 The descriptions of the corresponding embodiments will not be repeated here.

[0072] Therefore, the virtual resource processing method provided in this application embodiment, by generating rules to the terminal; receiving a verification request sent by the terminal; verifying whether the virtual resource meets the verification rules according to the information of the virtual resource, and generating a verification result; generating a first verification result if the virtual resource meets the verification rules; generating a second verification result if the virtual resource does not meet the verification rules; and sending the information of the virtual resource to associated terminals associated with the terminal, can solve the problem of delay in the terminal obtaining virtual resources while ensuring the security of virtual resources.

[0073] Figure 5 The diagram shows a schematic of the structure of a virtual resource processing device provided in an embodiment of this application. The device 500 includes a generation module 501, a sending module 502, and a processing module 503.

[0074] A generation module 501 is used to generate virtual resources, wherein the virtual resources are in an available state. A sending module 502 is used to send a verification request to the server, wherein the verification request carries information about the virtual resources, and the information about the virtual resources is used to verify whether the virtual resources meet the verification rules. A processing module 503 is used to process the virtual resources according to the verification results fed back by the server.

[0075] In one possible implementation, the generation module 501 is configured to: receive generation rules issued by the server, wherein the generation rules are matched with the verification rules; and generate virtual resources according to the generation rules.

[0076] In one possible implementation, the processing module 503 is further configured to: maintain the available state of the virtual resource when the server returns a first verification result, wherein the first verification result indicates that the virtual resource meets the verification rules; and set the virtual resource to a disabled state when the server returns a second verification result, wherein the second verification result indicates that the virtual resource does not meet the verification rules.

[0077] In one possible implementation, the processing module 503 is further configured to: prohibit the terminal from generating the virtual resource if the number of the second verification results is greater than a preset threshold.

[0078] In one possible implementation, the verification request also carries information about the terminal, information about the set of virtual resources to which the virtual resource belongs, and information about the application to which the virtual resource belongs.

[0079] The device 500 provided in this application embodiment can perform the method embodiment described above. Figures 1-2The methods described above, and the functions and beneficial effects of the methods described in the preceding method embodiments, will not be repeated here.

[0080] Figure 6 The diagram shows a schematic of the structure of a virtual resource processing device provided in an embodiment of this application. The device 600 includes a receiving module 601, a verification module 602, and a feedback module 603.

[0081] A receiving module 601 is used to receive a verification request sent by a terminal, the verification request carrying information about virtual resources. A verification module 602 is used to verify whether the virtual resource meets the verification rules based on the information about the virtual resource, and generate a verification result. A feedback module 603 is used to feed back the verification result to the terminal device, the verification result being used to instruct the terminal to process the virtual resource.

[0082] In one possible implementation, the receiving module 601 is further configured to: generate a rule for the terminal before the verification request is sent by the receiving terminal, wherein the generated rule matches the verification rule.

[0083] In one possible implementation, the verification module 602 is further configured to: generate a first verification result if the virtual resource meets the verification rules, wherein the first verification result instructs the terminal to set the virtual resource to an available state; and generate a second verification result if the virtual resource does not meet the verification rules, wherein the second verification result instructs the terminal to set the virtual resource to a disabled state.

[0084] In one possible implementation, the feedback module 603 is further configured to: instruct the terminal to prohibit the generation of the virtual resource if the number of the second verification results fed back by the server is greater than a preset threshold.

[0085] In one possible implementation, the feedback module 603 is further configured to: after generating the first verification result and feeding back the verification result to the terminal, send the information of the virtual resource to the associated terminal associated with the terminal.

[0086] In one possible implementation, the verification request also carries information about the terminal, information about the set of virtual resources to which the virtual resource belongs, and information about the application to which the virtual resource belongs.

[0087] The device 600 provided in this application embodiment can perform the method embodiment described above. Figures 3-4 The methods described above, and the functions and beneficial effects of the methods described in the preceding method embodiments, will not be repeated here.

[0088] Figure 7This diagram illustrates the hardware structure of an electronic device executing the virtual resource processing method provided in the embodiments of this application. Referring to the diagram, at the hardware level, the electronic device includes a processor and optionally, an internal bus, a network interface, and a memory. The memory may include RAM, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk storage device. Of course, the electronic device may also include other hardware required for other services.

[0089] The processor, network interface, and memory can be interconnected via an internal bus, which can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be categorized as an address bus, data bus, control bus, etc. For ease of illustration, only a single bidirectional arrow is used in this diagram, but this does not imply that there is only one bus or one type of bus.

[0090] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.

[0091] The processor reads the corresponding computer program from non-volatile memory into main memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in memory, specifically performing the following: generating virtual resources, which are in an available state; sending a verification request to the server, the verification request carrying information about the virtual resources used to verify whether the virtual resources meet verification rules; and processing the virtual resources based on the verification result returned by the server. Alternatively, it can perform the following: receiving a verification request sent by a terminal, the verification request carrying information about virtual resources; verifying whether the virtual resources meet verification rules based on the information about the virtual resources and generating a verification result; and returning the verification result to the terminal, the verification result used to instruct the terminal to process the virtual resources.

[0092] The processor may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.

[0093] The electronic device can perform the methods described in the preceding embodiments. Figure 1-2 or Figure 3-4 The methods described above, and the implementations of the methods in the preceding embodiments. Figure 1-2 or Figure 3-4 The functions and beneficial effects of the methods described will not be elaborated here.

[0094] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0095] This application also proposes a computer-readable storage medium that stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform the methods described in the preceding embodiments. Figure 1-2 or Figure 3-4 The methods described above, and the implementations of the methods in the preceding embodiments. Figure 1-2 or Figure 3-4The functions and beneficial effects of the methods described will not be elaborated here.

[0096] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.

[0097] Furthermore, this application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, implement the method described in the preceding embodiments. Figure 1-2 or Figure 3-4 The methods described above, and the implementations of the methods in the preceding embodiments. Figure 1-2 or Figure 3-4 The functions and beneficial effects of the methods described will not be elaborated here.

[0098] In summary, the above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

[0099] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0100] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0101] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0102] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

Claims

1. A method for processing virtual resources, characterized in that, Applied to terminals, including: Generate virtual resources, which are in an available state; A verification request is sent to the server. The verification request carries information about the virtual resource. The information about the virtual resource is used by the server to verify whether the virtual resource meets the verification rules. The information about the virtual resource includes at least one of the following: the name, attributes, validity period, trigger time, trigger condition, and trigger quantity of the virtual resource. The virtual resources are processed based on the verification results returned by the server. The generation of virtual resources includes: Receive the generation rule sent by the server, and match the generation rule with the verification rule; Virtual resources are generated according to the aforementioned generation rules.

2. The processing method according to claim 1, wherein, Based on the verification result returned by the server, the virtual resource is processed, including: If the server returns a first verification result, the virtual resource remains available. The first verification result indicates that the virtual resource meets the verification rules. If the server returns a second verification result, the virtual resource will be set to a disabled state. The second verification result indicates that the virtual resource does not meet the verification rules.

3. The processing method according to claim 2, wherein, If the number of the second verification results is greater than a preset threshold, the terminal is prohibited from generating the virtual resource.

4. The processing method according to claim 1, wherein, The verification request also carries information about the terminal, information about the virtual resource set to which the virtual resource belongs, and information about the application to which the virtual resource belongs.

5. A method for processing virtual resources, characterized in that, Applied to servers, including: The server receives a verification request sent by the terminal. The verification request carries information about the virtual resource. The information about the virtual resource is used by the server to verify whether the virtual resource meets the verification rules. The information about the virtual resource includes at least one of the following: the name, attributes, validity period, trigger time, trigger condition, and trigger quantity of the virtual resource. Based on the information of the virtual resource, verify whether the virtual resource meets the verification rules, and generate a verification result; The verification result is fed back to the terminal, and the verification result is used to instruct the terminal to process the virtual resource; Prior to the verification request sent by the receiving terminal, the following is also included: A rule is generated for the terminal, and the generated rule is matched with the verification rule.

6. The processing method according to claim 5, wherein, Based on the information of the virtual resource, verify whether the virtual resource meets the verification rules and generate a verification result, including: If the virtual resource meets the verification rules, a first verification result is generated, and the first verification result instructs the terminal to set the virtual resource to an available state. If the virtual resource does not meet the verification rules, a second verification result is generated, which instructs the terminal to set the virtual resource to a disabled state.

7. The processing method according to claim 6, wherein, If the number of the second verification results returned by the server exceeds a preset threshold, the terminal is instructed to prohibit the generation of the virtual resources.

8. The processing method according to claim 6, wherein, In the case of generating the first verification result, after feeding back the verification result to the terminal, the method further includes: Send the information about the virtual resources to the associated terminals associated with the terminal.

9. The processing method according to claim 6, wherein, The verification request also carries information about the terminal, information about the virtual resource set to which the virtual resource belongs, and information about the application to which the virtual resource belongs.

10. A virtual resource processing device, characterized in that, include: A generation module is used to generate virtual resources, wherein the virtual resources are in an available state. The sending module is used to send a verification request to the server. The verification request carries information about the virtual resource. The information about the virtual resource is used by the server to verify whether the virtual resource meets the verification rules. The information about the virtual resource includes at least one of the following: the name, attributes, validity period, trigger time, trigger condition, and trigger quantity of the virtual resource. The processing module is used to process the virtual resources based on the verification results returned by the server. The generation module is used for: Receive the generation rule sent by the server, and match the generation rule with the verification rule; Virtual resources are generated according to the aforementioned generation rules.

11. A virtual resource processing device, characterized in that, include: A receiving module is used to receive a verification request sent by a terminal. The verification request carries information about virtual resources. The information about virtual resources is used by the server to verify whether the virtual resources meet the verification rules. The information about virtual resources includes at least one of the following: the name, attributes, validity period, trigger time, trigger condition, and trigger quantity of the virtual resources. The verification module is used to verify whether the virtual resource meets the verification rules based on the information of the virtual resource, and generate a verification result; The feedback module is used to send the verification result back to the terminal device, and the verification result is used to instruct the terminal to process the virtual resource; The receiving module is further configured to: generate rules for the terminal before the verification request is sent by the receiving terminal, wherein the generated rules match the verification rules.

12. An electronic device, characterized in that, Includes a memory, a processor, and computer-executable instructions stored in the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the virtual resource processing method as described in any one of claims 1-4; or The execution implements the steps of the virtual resource processing method as described in any one of claims 5-9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store computer-executable instructions, which, when executed by a processor, implement the steps of the virtual resource processing method as described in any one of claims 1-4; or The execution implements the steps of the virtual resource processing method as described in any one of claims 5-9.

Citation Information

Patent Citations

  • Control method of virtual resources and server

    CN108259414A

  • Request response method, device and equipment and storage medium

    CN111083143A

  • Virtual resource processing method and device, computer readable medium and electronic equipment

    CN111709752A

  • KR20200055911A