Search

CN-116328306-B - Virtual resource processing method and device, electronic equipment and storage medium

CN116328306BCN 116328306 BCN116328306 BCN 116328306BCN-116328306-B

Abstract

The disclosure provides a virtual resource processing method, a virtual resource processing device, electronic equipment and a storage medium, and belongs to the technical field of Internet. The disc type is laterally expandable, and the disc type is diversified. In addition, for different disc types, the present disclosure determines the available disc number and the available resource limit corresponding to the resource disc event according to the obtained disc type of the resource disc event, and this constraint logic is more reasonable and flexible; in other words, the method and the device realize that resources are reported for multiple times to share one total resource limit, and the scheme not only can dynamically limit the excitation values generated by different disc types, but also can ensure that the excitation values obtained by players meet the expected range under different disc types to the greatest extent on the premise of preventing black product attacks, and remarkably improve the man-machine interaction effect in the game process.

Inventors

  • Tezhigle
  • WANG SIQI

Assignees

  • 北京达佳互联信息技术有限公司

Dates

Publication Date
20260512
Application Date
20230109

Claims (13)

  1. 1. A method for virtual resource processing, the method comprising: obtaining a resource disc-entering event, wherein disc-entering means that virtual resources fall onto a resource pushing disc; Determining available disc-out times and available resource amount corresponding to the resource disc-in event according to the disc-in type of the resource disc-in event, wherein the disc-out refers to that virtual resources fall from the resource disc-pushing to a virtual resource outlet, the available resource amount is used for indicating the upper limit of the total number of resources which can be consumed in the available disc-out times, the disc-in type comprises a continuous disc-in and a resource box disc-in, the continuous disc-in refers to that the virtual resources fall onto the resource disc-pushing for a plurality of times, and the resource box disc-in refers to that the virtual resources in the resource box fall onto the resource disc-pushing; Writing the available number of outgoing disks and the available resource limit into a remote storage queue; Reporting the current resource outgoing number to a server when each time of resource outgoing is performed, wherein the server is used for controlling virtual resource outgoing according to the remote storage queue and the current reported resource outgoing number; Wherein the writing the available number of outgoing disks and the available resource limit into a remote storage queue includes: writing the available number of outgoing disks, the available resource amount, the remaining number of outgoing disks and the remaining resource amount into a first remote FIFO queue in response to the disk type being the continuous disk-in; And writing the available outgoing times, the available resource amount, the residual outgoing times and the residual resource amount into a second remote FIFO queue in response to the incoming type being the resource box incoming.
  2. 2. The method for processing virtual resources according to claim 1, wherein the determining the number of available outgoing times and the available resource limit corresponding to the resource incoming event according to the incoming type of the resource incoming event includes: The method comprises the steps of obtaining the maximum number of continuous hits and the current number of continuous hits, and taking the minimum one of the maximum number of continuous hits and the current number of continuous hits as the available number of disk-out times corresponding to the resource disk-in event; acquiring a first coefficient and an available resource threshold of a single click-in disk, wherein the single click-in disk refers to that virtual resources fall onto the resource pushing disk once; And determining the available resource limit corresponding to the resource disc-in event according to the available disc-out times, the first coefficient and the available resource threshold of the single click disc.
  3. 3. The method for processing virtual resources according to claim 1, wherein the determining the number of available outgoing times and the available resource limit corresponding to the resource incoming event according to the incoming type of the resource incoming event includes: taking the preconfigured number of outgoing discs as the number of available outgoing discs corresponding to the resource incoming disc event; acquiring a second coefficient and an available resource threshold of a single click-in disk, wherein the single click-in disk refers to that virtual resources drop onto the resource pushing disk once; And determining the available resource limit corresponding to the resource disk-in event according to the number of virtual resources in the resource box, the second coefficient and the available resource threshold of the single-click disk.
  4. 4. A virtual resource handling method according to any one of claims 1 to 3, wherein the type of incoming disc further comprises a single click-in disc, the single click-in disc being that a virtual resource dropped onto the resource push disc last time; the method further comprises the steps of: Responding to the disk type of the resource disk-in event as a single click disk-in, and reporting the current disk-out number of the resource to a server; The server is used for controlling the virtual resource to be played according to the available resource threshold value of the single click-in disc and the currently reported resource play number.
  5. 5. A method for virtual resource processing, the method comprising: Receiving the current reported number of resource outgoing discs; Controlling virtual resource outgoing according to the remote storage queue and the currently reported resource outgoing number; The remote storage queue stores available number of times of outgoing and available resource limit; the available resource limit is used for indicating the total upper limit of the number of the resources which can be consumed in the number of the available outgoing times; The available disc-out times and the available resource limit are determined according to a disc-in type of a resource disc-in event after a terminal acquires the resource disc-in event, wherein the disc-in is that virtual resources fall onto a resource disc-pushing plate, the disc-out is that the virtual resources fall onto a virtual resource outlet from the resource disc-pushing plate, the disc-in type comprises a continuous disc-in and a resource box disc-in, the continuous disc-in is that the virtual resources fall onto the resource disc-pushing plate for a plurality of times, and the resource box disc-in is that the virtual resources in the resource box fall onto the resource disc-pushing plate; The remote storage queue also stores the number of times of remaining outgoing disks and the remaining resource amount, and comprises a first remote FIFO queue and a second remote FIFO queue; In the case that the disk type is the one-click disk, the available disk number, the available resource amount, the remaining disk number and the remaining resource amount are written into the first remote FIFO queue; And under the condition that the disk loading type is a resource box disk loading, the available disk unloading times, the available resource amount, the residual disk unloading times and the residual resource amount are written into the second remote FIFO queue.
  6. 6. The method according to claim 5, wherein controlling virtual resource destaging according to a remote storage queue and a currently reported number of resource destages in response to the destaging type being the burst-in, comprises: And responding to the fact that the number of the remaining outgoing calls is not zero, and the remaining resource amount is not smaller than the number of the currently reported resource outgoing calls, and controlling the virtual resource outgoing calls according to the number of the currently reported resource outgoing calls.
  7. 7. The virtual resource processing method according to claim 5 or 6, wherein in response to the in-disc type being the in-disc, after controlling the out-disc of the virtual resource, the method further comprises: Responding to the residual resource limit being smaller than the available resource threshold of the single click-in disk, and controlling the next virtual resource disk outlet according to the available resource threshold of the single click-in disk and the next reported resource disk outlet number; Responding to the zero number of remaining disk-out times, and controlling the next virtual resource disk-out according to the available resource threshold value of the single-click disk-in and the next reported resource disk-out number; Wherein, the clicking into the disk means that the virtual resource falls onto the resource pushing disk once.
  8. 8. The method according to claim 5, wherein, in response to the disc type being the burst disc and the resource box disc, and the burst disc and the resource box disc occur at the same frequency, the controlling the virtual resource outgoing according to the remote storage queue and the currently reported number of resource outgoing comprises: Responding to the fact that the number of the remaining outgoing times corresponding to the continuous incoming disc is not zero, wherein the remaining resource limit corresponding to the continuous incoming disc is not smaller than the number of the currently reported resource outgoing discs, and controlling virtual resource outgoing discs according to the number of the currently reported resource outgoing discs; When the residual resource amount corresponding to the continuous-click-in disc is smaller than the available resource threshold value of the single-click-in disc, responding to the fact that the residual number of times of disc discharge corresponding to the resource box-in disc is not zero, and the residual resource amount corresponding to the resource box-in disc is not smaller than the number of currently reported resource disc discharge, and controlling virtual resource disc discharge according to the number of currently reported resource disc discharge; Wherein, the clicking into the disk means that the virtual resource falls onto the resource pushing disk once.
  9. 9. The method according to claim 5, wherein in response to the disk type being the burst disk and the resource box disk, and the burst disk and the resource box disk are interleaved, the controlling the virtual resource disk according to the remote storage queue and the currently reported number of resource disks includes: When the resource box disc-in happens and the continuous driving disc-in does not happen, responding to the fact that the number of the remaining disc-out times corresponding to the resource box disc-in is not zero, and the remaining resource amount corresponding to the resource box disc-in is not smaller than the number of the currently reported resource disc-out, and controlling virtual resource disc-out according to the number of the currently reported resource disc-out; responding to the occurrence of the continuous hit, wherein the number of the remaining outgoing times corresponding to the incoming of the resource box is not zero, the remaining resource amount corresponding to the incoming of the resource box is smaller than the number of the currently reported resource outgoing, the total remaining resource amount is larger than the number of the currently reported resource outgoing, and the virtual resource outgoing is controlled according to the number of the currently reported resource outgoing; and the total residual resource limit is the sum of the residual resource limit corresponding to the disk of the resource box and the residual resource limit corresponding to the disk of the continuous hit.
  10. 10. A virtual resource processing apparatus, the apparatus comprising: The system comprises an acquisition module, a resource pushing disc and a resource pushing disc, wherein the acquisition module is configured to acquire a resource disc-entering event, wherein the disc-entering refers to that virtual resources fall onto the resource pushing disc; The system comprises a determining module, a determining module and a recording module, wherein the determining module is configured to determine available disc-out times and available resource amount corresponding to the resource disc-in event according to the disc-in type of the resource disc-in event, wherein the disc-out refers to that virtual resources fall from the resource push disc to a virtual resource outlet, the available resource amount is used for indicating the upper limit of the total number of resources which can be consumed in the available disc-out times, the disc-in type comprises a continuous disc-in and a resource box disc-in, the continuous disc-in refers to that the virtual resources fall onto the resource push disc for a plurality of times, and the resource box disc-in refers to that the virtual resources in the resource box fall onto the resource push disc; a write module configured to write the available number of outgoing disks and the available resource credit to a remote storage queue; The reporting module is configured to report the current number of the resource outgoing discs to the server when the resource outgoing discs are each time; the server is used for controlling virtual resource outgoing according to the remote storage queue and the current reported resource outgoing number; The writing module is configured to write the available number of outgoing discs, the available resource amount, the remaining number of outgoing discs and the remaining resource amount into a first remote FIFO queue in response to the disc type being the consecutive disc, and write the available number of outgoing discs, the available resource amount, the remaining number of outgoing discs and the remaining resource amount into a second remote FIFO queue in response to the disc type being the resource box disc.
  11. 11. A virtual resource processing apparatus, the apparatus comprising: the receiving module is configured to acquire the number of currently reported resource outgoing discs; the processing module is configured to control virtual resource outgoing according to the remote storage queue and the currently reported resource outgoing number; The remote storage queue stores available number of times of outgoing and available resource limit; the available resource limit is used for indicating the total upper limit of the number of the resources which can be consumed in the number of the available outgoing times; The available disc-out times and the available resource limit are determined according to a disc-in type of a resource disc-in event after a terminal acquires the resource disc-in event, wherein the disc-in is that virtual resources fall onto a resource disc-pushing plate, the disc-out is that the virtual resources fall onto a virtual resource outlet from the resource disc-pushing plate, the disc-in type comprises a continuous disc-in and a resource box disc-in, the continuous disc-in is that the virtual resources fall onto the resource disc-pushing plate for a plurality of times, and the resource box disc-in is that the virtual resources in the resource box fall onto the resource disc-pushing plate; The remote storage queue also stores the number of times of remaining outgoing disks and the remaining resource amount, and comprises a first remote FIFO queue and a second remote FIFO queue; In the case that the disk type is the one-click disk, the available disk number, the available resource amount, the remaining disk number and the remaining resource amount are written into the first remote FIFO queue; And under the condition that the disk loading type is a resource box disk loading, the available disk unloading times, the available resource amount, the residual disk unloading times and the residual resource amount are written into the second remote FIFO queue.
  12. 12. An electronic device, the electronic device comprising: one or more processors; A memory for storing the processor-executable program code; Wherein the processor is configured to execute the program code to implement the virtual resource processing method of any of claims 1 to 4, or the virtual resource processing method of any of claims 5 to 9.
  13. 13. A computer readable storage medium, wherein instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the virtual resource processing method of any one of claims 1 to 4, or the virtual resource processing method of any one of claims 5 to 9.

Description

Virtual resource processing method and device, electronic equipment and storage medium Technical Field The disclosure relates to the technical field of internet, and in particular relates to a virtual resource processing method, a device, electronic equipment and a storage medium. Background Coin-pushing machines are a popular recreational game, which has evolved from a casino or arcade entity to an online game. The online game is designed by imitating a real coin pushing machine, and the interaction mode of the real coin pushing machine is well continued from the playing method. In general, a game mode of a coin pushing machine mainly includes that a player firstly triggers a tray entering through a virtual resource throwing operation, wherein the tray entering means that a certain amount of virtual resources (such as gold coins) fall onto the tray from a position of a swinging device above the coin pushing machine, and then the coin pushing machine pushes the certain amount of virtual resources to fall onto a virtual resource outlet (the process is also called a tray) from the tray through a front-back pushing operation, so that the player obtains rewards. In addition, in order to prevent malicious attack of black production, the upper limit of the number of resources (also called incentive values) obtained by the player in each time of outgoing is limited only by setting a fixed threshold, and the mode is relatively simple and inflexible, and can seriously influence the man-machine interaction effect in the game process. Disclosure of Invention The disclosure provides a virtual resource processing method, a virtual resource processing device, electronic equipment and a storage medium. The technical scheme of the present disclosure is as follows: According to a first aspect of an embodiment of the present disclosure, there is provided a virtual resource processing method, including: obtaining a resource disc-entering event, wherein disc-entering means that virtual resources fall onto a resource pushing disc; determining available outgoing times and available resource amount corresponding to the resource outgoing event according to the incoming type of the resource incoming event, wherein outgoing refers to that virtual resources drop from the resource pushing disc to a virtual resource outlet; Writing the available number of outgoing disks and the available resource limit into a remote storage queue; and reporting the current resource outgoing number to a server when the resources are outgoing each time, wherein the server is used for controlling the virtual resource outgoing according to the remote storage queue and the current reported resource outgoing number. In some embodiments, the disk-in type includes a click-through disk, which refers to a virtual resource falling onto the resource pushing disk multiple times; The determining the available number of times of outgoing discs and the available resource limit corresponding to the resource disc-in event according to the disc-in type of the resource disc-in event comprises the following steps: The method comprises the steps of obtaining the maximum number of continuous hits and the current number of continuous hits, and taking the minimum one of the maximum number of continuous hits and the current number of continuous hits as the available number of disk-out times corresponding to the resource disk-in event; acquiring a first coefficient and an available resource threshold of a single click-in disk, wherein the single click-in disk refers to that virtual resources fall onto the resource pushing disk once; And determining the available resource limit corresponding to the resource disc-in event according to the available disc-out times, the first coefficient and the available resource threshold of the single click disc. In some embodiments, the in-disc type includes a resource box in-disc, where the resource box in-disc refers to virtual resources in the resource box falling onto the resource pushing disc; The determining the available number of times of outgoing discs and the available resource limit corresponding to the resource disc-in event according to the disc-in type of the resource disc-in event comprises the following steps: taking the preconfigured number of outgoing discs as the number of available outgoing discs corresponding to the resource incoming disc event; acquiring a second coefficient and an available resource threshold of a single click-in disk, wherein the single click-in disk refers to that virtual resources drop onto the resource pushing disk once; And determining the available resource limit corresponding to the resource disk-in event according to the number of virtual resources in the resource box, the second coefficient and the available resource threshold of the single-click disk. In some embodiments, the remote storage queue further stores a remaining number of outgoing times and a remaining resource amount, and the writing