CN113867553B - Quick click processing method and device, storage medium and electronic equipment - Google Patents

Quick click processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113867553B
CN113867553B CN202010542704.7A CN202010542704A CN113867553B CN 113867553 B CN113867553 B CN 113867553B CN 202010542704 A CN202010542704 A CN 202010542704A CN 113867553 B CN113867553 B CN 113867553B
Authority
CN
China
Prior art keywords
click
function
detection
clicking
calling
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
Application number
CN202010542704.7A
Other languages
Chinese (zh)
Other versions
CN113867553A (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN202010542704.7A priority Critical patent/CN113867553B/en
Publication of CN113867553A publication Critical patent/CN113867553A/en
Application granted granted Critical
Publication of CN113867553B publication Critical patent/CN113867553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a quick click processing method, a quick click processing device, a storage medium and electronic equipment. The method comprises the following steps: based on the original method calling method, obtaining a function method of the original method; invoking detection judgment logic of a quick click event, judging a function method, and determining whether a detection mark exists or not; if yes, calling a rapid click detection protocol; acquiring a parameter entering set of a function method based on a parameter calling function in a quick click detection protocol, calling a judging method of a view class object, and determining the view class object in the parameter entering set; determining clicking events corresponding to the view objects and time intervals of the clicking events based on a clicking too fast judging function in a fast clicking detection protocol, and judging the time intervals of the clicking events; when the time interval of each clicking event does not exceed the preset clicking interval, the fact that the clicking of the following clicking event is too fast is determined, the following clicking event is discarded, and the influence of the too fast clicking on the system operation is avoided.

Description

Quick click processing method and device, storage medium and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a quick click processing method, a quick click processing device, a storage medium and electronic equipment.
Background
The clicking operation is a common operation in the control of the terminal, and the terminal detects and corresponds to the clicking operation to realize the control of the terminal.
When clicking is too fast, frequent response to clicking operation is easy to cause, and normal operation of the system is affected.
Disclosure of Invention
The invention provides a quick click processing method, a quick click processing device, a storage medium and electronic equipment, so as to prevent the terminal from being clicked too quickly.
In a first aspect, an embodiment of the present invention provides a method for processing quick clicking, including:
based on an original method calling method, obtaining a function method of the original method;
invoking detection judgment logic of a quick click event, judging the function method, and determining whether a detection mark exists or not;
if yes, a rapid click detection protocol is called, wherein the rapid click detection protocol and the function method are respectively and independently packaged;
acquiring a parameter entering set of a function method based on a parameter calling function in the rapid click detection protocol, calling a judging method of a view class object, and determining the view class object in the parameter entering set;
determining click events corresponding to the view objects and time intervals of the click events based on a click-over-fast judging function in the fast click detection protocol, and judging the time intervals of the click events;
and when the time interval of each clicking event does not exceed the preset clicking interval, determining that the following clicking event clicks too fast, and discarding the following clicking event.
In a second aspect, an embodiment of the present invention further provides a device for processing quick clicking, including:
the function method acquisition module is used for acquiring a function method of the original method based on the original method calling method;
the detection mark determining module is used for calling detection judging logic of the quick click event, judging the function method and determining whether a detection mark exists or not;
the quick click detection protocol calling module is used for calling a quick click detection protocol if a detection identifier exists, wherein the quick click detection protocol and the function method are respectively and independently packaged;
the view class object determining module is used for acquiring a parameter set of a function method based on parameter call functions in the rapid click detection protocol, calling a judging method of the view class object and determining the view class object in the parameter set;
the time interval judging module is used for determining clicking events corresponding to the view objects and the time intervals of the clicking events based on a clicking too fast judging function in the fast clicking detection protocol, and judging the time intervals of the clicking events;
and the click processing module is used for determining that the following click event clicks too fast and discarding the following click event when the time interval of each click event does not exceed the preset click interval.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the fast click processing method provided by any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for processing quick clicks provided in any embodiment of the present invention.
According to the technical scheme, the original method and the rapid click detection protocol are packaged independently, the detection mark is set in the function method of the original method, when the detection mark is detected in the function method of the original method, the rapid click detection protocol is called to perform rapid click detection on the function method of the original method, the rapid click detection protocols do not need to be written in the original methods, the problems of redundancy of codes in a system and high maintenance cost are avoided, and the code quality of the system is improved. The rapid click detection protocol is used for judging the time interval of the click event based on a preset click interval, determining whether the click event which is too fast in click exists or not, and processing the click event which is too fast in click according to the time interval judgment result, so that the influence of the too fast in click on the system operation is effectively avoided.
Drawings
Fig. 1 is a flow chart of a fast click processing method according to an embodiment of the present invention;
fig. 2 is a flow chart of a fast click processing method according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of a fast click processing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a fast click processing method according to an embodiment of the present invention, where the embodiment is applicable to preventing a click event from being too fast, and the method may be performed by a fast click processing device according to an embodiment of the present invention, and the device may be integrated in an electronic device such as a mobile phone, a tablet computer, etc. The method specifically comprises the following steps:
s110, calling a method based on an original method, and acquiring a function method of the original method.
S120, invoking detection judgment logic of a quick click event, judging the function method, determining whether a detection mark exists, if yes, executing step S130, and if not, executing step S170.
S130, calling a rapid click detection protocol, wherein the rapid click detection protocol and the function method are respectively and independently packaged.
S140, acquiring an entry parameter set of a function method based on a parameter call function in the rapid click detection protocol, and calling a judgment method of view class objects to determine the view class objects in the entry parameter set.
And S150, determining click events corresponding to the view objects and time intervals of the click events based on a click-over-fast judging function in the fast click detection protocol, and judging the time intervals of the click events.
And S160, when the time interval of each clicking event does not exceed the preset clicking interval, determining that the clicking of the following clicking event is too fast, and discarding the following clicking event.
S170, executing the function method.
The original method may be a method executed by the click event. When the primary method is triggered, detection of a click event is performed during operation. In this embodiment, the fast click detection protocol is used to determine a fast click on any original method. The function method and the rapid click detection protocol of the original method are respectively and independently packaged, and when the function method of the original method has the detection requirement of rapid click, the rapid click detection protocol is called. The different original methods can all call the rapid click detection protocol based on the detection identification, so that the rapid click event detection can be carried out on the different original methods, the rapid click detection protocol does not need to be written into each original method, the problems of redundancy of codes in the system and high maintenance cost are avoided, and the code quality of the system is improved.
The method for obtaining the function method of the original method based on the original method calling method comprises the following steps: calling a signature function to obtain signature information of an original method; and based on the signature information, calling a getMethod () method in the method signature object to determine a function method corresponding to the original method. The signature function may be MethodSignature methodSignature = (method signature) join point. Further, the Method of obtaining the function Method corresponding to the original Method may be method=method signature.
Because the function method of the original method and the rapid click detection protocol are independently packaged, detection identifiers are respectively set in the function method with rapid click detection and are used for calling the rapid click detection protocol. After the function method corresponding to the original method is acquired, whether a detection identifier is set is detected, wherein the detection identifier can be a preset identifier of a quick click detection protocol or descriptive information DelayClick, and the preset identifier can be a unique identifier determined based on the quick click detection protocol, such as a hash value and the like. By setting a unique detection identifier in the function method, the method replaces writing a rapid click detection protocol in each function method, simplifies the code result of the function method, and avoids the redundancy of the system code.
Optionally, the calling the detection judgment logic of the quick click event judges the function method, and determines whether a detection identifier exists, including: and invoking and executing detection judgment logic of the quick click event, wherein the detection judgment logic can be a method. If the execution result of the detection judgment logic is empty, determining that no detection mark exists in the function method, namely the original method does not need to carry out the detection of quick clicking, and ending the original method through a return; if the execution result of the detection judgment logic is a delayClick object of the delayClick type, determining that a detection mark exists in the function method.
When the presence detect identity is determined, a quick click detection protocol is invoked, which in some embodiments may be:
wherein defining @ Retention (Retention policy) for defining the fast click detection protocol to be effective during the operation of the original method and defining @ Target (elementType. METHOD) for defining the fast click detection protocol to be applicable only to the method and not to other types (e.g., variables, classes, parameters, etc.).
The terminal interacts with the user through the interaction page, and the user clicks a button or a control in the interaction page to control the terminal. The input to the original method includes a variety of forms such as, but not limited to, parameters, classes, variables, and the like. The input parameters corresponding to the click event are view class objects, and in this embodiment, whether the click event exists is determined by determining whether the view class object exists in the input parameters. Specifically, each parameter of the original method, namely a parameter set, is obtained, and when a view object exists in the parameter set, a click event is determined to exist.
The original method may be a JoinPount parameter defined as clickPoint, and the parameter of the original method is a ProcedingJoinPount type. The rapid click detection protocol comprises a parameter calling function, wherein the parameter calling function is called, for example, joinPount. GetArgs (), so that a parameter entering set of the function method is obtained, wherein the parameter entering set comprises at least one parameter entering parameter, and each parameter entering parameter is respectively subjected to judgment of a view object. Specifically, the view class object may be determined for a plurality of parameter sets in parallel, or the view class object may be determined for each parameter set in parallel in a cyclic manner until the view class object in the parameter set is determined. In this embodiment, the click event of the user on the original method is accurately acquired through the determined view object, so that the accuracy of rapid click detection is improved.
The fast click detection protocol includes a click-through too fast decision function, and the decision logic of the click-through too fast decision function may be an isFastClick method. Accordingly, click on the excessively fast determination function if (| isFastClick (view, delayclick.value ()). Specifically, the time stamp of each click event is determined, the time interval of any two click events is obtained, and the time interval of any two click events is judged based on a preset click interval delayclick.value () in the click too fast judging function. Alternatively, the preset click interval delayclick.value () may be input in advance by the user, may be set according to the user's requirement, and may be 1500 ms, for example.
When the time interval does not exceed the preset clicking interval, returning to the return true to indicate that the back clicking event clicks too fast, discarding the back clicking event which clicks too fast, and executing the original method only based on the front clicking event; and when the time interval is larger than a preset click interval, returning to return to the return false to indicate that the click of the subsequent click event is normal, and executing the original method based on the two click events respectively. The execution of the original method may be achieved by calling joinopoint.
According to the technical scheme of the embodiment, the original method and the rapid click detection protocol are packaged independently, the detection mark is set in the function method of the original method, when the detection mark is detected in the function method of the original method, the rapid click detection protocol is called to perform rapid click detection on the function method of the original method, the rapid click detection protocols do not need to be written in the original methods, the problems of redundancy of codes in a system and high maintenance cost are avoided, and the code quality of the system is improved. The rapid click detection protocol is used for judging the time interval of the click event based on a preset click interval, determining whether the click event which is too fast in click exists or not, and processing the click event which is too fast in click according to the time interval judgment result, so that the influence of the too fast in click on the system operation is effectively avoided.
Example two
Fig. 2 is a flow chart of a fast click processing method according to a second embodiment of the present invention, where the method includes:
s210, calling a method based on an original method, and acquiring a function method of the original method.
S220, invoking detection judgment logic of the quick click event, judging the function method, determining whether a detection mark exists, if yes, executing step S230, and if not, executing step S200.
S230, a rapid click detection protocol is called, wherein the rapid click detection protocol and the function method are respectively and independently packaged.
S240, creating a View type with the View class Object empty, and defining the type of each parameter in the parameter set as an Object type.
S250, circularly calling a judging method of the View class object, respectively judging whether each parameter in the parameter set is of a View type, and if so, executing a step S260.
S260, converting the parameter into an object of the View type, and assigning the parameter into the View object of the View type.
S270, determining ID information of the view object by calling a click event acquisition function view. GetId () method, and determining the view object with the same ID information.
S280, calculating the time interval of the two click events of the same ID information, and comparing the time interval with a preset click interval delayclick.value ().
And S290, when the time interval of each clicking event does not exceed the preset clicking interval, determining that the clicking speed of the following clicking event is too high, and discarding the following clicking event.
S200, executing the original method.
In this embodiment, when it is determined that the detection identifier exists in the function method of the original method, the join parameter set is obtained by calling the join point. The parameter type of the parameter in the parameter set is unknown, the parameter in the parameter set can be marked as Object, whether the obtained parameter is a view Object is sequentially judged, and when the judgment is successful, the view Object is determined to exist. In this embodiment, the judgment of the view object may be performed on the parameter set based on the for loop mode, so as to improve the judgment efficiency.
On the basis of the above embodiment, the method further includes: and calling an abnormality detection function to detect the abnormality of the original method, throwing the abnormality to a system when the operation abnormality exists in the original method, and terminating the detection of the quick click. Specifically, in the process of acquiring parameter of entering parameters, abnormality detection is carried out on the original method. For example, one implementation logic may be defined: public class ClickJoin { }, and described for the DelayClick protocol in the ClickJoin class, in particular:
@Around("methodAnnotated()")
public void clickPoint(ProceedingJoinPoint joinPoint)throws Throwable{
}
when the original method is abnormal, the abnormality is thrown out in a way of through speed, and abnormality prompt is carried out to the system. By detecting the abnormality of the original method, the condition that the original method cannot normally run is avoided.
Optionally, the step of circularly determining whether each parameter in the parameter set is a view object, and determining the parameter that is successfully determined as the view object includes: creating a View class with a View class object empty, e.g., view = null; and sequentially calling each parameter through a for (Object arg: join point: getArgs ()) loop function, further, calling a view class judging function, for example, arg instanceof View, sequentially judging each parameter in the parameter set, if the judged parameter is a view class, returning the view class judging function to the future, and if the judged parameter is not a view class, returning the view class judging function to the flag. The type of the parameter which is judged to be successful is converted into a View class Object, the View class Object is added into the View class, namely the parameter which returns to a value of wire is determined to be the View class Object, the type of the parameter is converted from an Object class into the View class, and the View class Object is added into a pre-created View class, specifically, the view= (View) arg is obtained.
It should be noted that there is only one view class object in the parameter of the original method. Accordingly, after any parameter is determined to be the View type, the View type determination of the undetermined parameter in the parameter set is terminated, for example, the break is called to terminate for circulation, so that invalid determination after the View type object is determined is avoided. When the view object does not exist in the parameter set of the original method, determining that the click event does not need to be processed in the original method, and continuously executing the original method by calling return to finish the execution of the rapid click detection protocol.
When the time interval between the clicking events corresponding to the view objects is smaller than or equal to the preset clicking interval, determining that the quick clicking condition exists, and processing the quick clicking events to avoid the influence of the excessive quick clicking events on the normal operation of the system.
In this embodiment, a method of getting an object of a DelayClick type by calling DelayClick, delayClick is protocol description information in a fast click detection protocol, and whether the obtained object is clicked too fast is determined by a determination logic for determining fast click. Wherein the decision logic may be an isFastClick method. Accordingly, whether or not to click too fast is judged by a judgment condition of if (| isFastClick (view, delayclick. Value ()).
Optionally, determining the click event corresponding to the view class object and the time interval of each click event includes: determining a corresponding click event according to the identification of the view class object; a time interval for each of the click events is determined based on the time stamp of the click event. The identifier of the view class object may be an ID number of the view class object, for example, the identifier of the view class object may be obtained through a view getId () function. A click event carrying the ID number is determined, for example, whether the ID numbers of the two click events are the same and are the ID numbers of the view class objects is determined. If yes, determining the time interval of the click event of the same view class based on the time stamp of the click event. Alternatively, the time interval between any two adjacent click events of the two time stamps may be determined, or the time interval between any one click event and the first click event may be determined. Comparing the time interval with the input preset click interval delayclick.value (), returning to the return true when the time interval does not exceed the preset click interval, indicating that the following click event clicks too fast, discarding the following click event which clicks too fast, and executing the original method only based on the preceding click event; and when the time interval is larger than a preset click interval, returning to return to the return false to indicate that the click of the subsequent click event is normal, and executing the original method based on the two click events respectively. The execution of the original method may be achieved by calling joinopoint.
According to the technical scheme, when the detection identifier is set in the original method, the quick click detection protocol is called, the View type object in the parameter set of the original function is circularly judged through the quick click detection protocol, the time interval of the click event is determined according to the object ID information of the View type object, the quick click judgment is carried out, the quick click event is discarded, frequent execution of the original method is avoided, and the influence of the excessive speed of clicking on the system operation is avoided.
Example III
Fig. 3 is a schematic structural diagram of a fast click processing device according to a third embodiment of the present invention, where the fast click processing device includes:
a function method obtaining module 310, configured to obtain a function method of an original method based on an original method calling method;
the detection identifier determining module 320 is configured to invoke detection judgment logic of a quick click event, judge the function method, and determine whether a detection identifier exists;
a rapid click detection protocol calling module 330, configured to call a rapid click detection protocol if a detection identifier exists, where the rapid click detection protocol and the function method are respectively and independently packaged;
the view class object determining module 340 is configured to obtain a parameter set of a function method based on a parameter call function in the rapid click detection protocol, and call a determination method of a view class object, to determine the view class object in the parameter set;
a time interval determining module 350, configured to determine a click event corresponding to the view object and a time interval of each click event based on a click-through fast determining function in the fast click detection protocol, and determine a time interval of each click event;
the click processing module 360 is configured to determine that a subsequent click event clicks too fast and discard the subsequent click event when the time interval of each click event does not exceed the preset click interval.
Optionally, the function method obtaining module 310 is configured to:
calling a signature function to obtain signature information of an original method;
and based on the signature information, calling a getMethod () method in the method signature object to determine a function method corresponding to the original method.
Optionally, the detection identifier determining module 320 is configured to:
invoking and executing detection judgment logic of the quick click event;
if the execution result of the detection judgment logic is null, determining that a detection mark does not exist in the function method;
and if the execution result of the detection judgment logic is a delayClick object of the delayClick type, determining that a detection mark exists in the function method.
Optionally, the view class object determining module 340 is configured to:
creating a View type with the View class object empty;
defining the type of each parameter in the parameter set as an Object type;
a judging method of the View class object is circularly called, and whether each parameter in the parameter set is of a View type is respectively judged;
if yes, converting the parameter into an object of the View type, and assigning the parameter into the View object of the View type.
Optionally, the view class object determining module 340 is further configured to:
and after any parameter is judged to be of the View type, terminating judging the View type of the undetermined parameter in the parameter set.
Optionally, the time interval determination module 350 is configured to:
determining ID information of a view object by calling a click event acquisition function view.getId () method, and determining the view object with the same ID information;
and calculating the time interval of the two click events of the same ID information, and comparing the time interval with a preset click interval delayclick.value ().
Optionally, the apparatus further comprises:
and the abnormality detection module is used for calling an abnormality detection function to detect the abnormality of the original method, throwing the abnormality to a system when the operation abnormality exists in the original method, and terminating the detection of the quick click.
The quick click processing device can execute the quick click processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the quick click processing method.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an electronic device 412 suitable for use in implementing embodiments of the invention. The electronic device 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention. Device 412 is typically an electronic device that assumes image classification functionality.
As shown in FIG. 4, the electronic device 412 is in the form of a general purpose computing device. Components of electronic device 412 may include, but are not limited to: one or more processors 416, a storage 428, and a bus 418 that connects the various system components (including the storage 428 and the processors 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a Compact Disc-Read Only Memory (CD-ROM), digital versatile Disc (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
Programs 436 having a set (at least one) of program modules 426 may be stored, for example, in storage 428, such program modules 426 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 426 typically carry out the functions and/or methods of the embodiments described herein.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), one or more devices that enable a user to interact with the electronic device 412, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 412 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a local area network (Local Area Network, LAN), a wide area network Wide Area Network, a WAN) and/or a public network, such as the internet) via the network adapter 420. As shown, network adapter 420 communicates with other modules of electronic device 412 over bus 418. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 412, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 416 executes various functional applications and data processing by running a program stored in the storage device 428, for example, to implement the quick click processing method provided by the above-described embodiment of the present invention.
Example five
The present embodiments provide a storage medium containing computer executable instructions that, when executed by a computer processor, are used to perform related operations in a method of fast click processing provided by any of the embodiments of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, where the instructions include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the quick click processing method according to the embodiments of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method for processing a quick click, comprising:
based on an original method calling method, obtaining a function method of the original method;
invoking detection judgment logic of a quick click event, judging the function method, and determining whether a detection mark exists or not;
if yes, a rapid click detection protocol is called, wherein the rapid click detection protocol and the function method are respectively and independently packaged;
acquiring a parameter entering set of a function method of the original method based on a parameter calling function in the rapid click detection protocol, calling a judging method of a view class object, and determining the view class object in the parameter entering set;
determining click events corresponding to the view objects and time intervals of the click events based on a click-over-fast judging function in the fast click detection protocol, and judging the time intervals of the click events;
and when the time interval of each clicking event does not exceed the preset clicking interval, determining that the following clicking event clicks too fast, and discarding the following clicking event.
2. The method according to claim 1, wherein the obtaining the function method of the original method based on the original method calling method includes:
calling a signature function to obtain signature information of an original method;
and based on the signature information, calling a getMethod () method in the method signature object to determine a function method corresponding to the original method.
3. The method of claim 1, wherein the invoking the detection determination logic for the quick click event determines whether a detection flag exists for the function method, comprising:
invoking and executing detection judgment logic of the quick click event;
if the execution result of the detection judgment logic is null, determining that a detection mark does not exist in the function method;
and if the execution result of the detection judgment logic is a delayClick object of the delayClick type, determining that a detection mark exists in the function method.
4. The method of claim 1, wherein the calling a view class object determination method to determine a view class object in the parameter set includes:
creating a View type with the View class object empty;
defining the type of each parameter in the parameter set as an Object type;
a judging method of the View class object is circularly called, and whether each parameter in the parameter set is of a View type is respectively judged;
if yes, converting the parameter into an object of the View type, and assigning the parameter into the View object of the View type.
5. The method according to claim 4, wherein the method further comprises:
and after any parameter is judged to be of the View type, terminating judging the View type of the undetermined parameter in the parameter set.
6. The method of claim 1, wherein the determining click events corresponding to the view class object based on the click-through-fast-decision function in the fast-click detection protocol and the time intervals of the click events, deciding the time intervals of the click events, comprises:
determining ID information of a view object by calling a click event acquisition function view.getId () method, and determining the view object with the same ID information;
and calculating the time interval of the two click events of the same ID information, and comparing the time interval with a preset click interval delayclick.value ().
7. The method of claim 1, wherein the method further comprises;
and calling an abnormality detection function to detect the abnormality of the original method, throwing the abnormality to a system when the operation abnormality exists in the original method, and terminating the detection of the quick click.
8. A quick click processing device, comprising:
the function method acquisition module is used for acquiring a function method of the original method based on the original method calling method;
the detection mark determining module is used for calling detection judging logic of the quick click event, judging the function method and determining whether a detection mark exists or not;
the quick click detection protocol calling module is used for calling a quick click detection protocol if a detection identifier exists, wherein the quick click detection protocol and the function method are respectively and independently packaged;
the view class object determining module is used for acquiring a parameter entering set of a function method of the original method based on a parameter calling function in the rapid click detection protocol, calling a judging method of the view class object and determining the view class object in the parameter entering set;
the time interval judging module is used for determining clicking events corresponding to the view objects and the time intervals of the clicking events based on a clicking too fast judging function in the fast clicking detection protocol, and judging the time intervals of the clicking events;
and the click processing module is used for determining that the following click event clicks too fast and discarding the following click event when the time interval of each click event does not exceed the preset click interval.
9. An electronic device, the device comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the fast click processing method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the fast click processing method according to any one of claims 1-7.
CN202010542704.7A 2020-06-15 2020-06-15 Quick click processing method and device, storage medium and electronic equipment Active CN113867553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010542704.7A CN113867553B (en) 2020-06-15 2020-06-15 Quick click processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010542704.7A CN113867553B (en) 2020-06-15 2020-06-15 Quick click processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113867553A CN113867553A (en) 2021-12-31
CN113867553B true CN113867553B (en) 2023-09-26

Family

ID=78980849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010542704.7A Active CN113867553B (en) 2020-06-15 2020-06-15 Quick click processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113867553B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000056916A (en) * 1998-08-06 2000-02-25 Takenaka Komuten Co Ltd Hand pointing device
CN103678492A (en) * 2013-11-13 2014-03-26 复旦大学 Web click counting method based on web crawler behavior identification and buffering updating strategies
CN105335062A (en) * 2015-09-23 2016-02-17 小米科技有限责任公司 Information editing operation processing method and apparatus
CN105653724A (en) * 2016-01-20 2016-06-08 北京京东尚科信息技术有限公司 Page exposure monitoring method and device
CN106445935A (en) * 2015-08-05 2017-02-22 腾讯科技(深圳)有限公司 Misjudgment processing method and device of click data
CN106775074A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 The method of controlling operation thereof and device of terminal
CN107168757A (en) * 2017-03-31 2017-09-15 武汉斗鱼网络科技有限公司 A kind of Android ends prevent View controls from clicking on the method and device of shake
CN107526589A (en) * 2017-08-04 2017-12-29 北京五八信息技术有限公司 Page display method and device
CN110058757A (en) * 2016-09-06 2019-07-26 苹果公司 For carrying out the device and method of processing and disambiguation to touch input
CN110837317A (en) * 2019-10-28 2020-02-25 华为终端有限公司 Method, device and equipment for preventing user from mistakenly touching on display interface

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080085100A (en) * 2007-01-16 2008-09-23 엔에이치엔(주) Method and apparatus for monitoring improper clicks
US20120120002A1 (en) * 2010-11-17 2012-05-17 Sony Corporation System and method for display proximity based control of a touch screen user interface
CN104580244B (en) * 2015-01-26 2018-03-13 百度在线网络技术(北京)有限公司 The defence method and device clicked maliciously
US10892968B2 (en) * 2015-12-18 2021-01-12 Google Llc Systems and methods for latency reduction in content item interactions using client-generated click identifiers
US10970139B2 (en) * 2018-03-28 2021-04-06 Google Llc Controlling the triggering of function calls from content items

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000056916A (en) * 1998-08-06 2000-02-25 Takenaka Komuten Co Ltd Hand pointing device
CN103678492A (en) * 2013-11-13 2014-03-26 复旦大学 Web click counting method based on web crawler behavior identification and buffering updating strategies
CN106445935A (en) * 2015-08-05 2017-02-22 腾讯科技(深圳)有限公司 Misjudgment processing method and device of click data
CN105335062A (en) * 2015-09-23 2016-02-17 小米科技有限责任公司 Information editing operation processing method and apparatus
CN105653724A (en) * 2016-01-20 2016-06-08 北京京东尚科信息技术有限公司 Page exposure monitoring method and device
CN110058757A (en) * 2016-09-06 2019-07-26 苹果公司 For carrying out the device and method of processing and disambiguation to touch input
CN106775074A (en) * 2016-12-05 2017-05-31 广东欧珀移动通信有限公司 The method of controlling operation thereof and device of terminal
CN107168757A (en) * 2017-03-31 2017-09-15 武汉斗鱼网络科技有限公司 A kind of Android ends prevent View controls from clicking on the method and device of shake
CN107526589A (en) * 2017-08-04 2017-12-29 北京五八信息技术有限公司 Page display method and device
CN110837317A (en) * 2019-10-28 2020-02-25 华为终端有限公司 Method, device and equipment for preventing user from mistakenly touching on display interface

Also Published As

Publication number Publication date
CN113867553A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US20110179488A1 (en) Kernal-based intrusion detection using bloom filters
CN108287769B (en) Information processing method and device
US11663105B2 (en) String pattern matching for multi-string pattern rules in intrusion detection
EP3488346B1 (en) Anomaly detection using sequences of system calls
JP5692414B2 (en) Detection device, detection program, and detection method
WO2020019485A1 (en) Simulator identification method, identification device, and computer readable medium
CN113032777B (en) Web malicious request detection method and equipment
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
CN111597553A (en) Process processing method, device, equipment and storage medium in virus searching and killing
WO2022199292A1 (en) Detection of malicious behavior of applet
CN113867553B (en) Quick click processing method and device, storage medium and electronic equipment
US11361077B2 (en) Kernel-based proactive engine for malware detection
CN114513341B (en) Malicious traffic detection method, malicious traffic detection device, terminal and computer readable storage medium
CN115617564A (en) Processing method and device for kernel exception, electronic equipment and storage medium
CN107392606B (en) Account management method and device
CN113010885B (en) Method and device for detecting kernel thread disguised with start address
CN114237981A (en) Data recovery method, device, equipment and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN109214212B (en) Information leakage prevention method and device
US9176806B2 (en) Computer and memory inspection method
CN112181641A (en) Thread processing method, device, equipment and storage medium
CN111989693A (en) Biometric identification method and device
CN111881459B (en) Equipment risk control system and detection method based on trusted computing environment
US20230245421A1 (en) Face clustering method and apparatus, classification storage method, medium and electronic device
CN113867701A (en) Container object instantiation method and device, storage medium and electronic equipment

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