Unlock instant, AI-driven research and patent intelligence for your innovation.

Red envelope control method and device, computer device and computer readable storage medium

A control method and red envelope technology, applied in the electronic field, can solve problems such as data anomalies, unsatisfactory support for multi-threading and large concurrent data, multiple users grabbing red envelopes at the same time, and achieve the effect of avoiding data anomalies

Inactive Publication Date: 2017-11-07
福建中金在线信息科技有限公司
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the PHP language environment, when multiple users grab red envelopes, the server will allocate different amounts of red envelopes to the users according to the order, but it often happens that multiple users grab red envelopes at the same time
At this time, due to the unsatisfactory feature of the PHP language itself for multi-threading and large concurrent data support, when a user is grabbing a red envelope, other users also send a request to grab a red envelope, which will cause the server to fail to distribute the red envelope amount normally, and the data exception
[0004] It can be seen that the existing red envelope control technology cannot handle the situation of multiple users grabbing red envelopes at the same time well in the PHP language environment, which will lead to abnormal data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Red envelope control method and device, computer device and computer readable storage medium
  • Red envelope control method and device, computer device and computer readable storage medium
  • Red envelope control method and device, computer device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0052] In order to solve the problems in the prior art, the embodiments of the present invention provide a red envelope control method, device, computer equipment and computer-readable storage medium. A method for controlling a red envelope will firstly be described in detail below.

[0053] figure 1 A schematic flow diagram of a red envelope control method provided in an embodiment of the present invention, including:

[0054] S101: Obtain target red envelo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present invention provides a red envelope control method and device, a computer device and a computer readable storage medium. The above method comprises the steps of obtaining the target red envelope information, according to the target red envelope information, dividing a corresponding target red envelope into the target sub-red envelopes of the corresponding number; receiving a first red envelope grabbing request; determining whether a preset sign exists in a cache; if the preset sign exists in the cache, waiting until the sign does not exist in the cache, receiving a second red envelope grabbing request, storing the sign in the cache, distributing the sub-amount of money of a target sub-red envelope for a user sending out the second red envelope grabbing request, and deleting the sign from the cache; if the preset sign does not exist in the cache, storing the sign in the cache, distributing the sub-amount of money of the target sub-red envelope for a user sending out the first red envelope grabbing request, and deleting the sign from the cache. According to the embodiment of the present invention, the red envelope grabbing requests of the users can be processed orderly on the condition that multiple users grab the red envelopes simultaneously, thereby avoiding the abnormal data.

Description

technical field [0001] The present invention relates to the field of electronic technology, in particular to a red envelope control method, device, computer equipment and computer-readable storage medium. Background technique [0002] With the increasing popularity of Internet and Internet of Things applications, the network becomes more intelligent. The electronic red envelope generated based on the mobile Internet has become an indispensable tool for many users' daily entertainment and consumption, which has greatly improved the user viscosity and activity of the application. Due to the large number of users, the frequency of use of red envelopes and the concurrency of data operations are relatively high, so high requirements are placed on data consistency and stability. [0003] In the PHP language environment, when multiple users grab red envelopes, the server will allocate different amounts of red envelopes to the users according to the sequence, but it often happens t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q20/10G06Q20/16G06Q20/36
Inventor 沈文策
Owner 福建中金在线信息科技有限公司