CN107292596B - Device and method for preventing automatic red packet brushing and server - Google Patents
Device and method for preventing automatic red packet brushing and server Download PDFInfo
- Publication number
- CN107292596B CN107292596B CN201610206726.XA CN201610206726A CN107292596B CN 107292596 B CN107292596 B CN 107292596B CN 201610206726 A CN201610206726 A CN 201610206726A CN 107292596 B CN107292596 B CN 107292596B
- Authority
- CN
- China
- Prior art keywords
- red packet
- acceleration value
- client
- information
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/16—Payments settled via telecommunication systems
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a device and a method for preventing automatic red packet brushing and a server side, and relates to the field of red packet brushing equipment. The device and the method for preventing the automatic red packet brushing and the server receive acceleration values of the client in three axial directions of a three-dimensional coordinate system sent by the client and induction information generated by clicking a red packet button on a touch screen of the client in response to the client, the server judges whether the acceleration value sent by the client is larger than the preset acceleration value or not when the induction information is received, the red packet brushing software simulates and clicks the red packet button or a user clicks the red packet button, if the red packet brushing software simulates and clicks the red packet button, the red packet is not distributed, and if the user clicks the red packet button, the red packet is distributed. The device and method for preventing automatic red packet brushing and the server can prevent automatic red packet brushing software from automatically getting red packets when red packet information reaches the client, and improve unfairness of red packet robbing.
Description
Technical Field
The invention relates to the field of red packet brushing equipment, in particular to a device and a method for preventing red packets from being automatically brushed and a server side.
Background
With the popularization of intelligent terminals and the mobile internet, people are popular to send red packages to friends and relatives to express blessings and good luck through red package software (such as QQ, WeChat, Paibao and the like). After sensing the arrival message of the red packet, the user at the receiving end of the red packet only needs to click the button for tearing the red packet displayed at the client by hand, and the money in the red packet can be obtained. Some users are provided with automatic red packet brushing software, and the automatic red packet brushing software can traverse the chat list and the elements of the chat interface of the client. When the automatic red packet brushing software detects a notification bar message, judging whether a text in the notification bar has a keyword of 'XX red packet', if so, simulating clicking and calling an interface of the chat red packet, and after the interface of the chat red packet is displayed, traversing and checking and positioning a red packet removing button on the interface layout by the automatic red packet brushing software; and then, clicking a red packet removing button in a simulated manner to rob the money in the red packet. However, the software for automatically brushing the red packet has great unfairness for other users in the same communication group. Therefore, how to prevent the user from using the automatic red packet brushing software to rob the red packet is a major subject to be faced at present.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide an apparatus and a method for preventing automatic red packet flushing, and a server.
In a first aspect, an embodiment of the present invention further provides a method for preventing automatic red packet brushing, where the method includes:
receiving acceleration values of the client in three axial directions of a three-dimensional coordinate system and induction information generated by responding to clicking of a red packet button on a touch screen of the client, wherein the acceleration values are sent by the client;
when the sensing information is received, if the acceleration value is smaller than or equal to a preset acceleration value, the operation of distributing the red packet is not executed;
and if the acceleration value is larger than the preset acceleration value, executing the operation of distributing the red packet.
In a second aspect, an embodiment of the present invention provides an apparatus for preventing automatic red packet brushing, where the apparatus for preventing automatic red packet brushing includes:
the information receiving unit is used for receiving acceleration values of the client in three axial directions of a three-dimensional coordinate system, which are sent by the client, and sensing information which is sent by the client and generated by responding to the fact that a red packet button on a touch screen of the client is clicked.
And the execution unit is used for executing the operation of distributing the red packet if the acceleration value is greater than the preset acceleration value and not executing the operation of distributing the red packet if the acceleration value is less than or equal to the preset acceleration value when the sensing information is received.
In a third aspect, an embodiment of the present invention further provides another method for preventing automatic red packet flushing, where the method is applied to a server and a client that are in communication connection with each other, and the method includes:
the client sends acceleration values of the client in three axial directions of a three-dimensional coordinate system and sensing information generated by the client responding to clicking a red packet button on a touch screen of the client to a service end;
the server receives the acceleration value and the induction information sent by the client;
when the server receives the induction information, if the acceleration value is smaller than or equal to a preset acceleration value, the operation of distributing the red packet is executed; and if the acceleration value is larger than the preset acceleration value, not executing the operation of distributing the red packet.
In a fourth aspect, an embodiment of the present invention further provides a server, where the server includes:
a memory;
a processor; and
an apparatus for preventing automatic flushing of red packets, the apparatus being installed in the memory and including one or more software function modules executed by the processor, the apparatus comprising:
the information receiving unit is used for receiving three axial acceleration values of a three-dimensional coordinate system where the client is located and induction information which is sent by the client and generated by responding to clicking a red packet button on a touch screen of the client;
and the execution unit is used for executing the red packet distributing operation if the acceleration value is greater than the preset acceleration value when the sensing information is received, and not executing the red packet distributing operation if the acceleration value is less than or equal to the preset acceleration value.
Compared with the prior art, the device and the method for preventing automatic red packet brushing provided by the embodiment of the invention can utilize a service end to receive the acceleration values of the client end in three axial directions of the three-dimensional coordinate system, which are sent by the client end, and the sensing information which is sent by the client end and generated by clicking the red packet button on the touch screen of the client end in response. When the red packet information reaches the client, if the red packet software simulates to click the red packet button, the server cannot receive the acceleration value sent by the client, and if the user clicks the red packet button, the server can receive the acceleration value sent by the client. The device and the method for preventing the automatic red packet brushing can prevent the automatic red packet brushing software from automatically getting the red packet when the red packet information reaches the client, and improve the unfairness of red packet robbing.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating interaction between a server and a client according to a preferred embodiment of the present invention.
Fig. 2 shows a block diagram of a server according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a page of an application provided by an embodiment of the present invention.
Fig. 4 is a functional unit diagram of an apparatus for preventing automatic red packet brushing according to an embodiment of the present invention.
Fig. 5 is a schematic flow chart illustrating a method for preventing automatic red packet brushing according to an embodiment of the present invention.
Fig. 6 is a schematic flow chart illustrating another method for preventing automatic red packet brushing according to an embodiment of the present invention.
Description of the main element symbols: the system comprises a memory 101, a storage controller 102, a processor 103, an application program 300, a red packet button 301, an automatic red packet brushing prevention device 400, a signal receiving unit 401, a recording unit 402, a judging unit 403, an executing unit 404, a prompt message sending unit 405, a client 200, a server 201 and a network 202.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
The device and the method for preventing automatic red packet brushing provided by the embodiment of the invention can be applied to the application environment shown in figure 1. As shown in fig. 1, a server 201 and a client 200 are located in a network 202, and data interaction is performed with the server 201 through the network 202 and the client 200. The server 201 may provide at least one installation package of Application programs (APPs) 300 suitable for various operating systems for downloading by the client 200. After the client 200 accesses the server 201 through the network 202, the installation package of the application 300 suitable for the operating system of the client 200 may be downloaded from the server 201 through the network 202, so as to install the application 300 into the client 200.
The device and the method for preventing automatic red packet brushing provided by the embodiment of the invention provide a method for preventing automatic red packet brushing, and the method for preventing automatic red packet brushing can be suitable for the server 201. The server 201 may be, but is not limited to, a web server, a database server, a cloud server, and the like. The client 200 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. The operating system of the client 200 may be, but is not limited to, an Android system, an ios (internet operating system) system, a Windows phone system, a Windows system, and the like. Preferably, in this embodiment, the operating system of the client 200 is an IOS system, and the application 300 is a wechat client. Of course, the application 300 may also be other applications, such as a payment instrument, and the embodiment of the invention is not limited thereto.
Fig. 2 is a block diagram of the server 201. The server 201 comprises an automatic red packet brushing prevention device 400, a memory 101, a memory controller 102 and a processor 103.
The memory 101, the memory controller 102 and the processor 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The device 400 for preventing automatic red packet flushing includes at least one software function module which can be stored in the memory 101 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the client 200. The processor 103 is configured to execute an executable module stored in the memory 101, for example, a software function module or a computer program included in the automatic red packet flashing prevention device 400.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 101 is configured to store a program, and the processor 103 executes the program after receiving an execution instruction, and the method executed by the server 201 defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 103, or implemented by the processor 103.
The processor 103 may be an integrated circuit chip having signal processing capabilities. The Processor 103 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The client 200 is at least integrated with an acceleration sensor and a touch screen, and when the client 200 is in a motion state, the acceleration sensor outputs acceleration values of the client 200 in three axial directions of a three-dimensional coordinate system. Further, referring to fig. 3, fig. 3 shows a page of an application 300 installed on a client 200, when a package information arrives, a package software is brushed or a user can write a package message for reference, and a package button 301 shown in fig. 3 appears, in this embodiment, the package button 301 is displayed on a touch screen, and the pattern is "open language". The user can click the red packet button 301 by using a finger to obtain the money amount in the red packet, and when the user clicks the red packet button 301, the client 200 outputs sensing information. Of course, the software for red packet swiping can also generate sensing information by performing simulated clicking on the red packet button 301. It should be noted that the above page layout may be modified as appropriate, and is not limited to the page layout shown in fig. 3.
First embodiment
Please refer to fig. 4, which is a functional unit diagram of an apparatus 400 for preventing automatic red packet brushing according to a preferred embodiment of the present invention. The unit of the device 400 for preventing automatic red packet flushing comprises an information receiving unit 401, a recording unit 402, a judging unit 403, an executing unit 404 and a prompt information sending unit 405.
The information receiving unit 401 is configured to receive acceleration values of the client 200 in three axial directions of a three-dimensional coordinate system, which are sent by the client 200, sensing information, which is sent by the client 200 and generated in response to the red packet button 301 on the touch screen of the client 200 being clicked, and coordinates, which are detected in response to the touch screen of the client 200 being clicked.
For example, if the client 200 is a mobile phone, the acceleration value is generated by an acceleration sensor of the mobile phone due to movement. The clicking includes an actual clicking action generated when the user clicks the red packet button 301 on the touch screen, and an action of performing simulated clicking on the red packet button 301 when the red packet brushing software detects that the red packet information reaches the client 200.
In addition, there are the following two cases in the time sequence in which the information receiving unit 401 receives the acceleration value and the sensing information: first, the information receiving unit 401 receives the acceleration value earlier than the sensing information. The scenario for this case is: when the user senses that the red packet message reaches the client 200, the user picks up the client 200, the information receiving unit 401 receives the acceleration information sent by the client 200, and after the user picks up the client 200, looks up the red packet message and clicks the red packet button 301, the information receiving unit 401 receives the induction information. Secondly, when the client 200 is placed on a plane, the user directly clicks the red packet button 301 after sensing the red packet information, and the information receiving unit 401 receives the acceleration information and the sensing information at the same time.
A recording unit 402, configured to record a duration of the sensing information.
The duration period is set to be as short as 5 seconds as possible, and preferably, may be set to 3 seconds-5 seconds.
The determining unit 403 is configured to determine whether the acceleration value is greater than a preset acceleration value while the sensing information is received.
Clicking the red envelope button 301 by a user of a real scene to tear down the red envelope results in two results: firstly, when a user clicks a red packet button 301, the client 200 slightly shakes, and the client 200 obtains an acceleration value acquired by an acceleration sensor installed on the client 200; secondly, when the user clicks the red envelope button 301, the screen sensor of the client 200 generates sensing information, and the client 200 obtains the sensing information generated by the screen sensor. Therefore, the judging unit 403 can judge whether the user clicks the red packet button 301 to rob the red packet or the red packet brushing software simulates to click the red packet button 301 to brush the red packet by adopting the judging method. In this embodiment, the determining unit 403 may determine whether the received acceleration value is within a preset range by using an SVM algorithm.
The execution unit 404 is configured to execute an operation of dispensing a red packet if the acceleration value is greater than a preset acceleration value, and not execute the operation of dispensing the red packet if the acceleration value is less than or equal to the preset acceleration value.
To avoid that in some special scenarios, the determining unit 403 makes a misjudgment on whether to distribute the red packet. For example, when a user carrying the client 200 runs, the acceleration value acquired by the acceleration sensor of the client 200 is still larger than the preset acceleration value, and when the red packet brushing software is in a motion state at the client, the red packet button 301 is clicked in a simulated manner, so that the client 200 acquires the sensing information generated by the screen sensor, and therefore erroneous judgment may be generated. On the touch screen where the client 200 is located, since the coordinates of the simulated clicking of the red packet button 301 by the red packet flushing software are all consistent, and the coordinates of the clicking of the red packet button 301 by the user are usually inconsistent, the determining unit 403 can distinguish the red packet rushed by the user from the red packet flushed by the automatic red packet flushing software in the following manner.
Preferably, the judging unit 403 is configured to judge whether the acceleration values of the three axial directions are greater than a preset acceleration value during a continuous period of time, and whether the distance between the coordinate and the pre-recorded coordinate is within a preset range.
Specifically, when the determining unit 403 determines that the information receiving unit 401 receives an acceleration value while receiving the sensing information and the received acceleration value is greater than the preset acceleration, and the distance between the coordinate detected by the client 200 in response to the touch screen of the client 200 being clicked and the pre-recorded coordinate is not within the preset range, the determining unit 403 determines that the user clicks the red packet button 301. Based on the page layout of the red packet button 301 of the client 200 and the habit of the user clicking the red packet button 301, the preset range may be that the distance between the detected coordinates and the pre-recorded coordinates is less than 1mm, which is only an example, and is not limited herein.
It should be noted that the pre-recorded coordinates may be coordinates stored by the server 200 and detected by the client 200 in response to the user last clicking the red packet button 301 displayed on the touch screen of the client 200. In addition, in order to make the determination result more accurate, the determination unit 403 further determines whether the detected coordinates are completely consistent with the pre-recorded coordinates.
The execution unit 404 is further configured to, within a continuous time period when the sensing information is received, not execute an operation of dispensing the red packet if the acceleration value is less than or equal to a preset acceleration value or if a distance between the coordinate and a pre-recorded coordinate is within a preset range; and if the acceleration value is larger than the preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not in the preset range, executing the operation of distributing the red packet.
The prompt information sending unit 405 is configured to send red envelope pickup failure information to the client 200 in a continuous time period when the sensing information is received, if the acceleration value is less than or equal to a preset acceleration value or the distance between the coordinate and a pre-recorded coordinate is within a preset range; and if the acceleration value is greater than a preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not within a preset range, sending information that the red packet is successfully taken to the client 200.
By using the prompt information sending unit 405 to send the information of successful red packet pickup or the information of failed red packet pickup to the client 200, the user can observe the red packet pickup condition at the client 200, thereby enhancing the experience of the user. For example, the red envelope pickup failure information may be: character information such as 'red envelope is completely received' or 'red envelope is manually received'; the information of successful red packet pickup can be image information or character information such as money information and blessing words information of the red packet.
Second embodiment
Please refer to fig. 5, which is a flowchart illustrating a method for preventing automatic red packet flushing according to a preferred embodiment of the present invention. It should be noted that the basic principle and the generated technical effects of the method for preventing automatic red packet brushing provided by the embodiment are the same as those of the first embodiment, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the first embodiment. The specific flow shown in fig. 5 will be described in detail below.
Step S501: the method comprises the steps of utilizing a server 201 to receive three axial acceleration values of a client 200 in a three-dimensional coordinate system, sent by the client 200, sensing information generated by responding to the fact that a red packet button 301 on a touch screen of the client 200 is clicked and sent by the client 200, and coordinates detected by clicking the touch screen of the client 200, and recording the duration time of the sensing information.
Specifically, in step S501, the acceleration values of the client 200 in three axial directions of the three-dimensional coordinate system, which are sent by the client 200, the sensing information generated by responding to the click of the red packet button 301 on the touch screen of the client 200, and the coordinates detected by clicking the touch screen of the client 200 are received by the information receiving unit 401, and the recording unit 402 is used to record the duration of the sensing information.
Step S502: the server 201 determines whether the acceleration value is greater than a preset acceleration value while receiving the sensing information, if so, performs step S503, and if not, performs step S504.
Preferably, the step S502 includes: the server 201 determines whether the acceleration values of the three axial directions are greater than a preset acceleration value and whether the distance between the coordinate and the pre-recorded coordinate is within a preset range within a duration time period, executes step S503 if the acceleration value is less than or equal to the preset acceleration value or if the distance between the coordinate and the pre-recorded coordinate is within the preset range within the duration time period when the sensing information is received, and executes step S504 if the acceleration value is greater than the preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not within the preset range.
Specifically, step S502 may determine, by the determination unit 403, whether the acceleration values of the three axial directions are greater than a preset acceleration value and whether the distance of the coordinate from the pre-recorded coordinate is within a preset range during the duration.
Step S503: the server 201 does not execute the red packet distribution operation, and sends the prompt message of the failure of red packet pickup to the client 200.
Step S504: the server 201 executes the red envelope distribution operation and sends the prompt message of successful red envelope reception to the client 200.
Specifically, step S503, step S504 may execute the operation of distributing the red packet or the operation of not distributing the red packet by the execution unit 404; the red packet pickup failure information or the red packet pickup success information is transmitted to the client 200 through the prompt information transmitting unit 405.
Third embodiment
The embodiment of the invention also provides another method for preventing automatic red packet flushing, which is applied to a server 201 and a client 200 which are in communication connection with each other. It should be noted that, the basic principle and the generated technical effects of the method for preventing automatic red packet brushing provided by the embodiment are the same as those of the first embodiment and the second embodiment, and for the sake of brief description, corresponding contents in the first embodiment and the second embodiment may be referred to for parts of the embodiment that are not mentioned. The method comprises the following steps:
step S601: the client 200 receives the red packet arrival information and starts to acquire the acceleration values of the client 200 in three axial directions of the three-dimensional coordinate system.
Step S602: the client 200 sends acceleration values of the client 200 in three axial directions of a three-dimensional coordinate system and sensing information generated by the client 200 in response to clicking a red packet button 301 on a touch screen of the client 200 to a server 201.
Step S603: the server 201 receives the acceleration value and the sensing information sent by the client 200, and records a continuous time period from when the acceleration value is received to when the sensing information is received.
Step S604: the server 201 determines whether the acceleration value is greater than a preset acceleration value while receiving the sensing information, if so, performs step S605, and if not, performs step S606.
Preferably, the step S604 includes: the server 201 determines whether the acceleration values of the three axial directions are greater than a preset acceleration value and whether the distance between the coordinate and the pre-recorded coordinate is within a preset range in a continuous time period. And in the continuous time period when the sensing information is received, if the acceleration value is less than or equal to a preset acceleration value or if the distance between the coordinate and the pre-recorded coordinate is within a preset range, executing the step S605, and if the acceleration value is greater than the preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not within the preset range, executing the step S606.
Step S605: the server 201 does not execute the red packet distribution operation, and sends the prompt message of the failure of red packet pickup to the client 200.
Step S606: the server 201 executes the red envelope distribution operation and sends the prompt message of successful red envelope reception to the client 200.
In a fourth aspect, referring to fig. 2, an embodiment of the invention provides a server 201, and it should be noted that the basic principle and the generated technical effect of the server 201 provided in the embodiment are the same as those of the first embodiment, and for a brief description, corresponding contents in the first embodiment may be referred to where this embodiment is not mentioned in part. The server 201 includes: a memory 101; a processor 103; and an automatic red packet brushing prevention device 400 installed in the memory 101 and including one or more software function modules executed by the processor 103, the automatic red packet brushing prevention device 400 including an information receiving unit 401, a judging unit 402, and an executing unit 404.
The information receiving unit 401 is configured to receive acceleration values in three axial directions of a three-dimensional coordinate system where the client 200 is located, which are sent by the client 200, and sensing information generated in response to clicking the red packet button 301 on the touch screen of the client 200.
The determining unit 402 is configured to determine whether the acceleration values of the three axes are greater than a preset acceleration value in a continuous time period, and whether the distance between the coordinate and the pre-recorded coordinate is within a preset range.
The execution unit 404 is configured to, within a continuous time period when the sensing information is received, not execute an operation of dispensing the red packet if the acceleration value is less than or equal to a preset acceleration value or if a distance between the coordinate and a pre-recorded coordinate is within a preset range; and if the acceleration value is larger than the preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not in the preset range, executing the operation of distributing the red packet.
To sum up, according to the device and method for preventing automatic red packet flushing and the server provided by the embodiment of the present invention, the server 201 can be used to receive the acceleration values of the client 200 in three axial directions of the three-dimensional coordinate system, which are sent by the client 200, and the sensing information, which is sent by the client 200 and responds to click the red packet button 301 on the touch screen of the client 200, and is generated. When the red packet information reaches the client 200, if the red packet software simulates and clicks the red packet button 301, the server 201 does not receive the acceleration value sent by the client 200, and the coordinates of the simulated click of the red packet button 301 on the touch screen where the client 200 is located each time are always consistent. If the user clicks the red packet button 301, the server 201 receives that the acceleration value sent by the client 200 is greater than the preset acceleration value, and the coordinates of the touch screen where the client 200 is located when the user clicks the red packet button 301 each time are inconsistent. Therefore, the server 201 can be used to determine whether the acceleration value of the touch screen where the client 200 is located is received while the sensing information is received, and whether the coordinates of the red packet button 301 clicked are consistent, so as to distinguish whether the red packet software simulates clicking the red packet button 301 or whether the user clicks the red packet button 301. If the red packet brushing software simulates and clicks the red packet button 301, the action of distributing the red packet is not executed, and if the user clicks the red packet button 301, the red packet is distributed. The device and the method for preventing the automatic red packet brushing can prevent the automatic red packet brushing software from automatically getting the red packet when the red packet information reaches the client 200, and improve the unfairness of red packet robbing.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium when they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and the principle of the present invention shall be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (13)
1. A method of preventing automatic red envelope brushing, the method comprising:
receiving acceleration values of the client in three axial directions of a three-dimensional coordinate system, which are sent by the client, and induction information which is sent by the client and generated by responding to clicking a red packet button on a touch screen of the client;
when the sensing information is received, if the acceleration value is smaller than or equal to a preset acceleration value, the operation of distributing the red packet is not executed;
and if the acceleration value is larger than the preset acceleration value, executing the operation of distributing the red packet.
2. The method of preventing automatic red packet brushing according to claim 1, further comprising:
receiving a coordinate which is sent by a client and detected by clicking a red packet button on a touch screen of the client in response to receiving the induction information;
if the acceleration value is larger than a preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not within a preset range, executing the operation of distributing the red packet; and if the distance between the coordinates and the pre-recorded coordinates is within a preset range, not executing the operation of distributing the red packet.
3. The method of claim 1, wherein the acceleration value is received earlier than the sensed information or the acceleration value and the sensed information are received simultaneously.
4. The method of preventing automatic red envelope brushing according to claim 1, further comprising:
recording the duration time of the induction information while receiving the induction information;
when the sensing information is received, if the acceleration value is smaller than or equal to the preset acceleration value, the operation of distributing the red packet is not executed, and if the acceleration value is larger than the preset acceleration value, the step of executing the operation of distributing the red packet comprises the following steps: and in the continuous time period, if the acceleration value is greater than a preset acceleration value, executing the operation of distributing the red packet, and if the acceleration value is less than or equal to the preset acceleration value, not executing the operation of distributing the red packet.
5. The method of preventing automatic red envelope brushing according to claim 1, further comprising:
and if the acceleration value is smaller than or equal to a preset acceleration value, sending prompt information of red packet pickup failure to the client, wherein the acceleration value is larger than the preset acceleration value, and sending prompt information of red packet pickup success to the client.
6. A method for preventing automatic red packet flushing is applied to a server side and a client side which are in communication connection with each other, and is characterized by comprising the following steps:
the client sends acceleration values of the client in three axial directions of a three-dimensional coordinate system and sensing information generated by the client responding to clicking of a red packet button on a touch screen of the client to the server;
the server receives the acceleration value and the induction information sent by the client;
when the server receives the induction information, if the acceleration value is larger than a preset acceleration value, the operation of distributing the red packet is executed; and if the acceleration value is smaller than or equal to the preset acceleration value, not executing the operation of distributing the red packet.
7. The method of preventing automatic red envelope brushing according to claim 6,
before the step of sending, by the client, acceleration values of the client in three axial directions of a three-dimensional coordinate system where a touch screen of the client is located and sensing information generated in response to clicking a red packet button on the touch screen of the client to a service end, the method further includes:
the client receives red packet arrival information and starts to acquire acceleration values of the client in three axial directions of a three-dimensional coordinate system;
when the server receives the induction information, if the acceleration value is greater than a preset acceleration value, the operation of distributing the red packet is executed; if the acceleration value is less than or equal to the preset acceleration value, before the step of not executing the operation of dispensing the red packet, the method further comprises the following steps: the server side records a continuous time period from the time when the acceleration value is received to the time when the induction information is received while receiving the induction information;
when the server receives the induction information, if the acceleration value is larger than a preset acceleration value, the operation of distributing the red packet is executed; if the acceleration value is smaller than or equal to the preset acceleration value, the step of executing the operation of distributing the red packet comprises the following steps: and when the server receives the sensing information, if the acceleration value is greater than the preset acceleration value in the continuous time period, executing the red packet distributing operation, and if the acceleration value is less than or equal to the preset acceleration value, not executing the red packet distributing operation.
8. The utility model provides a prevent device of automatic red packet of brushing which characterized in that, prevent device of automatic red packet of brushing includes:
the information receiving unit is used for receiving acceleration values of the client in three axial directions of a three-dimensional coordinate system, which are sent by the client, and sensing information which is sent by the client and generated by responding to the fact that a red packet button on a touch screen of the client is clicked;
and the execution unit is used for executing the operation of distributing the red packet if the acceleration value is greater than the preset acceleration value and not executing the operation of distributing the red packet if the acceleration value is less than or equal to the preset acceleration value when the sensing information is received.
9. The device for preventing automatic red envelope brushing according to claim 8,
the information receiving unit is also used for receiving the induction information and simultaneously receiving the coordinate which is sent by the client and detected by responding to the click of the touch screen of the client;
the execution unit is further configured to, when the sensing information is received, not execute an operation of dispensing the red packet if the distance between the coordinate and the pre-recorded coordinate is within a preset range, and execute an operation of dispensing the red packet if the acceleration value is greater than the preset acceleration value and the distance between the coordinate and the pre-recorded coordinate is not within the preset range.
10. The device for preventing automatic red envelope brushing according to claim 8,
the information receiving unit receives the acceleration value earlier than the sensing information or receives the acceleration value and the sensing information at the same time.
11. The device for preventing automatic red envelope brushing according to claim 8,
the device further comprises:
the recording unit is used for recording the duration time of the induction information;
the execution unit is used for executing the operation of distributing the red packet if the acceleration value is larger than the preset acceleration value in the continuous time period, and not executing the operation of distributing the red packet if the acceleration value is smaller than or equal to the preset acceleration value.
12. The device for preventing automatic red envelope brushing according to claim 8, further comprising:
the prompt information sending unit is used for sending information of red packet pickup failure to the client side when the induction information is received and if the acceleration value is smaller than or equal to a preset acceleration value; and if the acceleration value is larger than the preset acceleration value, sending information of successful red packet acquisition to the client.
13. A server, characterized in that the server comprises:
a memory;
a processor; and
an apparatus for preventing automatic flushing of red packets, the apparatus being installed in the memory and including one or more software function modules executed by the processor, the apparatus comprising:
the information receiving unit is used for receiving three axial acceleration values of a three-dimensional coordinate system where the client is located and induction information which is sent by the client and generated by responding to clicking a red packet button on a touch screen of the client;
and the execution unit is used for executing the red packet distributing operation if the acceleration value is greater than the preset acceleration value when the sensing information is received, and not executing the red packet distributing operation if the acceleration value is less than or equal to the preset acceleration value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610206726.XA CN107292596B (en) | 2016-04-01 | 2016-04-01 | Device and method for preventing automatic red packet brushing and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610206726.XA CN107292596B (en) | 2016-04-01 | 2016-04-01 | Device and method for preventing automatic red packet brushing and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107292596A CN107292596A (en) | 2017-10-24 |
CN107292596B true CN107292596B (en) | 2020-05-01 |
Family
ID=60093412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610206726.XA Active CN107292596B (en) | 2016-04-01 | 2016-04-01 | Device and method for preventing automatic red packet brushing and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107292596B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595965B (en) * | 2018-04-28 | 2019-12-20 | 北京字节跳动网络技术有限公司 | Method and device for preventing attribute information of interface control from being stolen |
CN112888001B (en) * | 2018-05-30 | 2022-08-26 | Oppo广东移动通信有限公司 | Radio resource control connection method and device, and computer storage medium |
CN110458308A (en) * | 2019-06-24 | 2019-11-15 | 天津五八到家科技有限公司 | A kind of control method, device and mobile terminal |
CN110909353B (en) * | 2019-11-28 | 2022-07-15 | 网易(杭州)网络有限公司 | Plug-in detection method and device |
CN115018482B (en) * | 2022-08-10 | 2023-01-13 | 杭州星犀科技有限公司 | Method and device for preventing cheating during red packet robbing, storage medium and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973769A (en) * | 2014-01-29 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Virtual item transmitting method, receiving method, device and system |
CN104954468A (en) * | 2015-06-18 | 2015-09-30 | 小米科技有限责任公司 | Resource allocation method and resource allocation device |
CN105096157A (en) * | 2015-05-21 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Virtual article receiving method, sending method, interaction method and device |
CN105160581A (en) * | 2015-08-25 | 2015-12-16 | 何庆怀 | Generation method for Image-Based Virtual Space |
CN105407036A (en) * | 2015-10-28 | 2016-03-16 | 小米科技有限责任公司 | Red envelope sending method and device |
-
2016
- 2016-04-01 CN CN201610206726.XA patent/CN107292596B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973769A (en) * | 2014-01-29 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Virtual item transmitting method, receiving method, device and system |
CN105096157A (en) * | 2015-05-21 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Virtual article receiving method, sending method, interaction method and device |
CN104954468A (en) * | 2015-06-18 | 2015-09-30 | 小米科技有限责任公司 | Resource allocation method and resource allocation device |
CN105160581A (en) * | 2015-08-25 | 2015-12-16 | 何庆怀 | Generation method for Image-Based Virtual Space |
CN105407036A (en) * | 2015-10-28 | 2016-03-16 | 小米科技有限责任公司 | Red envelope sending method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107292596A (en) | 2017-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107292596B (en) | Device and method for preventing automatic red packet brushing and server | |
CN107643977B (en) | Anti-addiction method and related product | |
US10603579B2 (en) | Location-based augmented reality game control | |
CN109376078B (en) | Mobile application testing method, terminal equipment and medium | |
CN104252479B (en) | Processing method, the device and system of information | |
KR20210072136A (en) | Routing messages by message parameter | |
CN110109598A (en) | A kind of animation interaction implementation method, device and electronic equipment | |
EP3818674B1 (en) | Enhancing security using anomaly detection | |
US10897512B2 (en) | Generating push notifications | |
CN111077996B (en) | Information recommendation method and learning device based on click-to-read | |
CN111182156B (en) | Application prompt message processing method and device on mobile terminal | |
CN104850318A (en) | Method and apparatus for transient message display control | |
WO2016008415A1 (en) | Method and device for acquiring new version information of application software | |
CN108428027A (en) | Event-handling method and device | |
CN110868347A (en) | Message prompting method, device and system | |
JP5778892B2 (en) | Operation status monitoring program, apparatus, and method | |
CN104539794A (en) | Terminal | |
CN110020264B (en) | Method and device for determining invalid hyperlinks | |
CN109815469B (en) | Text editing method, text editing device, medium and electronic equipment | |
CN110874176B (en) | Interaction method, storage medium, operating system and device | |
US10902528B2 (en) | Addressing propagation of inaccurate information in a social networking environment | |
US11182801B2 (en) | Computer-implemented method and system for authentication of a product | |
CN107203915B (en) | Data storage method and device | |
CN112256654B (en) | Document sharing method and device | |
CN110019270B (en) | Information updating method and device, terminal, server and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200526 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: Two, room 902, West 64, 66 Middle Road, Tianhe District, Guangdong, Guangzhou, China 510665 Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd. |