Method, device, electronic device, storage medium and product for acquiring virtual resources

By receiving and verifying the resource acquisition request of the target account, and obtaining reference information to determine whether the acquisition of virtual resources is allowed, the problem of unreasonable acquisition of virtual resources is solved and the rational utilization of virtual resources is realized.

CN114490075BActive Publication Date: 2024-09-10BEIJING YILIN VALLEY MEDICAL TECHNOLOGY SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210115823.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-07
Publication Date
2024-09-10
Estimated Expiration
2042-02-07

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively control the acquisition of virtual resources, making it difficult to realize rational utilization of virtual resources.

Method used

By receiving the resource acquisition request of the target account, the resource acquisition reference information is obtained, and based on this information and task information, it is determined whether the account is allowed to acquire virtual resources, thereby reasonably controlling the acquisition of virtual resources.

Benefits of technology

It effectively avoids unreasonable acquisition of virtual resources, ensures that virtual resources are reasonably utilized, and improves the rationality of acquiring virtual resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114490075B
    Figure CN114490075B
Patent Text Reader

Abstract

The present application provides a method, device, electronic device, storage medium and product for obtaining virtual resources, which belongs to the field of Internet technology. The method includes: receiving a resource acquisition request of a target account, the resource acquisition request carries task information of a target task, and the target task is a task that allows the acquisition of virtual resources; obtaining resource acquisition reference information of the target account, and the resource acquisition reference information is used to determine whether the target account is allowed to obtain virtual resources based on the task information; based on the resource acquisition reference information and the task information, if it is determined that the target account is allowed to obtain virtual resources based on the task information, the virtual resources are obtained for the target account based on the task information. The method effectively controls the acquisition of virtual resources, so that virtual resources can be reasonably used.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device, storage medium and product for acquiring virtual resources. Background Art

[0002] At present, in order to encourage users to use applications, users are provided with activities to obtain virtual resources within the application. Users can unlock higher states of the application based on the virtual resources they obtain. For example, for sports applications, users can obtain virtual resources such as virtual gold coins or virtual energy based on completed sports tasks to unlock the theme styles of sports applications. In order to make reasonable use of virtual resources, it is necessary to effectively control the acquisition of virtual resources. Summary of the invention

[0003] The embodiments of the present application provide a method, device, electronic device, storage medium and product for obtaining virtual resources, which can effectively control the acquisition of virtual resources, so that the virtual resources can be reasonably utilized. The technical solution is as follows:

[0004] In one aspect, a method for acquiring a virtual resource is provided, the method comprising:

[0005] Receive a resource acquisition request from a target account, the resource acquisition request carrying task information of a target task, the target task being a task that allows acquisition of virtual resources;

[0006] Acquire resource acquisition reference information of the target account, where the resource acquisition reference information is used to determine whether to allow the target account to acquire virtual resources based on the task information;

[0007] In a case where it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information, the virtual resources are acquired for the target account based on the task information.

[0008] On the other hand, a device for acquiring virtual resources is provided, the device comprising:

[0009] A receiving module, configured to receive a resource acquisition request from a target account, wherein the resource acquisition request carries task information of a target task, and the target task is a task that allows acquisition of virtual resources;

[0010] A first acquisition module, configured to acquire resource acquisition reference information of the target account, wherein the resource acquisition reference information is used to determine whether the target account is allowed to acquire virtual resources based on the task information;

[0011] A second acquisition module is configured to acquire virtual resources for the target account based on the task information when it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information.

[0012] On the other hand, an electronic device is provided, wherein the computer device includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method for obtaining virtual resources described in any of the above-mentioned implementation methods.

[0013] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the method for acquiring virtual resources described in any of the above implementations.

[0014] On the other hand, a computer program product is provided, wherein the computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for acquiring virtual resources as described in any of the above implementations.

[0015] The present application provides a method for acquiring virtual resources. Since resource acquisition reference information is information used to determine whether an account is allowed to acquire virtual resources based on task information, virtual resources are acquired for the account based on the task information only when it is determined based on the resource acquisition reference information and the task information that the account is allowed to acquire virtual resources based on the task information. This effectively controls the acquisition of virtual resources, thereby enabling the virtual resources to be reasonably utilized. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;

[0017] Figure 2 A flowchart of a method for acquiring virtual resources according to an exemplary embodiment of the present application is shown;

[0018] Figure 3 A flowchart of a method for acquiring virtual resources according to an exemplary embodiment of the present application is shown;

[0019] Figure 4 A schematic diagram of obtaining data from a server is shown in an exemplary embodiment of the present application;

[0020] Figure 5 A flowchart of a method for acquiring virtual resources according to an exemplary embodiment of the present application is shown;

[0021] Figure 6 A block diagram of a virtual resource acquisition device shown in an exemplary embodiment of the present application is shown;

[0022] Figure 7 A block diagram of a terminal according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0024] The "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of related objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship. In addition, the relevant data involved in this application can be data authorized by the user or fully authorized by all parties.

[0025] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. In the implementation environment, the electronic device is provided as a terminal 100 and a server 200. The terminal 100 and the server 200 are connected via a network.

[0026] The terminal 100 is installed with a target application, and the terminal 100 implements functions such as data transmission and information interaction with the server 200 through the target application. The target application is an application in the operating system of the terminal 100, or an application provided by a third party; in some embodiments, the target application is an application that provides an activity for obtaining virtual resources, and the user can unlock a higher state of the target application based on the obtained virtual resources.

[0027] For example, if the target application is a sports application, the user can obtain virtual resources such as virtual coins or virtual energy based on the completed sports tasks to unlock the theme styles of the sports application. For another example, if the target application is a shopping application, the user can obtain virtual resources such as virtual coins or virtual energy based on the completed tasks of browsing goods to obtain coupons for purchasing goods. For another example, if the target application is a video application, the user can obtain virtual coins or virtual resources based on the completed tasks of watching videos to obtain the right to watch videos without ads.

[0028] In some embodiments, the terminal 100 may be a smart watch, a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The server 200 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The server 200 is used to provide background services for the target application in the terminal 100.

[0029] Please refer to Figure 2 , which shows a flowchart of a method for obtaining virtual resources shown in an exemplary embodiment of the present application. The execution subject in the embodiment of the present application is an electronic device, and the method includes:

[0030] Step 201: receiving a resource acquisition request from a target account, the resource acquisition request carries task information of a target task, and the target task is a task that allows acquisition of virtual resources.

[0031] Step 202: Obtain resource acquisition reference information of the target account, where the resource acquisition reference information is used to determine whether the target account is allowed to acquire virtual resources based on the task information.

[0032] Step 203: When it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information, the virtual resources are acquired for the target account based on the task information.

[0033] In one implementation, the resource acquisition reference information includes a first time of creating a target activity corresponding to the target account, the target activity is an activity of acquiring virtual resources, and when the target task is a first task that has been completed, the task information includes a second time of completing the first task; the method further includes:

[0034] In a case where the second time is later than the first time, it is determined that the target account is allowed to obtain the virtual resource based on the task information.

[0035] In one implementation, when the target task is a first task that has been completed, the resource acquisition reference information includes a first completion amount, which is a completion amount up to the start of the first task, and the task information includes a second completion amount, which is a completion amount up to the end of the first task;

[0036] The method also includes:

[0037] When the second completion amount is greater than the first completion amount, it is determined that the target account is allowed to obtain the virtual resource based on the task information.

[0038] In one implementation, obtaining virtual resources for a target account based on the task information includes:

[0039] Determine the difference between the second completion amount and the first completion amount to obtain a third completion amount of the first task;

[0040] A first virtual resource matching the third completion amount is determined, and the first virtual resource is acquired for the target account.

[0041] In one implementation, the resource acquisition reference information includes the first time of creating a target activity corresponding to the target account, the target activity is an activity of acquiring virtual resources, and in the case where the target task is a second task that has not been executed, the task information includes the start time when the second task is to be executed;

[0042] The method also includes:

[0043] In the case where the start time is later than the first time, it is determined that the target account is allowed to obtain the virtual resource based on the task information.

[0044] In one implementation, allowing a target account to obtain virtual resources based on task information includes:

[0045] In the case where the start time is later than the first time, the second task is allowed to be executed;

[0046] When the target account completes the second task, a second virtual resource matching the second task is issued to the target account.

[0047] In one implementation, before obtaining the resource acquisition reference information of the target account, the method further includes:

[0048] Obtaining an acquisition identifier of the target task, where the acquisition identifier is used to indicate whether the target task is allowed to obtain virtual resources;

[0049] In the case where the acquisition identifier is used to indicate that the target task is allowed to acquire virtual resources, the step of acquiring resource acquisition reference information of the target account is performed.

[0050] In one implementation, the acquired identifier includes a first identifier and a second identifier, and the method further includes at least one of the following implementations:

[0051] If the target task is not used to obtain the virtual resource within the target time, the target task is marked as a first identifier, and the first identifier is used to indicate that the target task is outdated and is not allowed to obtain the virtual resource; or,

[0052] In the case where the target task has been used to obtain the virtual resource, the target task is marked as a second identifier, and the second identifier is used to indicate that the target task has obtained the virtual resource and is not allowed to obtain the virtual resource again.

[0053] In one implementation, before obtaining the resource acquisition reference information of the target account, the method further includes:

[0054] Verify the current time of the electronic device with the current time of the server to obtain a verification result, indicating that the electronic device is the device currently logged in by the target account;

[0055] If the verification result is that the verification is passed, the step of obtaining resource acquisition reference information of the target account is executed.

[0056] In one implementation, the method further includes:

[0057] When the verification result is that the verification fails, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device.

[0058] The present application provides a method for acquiring virtual resources. Since resource acquisition reference information is information used to determine whether an account is allowed to acquire virtual resources based on task information, virtual resources are acquired for the account based on the task information only when it is determined based on the resource acquisition reference information and the task information that the account is allowed to acquire virtual resources based on the task information. This effectively controls the acquisition of virtual resources, thereby enabling the virtual resources to be reasonably utilized.

[0059] Please refer to Figure 3 , which shows a flowchart of a method for acquiring virtual resources according to an exemplary embodiment of the present application, and the embodiment is described by taking the target task as the first task that has been completed as an example. The method includes:

[0060] Step 301: The electronic device creates a target activity of a target account, where the target activity is an activity for acquiring virtual resources.

[0061] In one implementation, the electronic device creates a target activity in an installed target application, and the activity of acquiring virtual resources is a selectable function in the target application; in response to the function in the target application being turned on, the electronic device synchronizes the target account of the target application to the function to achieve the creation of the target activity. For example, for a shopping application, the shopping application is mainly used for shopping, and the activity of acquiring virtual resources is a function of the shopping application. The electronic device synchronizes the target account of the shopping application to the function to achieve the creation of the target activity. In another implementation, the electronic device installs the target application, and in response to the user registering the target account in the target application, the creation of the target activity is achieved, that is, the target application itself is an application for acquiring virtual resources; optionally, the target application is an application for creating a virtual robot, and the virtual robot is used to acquire virtual resources.

[0062] In one implementation, when creating a target activity, the electronic device records and stores at least one of the first time of creating the target activity and the first completion amount of the first task; optionally, the electronic device stores the recorded first time and first task locally or uploads it to a server for storage.

[0063] Among them, the first task is a task that allows the acquisition of virtual resources, and the first task is a task that has been completed, and the first completion amount is the completion amount of the first task before creating the target activity; for example, the first task is a step task, and when the electronic device creates the target activity, it records and stores the step value corresponding to the step task; optionally, the electronic device stores the step value in the form of a motion snapshot. In this way, by recording these data so that when virtual resources are subsequently acquired based on the completion amount of the first task, it is possible to avoid acquiring virtual resources based on the completion amount before creating the target activity. Among them, virtual resources can be virtual gold coins, virtual energy, etc., which are not specifically limited in this application.

[0064] It should be noted that for each task that allows the acquisition of virtual resources, if the electronic device can complete the task and store the task information of the task accordingly before acquiring the virtual resources based on the task information of the task, so that the electronic device can subsequently acquire the virtual resources directly based on the task information of the completed task, then the task is determined to be a first task; if the task can only be completed by acquiring virtual resources, then the task is determined to be a second task.

[0065] In one implementation, before creating a target activity corresponding to a target account, the electronic device verifies the current time of the electronic device and the current time of the server to obtain a verification result; if the verification result is that the verification is passed, the step of creating the target activity corresponding to the target account is executed. If the verification result is that the verification is not passed, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device in time. Optionally, the electronic device is a device currently logged in by the target account, the server is a background server that provides the target activity, and the manager of the electronic device is a user who uses the electronic device. Optionally, the electronic device outputs the reminder message as at least one of the reminder methods such as popping up a pop-up window including the reminder message, outputting a ringtone including the reminder message, or outputting vibration, which is not specifically limited in this application. In this implementation, by verifying the time of the electronic device before creating the target activity, it is avoided that the user obtains virtual resources based on the task before creating the target activity by changing the time of the electronic device, thereby ensuring the rationality of obtaining virtual resources.

[0066] Step 302: The electronic device receives a resource acquisition request from a target account, where the resource acquisition request carries task information of a first task.

[0067] Optionally, the task information includes at least one of a second time when the first task is completed and a second completion amount, and the second completion amount is the completion amount by the end of the first task.

[0068] In one implementation, the electronic device displays an activity interface of the target activity, the activity interface displays multiple first tasks, and a get control is displayed in the target area of ​​each first task; optionally, the get control is a "go get" touch button, and the electronic device triggers a resource acquisition request of the target account in response to the user triggering the touch button. The specific implementation method of triggering the resource acquisition request is not limited in this application.

[0069] In one implementation, after the electronic device receives the resource acquisition request of the target account, the current time of the electronic device and the current time of the server are verified to obtain a verification result; if the verification result is that the verification is passed, step 303 is executed. If the verification result is that the verification fails, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device in time. Optionally, the server is a background server that provides target activities, and the manager of the electronic device is a user who uses the electronic device. In this implementation, the time of the electronic device is verified by the current time of the server, which effectively avoids the situation where the user changes the time of the electronic device in an attempt to obtain virtual resources based on previously completed tasks, thereby ensuring that the virtual resources can be reasonably used; and by outputting a reminder message to the manager of the electronic device, the manager can change the current time of the electronic device in time.

[0070] In one implementation, after receiving the resource acquisition request of the target account, the electronic device obtains the acquisition identifier of the first task, and the acquisition identifier is used to indicate whether the first task is allowed to acquire virtual resources. In the case where the acquisition identifier is used to indicate that the first task is allowed to acquire virtual resources, step 303 is executed. Optionally, the acquisition identifier of the first task is stored in the task information of the first task. In this implementation, the acquisition identifier of the first task is used to further determine whether the target account can acquire resources based on the first task, which further ensures the rationality of acquiring virtual resources and ensures that virtual resources can be reasonably used.

[0071] The acquisition identifier includes a first identifier and a second identifier. Optionally, if the first task is not used to acquire virtual resources within the target time, the first task is marked with the first identifier, which is used to indicate that the first task is outdated and does not allow the acquisition of virtual resources; or, if the first task has been used to acquire virtual resources, the first task is marked with the second identifier, which is used to indicate that the first task has acquired virtual resources and does not allow the acquisition of virtual resources again.

[0072] Among them, the target time can be set and changed as needed, and in the embodiments of the present application, this is not specifically limited; optionally, the target time is the time of the day when the task is completed, that is, if the first task is not used to obtain virtual resources within 24 hours of the day, the first task is marked as the first identifier. In some embodiments, the first identifier is marked as "obsolete", and the second identifier is "to obtain virtual resources", "exchanged", etc. The expression form of the acquisition identifier is not specifically limited in the present application. Optionally, if the first task is a step task, the second identifier can also be the number of steps used to obtain virtual resources, such as the second identifier is "1000 steps used".

[0073] In an embodiment of the present application, by marking outdated tasks and tasks that have acquired virtual resources, the target account is prevented from acquiring virtual resources based on outdated tasks or tasks that have acquired resources, thereby effectively limiting the acquisition of virtual resources and ensuring the rationality of acquiring virtual resources.

[0074] In one implementation, the electronic device records the second time when the first task is completed, and stores the second time, acquisition identifier, etc. in the task information of the first task. Optionally, the electronic device stores the task information locally or uploads it to a server for storage; in the case where these data are uploaded to a server for storage, the electronic device downloads all of these data locally when acquiring the task information of the first task. Optionally, the second task includes a clock-in task, a 5-minute fitness task, a breathing task, etc. The electronic device records the second time when the clock-in task, the 5-minute fitness task, the breathing task, etc. are completed, stores the acquisition identifier of each task and the second time in the task information of the task and uploads it to the server. When the electronic device needs to acquire these data, it downloads them locally from the server.

[0075] See also Figure 4 , which shows a schematic diagram of obtaining data from a server shown in an exemplary embodiment of the present application. When the electronic device obtains the task information of any first task from the server, all the task information of the task correspondingly stored in the server is downloaded locally, so that the electronic device can determine whether to allow the target account to obtain resources based on the task information. Among them, if the first task is a breathing task, the task information of the task stored by the server includes the second time when the breathing task is completed. If the first task is a 5-minute fitness task, the task information of the task stored by the server includes the second time when the 5-minute fitness task is completed. If the first task is a step task, the task information of the task stored by the server includes the acquisition identifier of the step task. In this way, by storing these task information on the server, the storage pressure of the electronic device can be effectively reduced.

[0076] Step 303: The electronic device obtains resource acquisition reference information of the target account.

[0077] The resource acquisition reference information is used to determine whether to allow the target account to obtain virtual resources based on the task information. Optionally, the resource acquisition reference information includes at least one of the first time and the first completion amount of the target activity corresponding to the target account, the first completion amount is the completion amount by the start of the first task; specifically, the first completion amount is the completion amount by the start of the first task after the target activity is created.

[0078] Step 304: The electronic device determines whether to allow the target account to obtain virtual resources based on the task information based on the resource acquisition reference information and the task information.

[0079] In one implementation, when the second time is later than the first time, the electronic device determines to allow the target account to obtain virtual resources based on the task information. It should be noted that in the embodiment of the present application, by comparing the first time when the first task is completed and the second time when the target activity is created, and when the second time is later than the first time, the target account is allowed to obtain virtual resources; in this way, even if the user modifies the time of the electronic device to the previous day, when the electronic device finds that the first task is marked as expired, the electronic device automatically considers that the day has passed, and the target account is no longer allowed to obtain virtual resources based on the task information of the first task, which effectively avoids the user from obtaining virtual resources based on the task before the target activity is created by changing the time of the electronic device, thereby effectively ensuring the rationality of obtaining virtual resources.

[0080] In another implementation, when the second completion amount is greater than the first completion amount, the electronic device determines to allow the target account to obtain virtual resources based on the task information. For example, the first task is a step task, and the first completion amount is 10,000 steps, that is, the user has walked 10,000 steps before creating the target activity; the second completion amount is 12,000 steps, and the second completion amount is greater than the first completion amount, indicating that the completion amount of the step task after the target activity is created is 2,000 steps, then the electronic device allows the target account to obtain virtual resources based on the task information. In the embodiment of the present application, by comparing the second completion amount with the first completion amount, it is ensured that the first task for which the target account requests to obtain resources is allowed to obtain virtual resources only if there is a task completion amount after the target activity is created, thereby ensuring the rationality of obtaining virtual resources.

[0081] In another implementation, when the second time is later than the first time and the second completion amount is greater than the first completion amount, the electronic device determines to allow the target account to obtain virtual resources based on the task information. In this implementation, the target account is allowed to obtain virtual resources only when both the time and the completion amount meet the conditions, which effectively limits the acquisition of virtual resources and further ensures the rationality of obtaining virtual resources.

[0082] Step 305: When it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information, the electronic device acquires the virtual resources for the target account based on the task information.

[0083] In one implementation, the electronic device determines the difference between the second completion amount and the first completion amount to obtain a third completion amount of the first task; the electronic device determines a first virtual resource that matches the third completion amount, and obtains the first virtual resource for the target account.

[0084] For example, if the first task is a step task, the second completion amount is 12,000 steps, the first completion amount is 10,000 steps, and the third completion amount is 2,000 steps, the electronic device determines the first virtual resource that matches 2,000 steps. In the embodiment of the present application, by removing the task completion amount before creating the target activity, it is ensured that the target account can only obtain virtual resources based on the completion amount after creating the target activity, thereby ensuring the rationality of obtaining virtual resources.

[0085] Among them, different tasks or different task completion amounts correspond to different amounts of virtual resources. Optionally, the virtual resource is virtual energy, and the first task includes a breathing task, a 5-minute fitness task, a step task, etc., and the amounts of virtual resources matched by these tasks are all different. For example, the breathing task matches 150 virtual energies, the 5-minute fitness task matches 200 virtual energies, and for the step task, 20 steps match 1 virtual energy, and different steps match different virtual energies. In this way, different amounts of virtual resources are obtained by the completion amount of the task or the type of task, which ensures the diversity of activities for obtaining virtual resources, thereby improving the user's participation and experience in the target activity.

[0086] The present application provides a method for acquiring virtual resources. Since resource acquisition reference information is information used to determine whether an account is allowed to acquire virtual resources based on task information, virtual resources are acquired for the account based on the task information only when it is determined based on the resource acquisition reference information and the task information that the account is allowed to acquire virtual resources based on the task information. This effectively controls the acquisition of virtual resources, thereby enabling the virtual resources to be reasonably utilized.

[0087] Please refer to Figure 5 , which shows a flowchart of a method for acquiring virtual resources shown in an exemplary embodiment of the present application. This embodiment is described by taking the target task as an unexecuted second task as an example, and the method includes:

[0088] Step 501: The electronic device creates a target activity of a target account, where the target activity is an activity for acquiring virtual resources.

[0089] The specific implementation method of the electronic device creating the target activity of the target account is the same as step 301 and will not be repeated here.

[0090] In one implementation, when creating a target activity, the electronic device records and stores the first time of creating the target activity; optionally, the electronic device stores the recorded first time locally or uploads it to a server for storage.

[0091] Step 502: The electronic device receives a resource acquisition request from a target account, where the resource acquisition request carries task information of a second task, where the second task is a task that allows acquisition of virtual resources, and the second task is an unexecuted task.

[0092] Optionally, the task information includes the start time of the second task to be executed. In one implementation, the start time of the second task to be executed is the time when the target account triggers the resource acquisition request; accordingly, after receiving the resource acquisition request, the electronic device records the time when the resource acquisition request is triggered as the start time of the second task.

[0093] In one implementation, the electronic device displays an activity interface of the target activity, the activity interface displays multiple second tasks, and a capture control is displayed in the target area of ​​each second task. Optionally, the capture control is a "go to complete" touch button, and in response to the user triggering the touch button, a resource acquisition request of the target account is triggered. In the embodiment of the present application, the specific implementation method of triggering the resource acquisition request is not specifically limited.

[0094] In one implementation, after receiving the resource acquisition request of the target account, the electronic device verifies the current time of the electronic device and the current time of the server to obtain a verification result; if the verification result is that the verification is passed, step 303 is executed. If the verification result is that the verification is not passed, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device in time. Optionally, the server is a background server that provides the target activity, and the manager of the electronic device is a user who uses the electronic device.

[0095] In one implementation, after the electronic device receives the resource acquisition request from the target account, it obtains the acquisition identifier of the second task, and the acquisition identifier is used to indicate whether the second task is allowed to obtain virtual resources. In the case where the acquisition identifier is used to indicate that the second task is allowed to obtain virtual resources, step 303 is executed; optionally, the acquisition identifier of the second task is stored in the task information of the second task. Among them, the acquisition identifier of the second task includes a second identifier. In the case where the second task has been used to obtain virtual resources, the second task is marked as the second identifier, and the second identifier is used to indicate that the second task has obtained virtual resources and is not allowed to obtain virtual resources again. For example, the second task is a punch-in task. If the user has completed a punch-in task on the same day and obtained virtual resources based on the punch-in task, the punch-in task is marked as the second identifier.

[0096] In another implementation, if the second task has been completed, the second time when the second task is completed is recorded and stored in the task information of the second task. Since the second task is a task that can only be completed when virtual resources are acquired, if the task information of the second task includes the second time when the second task is completed, it can be determined that the second task has been used to acquire virtual resources. Optionally, the electronic device stores the acquisition identifier, start time, second time, etc. of the second task in the task information of the second task, stores the task information of the second task locally or uploads it to a server for storage, and the electronic device can acquire the stored data from the server. For example, continue to refer to Figure 4 After the electronic device obtains the resource acquisition request carrying the breathing task, it obtains the task information of the breathing task from the server. The task information includes the second time when the breathing task has been completed. The electronic device is not allowed to complete the breathing task again to obtain virtual resources.

[0097] Step 503: The electronic device obtains resource acquisition reference information of the target account.

[0098] The resource acquisition reference information is used to determine whether to allow the target account to acquire virtual resources based on the task information. Optionally, the resource acquisition reference information includes the first time of creating the target activity corresponding to the target account.

[0099] Step 504: The electronic device determines whether to allow the target account to obtain virtual resources based on the task information based on the resource acquisition reference information and the task information.

[0100] In one implementation, when the start time is later than the first time, the electronic device determines to allow the target account to obtain the virtual resource based on the task information.

[0101] In this implementation, since the second task is an unexecuted task, the target account is allowed to obtain virtual resources only when the start time of the second task to be executed is later than the first time of creating the target activity. This ensures that the second task can only obtain virtual resources after being executed after the target activity is created. In addition, by determining in advance whether to allow the acquisition of virtual resources when the second task is not executed, it is possible to avoid the situation where it is determined that the acquisition of virtual resources is not allowed after the second task is completed, thereby improving the rationality of obtaining virtual resources.

[0102] Step 505: When it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information, the electronic device acquires the virtual resources for the target account based on the task information.

[0103] In one implementation, if the start time is later than the first time, the electronic device allows the second task to be executed; if the target account completes the second task, the electronic device issues the target account a second virtual resource that matches the second task. In this way, if the second task is not executed, it is determined in advance whether to allow the acquisition of the virtual resource, which can avoid the situation where it is determined that the acquisition of the virtual resource is not allowed after the second task is completed.

[0104] Among them, different tasks match different amounts of virtual resources; for example, the virtual resource is virtual energy, the second task includes a breathing task, a clock-in task, etc., the breathing task matches 100 virtual energy, and the breathing task matches 150 virtual energy; in this way, different tasks are matched with different virtual energies to ensure the diversity of activities for obtaining virtual resources, thereby improving the user's participation and experience in the target activities.

[0105] In another implementation, before the second task is executed, the electronic device verifies the current time of the electronic device and the current time of the server to obtain a verification result; if the verification result is that the verification is passed, the step of allowing the second task to be executed is performed. If the verification result is that the verification fails, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device in time. Optionally, the server is a background server that provides the target activity, and the manager of the electronic device is a user who uses the electronic device. In this implementation, the time of the electronic device is verified by the current time of the server, which effectively avoids the situation where the user changes the time of the electronic device in an attempt to obtain virtual resources based on the second task that was not executed at the previous time, thereby ensuring that the virtual resources can be reasonably obtained.

[0106] The present application provides a method for acquiring virtual resources. Since resource acquisition reference information is information used to determine whether an account is allowed to acquire virtual resources based on task information, virtual resources are acquired for the account based on the task information only when it is determined based on the resource acquisition reference information and the task information that the account is allowed to acquire virtual resources based on the task information. This effectively controls the acquisition of virtual resources, thereby enabling the virtual resources to be reasonably utilized.

[0107] Please refer to Figure 6 , which shows a block diagram of a virtual resource acquisition device shown in an exemplary embodiment of the present application, the device includes:

[0108] Receiving module 601, used to receive a resource acquisition request from a target account, the resource acquisition request carries task information of a target task, the target task is a task that allows acquisition of virtual resources;

[0109] A first acquisition module 602 is used to acquire resource acquisition reference information of a target account, where the resource acquisition reference information is used to determine whether the target account is allowed to acquire virtual resources based on task information;

[0110] The second acquisition module 603 is used to acquire virtual resources for the target account based on the task information when it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information.

[0111] In one implementation, the resource acquisition reference information includes a first time of creating a target activity corresponding to the target account, the target activity is an activity of acquiring virtual resources, and when the target task is a first task that has been completed, the task information includes a second time of completing the first task; the device further includes:

[0112] The first determining module is used to determine, when the second time is later than the first time, that the target account is allowed to obtain the virtual resource based on the task information.

[0113] In one implementation, when the target task is a first task that has been completed, the resource acquisition reference information includes a first completion amount, which is a completion amount up to the start of the first task, and the task information includes a second completion amount, which is a completion amount up to the end of the first task; the device further includes:

[0114] The second determination module is used to determine, when the second completion amount is greater than the first completion amount, that the target account is allowed to obtain virtual resources based on the task information.

[0115] In one implementation, the second acquisition module 603 is used to:

[0116] Determine the difference between the second completion amount and the first completion amount to obtain a third completion amount of the first task;

[0117] A first virtual resource matching the third completion amount is determined, and the first virtual resource is acquired for the target account.

[0118] In one implementation, the resource acquisition reference information includes a first time of creating a target activity corresponding to the target account, the target activity is an activity of acquiring virtual resources, and when the target task is a second task that has not been executed, the task information includes a start time when the second task is to be executed; the device further includes:

[0119] The third determination module is used to determine, when the start time is later than the first time, whether to allow the target account to obtain the virtual resource based on the task information.

[0120] In one implementation, the third determining module is used to:

[0121] In the case where the start time is later than the first time, the second task is allowed to be executed;

[0122] When the target account completes the second task, a second virtual resource matching the second task is issued to the target account.

[0123] In one implementation, the apparatus further includes:

[0124] A fourth acquisition module, used to acquire an acquisition identifier of a target task, where the acquisition identifier is used to indicate whether the target task is allowed to acquire virtual resources;

[0125] The first execution module is used to execute the step of acquiring resource acquisition reference information of a target account when the acquisition identifier is used to indicate that the target task is allowed to acquire virtual resources.

[0126] In one implementation, the acquired identifier includes a first identifier and a second identifier, and the apparatus further includes:

[0127] A marking module is used to mark the target task with a first identifier if the target task is not used to obtain virtual resources within a target time, and the first identifier is used to indicate that the target task is outdated and is not allowed to obtain virtual resources; or, if the target task has been used to obtain virtual resources, mark the target task with a second identifier, and the second identifier is used to indicate that the target task has obtained virtual resources and is not allowed to obtain virtual resources again.

[0128] In one implementation, the apparatus further includes:

[0129] A verification module, used to verify the current time of the electronic device with the current time of the server, and obtain a verification result, indicating that the electronic device is the device currently logged in by the target account;

[0130] The second execution module is used to execute the step of obtaining resource acquisition reference information of the target account when the verification result is that the verification is passed.

[0131] In one implementation, the apparatus further includes:

[0132] The reminder module is used to output reminder information when the verification result is that the verification fails, and the reminder information is used to remind the manager of the electronic device to update the current time of the electronic device.

[0133] In some embodiments, the electronic device is provided as a terminal, Figure 7The structure block diagram of a terminal 700 provided by an exemplary embodiment of the present application is shown. The terminal 700 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 700 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0134] Typically, the terminal 700 includes a processor 701 and a memory 702 .

[0135] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0136] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one program code, which is used to be executed by the processor 701 to implement the method for obtaining virtual resources provided in the method embodiment of the present application.

[0137] In some embodiments, the terminal 700 may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, a positioning assembly 708 and a power supply 709.

[0138] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0139] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 704 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0140] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 705 can be one, set on the front panel of the terminal 700; in other embodiments, the display screen 705 can be at least two, respectively set on different surfaces of the terminal 700 or in a folding design; in other embodiments, the display screen 705 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 700. Even, the display screen 705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 705 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0141] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0142] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 700. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.

[0143] Positioning component 708 is used to locate the current geographical location of terminal 700 to implement navigation or LBS (Location Based Service). Positioning component 708 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.

[0144] The power supply 709 is used to power various components in the terminal 700. The power supply 709 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 709 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0145] In some embodiments, the terminal 700 further includes one or more sensors 710 , including but not limited to: an acceleration sensor 711 , a gyroscope sensor 712 , a pressure sensor 713 , a fingerprint sensor 714 , an optical sensor 715 , and a proximity sensor 716 .

[0146] The acceleration sensor 711 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 700. For example, the acceleration sensor 711 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 can also be used to collect motion data of games or users.

[0147] The gyro sensor 712 can detect the body direction and rotation angle of the terminal 700, and the gyro sensor 712 can cooperate with the acceleration sensor 711 to collect the user's 3D actions on the terminal 700. The processor 701 can implement the following functions based on the data collected by the gyro sensor 712: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0148] The pressure sensor 713 can be set on the side frame of the terminal 700 and / or the lower layer of the display screen 705. When the pressure sensor 713 is set on the side frame of the terminal 700, it can detect the user's holding signal of the terminal 700, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 713. When the pressure sensor 713 is set on the lower layer of the display screen 705, the processor 701 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0149] The fingerprint sensor 714 is used to collect the user's fingerprint, and the processor 701 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 714, or the fingerprint sensor 714 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 701 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 714 can be set on the front, back, or side of the terminal 700. When a physical button or a manufacturer logo is set on the terminal 700, the fingerprint sensor 714 can be integrated with the physical button or the manufacturer logo.

[0150] The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is reduced. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 715.

[0151] The proximity sensor 716, also called a distance sensor, is usually arranged on the front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front of the terminal 700 is gradually decreasing, the processor 701 controls the display screen 705 to switch from the screen-on state to the screen-off state; when the proximity sensor 716 detects that the distance between the user and the front of the terminal 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from the screen-off state to the screen-on state.

[0152] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0153] An embodiment of the present application further provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for acquiring virtual resources as shown in the above embodiments.

[0154] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for acquiring virtual resources as shown in the above embodiments.

[0155] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0156] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for acquiring virtual resources, characterized in that: The method comprises: Receive a resource acquisition request from a target account, the resource acquisition request carrying task information of a target task, the target task being a task that allows acquisition of virtual resources; Acquire resource acquisition reference information of the target account, where the resource acquisition reference information is used to determine whether to allow the target account to acquire virtual resources based on the task information; In a case where it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information, acquiring virtual resources for the target account based on the task information; The resource acquisition reference information includes a first time when a target activity corresponding to the target account is created, the target activity is an activity for acquiring virtual resources, and when the target task is a first task that has been completed, the resource acquisition reference information also includes a first completion amount, the first completion amount is the completion amount as of the start of the first task, and the task information includes a second completion amount and a second time when the first task is completed, the second completion amount is the completion amount as of the end of the first task; When the second time is later than the first time and the second completion amount is greater than the first completion amount, it is determined that the target account is allowed to obtain virtual resources based on the task information.

2. The method according to claim 1, characterized in that The acquiring virtual resources for the target account based on the task information includes: Determine the difference between the second completion amount and the first completion amount to obtain a third completion amount of the first task; A first virtual resource matching the third completion amount is determined, and the first virtual resource is acquired for the target account.

3. The method according to claim 1, characterized in that In the case where the target task is a second task that has not been executed, the task information includes a start time when the second task is to be executed; The method further comprises: In a case where the start time is later than the first time, it is determined that the target account is allowed to obtain virtual resources based on the task information.

4. The method according to claim 3, characterized in that The allowing the target account to obtain virtual resources based on the task information includes: When the start time is later than the first time, allowing the second task to be executed; When the target account completes the second task, a second virtual resource matching the second task is issued to the target account.

5. The method according to claim 1, characterized in that Before obtaining the resource acquisition reference information of the target account, the method further includes: Acquire an acquisition identifier of the target task, where the acquisition identifier is used to indicate whether the target task is allowed to acquire virtual resources; In the case where the acquisition identifier is used to indicate that the target task is allowed to acquire virtual resources, the step of acquiring resource acquisition reference information of the target account is performed.

6. The method according to claim 5, characterized in that The acquisition identifier includes a first identifier and a second identifier, and the method further includes at least one of the following implementation modes: If the target task is not used to obtain the virtual resource within the target time, the target task is marked as the first identifier, and the first identifier is used to indicate that the target task is outdated and is not allowed to obtain the virtual resource; or In the case that the target task has been used to obtain the virtual resource, the target task is marked with the second identifier, and the second identifier is used to indicate that the target task has obtained the virtual resource and is not allowed to obtain the virtual resource again.

7. The method according to claim 1, characterized in that Before obtaining the resource acquisition reference information of the target account, the method further includes: Verify the current time of the electronic device with the current time of the server to obtain a verification result, and the electronic device is the device currently logged in by the target account; When the verification result is that the verification is passed, the step of obtaining resource acquisition reference information of the target account is executed.

8. The method according to claim 7, characterized in that The method further comprises: When the verification result is that the verification fails, a reminder message is output, and the reminder message is used to remind the manager of the electronic device to update the current time of the electronic device.

9. A device for acquiring virtual resources, characterized in that: The device comprises: A receiving module, configured to receive a resource acquisition request from a target account, wherein the resource acquisition request carries task information of a target task, and the target task is a task that allows acquisition of virtual resources; A first acquisition module, configured to acquire resource acquisition reference information of the target account, wherein the resource acquisition reference information is used to determine whether the target account is allowed to acquire virtual resources based on the task information; a second acquisition module, for acquiring virtual resources for the target account based on the task information, if it is determined based on the resource acquisition reference information and the task information that the target account is allowed to acquire virtual resources based on the task information; wherein the resource acquisition reference information includes a first time of creating a target activity corresponding to the target account, the target activity being an activity of acquiring virtual resources, and in a case where the target task is a first task that has been completed, the resource acquisition reference information also includes a first completion amount, the first completion amount being the completion amount as of the start of the first task, and the task information includes a second completion amount and a second time when the first task is completed, the second completion amount being the completion amount as of the end of the first task; A determination module is used to determine whether to allow the target account to obtain virtual resources based on the task information when the second time is later than the first time and the second completion amount is greater than the first completion amount.

10. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the method for acquiring virtual resources as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by the processor to implement the method for acquiring virtual resources according to any one of claims 1 to 8.

12. A computer program product, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for acquiring virtual resources according to any one of claims 1 to 8.