Interactive Method, Device, Equipment, Medium and Program Product Based on Virtual Resources

By introducing re-acquisition controls and machine learning predictions in the virtual resource collection interface, the problem of users being unable to re-select the amount of virtual resources is solved, and the interactive fun and resource utilization rate are improved.

CN116156236BActive Publication Date: 2025-08-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111373318.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2025-08-01
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

In the prior art, the amount of virtual resources received by users depends entirely on luck, and there is a lack of opportunity to re-select, resulting in low interactive fun and low utilization of graphics processing resources.

Method used

It provides an interactive method based on virtual resources, allowing users to return the collected virtual resources and receive new virtual resources through the re-collect control in the collection result interface, use the machine learning model to predict the probability of re-collecting, and present corresponding prompts and feedback options in the interface.

Benefits of technology

It improves the interactive fun of virtual resources and the utilization rate of graphics processing resources, and meets users' needs for diversified information interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116156236B_ABST
    Figure CN116156236B_ABST
Patent Text Reader

Abstract

The present application provides an interaction method, device, equipment, computer-readable storage medium and computer program product based on virtual resources; the method includes: in response to a first claiming operation for a first virtual resource, presenting a claiming result interface of the first virtual resource; in the claiming result interface, presenting the virtual resource value of the claimed first virtual resource and a re-claiming control corresponding to the first virtual resource; wherein, the re-claiming control is used to return the first virtual resource and claim a second virtual resource, and the second virtual resource and the first virtual resource belong to the same virtual resource package; in response to a second claiming operation triggered based on the re-claiming control, presenting a claiming result corresponding to the second virtual resource. Through the present application, it is possible to promote interaction operations for virtual resources and improve the utilization rate of graphics processing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and in particular to a virtual resource-based interactive method, apparatus, device, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of mobile communication technology, an increasing number of applications offer the ability to receive virtual resource packages (commonly known as "red envelopes") online, facilitating user interaction and emotional connection. In related technologies, the amount of a "lucky red envelope" or "random red envelope" is determined entirely by luck. If a user discovers they've received a smaller amount, they have no chance to reselect, resulting in a lack of fun and interaction. This leads to low utilization of graphics processing resources on the device. Summary of the Invention

[0003] The embodiments of the present application provide a virtual resource-based interactive method, apparatus, device, computer-readable storage medium, and computer program product, which can promote interactive operations on virtual resources and improve the utilization of graphics processing resources.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present invention provides a method for interacting with a virtual resource, including:

[0006] In response to a first claiming operation on a first virtual resource, presenting a claiming result interface of the first virtual resource;

[0007] In the claim result interface, the virtual resource value of the first virtual resource claimed and a reclaim control are presented;

[0008] The re-claim control is used to return the first virtual resource and claim a second virtual resource, where the second virtual resource and the first virtual resource belong to the same virtual resource package;

[0009] In response to a second claiming operation triggered by the re-claiming control, a claiming result corresponding to the second virtual resource is presented.

[0010] The embodiment of the present application provides an interactive device based on virtual resources, including:

[0011] A first presentation module, configured to present a claim result interface of the first virtual resource in response to a first claim operation on the first virtual resource;

[0012] A second presentation module, configured to present, in the claim result interface, the virtual resource value of the claimed first virtual resource and a reclaim control;

[0013] Among them, the re - collection control is used to return the first virtual resource and collect the second virtual resource, and the second virtual resource and the first virtual resource belong to the same virtual resource package;

[0014] The third presentation module is used to present the collection result corresponding to the second virtual resource in response to a second collection operation triggered based on the re - collection control.

[0015] In the above solution, the second presentation module is further used to present, in the collection result interface, a target area for triggering the return of the first virtual resource and the collection of the second virtual resource, and sliding indication information for sliding the target area; based on the sliding indication information, in response to a sliding operation on the target area, present the re - collection control.

[0016] In the above solution, before presenting the collection result corresponding to the second virtual resource, the device further includes: an operation receiving module, which is used to present release indication information in an associated area of the re - collection control when the sliding operation slides to the area where the re - collection control is located, and the release indication information is used to indicate the release of the sliding operation; based on the release indication information, in response to a release instruction for the sliding operation, present a collection interface for collecting the second virtual resource and present a collection entry in the collection interface; in response to a trigger operation on the collection entry, receive the second collection operation.

[0017] In the above solution, the second presentation module is further used to present the re - collection control in a first display style; the device further includes: a fourth presentation module, which is used to present the re - collection control in a second display style different from the first display style when the sliding operation slides to the area where the re - collection control is located.

[0018] In the above solution, the device further includes: a cancellation and refresh module, which is used to present a cancellation control for canceling the return of the first virtual resource during the presentation of the re - collection control; when the release position of the sliding operation is located in the area where the cancellation control is located, cancel the operation of returning the first virtual resource.

[0019] In the above solution, the second presentation module is further used to present the re - collection control when a presentation condition is met, where the presentation condition includes at least one of the following: the value of the collected virtual resource is lower than a first resource value; the total value of the virtual resources in the virtual resource package is higher than a second resource value; the remaining value of the uncollected virtual resources in the virtual resource package is higher than the value of the virtual resource; when the virtual resource package includes multiple sub - virtual resource packages, the number of uncollected sub - virtual resource packages exceeds a target number.

[0020] In the above solution, before presenting the receiving result of the second virtual resource, the operation receiving module is further configured to, in response to a trigger operation on the re-receiving control, present a return prompt message for whether to return the first virtual resource; wherein, the return prompt message is used to prompt the probability value that the virtual resource value of the second virtual resource exceeds the virtual resource value of the first virtual resource; in response to a determination instruction for the return prompt message, the second receiving operation is received.

[0021] In the above solution, before presenting the return prompt message for whether to return the first virtual resource value, the device further includes: a probability value prediction module, configured to obtain feature data corresponding to the virtual resource package, where the feature data includes at least one of the following: the virtual resource value received, the total virtual resource value of the virtual resource package, the number of sub-virtual resource packages in the virtual resource package that have not been received, the remaining virtual resource value of the virtual resource package that has not been received; based on the feature data, a machine learning model is called for prediction processing to obtain the probability value; wherein, the machine learning model is trained based on the feature data of the virtual resource package samples and the labeled probability values.

[0022] In the above solution, before presenting the receiving result of the second virtual resource, the operation receiving module is further configured to, in response to a trigger operation on the re-receiving control, present return verification information for the first virtual resource; wherein, the return verification information is used to prompt verification of the virtual resource value of the returned first virtual resource; in response to a determination instruction for the return verification information, the second receiving operation is received.

[0023] In the above solution, the third presentation module is further configured to, in response to a trigger operation on the re-receiving control, receive the second receiving operation; in response to the second receiving operation, return the received first virtual resource to the virtual resource package, and when the remaining virtual resource value in the virtual resource package is greater than zero, present the target virtual resource value of the received second virtual resource in the receiving result interface; when the remaining virtual resource value is equal to zero, present an indication information indicating that the second virtual resource has not been successfully received.

[0024] In the above solution, the third presentation module is further configured to, in response to a trigger operation on the re - collection control, present candidate virtual resource values corresponding to the second virtual resource, where the candidate virtual resource values are randomly allocated based on the remaining virtual resource values in the virtual resource package; in response to a determination instruction for the candidate virtual resource values, receive the second collection operation; in response to the second collection operation, return the collected first virtual resource to the virtual resource package, and present the candidate virtual resource values of the collected second virtual resource in the collection result interface.

[0025] In the above solution, before presenting the collection result corresponding to the second virtual resource, the device further includes: a return prompt module, configured to present a return prompt message corresponding to the first virtual resource; where the return prompt message is used to prompt that the first virtual resource has been returned from the account associated with the current object to the virtual resource package.

[0026] In the above solution, the device further includes: a feedback sending module, configured to present a feedback entry for providing feedback on the source object of the virtual resource package; in response to a trigger operation on the feedback entry, send feedback information to the terminal of the source object of the virtual resource package; where the feedback information is used to provide feedback on the interaction information of the current object with the collected first virtual resource or the collection result.

[0027] An embodiment of the present application provides an electronic device, including:

[0028] A memory, configured to store executable instructions;

[0029] A processor, configured to implement the interaction method based on virtual resources provided by the embodiment of the present application when executing the executable instructions stored in the memory.

[0030] An embodiment of the present application provides a computer - readable storage medium, storing executable instructions, which are used to cause a processor to implement the interaction method based on virtual resources provided by the embodiment of the present application when executed.

[0031] An embodiment of the present application provides a computer program product, including a computer program or instructions, where when the computer program or instructions are executed by a processor, the interaction method based on virtual resources provided by the embodiment of the present application is implemented.

[0032] The embodiments of the present application have the following beneficial effects:

[0033] According to the embodiments of the present application, after obtaining the first virtual resource in the virtual resource package, if the user is not satisfied with the obtained virtual resource value, the obtained first virtual resource can be returned through the re-obtaining control, and the second virtual resource in the virtual resource package can be obtained, giving the user another chance to select the virtual resource to obtain, which can promote the interactive operation for virtual resources, increase the fun, facilitate better emotional transmission, improve the utilization rate of graphics processing resources, and meet the increasingly diverse needs of user information interaction. Description of the Drawings

[0034] Figure 1 It is a schematic architecture diagram of the interactive system 100 based on virtual resources provided by the embodiments of the present application;

[0035] Figure 2 It is a schematic structural diagram of the electronic device 500 provided by the embodiments of the present application;

[0036] Figure 3 It is a schematic flowchart of the interactive method based on virtual resources provided by the embodiments of the present application;

[0037] Figure 4 It is a schematic display diagram of the re-obtaining control provided by the embodiments of the application;

[0038] Figure 5 It is a schematic display diagram of the re-obtaining control provided by the embodiments of the present application;

[0039] Figure 6 It is a schematic display diagram of the cancellation control provided by the embodiments of the present application;

[0040] Figure 7 It is a schematic display diagram of the return prompt information provided by the embodiments of the present application;

[0041] Figure 8 It is a schematic display diagram of the verification prompt information provided by the embodiments of the present application;

[0042] Figure 9 It is a schematic display diagram of the obtaining result provided by the embodiments of the present application;

[0043] Figure 10 It is a schematic display diagram of the obtaining result provided by the embodiments of the present application;

[0044] Figure 11 It is a schematic flowchart of the interactive method based on virtual resources provided by the embodiments of the present application. Detailed Embodiments

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

[0046] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.

[0047] In the following description, the terms "first / second..." are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second..." can be interchanged with a specific order or sequence when allowed, so that the embodiments of this application described here can be implemented in an order other than that illustrated or described here.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0049] Before further elaborating on the embodiments of this application, the nouns and terms involved in the embodiments of this application are explained. The nouns and terms involved in the embodiments of this application are applicable to the following explanations.

[0050] 1) Client: An application program running on a terminal for providing various services, such as an instant messaging client, a video playback client, a game client, a learning client, etc.

[0051] 2) In response to: Used to represent the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more executed operations can be real-time or have a set delay; without special instructions, there is no limit on the execution order of the multiple executed operations.

[0052] See Figure 1 , Figure 1 FIG. 25 is a schematic diagram of the architecture of the interactive system 100 based on virtual resource packages provided by the embodiments of this application. To support an exemplary application, terminals (exemplarily shown as terminal 400-1 and terminal 400-2) are connected to the server 200 through the network 300. The network 300 can be a wide area network, a local area network, or a combination of both, and uses a wireless link to achieve data transmission.

[0053] The terminal 400 can be various types of user terminals such as smart phones, tablet computers, laptop computers, in-vehicle terminals, etc., and can also be a desktop computer, a television, or a combination of any two or more of these data processing devices; the server 200 can be either a single server configured to support various services, or configured as a server cluster, or a cloud server, etc.

[0054] In practical applications, a client is set on the terminal, such as an instant messaging client, a video playback client, a game client, a learning client, etc. When the user opens the client on the terminal to receive virtual resources, the terminal responds to a first receiving operation for a first virtual resource, presents a receiving result interface of the first virtual resource, and in the receiving result interface, presents the virtual resource value in the received first virtual resource and a re-receiving control; wherein, the re-receiving control is used to return the received first virtual resource and receive a second virtual resource, and the second virtual resource and the first virtual resource belong to the same virtual resource package; in response to a second receiving operation triggered based on the re-receiving control, a receiving request for the second virtual resource is sent to the server 200; the server 200 verifies the remaining value of the virtual resources in the virtual resource package based on the receiving request, and returns a receiving result corresponding to the second virtual resource to the terminal for display based on the verification result. For example, when the verification result indicates that the remaining value of the virtual resources in the virtual resource package is not zero, the target virtual resource value of the second virtual resource is presented in the receiving result interface; when the verification result indicates that the remaining value of the virtual resources in the virtual resource package is zero, an indication information for indicating that the second virtual resource is not successfully received is presented.

[0055] See Figure 2 , Figure 2 is a schematic structural diagram of the electronic device 500 provided by an embodiment of the present application. In practical applications, the electronic device 500 can be Figure 1 the terminal or the server 200 in Figure 1 Taking the terminal shown as an example, the electronic device for the interactive method based on virtual resources in the embodiment of the present application is described. Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. Each component in the electronic device 500 is coupled together through a bus system 540. It can be understood that the bus system 540 is used to realize the connection and communication between these components. In addition to including a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, in Figure 2 all kinds of buses are labeled as the bus system 540.

[0056] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0057] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0058] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.

[0059] The memory 550 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0060] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.

[0061] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0062] A network communication module 552 for reaching other computing devices via one or more (wired or wireless) network interfaces 520 , exemplary network interfaces 520 including Bluetooth, WiFi, and USB;

[0063] A presentation module 553 for enabling the presentation of information (e.g., a user interface for operating a peripheral device and displaying content and information) via one or more output devices 531 associated with the user interface 530 (e.g., a display screen, a speaker, etc.);

[0064] An input processing module 554 for detecting and translating one or more user inputs or interactions from one of one or more input devices 532.

[0065] In some embodiments, the interactive device based on virtual resources provided by the embodiments of the present application can be implemented in software. Figure 2 Shown is an interactive device 555 based on virtual resources stored in the memory 550, which can be software in the form of a program and a plug-in, etc., including the following software modules: a first presentation module 5551, a second presentation module 5552, and a third presentation module 5553. These modules are logical, so they can be combined arbitrarily or further split according to the implemented functions. The functions of each module will be described below.

[0066] In other embodiments, the interactive device based on virtual resources provided by the embodiments of the present application can be implemented in hardware. As an example, the interactive device based on virtual resources provided by the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the interactive method based on virtual resources provided by the embodiments of the present application. For example, a processor in the form of a hardware decoding processor can employ one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0067] In some embodiments, a terminal or a server may implement the interaction method based on a virtual resource package provided in the embodiments of the present application by running a computer program. For example, the computer program may be a native program or a software module in an operating system; it may be a local (Native) application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as a live broadcast APP or an instant messaging APP; it may also be a small program, that is, a program that only needs to be downloaded into a browser environment to run; it may also be a small program that can be embedded into any APP. In short, the above computer program may be any form of application program, module or plug-in.

[0068] The following will specifically describe the interaction method based on virtual resources provided in the embodiments of the present application with reference to the accompanying drawings. The interaction method based on virtual resources provided in the embodiments of the present application may be Figure 1 individually executed by a terminal in Figure 1 or may be executed in cooperation by a terminal in Figure 1 and a server 200. Below, taking the interaction method based on virtual resources provided in the embodiments of the present application being individually executed by a terminal in Figure 3 as an example for description. Refer to Figure 3 , Figure 3 which is a schematic flowchart of the interaction method based on virtual resources provided in the embodiments of the present application, and will be described in combination with the steps shown in

[0069] It should be noted that Figure 3 the method shown in

[0070] Step 101: The terminal presents a receiving result interface of the first virtual resource in response to a receiving operation for the first virtual resource.

[0071] Here, in practical applications, a client is set on the terminal, such as an instant messaging client, a video playback client, a game client, a learning client, etc.; when the source object (sender) of the virtual resource package sends the virtual resource package through the client, the virtual resource package to be received is presented on any function page of the client, and the user can receive the virtual resources in the virtual resource package based on the corresponding function page, and a prompt message indicating that the virtual resources have been stored in the account associated with the current object is displayed.

[0072] For example, the client has a session function module. The virtual resource package sent by the source object is presented on the session page of the client. When the user clicks on the virtual resource package to be claimed on the session page, the terminal presents the claim result interface of the virtual resource package to display the claim result, such as the value of the claimed virtual resource (such as the amount of a red envelope, the amount of a consumption coupon, membership benefits, etc.); for another example, the client has a game function module. The virtual resource package is presented on the game page of the client. When the user clicks on the virtual resource package to be claimed on the game page, the terminal presents the claim result interface of the virtual resource to display the claim result, such as the claimed virtual resource (such as game coins, character skins, game props, etc.).

[0073] It should be noted that when the source object (sender) of the virtual resource sends the virtual resource, it can be distributed in the form of a virtual resource package. The virtual resource package includes one or more (two or more) sub-virtual resource packages. The virtual resources in each sub-virtual resource package can be the same or different. The first virtual resource in step 101 is actually the virtual resource in one of the sub-virtual resource packages.

[0074] Taking the virtual resource package as a red envelope as an example, the red envelope sent by the sender at one time includes multiple sub-red envelopes. The amounts in each sub-red envelope can be the same or different. Each user claims one of the sub-red envelopes. When the user is not satisfied with the amount of the claimed sub-red envelope, the method provided in the embodiments of the present application can be used to return the claimed sub-red envelope and claim other sub-red envelopes. Similarly, taking the virtual resource package as a consumption coupon as an example, the consumption coupons sent by the sender include multiple sub-consumption coupons. The amounts of money in each sub-consumption coupon can be the same or different. Each user claims one of the sub-consumption coupons. When the user is not satisfied with the amount of the claimed sub-consumption coupon, the method provided in the embodiments of the present application can be used to return the claimed sub-consumption coupon and claim other sub-consumption coupons.

[0075] Step 102: In the claim result interface, present the virtual resource value of the claimed first virtual resource and present a re-claim control.

[0076] Among them, the re-claim control is used to return the first virtual resource and claim the second virtual resource. The second virtual resource and the first virtual resource belong to the same virtual resource package. This is because the virtual resource package includes multiple sub-virtual resource packages. The claimed first virtual resource is actually the virtual resource of one of the sub-virtual resource packages of the virtual resource package. The second virtual resource is the virtual resource of another sub-virtual resource package. These two sub-virtual resource packages belong to the virtual resource package sent by the same user at the same time; when the user is not satisfied with the first virtual resource claimed, the re-claim control can be used to refresh the claimed first virtual resource, that is, return the first virtual resource in the claimed sub-virtual resource package and claim the second virtual resource in another sub-virtual resource package.

[0077] In some embodiments, the re - claim control can always be presented on the claim result interface. The user can refresh any virtual resources that have been claimed, and through the re - claim control, the claimed virtual resources can be returned and new virtual resources can be claimed, meeting the re - claim requirements for virtual resources.

[0078] In some embodiments, the terminal presents the corresponding re - claim control only when the presentation conditions are met. The presentation conditions include at least one of the following: the value of the claimed virtual resources is lower than the first resource value; the total value of the virtual resources in the virtual resource package is higher than the second resource value; the remaining value of the unclaimed virtual resources in the virtual resource package is higher than the virtual resource value; when the virtual resource package includes multiple sub - virtual resource packages, the number of unclaimed sub - virtual resource packages exceeds the target number.

[0079] In practical applications, the re - claim control can also be presented on the claim interface only when certain presentation conditions are met. In this case, the presentation timing of the re - claim control can be related to the level of the value of the claimed virtual resources. When the value of the claimed virtual resources is lower than the preset first resource value (for example, the first resource value is the average value of the sub - virtual resource packages, and the average value is obtained by dividing the total value of the virtual resources in the virtual resource package by the number of sub - virtual resource packages in the virtual resource package), and the remaining value of the virtual resources in the virtual resource package is not zero, the re - claim control is presented. In this way, when the value of the first virtual resources claimed by the user is lower than the first resource value, the presented re - claim control can not only give the user a re - claim prompt, but also return the claimed first virtual resources and claim the second virtual resources through the re - claim control, meeting the re - claim requirements for virtual resources and increasing the interactivity and fun.

[0080] In addition, at least one of the total value of the virtual resources in the virtual resource package (such as the total amount of the red envelope), the remaining value of the unclaimed virtual resources in the virtual resource package (such as the amount of the unclaimed red envelope), or the number of unclaimed sub - virtual resource packages in the virtual resource package can be combined to determine whether the re - claim control meets the presentation conditions. Generally, when the value of the claimed virtual resources is small (such as 1 yuan), while the total value of the virtual resources in the virtual resource package is large (such as 100 yuan), or the remaining value of the unclaimed virtual resources is large (such as 50 yuan) or the number of unclaimed sub - virtual resource packages is large (such as 10), when re - claiming the first claimed virtual resources, after returning the claimed first virtual resources, the possibility that the value of the second virtual resources re - claimed is higher than the value of the claimed virtual resources is relatively large, or the possibility of successfully re - claiming virtual resources with a value is relatively large (to avoid the red envelope being snatched up and not getting any in the end after returning). At this time, presenting the re - claim control can improve the enthusiasm of the user to refresh and challenge the first claimed virtual resources, promote interactive operations for virtual resources, and increase the interactivity and fun.

[0081] In some embodiments, the re - claim control can be directly presented in the claim result interface. The re - claim control can be any entry or button that can realize the return of the first virtual resource value and the claim of the second virtual resource. It can be displayed in the area associated with the claimed virtual resource value in the form of a floating layer or a pop - up window. Along with the user's dragging operation on the re - claim control, the re - claim control moves synchronously. The user can drag the re - claim control to change its position presented in the claim result interface. Refer to Figure 4 , Figure 4 FIG. Figure 4 is a schematic diagram showing the display of the re - claim control provided for the application embodiment. In (1) - (2), the re - claim control "Grab again" is presented in the area associated with the claimed virtual resource value (0.99 yuan). In (3), the re - claim control "Grab again" is presented in the bottom area of the claim result interface. In this way, the presentation style and position of the re - claim control can be set according to the actual application, ensuring the operation convenience while guaranteeing the aesthetics of the claim result interface and improving the user experience.

[0082] In some embodiments, the terminal can present the re - claim control in the following way: in the claim result interface, present a target area for triggering the return of the first virtual resource and the claim of the second virtual resource, and sliding indication information for sliding the target area; based on the sliding indication information, in response to the sliding operation on the target area, present the re - claim control.

[0083] In practical applications, the re - claim control can also be indirectly presented in the claim result interface. For example, first present a target area that can trigger the return of the first virtual resource and the claim of the second virtual resource, and call out the re - claim control through the sliding operation on the target area. Refer to Figure 5 , Figure 5This is a schematic diagram showing the display of the re - claim control provided by the embodiments of this application. When the user clicks the claim entry 501 of the first virtual resource (i.e., the sub - virtual resource package) to trigger the first claim operation, the terminal responds to this first claim operation and presents, in the claim result interface 502, the virtual resource value 502 of the claimed first virtual resource, and presents a target area 503 that can trigger the refresh of the virtual resource value 502 (i.e., return the first virtual resource and claim the second virtual resource). In the associated area of the target area 503, sliding indication information for indicating sliding on the target area to trigger the return of the first virtual resource and the claim of the second virtual resource is presented, such as "Unlucky! Swipe up to return and grab again". When the user swipes up from the target area in the sliding manner indicated by the sliding indication information, a re - claim control 504 such as "Grab again" is presented. Based on this re - claim control 504, the refresh of the virtual resource value of the claimed first virtual resource is realized; since while presenting the target area, the description information about the function and operation method of the target area is also presented, this can give the user a significant hint, promote the user's interactive operation for virtual resources, and enrich the ways and fun of interacting based on the claimed virtual resources.

[0084] In some embodiments, the terminal can present the re - claim control in the following way: present the re - claim control in a first display style; correspondingly, when the sliding operation for the target area slides to the area where the re - claim control is located, present the re - claim control in a second display style different from the first display style.

[0085] Among them, the area where the re - claim control is located can be the same as, partially overlapped with, or completely cover the space area occupied by the re - claim control. Before and after the sliding operation slides to the area where the re - claim control is located, the display style of the re - claim control is different. For example, before the sliding operation slides to the area where the re - claim control is located, the re - claim control is displayed in gray scale, and when the sliding operation slides to the area where the re - claim control is located, the re - claim control is highlighted and enlarged. Of course, other different display styles can also be used to distinguish the change of the re - claim control. The embodiments of this application do not limit the specific display style.

[0086] Step 103: Respond to the second claim operation triggered by the re - claim control and present the claim result corresponding to the second virtual resource.

[0087] Here, when the user clicks the re - claim control, the terminal responds to this click operation, receives a second claim operation for the second virtual resource, and in response to this second claim operation, presents the claim result of claiming the second virtual resource in the claim result interface. It should be understood that for a virtual resource package that randomly allocates virtual resources (such as a "lucky draw red envelope" or a "random red envelope"), the value of the virtual resource obtained by the user is completely random (or depends on luck). Therefore, the second virtual resource re - claimed may be equal to, greater than, or less than the first virtual resource before re - claiming. For example, the first virtual resource claimed for the first time is 1 yuan. After returning the claimed first virtual resource and re - claiming, the second virtual resource re - claimed is 5 yuan, 0.5 yuan, or even 0 yuan (indicating that all sub - virtual resource packages in the virtual resource package have been claimed and no new virtual resource has been successfully claimed).

[0088] In some embodiments, before presenting the claim result corresponding to the value of the second virtual resource, the terminal can receive the second claim operation triggered by the re - claim control in the following manner: when the sliding operation slides to the area where the re - claim control is located, release indication information is presented in the associated area of the re - claim control, and the release indication information is used to indicate the release of the sliding operation; based on the release indication information, in response to the release instruction for the sliding operation, a claim interface for claiming the second virtual resource is presented, and a claim entry is presented in the claim interface; in response to the trigger operation for the claim entry, the second claim operation is received.

[0089] Here, for Figure 5 the situation where the re - claim control is called out by sliding the target area, when the sliding operation for the target area slides to the area where the re - claim control is located, release indication information such as "release to re - grab" is presented in the associated area of the re - claim control. When the user releases the sliding operation in the area where the re - claim control is located, the terminal receives the corresponding release instruction and presents a claim interface for claiming the second virtual resource. A claim entry such as "open" is presented in the claim interface. When the user clicks the claim entry 505, the terminal responds to this click operation, receives the second claim operation for the second virtual resource, and in response to this second claim operation, presents the claim result 506. For example, the first red envelope claimed is 0.33 yuan. After returning the first - claimed red envelope and re - claiming, the re - claimed red envelope is 0.99 yuan.

[0090] It should be noted that the claim interface can be a pop - up window presented on top of the claim result interface, or a sub - interface independent of the claim result interface, or other display forms. The embodiments of the present application do not limit the display style of the claim interface.

[0091] In some embodiments, during the process of presenting the re - collection control, the terminal may also present a cancellation control for canceling the return of the first virtual resource; when the release position of the sliding operation is within the area where the cancellation control is located, the operation of canceling the return of the first virtual resource is performed.

[0092] In practical applications, the cancellation control may also be indirectly presented in the collection result interface. For example, a target area that can return the first virtual resource and collect the second virtual resource is first presented, and the cancellation control is called out by sliding the target area. See Figure 6 , Figure 6 FIG. 222 is a schematic diagram of the display of the cancellation control provided by the embodiment of the present application. In the collection result interface, the virtual resource value 601 of the first virtual resource that has been collected is presented, and the target area 602 is presented. When the user slides up from the target area, the cancellation control 603 such as "Cancel" is presented in gray scale. When the sliding operation slides to the area where the cancellation control is located, the cancellation control is highlighted, and when the user releases the sliding operation in the area where the cancellation control is located, the terminal receives and responds to the release instruction to cancel the return of the first virtual resource that has been collected. Thus, while providing an entry for the user to return the collected virtual resource and re - collect other virtual resources, an entry for the user to cancel the return of the collected virtual resource is also provided, thereby providing the user with an opportunity to choose or change their mind, which is more user - friendly and enhances the interactive interest.

[0093] In some embodiments, before presenting the collection result corresponding to the second virtual resource, the terminal may also receive a second collection operation in the following manner: in response to a trigger operation on the re - collection control, present a return prompt message indicating whether to return the first virtual resource; in response to a confirmation instruction for the return prompt message, receive the second collection operation.

[0094] Among them, the return prompt message is used to prompt the probability value that the virtual resource value of the second virtual resource to be re - collected exceeds the virtual resource value of the first virtual resource that has been collected; the user can decide whether to return the first virtual resource that has been collected and collect the second virtual resource based on the probability value indicated by the return prompt message. See Figure 7 , Figure 7This is a schematic diagram showing the display of the return prompt message provided by the embodiment of this application. In the result interface of the collection, it shows that the first virtual resource collected is 0.33 yuan. When the user triggers (such as clicks, double-clicks, swipes, etc.) the re-collection control 701, the terminal responds to this trigger operation and presents a return prompt message 702 such as "The probability that the amount of the red envelope re-grabbed is higher than 0.33 yuan is 80%. Do you want to return and re-grab?", as well as the corresponding OK button 703 and Cancel button 704 for this return prompt message. When the user clicks the OK button 703, the terminal receives a second collection operation and presents the collection result obtained by collecting the second virtual resource for re-collection, such as the newly collected second virtual resource is 0.99 yuan; when the user clicks the Cancel button 704, the terminal receives a cancel return operation and prohibits the return of the already collected first virtual resource, that is, the finally collected second virtual resource is 0.33 yuan.

[0095] In the above manner, when re-collecting virtual resources, considering the randomness of the virtual resource value in the virtual resources re-collected after returning the already collected virtual resources, a return prompt message is presented to prompt the user to determine whether to perform a return and re-collection operation (i.e., the second collection operation) based on the probability value. When the probability value that the virtual resources re-collected after the return indicated by the return prompt message exceed the already collected virtual resources exceeds the probability threshold, it indicates that the probability that the virtual resources re-collected after returning the already collected virtual resources exceed the returned virtual resources is relatively large. In this case, the return and re-collection operation can be performed on the already collected virtual resources, reducing the possibility that the virtual resources re-collected are lower than the returned virtual resources, and promoting the interactive operation of the user with respect to the virtual resources.

[0096] It should be noted that in practical applications, considering the timeliness of virtual resources and to prevent the user from acting too slowly and missing the opportunity to re-collect virtual resources, the display duration of the return prompt message can also be restricted. For example, when the display duration reaches a preset target duration (such as 1 second) and the user has not clicked the OK button nor the Cancel button, in this case, the terminal can cancel the display of the return prompt message and control the automatic triggering of the return and re-collection operation to return the already collected virtual resources and re-collect virtual resources, or control the automatic triggering of the cancel re-collection operation to avoid returning the already collected virtual resources.

[0097] In some embodiments, before presenting the return prompt message on whether to return the first virtual resource, the terminal may also predict the probability value that the second virtual resource retrieved after returning exceeds the retrieved virtual resources in the following manner: obtain the feature data of the corresponding virtual resource package, where the feature data includes at least one of the following: the value of the retrieved virtual resources, the total value of the virtual resources in the virtual resource package, the number of sub-virtual resource packages in the virtual resource package that have not been retrieved, and the remaining value of the virtual resources in the virtual resource package that have not been retrieved; based on the feature data, call a machine learning model to perform prediction processing to obtain the probability value that the refreshed virtual resource value exceeds the retrieved virtual resource value; where the machine learning model is trained based on the feature data of the virtual resource package samples and the labeled probability values.

[0098] Here, in practical applications, predicting the probability value that the virtual resources retrieved after returning exceed the retrieved virtual resources through a machine learning model based on artificial intelligence algorithms, that is, predicting the probability value that the amount of the red envelope retrieved again is greater than the amount of the returned red envelope, can make the predicted probability value more accurate, further reducing the possibility that the virtual resources retrieved again are lower than the returned virtual resources, and promoting the interactive operation of users for virtual resources.

[0099] It should be noted that, in practical applications, the above machine learning model may be a neural network model (such as a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multi-layer perceptron, and a support vector machine, etc. The embodiments of the present application do not specifically limit the type of the machine learning model. It can be understood that the feature data of the virtual resource package involved in the embodiments of the present application is essentially the relevant data of the user. When the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of the relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0100] In some embodiments, before presenting the retrieval result of the corresponding second virtual resource, the terminal may also receive the second retrieval operation in the following manner: in response to the trigger operation for the re-retrieval control, present the return verification information for the corresponding first virtual resource; in response to the confirmation instruction for the return verification information, receive the second retrieval operation.

[0101] Among them, the return verification information is used to prompt the verification of the virtual resource value of the first virtual resource returned from the account associated with the current object; the user can verify the virtual resource value to be returned based on the verification prompt information, and then determine to perform the return operation on the retrieved virtual resources after verification. See [[ID= / / ID=13]] Figure 8 , Figure 8It is a schematic diagram showing the display of the verification prompt information provided by the embodiment of the present application. In the result interface of the collection, the first virtual resource that has been collected is shown as 0.33 yuan. When the user triggers (such as clicks, double-clicks, swipes, etc.) the re-collection control 801, the terminal responds to this trigger operation and presents a verification prompt information 802 such as "0.33 yuan will be returned to your wallet. Do you want to return and re-snatch?", as well as an OK button 803 and a Cancel button 804 corresponding to this verification prompt information. When the user clicks the OK button 803, the terminal receives a second collection operation and presents the collection result obtained by returning the collected first virtual resource and collecting a second virtual resource, such as returning the collected 0.33 yuan and presenting the newly collected second virtual resource as 0.99 yuan; when the user clicks the Cancel button 804, the terminal receives a cancellation return operation and prohibits the return of the collected first virtual resource, that is, the finally collected virtual resource remains 0.33 yuan.

[0102] In the above manner, when re-collecting virtual resources, considering that the returned virtual resources are returned along the original path from the account associated with the current object, by verifying the virtual resources to be returned, the rigor of the return of virtual resources and the security of the user's account are ensured, and the interactive operation of the user for virtual resources is promoted.

[0103] It should be noted that the verification of the virtual resources to be returned involved in the embodiment of the present application is essentially the relevant data of the user's account. When the embodiment of the present application is applied to specific products or technologies, user permission or consent is required, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.

[0104] In some embodiments, the terminal can respond to the second collection operation triggered by the re-collection control in the following manner to present the collection result corresponding to the second virtual resource: in response to the trigger operation for the re-collection control, receive the second collection operation; in response to the second collection operation, return the collected first virtual resource to the virtual resource package, and when the remaining value of the virtual resources in the virtual resource package is greater than zero, in the collection result interface, present the target virtual resource value obtained by collecting the second virtual resource; when the remaining value of the virtual resources is equal to zero, present an indication information indicating that the second virtual resource has not been successfully collected.

[0105] Here, when the user triggers a second collection operation for returning the collected first virtual resource and collecting a second virtual resource by triggering (such as clicks, double-clicks, swipes, etc.) the re-collection control, the collected first virtual resource will be returned to the virtual resource package, and the returned first virtual resource will be used as a part of the uncollected virtual resources in the virtual resource package. Then, based on the number of uncollected sub-virtual resource packages, the uncollected virtual resources are re-allocated to determine the virtual resources of each sub-virtual resource package.

[0106] In practical applications, due to the strict timeliness of receiving sub-virtual resource packages, when returning the first virtual resource in the received first sub-virtual resource package and re-receiving the second virtual resource in the second sub-virtual resource package, there are two situations: successful receipt and unsuccessful receipt. Refer to Figure 9 , Figure 9 which is a schematic diagram showing the receipt result provided by an embodiment of the present application. After the current object returns the received first virtual resource (such as $0.99$), when re-receiving the second virtual resource, if the remaining value of the virtual resources in the virtual resource package is greater than zero, that is, the sub-virtual resource package has not been completely received, the current object will successfully re-receive the second virtual resource in the sub-virtual resource package, and the virtual resource value of the newly received second virtual resource (such as $8.68$) will be presented in the receipt result interface; if the remaining value of the virtual resources in the virtual resource package is equal to zero, that is, the sub-virtual resource package has been completely received, the current object will not be able to successfully re-receive the second virtual resource in the sub-virtual resource package. At this time, an indication message indicating that the virtual resources have been completely received, such as "Sorry, the red envelope has been claimed", will be presented in the receipt result interface.

[0107] In some embodiments, the terminal can present the receipt result corresponding to the second virtual resource in the following manner in response to the second receipt operation triggered by the re-receipt control: in response to the trigger operation for the re-receipt control, present the candidate virtual resource value corresponding to the second virtual resource, where the candidate virtual resource value is randomly allocated based on the remaining value of the virtual resources in the virtual resource package; in response to the confirmation instruction for the candidate virtual resource value, receive the second receipt operation; in response to the second receipt operation, return the received first virtual resource to the virtual resource package, and present the candidate virtual resource value in the second virtual resource received in the receipt result interface.

[0108] Here, when the user triggers the second receipt operation of returning the received first virtual resource and receiving the second virtual resource by triggering (such as clicking, double-clicking, swiping, etc.) the re-receipt control, the received first virtual resource may not be returned to the virtual resource package first. Instead, according to the number of un-received sub-virtual resource packages in the virtual resource package, the original un-received virtual resources in the virtual resource package (excluding the value of the received first virtual resource) are re-allocated to determine the virtual resource value of each un-received sub-virtual resource package, and a sub-virtual resource package is randomly selected as the sub-virtual resource package corresponding to the second virtual resource to be re-received, and the virtual resource value in the randomly selected sub-virtual resource package is used as the candidate virtual resource value of the second virtual resource to be re-received.

[0109] Refer to Figure 10 , Figure 10A schematic diagram of the display of the claim results provided in an embodiment of the present application shows that after the current object returns the first virtual resource that has been claimed (such as 0.33 yuan), when the user claims the second virtual resource again, that is, when the user triggers (such as clicking, double-clicking, sliding, etc.) the re-claim control 1001, the terminal responds to the trigger operation and presents a candidate virtual resource value 1002 (such as 0.99 yuan) corresponding to the second virtual resource, as well as a confirmation button 1003 and a cancel button 1004 corresponding to the candidate virtual resource value. The user can compare the candidate virtual resource value with the virtual resource value that has been claimed, and decide whether to perform the second claim operation on the first virtual resource that has been claimed based on the comparison result. For example, when the candidate virtual resource value is greater than the value of the virtual resource that has been received, the user can click the OK button 1003, the terminal receives the second receiving operation, and in response to the second receiving operation, uses the candidate virtual resource value (0.99 yuan) as the virtual resource value of the second virtual resource to be re-received, and returns the received first virtual resource to the virtual resource package; when the user clicks the Cancel button 1004, the terminal receives the operation to cancel the return of the first virtual object, and prohibits the return of the received first virtual resource, that is, the final received virtual resource value is still 0.33 yuan.

[0110] Through the above method, when returning the first virtual resource that has been received and receiving the second virtual resource, the virtual resource value of the second virtual resource is first prompted and then the first virtual resource that has been received is returned. This can avoid as much as possible the situation where the second virtual resource that has been received is lower than the first virtual resource that has been received, or even the situation where the first virtual resource that has been received is returned first and ultimately the new second virtual resource cannot be received. This can promote users' interactive operations on virtual resources.

[0111] It should be noted that, in actual applications, taking into account the timeliness of virtual resources, in order to avoid the current user occupying the candidate virtual resource value in the second virtual resource and the first virtual resource that has been received for too long and affecting the collection operation of other users, the retention time of the candidate virtual resource value can be limited. For example, when the retention time reaches the preset target time (such as 0.5 seconds), the user has not triggered the confirmation instruction or cancellation instruction for the candidate virtual resource value. In this case, the terminal can cancel the retention of the candidate virtual resource value and control the automatic triggering of the second collection operation to return the first virtual resource that has been received and receive the second virtual resource, using the candidate virtual resource as the virtual resource value of the newly received second virtual resource, or control the automatic triggering of the cancellation of the return of the first virtual resource, prohibit the return of the first virtual resource value that has been received, and cancel the reservation of the second virtual resource at the same time, and return the second virtual resource (the corresponding resource value is the candidate virtual resource value) to the virtual resource package.

[0112] In some embodiments, before presenting the receiving result of the corresponding second virtual resource, the terminal may also present a return prompt message for the corresponding first virtual resource; wherein, the return prompt message is used to prompt that the first virtual resource has been returned from the account associated with the current object to the virtual resource package.

[0113] Here, in practical applications, since the received first virtual resource has been stored in the account associated with the current object, when the user triggers a second receiving operation to return the received first virtual resource value and receive the second virtual resource, in response to the second receiving operation, the terminal, while returning the received first virtual resource (such as $0.33) to the virtual resource package, presents a return prompt message such as " $0.33 has been returned from your wallet" to prompt the change information of the account associated with the current object, ensuring the rigor of virtual resource return and the security of the user's account, and promoting the user's interactive operations for virtual resources.

[0114] In some embodiments, after presenting the receiving result of the corresponding second virtual resource, the terminal may also present a feedback entry for providing feedback to the source object of the virtual resource package; in response to a trigger operation on the feedback entry, a feedback message is sent to the source object of the virtual resource package; wherein, the feedback message is used to feedback the interactive information of the current object regarding the received first virtual resource or the receiving result.

[0115] Among them, the presentation form of the feedback entry may be a button such as Figure 10 shown as "Reply with this emoji". The style of the feedback message may be an emoji element or text adapted to the content being feedback, or other forms. The embodiments of the present application do not limit the style of the feedback message. For example, when the user has received a small amount of the first virtual resource (such as $0.01), while returning the received first virtual resource, a feedback message such as "My luck is so bad" or an unhappy emoji element is sent to the source object of the virtual resource package (such as the red envelope sender); another example is that when the user returns the received first virtual resource with a small amount and then receives a second virtual resource with a large virtual resource value (such as $10), a feedback message such as "Finally got some luck and grabbed a big package" is sent to the source object. In this way, it promotes the user's interactive operations for virtual resources and enriches the ways and fun of interacting based on the received virtual resources.

[0116] It should be noted that in practical applications, after obtaining the newly received second virtual resource when performing the second receiving operation this time, if the presentation condition of the re-receiving control is still satisfied, the re-receiving control can still be presented on the receiving result interface. The user can use the re-receiving control to perform a third receiving operation to return the second virtual resource obtained by the second receiving operation and receive the third virtual resource, and so on, until the received virtual resource satisfies the user or the remaining value of the virtual resources in the virtual resource package is equal to zero, that is, all the sub-virtual resource packages in the virtual resource package have been received.

[0117] Next, an exemplary application of the embodiments of the present application in an actual application scenario will be described. Taking the scenario of receiving virtual resources as "grabbing red envelopes" as an example, for "lucky red envelopes" or "random red envelopes", since the amount of the red envelopes received by the user is completely random or depends on luck, when the user finds that the amount of the red envelope they received is small, the embodiments of the present application provide an entry (i.e., the above-mentioned re-receiving control) for the user to return the received red envelope and receive the red envelope again, giving the user another chance to grab the red envelope, which can promote interactive operations for red envelopes and increase the fun.

[0118] Next, taking the collaborative implementation of the Figure 1 shown terminal and server 200 as an example, the interactive method based on a virtual resource package provided by the embodiments of the present application will be further described. Refer to Figure 11 , Figure 11 which is a flowchart of the interactive method based on a virtual resource package provided by the embodiments of the present application. The method includes:

[0119] Step 201: The terminal responds to the receiving operation for the sub-red envelope and sends a receiving request for the sub-red envelope to the server.

[0120] Among them, the sub-red envelope can be understood as the sub-virtual resource package corresponding to the above-mentioned first virtual resource. In practical applications, a client for sending or receiving red envelopes is set on the terminal. When the red envelope sender sends a red envelope through the client, the red envelope to be received is presented on the function page (such as the conversation page) in the client. When the user clicks on the red envelope, the terminal responds to the click operation, presents a red envelope pop-up window, and presents a receiving entry (such as an "Open" button) for receiving the red envelope in the red envelope pop-up window. In response to the click operation on the receiving entry, a request for obtaining the sub-red envelope is sent to the server.

[0121] Here, when the red envelope sent by the red envelope sender is a multi-person red envelope, the receiving request for the sub-red envelope sent by the terminal is actually a request for the amount of one of all the sub-red envelopes. For example, if the red envelope sender sends an N-person red envelope with a total amount of M yuan, then this red envelope actually includes N sub-red envelopes, and the sum of the amounts of the N sub-red envelopes is M yuan.

[0122] Step 202: The server determines the amount of the sub - red envelopes based on the claiming request.

[0123] Here, for random red envelopes, the server randomly distributes the total red - envelope amount M into N parts according to the number N of sub - red envelopes, that is, the amount of each sub - red envelope is randomly distributed. The implementation principle of random distribution is as follows:

[0124] 1) Add a red - envelope record to the database, store it in the cloud server (such as CKV), and set the expiration time.

[0125] 2) Add a record in the Cache memory (kv database, providing services in the form of an in - memory kernel module) to store the number N of people who grab the red envelopes.

[0126] 3) The process of claiming a red envelope is divided into "grabbing" and "opening". The grabbing operation is completed at the Cache layer. The number of red envelopes is decreased by an atomic subtraction operation. When the number of red envelopes is reduced to 0, it means the red envelopes have been grabbed up. Finally, the actual number of operations entering the background opening operation is small. By separating the operations, invalid requests are directly blocked outside the Cache layer. Here, the atomic subtraction operation is not a real atomic subtraction operation, but a Central Authentication Service (CAS) provided by the Cache layer. By continuously comparing the version numbers and trying, there are certain conflicts. Users with conflicts will be allowed to pass and enter the next step of the opening operation. This also explains the situation in actual applications where a user clearly grabs a red envelope but finds that the red envelope has been claimed when opening it.

[0127] 4) The operation of opening a red envelope is completed in the database. Through the transaction operation of the database, the number and amount of the already claimed red envelopes are accumulated, and a claiming transaction record is inserted. The accounting is an asynchronous operation. When opening a red envelope, the amount of the red envelope is calculated in real - time. The amount is a random number between 0.01 yuan and 2 times the remaining average value. For example, for a red envelope with a total amount of M yuan, the amount of the largest sub - red envelope is M * 2 / N (and will not exceed M). Whenever a user opens a sub - red envelope, the server updates the remaining amount and number of the red envelope in real - time.

[0128] Next, taking M = 10 yuan and N = 6 as an example, every time the server receives a claim request, it randomly allocates the amount of each sub - red envelope. There can be multiple allocation results. For example, the allocation results can be: [1, 1, 1, 1, 1, 5], [2, 1, 1, 1, 2, 3], [1, 2, 2, 2, 1, 2] or other allocation results. When allocating the amount of each sub - red envelope, to avoid the situation where some sub - red envelopes have an amount of 0 due to the total amount of the red envelope being too small, first allocate 0.01 yuan to each sub - red envelope, and set the total amount to the original amount minus the minimum allocation amount per person. In this way, the remaining total amount is equal to 10 - 0.01 * 6. Then, loop to allocate unequal random amounts to each sub - red envelope. After each allocation, subtract the allocated amount from the remaining amount until the remaining amount = 0 and no more allocation is made.

[0129] Step 203: The server returns the amount of the sub - red envelope to the terminal.

[0130] Step 204: The terminal presents the amount of the claimed sub - red envelope and the re - grab red envelope entry.

[0131] Here, when the amount of the sub - red envelope claimed this time is lower than the preset amount threshold (such as the average amount of the red envelope), and the number of unclaimed sub - red envelopes is greater than or equal to 1, the re - grab red envelope entry is presented. The re - grab red envelope entry is presented in the red envelope claim result interface. Through the re - grab red envelope entry, the user can return the claimed sub - red envelope and claim a new sub - red envelope again.

[0132] Among them, the re - grab red envelope entry can be Figure 5 the target area shown in the figure that can trigger the return and re - grab operation. An operation guidance prompt of "Swipe up to return and re - grab" is displayed on the target area. By swiping the target area, a re - grab button, which is a re - claim control 504, is called out. When the terminal receives a swipe operation that swipes up from the target area, the terminal detects the distance and coordinate position of the swipe operation, and the server returns the corresponding result in real - time. For example, the position interval of the target area is (x: - 180, 180), (y: 0, 0). When the user swipes towards the position where the re - grab button is located, when it is detected that the coordinate position of the swipe operation is x > 45 and y > 45, it indicates that the swipe operation has swiped to the area where the re - grab button is located. At this time, the re - grab button is enlarged and highlighted. When the terminal detects that the swipe operation is released in the area where the re - grab button is located, the claimed red envelope can be returned, and a new sub - red envelope can be claimed again. When the user swipes up from the target area to the area where the cancel button is located, the cancel button is enlarged and highlighted, and releasing the hand can cancel the return and re - grab operation.

[0133] The re - grab red envelope entry can also be as shown in Figure 4The provided receiving entrance or button that can achieve the return of the received sub - red envelopes and the re - receiving of sub - red envelopes, such as the re - receiving control like "Grab Again", is used to refresh the amount of the received sub - red envelopes, that is, to return the received sub - red envelopes and re - receive new sub - red envelopes.

[0134] It should be noted that when the amount of the sub - red envelope received this time is higher than the amount threshold (such as the average red - envelope amount), the re - grab red - envelope entrance may not be presented in the red - envelope receiving result interface.

[0135] Step 205: The terminal responds to the second receiving operation triggered by the re - grab red - envelope entrance and sends a re - receiving request for the sub - red envelope to the server.

[0136] Among them, the second receiving operation is used to refresh the amount of the received sub - red envelopes, that is, to return the received sub - red envelopes and re - receive new sub - red envelopes.

[0137] Step 206: The server returns the amount of the received sub - red envelope and determines whether the number of un - received sub - red envelopes is greater than or equal to 1.

[0138] Here, when the user selects to return the red envelope for re - grabbing, the server will return the sub - red envelope amount and avatar nickname information corresponding to the user identifier, and increase the corresponding difference in the original red - envelope amount pool and quantity pool. When the server detects that the number of sub - red envelopes in the quantity pool is greater than or equal to 1, step 207 is executed; otherwise, step 209 is executed.

[0139] Step 207: The server returns the amount of the re - received sub - red envelope to the terminal.

[0140] Here, when the server detects that the number of sub - red envelopes in the quantity pool is greater than or equal to 1, the server randomly allocates again according to the remaining balance in the existing amount pool and returns the re - allocated amount to the terminal for display.

[0141] Step 208: The terminal presents the amount of the re - received sub - red envelope.

[0142] Here, if the amount of the sub - red envelope re - grabbed by the user is higher than the amount threshold, the re - grab red - envelope entrance may not be presented in the receiving result interface of the terminal; if the amount of the sub - red envelope re - grabbed by the user is still lower than the amount threshold, the re - grab red - envelope entrance will be presented again in the receiving result interface of the terminal. The user can refresh the amount of the re - received sub - red envelope through the re - grab red - envelope entrance until the user is satisfied with the amount of the received sub - red envelope or the number of un - received sub - red envelopes is 0.

[0143] Step 209: The server returns an indication message that the sub - red envelopes have been completely received to the terminal for display.

[0144] Here, when all sub - red envelopes are received during the process of a user retrying to grab a red envelope, the server returns an indication message indicating that all sub - red envelopes have been received to the terminal.

[0145] Step 210: The terminal displays the indication message indicating that all sub - red envelopes have been received.

[0146] Here, the terminal displays the received indication message. Since the red envelope has been completely grabbed, the red envelope retry entrance is no longer displayed.

[0147] Through the above - mentioned method, after receiving a red envelope, if the user is not satisfied with the amount of the received red envelope, the user can return the received sub - red envelope through the red envelope retry entrance and receive a new sub - red envelope again, giving the user another chance to choose a red envelope. This can promote interactive operations related to red envelopes, increase the fun, be conducive to better emotional transmission, and meet the increasingly diverse needs of user information interaction.

[0148] Next, continue to describe the exemplary structure of the software module implementation of the virtual - resource - based interaction device 555 provided by the embodiments of the present application. In some embodiments, the software modules in the virtual - resource - based interaction device 555 stored in Figure 2 the memory 550 may include:

[0149] The first presentation module 5551 is configured to present a receiving result interface of the first virtual resource in response to a first receiving operation for the first virtual resource;

[0150] The second presentation module 5552 is configured to present the virtual resource value of the received first virtual resource and present a re - receiving control in the receiving result interface;

[0151] Wherein, the re - receiving control is used to return the first virtual resource value and receive a second virtual resource, and the second virtual resource belongs to the same virtual resource package as the first virtual resource;

[0152] The third presentation module 5553 is configured to present a receiving result corresponding to the second virtual resource in response to a second receiving operation triggered based on the re - receiving control.

[0153] In some embodiments, the second presentation module is further configured to present a target area for returning the first virtual resource and receiving a second virtual resource, and sliding indication information for sliding the target area in the receiving result interface; and present the re - receiving control in response to a sliding operation on the target area based on the sliding indication information.

[0154] In some embodiments, before presenting the receiving result of the second virtual resource, the device further includes: an operation receiving module, configured to, when the sliding operation slides to the area where the re-receiving control is located, present release indication information in the associated area of the re-receiving control, where the release indication information is used to indicate the release of the sliding operation; based on the release indication information, in response to a release instruction for the sliding operation, present a receiving interface for receiving the second virtual resource, and present a receiving entry in the receiving interface; and in response to a trigger operation for the receiving entry, receive the second receiving operation.

[0155] In some embodiments, the second presenting module is further configured to present the re-receiving control in a first display style; the device further includes: a fourth presenting module, configured to, when the sliding operation slides to the area where the re-receiving control is located, present the re-receiving control in a second display style different from the first display style.

[0156] In some embodiments, the device further includes: a cancellation and refresh module, configured to, during the process of presenting the re-receiving control, present a cancellation control for canceling and returning the virtual resource value; when the release position of the sliding operation is located in the area where the cancellation control is located, cancel the operation of returning the first virtual resource.

[0157] In some embodiments, the second presenting module is further configured to, when a presenting condition is met, present the re-receiving control, where the presenting condition includes at least one of the following: the virtual resource value received is lower than a first resource value; the total virtual resource value of the virtual resource package is higher than a second resource value; the remaining virtual resource value of the un-received virtual resources in the virtual resource package is higher than the virtual resource value; when the virtual resource package includes multiple sub-virtual resource packages, the number of un-received sub-virtual resource packages exceeds a target number.

[0158] In some embodiments, before presenting the receiving result of the second virtual resource, the operation receiving module is further configured to, in response to a trigger operation for the re-receiving control, present a return prompt message for indicating whether to return the first virtual resource; where the return prompt message is used to prompt a probability value that the virtual resource value of the second virtual resource exceeds the virtual resource value of the first virtual resource; and in response to a determination instruction for the return prompt message, receive the second receiving operation.

[0159] In some embodiments, before presenting whether to return new return prompt information for the first virtual resource value, the device further includes: a probability value prediction module, configured to obtain feature data corresponding to the virtual resource package, where the feature data includes at least one of the following: the virtual resource value received, the total virtual resource value of the virtual resource package, the number of sub-virtual resource packages in the virtual resource package that have not been received, and the remaining virtual resource value of the virtual resource package that has not been received; performing a prediction process by invoking a machine learning model based on the feature data to obtain the probability value; where the machine learning model is trained based on the feature data of virtual resource package samples and the labeled probability values.

[0160] In some embodiments, before presenting the receiving result of the second virtual resource, the operation receiving module is further configured to, in response to a trigger operation on the re-receiving control, present return verification information corresponding to the first virtual resource; where the return verification information is used to prompt verification of the virtual resource value of the returned first virtual resource; and in response to a determination instruction for the return verification information, receive the second receiving operation.

[0161] In some embodiments, the third presentation module is further configured to, in response to a trigger operation on the re-receiving control, receive the second receiving operation; in response to the second receiving operation, return the received first virtual resource to the virtual resource package, and when the remaining virtual resource value in the virtual resource package is greater than zero, present the target virtual resource value of the second virtual resource in the receiving result interface; when the remaining virtual resource value is equal to zero, present indication information indicating that the second virtual resource has not been successfully received.

[0162] In some embodiments, the third presentation module is further configured to, in response to a trigger operation on the re-receiving control, present candidate virtual resource values corresponding to the second virtual resource, where the candidate virtual resource values are randomly allocated based on the remaining virtual resource value in the virtual resource package; in response to a determination instruction for the candidate virtual resource values, receive the second receiving operation; and in response to the second receiving operation, return the first virtual resource to the virtual resource package and present the candidate virtual resource values of the received second virtual resource in the receiving result interface.

[0163] In some embodiments, before presenting the receiving result of the second virtual resource, the device further includes: a return prompt module, configured to present return prompt information corresponding to the first virtual resource; where the return prompt information is used to prompt that the first virtual resource has been returned from the account associated with the current object to the virtual resource package.

[0164] In some embodiments, after presenting the receiving result corresponding to the second virtual resource, the device further includes: a feedback sending module, configured to present a feedback entry for providing feedback on the source object of the virtual resource package; and in response to a trigger operation on the feedback entry, send feedback information to the source object of the virtual resource package; the feedback information is used to provide feedback on the first virtual resource received by the current object or interactive information on the receiving result.

[0165] Embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned interactive method based on virtual resources in the embodiments of the present application.

[0166] Embodiments of the present application provide a computer-readable storage medium storing executable instructions, where the executable instructions, when executed by a processor, cause the processor to execute the interactive method based on virtual resources provided in the embodiments of the present application. For example, Figure 3 the method shown.

[0167] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disc, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0168] In some embodiments, the executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including being deployed as an independent program or being deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0169] As an example, the executable instructions may or may not correspond to a file in a file system, may be stored as part of a file storing other programs or data, for example, stored in one or more scripts in a Hyper Text Markup Language (HTML) document, stored in a single file dedicated to the program being discussed, or stored in multiple cooperating files (for example, files storing one or more modules, subroutines, or code portions).

[0170] As an example, the executable instructions may be deployed to execute on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed across multiple locations and interconnected by a communication network.

[0171] As described above, the above are only embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application are all included in the protection scope of the present application.

Claims

1. An interactive method based on virtual resources, characterized in that, The method includes: In response to a first claiming operation for a first virtual resource, presenting a claiming result interface for the first virtual resource; In the claiming result interface, presenting the virtual resource value of the claimed first virtual resource and presenting a re - claiming control; Wherein, the re - claiming control is used to return the first virtual resource and claim a second virtual resource, and the second virtual resource and the first virtual resource belong to the same virtual resource package; In response to a second claiming operation triggered based on the re - claiming control, presenting the claiming result corresponding to the second virtual resource.

2. The method according to claim 1, characterized in that, The presenting of the re - claiming control includes: In the claiming result interface, presenting a target area for triggering the return of the first virtual resource and claiming the second virtual resource, and presenting sliding indication information for sliding on the target area; Based on the sliding indication information, in response to a sliding operation on the target area, presenting the re - claiming control.

3. The method according to claim 2, wherein Before presenting the claiming result corresponding to the second virtual resource, the method further includes: When the sliding operation slides to the area where the re - claiming control is located, presenting release indication information in the associated area of the re - claiming control, and the release indication information is used to indicate the release of the sliding operation; Based on the release indication information, in response to a release instruction for the sliding operation, presenting a claiming interface for claiming the second virtual resource and presenting a claiming entry in the claiming interface; In response to a triggering operation on the claiming entry, receiving the second claiming operation.

4. The method according to claim 2, wherein The presenting of the re - claiming control includes: Presenting the re - claiming control in a first display style; The method further includes: When the sliding operation slides to the area where the re - claiming control is located, presenting the re - claiming control in a second display style different from the first display style.

5. The method according to claim 2, characterized in that The method further includes: During the process of presenting the re - claiming control, presenting a cancellation control for canceling the return of the first virtual resource; When the release position of the sliding operation is in the area where the cancellation control is located, canceling the operation of returning the first virtual resource.

6. The method according to claim 1, characterized in that, The presenting of the re - claiming control includes: When presenting conditions are met, presenting the re - claiming control, where the presenting conditions include at least one of the following: The virtual resource value of the claimed virtual resource is lower than a first resource value; The total virtual resource value of the virtual resource package is higher than a second resource value; The remaining value of the unclaimed virtual resources in the virtual resource package is higher than the virtual resource value; When the virtual resource package includes multiple sub - virtual resource packages, the number of unclaimed sub - virtual resource packages exceeds a target number.

7. The method according to claim 1, wherein Before presenting the claiming result corresponding to the second virtual resource, the method further includes: In response to a triggering operation on the re - claiming control, presenting a return prompt message for whether to return the first virtual resource; Wherein, the return prompt message is used to prompt the probability value that the virtual resource value of the second virtual resource exceeds the virtual resource value of the first virtual resource; In response to a determination instruction for the return prompt message, the second receiving operation is received.

8. The method according to claim 7, characterized in that Before presenting the return prompt message indicating whether to return the first virtual resource, the method further includes: Obtaining feature data corresponding to the virtual resource package, where the feature data includes at least one of the following: the value of the virtual resource received, the total value of the virtual resources in the virtual resource package, the number of sub-virtual resource packages in the virtual resource package that have not been received, and the remaining value of the virtual resources in the virtual resource package that have not been received; Performing a prediction process by invoking a machine learning model based on the feature data to obtain the probability value; Wherein, the machine learning model is trained based on the feature data of virtual resource package samples and the labeled probability values.

9. The method according to claim 1, wherein Before presenting the receiving result of the second virtual resource, the method further includes: In response to a trigger operation on the re-receiving control, presenting return verification information corresponding to the first virtual resource; Wherein, the return verification information is used to prompt verification of the value of the virtual resources of the first virtual resource returned from the account associated with the current object. In response to a determination instruction for the return verification information, the second receiving operation is received.

10. The method according to claim 1, wherein The presenting the receiving result of the second virtual resource in response to the second receiving operation triggered based on the re-receiving control includes: In response to a trigger operation on the re-receiving control, the second receiving operation is received; In response to the second receiving operation, the received first virtual resource is returned to the virtual resource package, and when the remaining value of the virtual resources in the virtual resource package is greater than zero, the target virtual resource value of the received second virtual resource is presented in the receiving result interface; When the remaining value is equal to zero, presenting indication information indicating that the second virtual resource has not been successfully received.

11. The method according to claim 1, characterized in that, The presenting the receiving result of the second virtual resource in response to the second receiving operation triggered based on the re-receiving control includes: In response to a trigger operation on the re-receiving control, presenting a candidate virtual resource value corresponding to the second virtual resource, where the candidate virtual resource value is randomly allocated from the remaining value of the virtual resources in the virtual resource package; In response to a determination instruction for the candidate virtual resource value, the second receiving operation is received; In response to the second receiving operation, the received first virtual resource is returned to the virtual resource package, and the candidate virtual resource value of the received second virtual resource is presented in the receiving result interface.

12. The method according to claim 1, wherein Before presenting the receiving result of the second virtual resource, the method further includes: Presenting a return prompt message corresponding to the first virtual resource; Wherein, the return prompt message is used to prompt that the first virtual resource has been returned from the account associated with the current object to the virtual resource package.

13. The method according to claim 1, characterized in that The method further includes: Presenting a feedback entry for providing feedback to the source object of the virtual resource package; In response to a trigger operation on the feedback entry, sending feedback information to the terminal of the source object; The feedback information is used to feedback the interaction information of the current object with respect to the received first virtual resource or with respect to the receiving result.

14. An interactive device based on virtual resources, characterized in that, The device includes: A first presentation module, configured to present a receiving result interface of the first virtual resource in response to a first receiving operation for the first virtual resource; A second presentation module, configured to present the virtual resource value of the received first virtual resource and present a re-receiving control in the receiving result interface; The re-receiving control is used to return the first virtual resource and receive a second virtual resource, and the second virtual resource and the first virtual resource belong to the same virtual resource package; A third presentation module, configured to present a receiving result corresponding to the second virtual resource in response to a second receiving operation triggered based on the re-receiving control.

15. The device according to claim 14, characterized in that, The second presentation module is further configured to: Present a target area for triggering the return of the first virtual resource and the receipt of the second virtual resource, and sliding indication information for sliding the target area in the receiving result interface; Based on the sliding indication information, present the re-receiving control in response to a sliding operation on the target area.

16. The device according to claim 14, characterized in that, The second presentation module is further configured to: Present the re-receiving control when a presentation condition is met, where the presentation condition includes at least one of the following: The virtual resource value received is lower than a first resource value; The total virtual resource value of the virtual resource package is higher than a second resource value; The remaining value of the un-received virtual resources in the virtual resource package is higher than the virtual resource value; When the virtual resource package includes multiple sub-virtual resource packages, the number of un-received sub-virtual resource packages exceeds a target number.

17. The device according to claim 14, characterized in that, The third presentation module is further configured to: Receive the second receiving operation in response to a trigger operation on the re-receiving control; In response to the second receiving operation, return the received first virtual resource to the virtual resource package, and when the remaining value of the virtual resources in the virtual resource package is greater than zero, present the target virtual resource value of the received second virtual resource in the receiving result interface; When the remaining value of the virtual resources is equal to zero, present indication information indicating that the second virtual resource has not been successfully received.

18. An electronic device, characterized in that, Includes: A memory, configured to store executable instructions; A processor, configured to implement the virtual resource-based interaction method according to any one of claims 1 to 13 when executing the executable instructions stored in the memory.

19. A computer-readable storage medium, characterized in that, Stored with executable instructions, configured to implement the virtual resource-based interaction method according to any one of claims 1 to 13 when being executed by a processor.

20. A computer program product comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, the virtual resource-based interaction method according to any one of claims 1 to 13 is implemented.

Citation Information

Patent Citations

  • Electronic red envelope sending method and apparatus

    CN106960323A

  • Method and device for resource allocation and receiving

    CN108764866A