CN110881001B - Electronic red packet detection method, system and terminal equipment - Google Patents

Electronic red packet detection method, system and terminal equipment Download PDF

Info

Publication number
CN110881001B
CN110881001B CN201811037247.5A CN201811037247A CN110881001B CN 110881001 B CN110881001 B CN 110881001B CN 201811037247 A CN201811037247 A CN 201811037247A CN 110881001 B CN110881001 B CN 110881001B
Authority
CN
China
Prior art keywords
message
electronic red
red packet
new instant
view
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
CN201811037247.5A
Other languages
Chinese (zh)
Other versions
CN110881001A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811037247.5A priority Critical patent/CN110881001B/en
Publication of CN110881001A publication Critical patent/CN110881001A/en
Application granted granted Critical
Publication of CN110881001B publication Critical patent/CN110881001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of communication, and provides an electronic red packet detection method, a system and terminal equipment, by detecting the system type of the terminal to determine the view characteristics of the electronic red packet message corresponding to the system type, when the update of the instant communication message is detected, judging whether the instant communication message is the message received/sent by the electronic red packet software, and judging whether the instant messaging message is the electronic red packet message according to the view characteristics of the instant messaging message and the view characteristics of the electronic red packet message corresponding to the system type, so as to prompt that the electronic red packet is detected when the instant messaging message is the electronic red packet message, the electronic red packet can be quickly, efficiently and accurately detected and prompt can be timely sent according to the system type of the terminal, the detection speed and accuracy of the electronic red packet are improved, the influence of terminal system upgrading is avoided, and the method and the device can be suitable for terminals of different system types.

Description

Electronic red packet detection method, system and terminal equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an electronic red packet detection method, an electronic red packet detection system and terminal equipment.
Background
With the continuous development of communication technology, various terminal devices with communication functions are developed endlessly, and the functional requirements of people on the terminal devices are higher and higher, and besides the basic communication function, the existing terminal devices with communication functions can be provided with various functional software according to the actual needs of users. Among the commonly used functional software, instant messaging software such as WeChat and QQ is popular because of its real-time nature for receiving and sending messages, and has functions of electronic payment, electronic red envelope, online game, etc. In order to help users to rob the electronic red packet in time, various electronic red packet monitoring applications are developed, and interestingness of the electronic red packet is greatly improved.
However, the existing electronic red packet detection method is difficult to detect the electronic red packet timely and effectively for a long time, is easy to lose efficacy after the system of the terminal is upgraded, cannot be applied to terminals of different system types, and has an unsatisfactory detection effect.
Disclosure of Invention
In view of this, embodiments of the present application provide an electronic red packet detection method, system and terminal device, so as to solve the problems that the existing electronic red packet detection method is difficult to detect an electronic red packet timely and effectively for a long time, is easy to fail after a system of a terminal is upgraded, cannot be applied to terminals of different system types, and has an unsatisfactory detection effect.
A first aspect of an embodiment of the present application provides an electronic red packet detection method, which includes:
detecting a system type of a terminal to determine a view characteristic of an electronic red packet message corresponding to the system type;
when receiving a new instant communication message, judging whether the new instant communication message is a message received/sent by electronic red packet software;
when the new instant communication message is a message received/sent by electronic red packet software, judging whether the new instant communication message is an electronic red packet message or not according to the view characteristics of the new instant communication message and the view characteristics of the electronic red packet message corresponding to the system type;
and when the new instant communication message is the electronic red packet message, prompting that the electronic red packet is detected.
A second aspect of an embodiment of the present application provides an electronic red packet detection system, which includes:
the system type detection module is used for detecting the system type of the terminal so as to determine the view characteristics of the electronic red packet message corresponding to the system type;
the first judging module is used for judging whether a new instant communication message is received/sent by the electronic red packet software or not when the new instant communication message is received;
the second judging module is used for judging whether the new instant communication message is the electronic red packet message or not according to the view characteristic of the new instant communication message and the view characteristic of the electronic red packet message corresponding to the system type when the new instant communication message is the message received/sent by the electronic red packet software;
and the prompt module is used for prompting that the electronic red packet is detected when the new instant communication message is the electronic red packet message.
A third aspect of the embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the above-described method.
According to the embodiment of the application, the system type of the terminal is detected to determine the view characteristic of the electronic red packet message corresponding to the system type, when the updating of the instant communication message is detected, whether the instant communication message is the message received/sent by the electronic red packet software is judged, whether the instant communication message is the electronic red packet message is judged according to the view characteristic of the instant communication message and the view characteristic of the electronic red packet message corresponding to the system type, when the instant communication message is the electronic red packet message, the electronic red packet is detected in a prompt mode, the electronic red packet can be detected quickly, efficiently and accurately according to the system type of the terminal, the detection speed and the accuracy of the electronic red packet are improved, the electronic red packet is not influenced by the upgrading of a terminal system, and the electronic red packet detection method and the electronic red packet detection device are suitable for terminals of different system types.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an electronic red packet detection method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an electronic red packet detection method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an electronic red packet detection method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an operation flow of an electronic red envelope application according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a layout format of an electronic red envelope message according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an electronic red packet detection method according to a second embodiment of the present application;
fig. 7 is a schematic flowchart of an electronic red packet detection method according to a second embodiment of the present application;
fig. 8 is a schematic flowchart of an electronic red packet detection method according to a third embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic red packet detection system according to a fourth embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present application.
Detailed Description
In order to make the technical solutions of the embodiments of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprises" and "comprising," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, product, or device that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, product, or device. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
Example one
The embodiment provides an electronic red packet detection method, which is applied to mobile terminals such as mobile phones, tablet computers, personal digital assistants and the like, and also applied to computing equipment such as desktop computers, notebooks, palm computers and the like, which can run instant messaging software and receive instant messaging messages.
In a specific application, the instant messaging software is software for realizing online chat and communication by an instant messaging technology, for example, WeChat, QQ, Baidu HI, Skype, Gtalk, Xinlang UC, MSN, microblog, nailing, Paibao, and the like.
In one embodiment, the electronic red packet detection method is applied to an Android (Android) terminal.
As shown in fig. 1, the method for detecting an electronic red packet provided by this embodiment includes:
step S101, detecting a system type of a terminal to determine a view characteristic of an electronic red packet message corresponding to the system type.
In this embodiment, the System type refers to a type of an Operating System (OS for short) and/or a version of the Operating System, common System types include Android (Android), iOS, Linux, Windows, and the like, and the Operating System of the same type may have a plurality of different versions, for example, Windows 7, Windows8, Windows10, and the like.
In a specific application, the display parameters of the content displayed on the interface of the terminal are different according to different types of operating systems of the terminal, so that the view characteristics of the electronic red envelope message displayed by the terminal are different according to different types of operating systems. The version of the operating system of the terminal is different, and the display parameters of the content displayed on the interface are also different, so that the view characteristics of the electronic red packet message displayed by the terminal are different. The system type may include at least one of a type of operating system and a version of the operating system.
As shown in fig. 2, in one embodiment, step S101 includes:
step S201, acquiring equipment information of a terminal, and determining a system type of the terminal according to the equipment information;
step S202, according to the pre-established association relationship between the system type and the view characteristics of the electronic red packet message, the view characteristics of the electronic red packet message corresponding to the system type of the terminal are searched.
In a specific application, the device information of the terminal mainly includes: the type and version of the operating system can be obtained according to the system version number in the equipment information.
In a specific application, the association between the system type and the view feature of the electronic red packet message is specifically a corresponding relationship or a mapping relationship, and the association between the system type and the view feature of the electronic red packet message may be established by establishing a corresponding relationship table, a mapping relationship table, or a look-up-table (LUT) format, or may be implemented by using other data tables or Random Access Memory (RAM) storage media having input data with the same function as the display lookup table, that is, searching for corresponding output data according to the input data
Step S102, when receiving a new instant communication message, judging whether the new instant communication message is a message received/sent by the electronic red packet software.
In this embodiment, the instant messaging message refers to an instant messaging message received and sent by instant messaging software capable of receiving and generating an electronic red packet.
In a specific application, only part of types of instant messaging software have functions of receiving and sending electronic red packet, so that whether a received new instant messaging message is received or sent by the electronic red packet software can be preliminarily determined by judging whether the new instant messaging message is the electronic red packet message.
As shown in fig. 3, in one embodiment, step S102 includes:
step S301, detecting whether the data of a list view (listview) control is updated;
step S302, when the data of the list view control is updated, judging that a new instant communication message is received; otherwise, judging that no new instant communication message is received.
In a specific application, typical instant messaging software such as WeChat, after a received instant messaging message (e.g., WeChat message) is an electronic red packet message, a self-contained electronic red packet application thereof sequentially starts and executes a push process, an activitythread, a listview, an imageview, a bitmap, and an electronic red packet manager operation, and finally generates an electronic red packet. The push process is used for pushing messages; activitythread is the main thread (UI thread) of the android application; the listview (list view) is a commonly used control in the android system, and can display data in a list form and display elements contained in content to be displayed in the list form; the main function of imageview is to display pictures, can be adapted to any layout, enables setting of aspect ratio, maximum height, maximum width of the displayed pictures, and can provide scaling and shading operations; the Bitmap is one of the most important classes for image processing in the android system, can acquire information of an image file, performs operations such as image cutting, rotation and scaling, and can save the image file in a specified format; the electronic red envelope manager is used for generating the electronic red envelope message after the electronic red envelope picture is generated.
As shown in fig. 4, an exemplary operation flow diagram illustrating an electronic red packet application generating an electronic red packet is shown, where the operation flow is sequentially electronic red packet message (1. receive electronic red packet message) → push process (2. notifyrece, message push) → activitythread (3.activitythread, activitythread thread to red packet manager, and a detection window operation is performed between the electronic red packet message and the red packet manager, that is, a UI (user interface) thread) → listview (4.Obtainview, detection message update) → imageview (5. updataview, update red packet thumbnail) (6.CheckLM, check red packet thumbnail feature) → electronic red packet manager (electronic red packet acceleration).
In this embodiment, by monitoring the listview control in the process of generating the electronic red packet by the electronic red packet application, when the listview operation is executed, whether the data of the listview control is updated or not is detected, and it can be timely and effectively determined that a new instant messaging message is received.
In a specific application, the data of the listview control comprises all data displayed in a list form for displaying the electronic red packet message.
Step S103, when the new instant communication message is a message received/sent by the electronic red packet software, judging whether the new instant communication message is the electronic red packet message or not according to the view characteristics of the new instant communication message and the view characteristics of the electronic red packet message corresponding to the system type.
In a specific application, the instant messaging messages generally include various types of messages such as emoticons, pictures, videos, audios, texts, electronic red packets, character pictures and the like. The view characteristics of different types of instant messaging messages are different. The electronic red packet message mainly comprises an electronic red packet picture, and the view characteristics of the electronic red packet picture are mainly view characteristics related to the electronic red packet picture.
In one embodiment, the view characteristics include the number of layout layers of the view and the type of layout per layer.
In a specific application, the number of layout layers of different types of instant messaging messages and the type of each layer of layout are not completely the same, and for instant messaging messages of the same type (e.g., electronic red packet messages), the number of layout layers of instant messaging messages corresponding to different system types and the type of each layer of layout are also not completely the same.
As shown in fig. 5, the layout format of an electronic red packet message received or sent by WeChat software based on a specific version of android system is exemplarily shown, and the number of layout layers is seven; among the types of layouts are P (i.e., P tag), LinearLayout (Linear layout), TextView (text editor) 22:36 (time), CheckBox (check box), MaskLayout (layout), ImageView (image view), RelativeLayout (relative layout).
In a specific application, linear layout and relative layout belong to six basic layouts of an Android system, and the other four layouts are respectively: TableLayout, FrameLayout, Absolute layout, and GridLayout. The table layout is a subclass of linear layout, and the grid layout is a layout added after the android 4.0 version.
And step S104, when the new instant communication message is an electronic red packet message, prompting that the electronic red packet is detected.
In this embodiment, when it is determined that the received instant messaging message is an electronic red packet message, a prompt is sent, so that the user can know that the electronic red packet is detected in time, and the user can prepare to perform an electronic red packet robbing operation before the electronic red packet message is displayed.
In a specific application, the user may be prompted to detect the electronic red packet through any feasible human-computer interaction manner, for example, the user may be prompted by sending a notification message of text, picture, voice, or the like, specifically, the notification message may be a short message, a popup message, a special device prompt tone, a special ring tone, or the like.
In one embodiment, step S104 includes:
when the picture is an electronic red packet picture, detecting the electronic red packet type to which the instant communication message belongs;
when the instant messaging message is a common red packet, prompting that the common red packet is detected;
and when the instant communication message is the hand-qi-piecing red packet, prompting that the hand-qi-piecing red packet is detected.
In specific application, the sum of each common red packet is equal, the sum of the hand-pieced gas red packets is random, the hand-pieced gas red packets are more interesting and entertaining compared with the common red packets, and the types of the electronic red packets can be known in advance by distinguishing the common red packets and the hand-pieced gas red packets for prompting a user before red packet-piecing operation, so that the red packets can be selectively received.
In this embodiment, the system type of the terminal is detected to determine the view feature of the electronic red packet message corresponding to the system type, when the update of the instant messaging message is detected, whether the instant messaging message is a message received/sent by the electronic red packet software is judged, and whether the instant messaging message is the electronic red packet message is judged according to the view feature of the instant messaging message and the view feature of the electronic red packet message corresponding to the system type, so that when the instant messaging message is the electronic red packet message, the detection of the electronic red packet is prompted, the electronic red packet can be quickly, efficiently and accurately detected according to the system type of the terminal, and the prompt is sent in time, so that the detection speed and accuracy of the electronic red packet are improved, the method is not affected by the upgrade of the terminal system, and can be applied to terminals of different system types.
Example two
As shown in fig. 6, in the present embodiment, step S102 in the first embodiment includes:
step S601, when a new instant communication message is received, acquiring the item view type of the new instant communication message.
In a specific application, the item view type refers to the type of ItemView (item view), and generally includes the name of the message sending or receiving software and the related characteristics of the message sent by the software, for example, the item view type of the instant messaging message sent by the WeChat includes the WeChat name and the related characteristics of the WeChat data.
As shown in fig. 7, in one embodiment, step S601 includes:
step S701, when a new instant messaging message is received, calling a structure of a list view control and a new view (makeAndAddAddView) method;
step S702, calling an acquisition view (obtainView) method through the structure and the new view method to acquire the item view type of the new instant messaging message.
In a specific application, the makeandadd view method refers to a method function for constructing or adding a view in a ListView control as a name, and the obatiniview method refers to a method function for acquiring a view called and executed by the makeandadd view method.
Step S602, judging whether the new instant communication message is a message received/sent by the electronic red packet software according to the item view type of the new instant communication message.
In a specific application, the item view types of the instant messaging messages sent or received by different instant messaging software are different, for example, the item view type of the instant messaging message sent or received by the WeChat includes the WeChat name, and the item view type of the instant messaging message sent or received by the Payment treasure includes the Payment treasure name.
In one embodiment, the item view type includes a name of instant messenger receiving/sending the new instant messenger message.
In one embodiment, step S602 includes:
step S6021, according to the name of the instant communication software for receiving/transmitting the new instant communication message, judging whether the instant communication software for receiving/transmitting the new instant communication message is electronic red packet software;
step S6022, when the instant communication software for receiving/transmitting the new instant communication message is the electronic red packet software, determining that the new instant communication message is the message received/transmitted by the electronic red packet software.
Step S6021 includes:
judging whether the name of the instant messaging software for receiving/sending the new instant messaging message is the name of the electronic red packet software or not;
when the name of the instant messaging software for receiving/transmitting the new instant messaging message is the name of the electronic red packet software, judging that the instant messaging software for receiving/transmitting the new instant messaging message is the electronic red packet software; otherwise, judging that the instant communication software for receiving/transmitting the new instant communication message is not the electronic red packet software.
Step S603, when the item view type of the new instant messaging message belongs to the item view type of the electronic red packet software, determining that the new instant messaging message is a message received/sent by the electronic red packet software.
In a specific application, as long as the item view type of the new instant messaging message belongs to one of the item view types of any electronic red packet software, the new instant messaging message can be judged to be a message received/sent by the electronic red packet software.
In this embodiment, by determining whether the ItemView type of the new instant messaging message belongs to the ItemView type of the electronic red packet software, it may be quickly determined whether the new instant messaging message is a message received/transmitted by the electronic red packet software, so that the determination range may be narrowed, it may be preliminarily determined that the new instant messaging message may be the electronic red packet message, a determination basis is provided for subsequently and further accurately determining whether the new instant messaging message is the electronic red packet message, when the item view type of the new instant messaging message does not belong to the item view type of the electronic red packet software, it may be determined that the new instant messaging message is not a message received/transmitted by the electronic red packet software, so that the subsequent determination step is not continuously performed, and the detection time is saved.
EXAMPLE III
As shown in fig. 8, in the present embodiment, step S103 in the first embodiment includes:
step S801, when the new instant messaging message is a message received/sent by the electronic red packet software, determining whether the number of layout layers of the new instant messaging message is equal to the number of layout layers of the electronic red packet message corresponding to the system type.
In a specific application, the number of layout layers of the electronic red packet messages received/transmitted by the instant messaging software with the electronic red packet function installed in the terminal of the same system type and system version is determined, for example, the number of layout layers of the WeChat red packet shown in FIG. 4 is seven. After the system type is changed or the system version is upgraded, the number of layout layers of the electronic red packet received/transmitted by the system may be changed, at this time, the number of layout layers needs to be determined again, and the number of layout layers can be directly detected according to a system program, or a user can manually set the number of layout layers. The layout layer number of the electronic red packet message received/transmitted by the terminal is changed when the version of the instant messaging software with the electronic red packet function is changed, and the layout layer number also needs to be determined again after the version of the electronic red packet software is upgraded.
Step S802, when the number of layout layers of the new instant messaging message is equal to the number of layout layers of the electronic red packet message corresponding to the system type, sequentially judging whether the type of each layer of layout of the new instant messaging message is the same as the type of the corresponding layout of the electronic red packet message corresponding to the system type.
In specific application, in order to increase the determination speed and improve the determination efficiency, the type of each layer of layout of the new instant messaging message can be sequentially determined whether to be the same as the type of the corresponding layout of the electronic red packet message or not in a manner of determining layer by layer from the surface layer to the inner layer.
In one embodiment, the determination from the inner layer to the surface layer may also be followed.
Step S803, when the types of all layouts of the new instant messaging message are the same as the types of the corresponding layouts of the electronic red packet message corresponding to the system type, judging that the new instant messaging message is the electronic red packet message;
step S804, when the type of any layout of the new instant messaging message is different from the type of the corresponding layout of the electronic red packet message corresponding to the system type, determining that the new instant messaging message is not the electronic red packet message.
In a specific application, when the layout of each layer of the new instant messaging message is the same as the type of the corresponding layout of the electronic red packet message, the new instant messaging message is judged to be the electronic red packet message, and as long as the layout types of one layer are different, the new instant messaging message is judged not to be the electronic red packet message.
In the embodiment, whether the type of each layer of layout of the new instant messaging message is the same as the type of the corresponding layout of the electronic red packet message is sequentially judged, and when any type of layout of the new instant messaging message is different from the type of the corresponding layout of the electronic red packet message, the new instant messaging message is judged not to be the electronic red packet message, so that the detection efficiency can be improved, and when any type of layout is different, the continuous judgment of the types of other layouts is stopped in time; the new instant messaging message is judged to be the electronic red packet message only when the types of all layouts of the new instant messaging message are the same as the types of the corresponding layouts of the electronic red packet message, so that the accuracy of the detection result can be effectively improved.
Example four
The present embodiment provides an electronic red packet detecting system, configured to execute the method steps in the first, second, or third embodiment, where the electronic red packet detecting system may be a software program device in a mobile terminal such as a mobile phone, a tablet computer, a personal digital assistant, or a computing device such as a desktop computer, a notebook, a palm computer, which can run an instant messaging software and receive an instant messaging message.
In one embodiment, the electronic red envelope detection system is a software program device of an Android (Android) terminal.
As shown in fig. 9, the electronic red packet detecting system 9 provided in this embodiment includes:
a system type detection module 901, configured to detect a system type of a terminal to determine a view feature of an electronic red packet message corresponding to the system type;
a first judging module 902, configured to, when a new instant messaging message is received, judge whether the new instant messaging message is a message received/sent by the electronic red packet software;
a second determining module 903, configured to determine, when the new instant messaging message is a message received/sent by electronic red packet software, whether the new instant messaging message is an electronic red packet message according to the view feature of the new instant messaging message and the view feature of the electronic red packet message corresponding to the system type;
and a prompt module 904, configured to prompt that an electronic red packet is detected when the new instant messaging message is an electronic red packet message.
In one embodiment, the system type detection module 901 includes:
the device information acquisition unit is used for acquiring the device information of the terminal and determining the system type of the terminal according to the device information;
and the searching unit is used for searching the view characteristics of the electronic red packet message corresponding to the system type of the terminal according to the pre-established association relationship between the system type and the view characteristics of the electronic red packet message.
In one embodiment, the electronic red envelope detection system 9 further comprises a new message detection module for:
detecting whether the data of the list view control is updated or not;
when the data of the list view control is updated, judging that a new instant communication message is received; otherwise, judging that no new instant communication message is received.
In one embodiment, the first determining module 902 includes:
the view type acquisition unit is used for acquiring the item view type of a new instant communication message when the new instant communication message is received;
the first judging unit is used for judging whether the new instant communication message is a message received/sent by the electronic red packet software according to the item view type of the new instant communication message;
a second judging unit, configured to judge that the new instant messaging message is a message received/sent by electronic red packet software when the item view type of the new instant messaging message belongs to the item view type of the electronic red packet software; otherwise, judging that the new instant communication message is not a message received/sent by the electronic red packet software.
In one embodiment, the second determination module 903 comprises:
a third judging unit, configured to judge whether the number of layout layers of the new instant messaging message is equal to the number of layout layers of the electronic red packet message corresponding to the system type when the new instant messaging message is a message received/sent by the electronic red packet software;
a fourth judging unit, configured to sequentially judge whether a type of layout of each layer of the new instant messaging message is the same as a type of a corresponding layout of the electronic red packet message corresponding to the system type when the number of layout layers of the new instant messaging message is equal to the number of layout layers of the electronic red packet message corresponding to the system type;
a fifth judging unit, configured to judge that the new instant messaging message is an electronic red packet message when the types of all layouts of the new instant messaging message are the same as the types of corresponding layouts of the electronic red packet message corresponding to the system type;
a sixth determining unit, configured to determine that the new instant messaging message is not an electronic red packet message when the type of any layout of the new instant messaging message is different from the type of the corresponding layout of the electronic red packet message corresponding to the system type.
In one embodiment, the hints module 904 comprises:
the detection unit is used for detecting the electronic red packet type of the instant communication message when the picture is the electronic red packet picture;
the first prompting unit is used for prompting that a common red packet is detected when the instant communication message is the common red packet;
and the second prompting unit is used for prompting that the hand-qi-piecing red packet is detected when the instant communication message is the hand-qi-piecing red packet.
The embodiment determines the view characteristics of the electronic red packet message corresponding to the system type by detecting the system type of the terminal, judges whether the instant messaging message is the message received/sent by the electronic red packet software when the update of the instant messaging message is detected, and judges whether the instant messaging message is the electronic red packet message according to the view characteristics of the instant messaging message and the view characteristics of the electronic red packet message corresponding to the system type, so that when the instant messaging message is the electronic red packet message, the electronic red packet is detected, the electronic red packet can be quickly, efficiently and accurately detected according to the system type of the terminal, the prompt is sent out in time, the detection speed and the accuracy of the electronic red packet are improved, the influence of the upgrade of a terminal system is avoided, and the method and the device can be suitable for terminals of different system types.
EXAMPLE five
As shown in fig. 10, the present embodiment provides a terminal device, which includes: a processor 100, a memory 101 and a computer program 102, such as an electronic red packet detection program, stored in said memory 101 and executable on said processor 100. The processor 100, when executing the computer program 102, implements the steps in the above-mentioned embodiments of the electronic red packet detecting method, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 100, when executing the computer program 102, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 901 to 904 shown in fig. 9.
Illustratively, the computer program 102 may be partitioned into one or more modules/units that are stored in the memory 101 and executed by the processor 100 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 102 in the terminal device 10. For example, the computer program 102 may be divided into a system type detection module, a first determination module, a second determination module, and a prompt module, and the specific functions of each module are as follows:
the system type detection module is used for detecting the system type of the terminal so as to determine the view characteristics of the electronic red packet message corresponding to the system type;
the first judging module is used for judging whether a new instant communication message is received/sent by the electronic red packet software or not when the new instant communication message is received;
the second judging module is used for judging whether the new instant communication message is the electronic red packet message or not according to the view characteristic of the new instant communication message and the view characteristic of the electronic red packet message corresponding to the system type when the new instant communication message is the message received/sent by the electronic red packet software;
and the prompt module is used for prompting that the electronic red packet is detected when the new instant communication message is the electronic red packet message.
The terminal device 10 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor 100, a memory 101. Those skilled in the art will appreciate that fig. 10 is merely an example of a terminal device 10 and does not constitute a limitation of terminal device 10 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, 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, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 101 may be an internal storage unit of the terminal device 10, such as a hard disk or a memory of the terminal device 10. The memory 101 may also be an external storage device of the terminal device 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 10. Further, the memory 101 may also include both an internal storage unit and an external storage device of the terminal device 10. The memory 101 is used for storing the computer program and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (8)

1. An electronic red packet detection method is characterized by comprising the following steps:
detecting a system type of a terminal to determine a view characteristic of an electronic red packet message corresponding to the system type; the view characteristics comprise the layout layer number of the view and the type of each layer of layout;
when receiving a new instant communication message, judging whether the new instant communication message is a message received/sent by electronic red packet software, comprising the following steps: when a new instant messaging message is received, acquiring an item view type of the new instant messaging message; judging whether the new instant communication message is a message received/sent by electronic red packet software or not according to the item view type of the new instant communication message; when the item view type of the new instant messaging message belongs to the item view type of the electronic red packet software, judging that the new instant messaging message is a message received/sent by the electronic red packet software;
when the new instant communication message is a message received/sent by electronic red packet software, judging whether the new instant communication message is an electronic red packet message or not according to the view characteristics of the new instant communication message and the view characteristics of the electronic red packet message corresponding to the system type;
and when the new instant communication message is the electronic red packet message, prompting that the electronic red packet is detected.
2. The electronic red envelope detection method of claim 1, wherein obtaining the item view type of the new instant messaging message when the new instant messaging message is received comprises:
when a new instant communication message is received, calling the structure of the list view control and a new view method;
and calling an acquisition view method through the construction and the new view method to acquire the item view type of the new instant messaging message.
3. The method for detecting electronic red envelope according to claim 1, wherein when the new instant communication message is a message received/transmitted by electronic red envelope software, determining whether the new instant communication message is an electronic red envelope message according to the view characteristic of the new instant communication message and the view characteristic of the electronic red envelope message corresponding to the system type, comprises:
when the new instant communication message is a message received/sent by electronic red packet software, judging whether the layout layer number of the new instant communication message is equal to the layout layer number of the electronic red packet message corresponding to the system type;
when the number of layout layers of the new instant messaging message is equal to the number of layout layers of the electronic red packet message corresponding to the system type, sequentially judging whether the type of each layer of layout of the new instant messaging message is the same as the type of the corresponding layout of the electronic red packet message corresponding to the system type;
when the types of all layouts of the new instant messaging message are the same as the types of the corresponding layouts of the electronic red packet message corresponding to the system type, judging that the new instant messaging message is the electronic red packet message;
and when the type of any layout of the new instant messaging message is different from the type of the corresponding layout of the electronic red packet message corresponding to the system type, judging that the new instant messaging message is not the electronic red packet message.
4. The electronic red packet detecting method according to claim 1 or 2, wherein detecting a system type of a terminal to determine a view characteristic of an electronic red packet message corresponding to the system type comprises:
acquiring equipment information of a terminal, and determining a system type of the terminal according to the equipment information;
and searching the view characteristics of the electronic red packet message corresponding to the system type of the terminal according to the pre-established association relationship between the system type and the view characteristics of the electronic red packet message.
5. The electronic red envelope detecting method of claim 4, wherein when receiving a new instant communication message, judging whether the new instant communication message is before a message received/sent by electronic red envelope software, comprises:
detecting whether the data of the list view control is updated or not;
and when the data of the list view control is updated, judging that a new instant communication message is received.
6. An electronic red envelope detection system, comprising:
the system type detection module is used for detecting the system type of the terminal so as to determine the view characteristics of the electronic red packet message corresponding to the system type; the view characteristics comprise the layout layer number of the view and the type of each layer of layout;
the first judging module is used for judging whether a new instant communication message is received/sent by the electronic red packet software or not when the new instant communication message is received; the first judging module comprises: the view type acquisition unit is used for acquiring the item view type of a new instant communication message when the new instant communication message is received; the first judging unit is used for judging whether the new instant communication message is a message received/sent by the electronic red packet software according to the item view type of the new instant communication message; the second judging unit is used for judging that the new instant messaging message is a message received/sent by the electronic red packet software when the item view type of the new instant messaging message belongs to the item view type of the electronic red packet software; otherwise, judging that the new instant communication message is not a message received/sent by the electronic red packet software;
the second judging module is used for judging whether the new instant communication message is the electronic red packet message or not according to the view characteristic of the new instant communication message and the view characteristic of the electronic red packet message corresponding to the system type when the new instant communication message is the message received/sent by the electronic red packet software;
and the prompt module is used for prompting that the electronic red packet is detected when the new instant communication message is the electronic red packet message.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201811037247.5A 2018-09-06 2018-09-06 Electronic red packet detection method, system and terminal equipment Active CN110881001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811037247.5A CN110881001B (en) 2018-09-06 2018-09-06 Electronic red packet detection method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811037247.5A CN110881001B (en) 2018-09-06 2018-09-06 Electronic red packet detection method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN110881001A CN110881001A (en) 2020-03-13
CN110881001B true CN110881001B (en) 2022-06-03

Family

ID=69727134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811037247.5A Active CN110881001B (en) 2018-09-06 2018-09-06 Electronic red packet detection method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN110881001B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810262B (en) * 2020-06-11 2023-06-09 腾讯科技(深圳)有限公司 Message reminding method and device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
WO2017120923A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for processing wechat content and mobile terminal
CN106982394A (en) * 2017-03-30 2017-07-25 腾讯科技(深圳)有限公司 The unread message reminding method and device of a kind of network direct broadcasting
CN107508984A (en) * 2017-08-18 2017-12-22 宇龙计算机通信科技(深圳)有限公司 Message display method, system, electronic equipment and computer-readable recording medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975144A (en) * 2016-04-25 2016-09-28 维沃移动通信有限公司 Information processing method and apparatus
CN107436748B (en) * 2017-07-13 2020-06-30 普联技术有限公司 Method and device for processing third-party application message, terminal equipment and readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104199934A (en) * 2014-09-05 2014-12-10 北京奇虎科技有限公司 Method and device for intercepting advertisements of application program
WO2017120923A1 (en) * 2016-01-15 2017-07-20 白宏伟 Method for processing wechat content and mobile terminal
CN106327166A (en) * 2016-09-12 2017-01-11 广东欧珀移动通信有限公司 Information processing method and mobile terminal
CN106982394A (en) * 2017-03-30 2017-07-25 腾讯科技(深圳)有限公司 The unread message reminding method and device of a kind of network direct broadcasting
CN107508984A (en) * 2017-08-18 2017-12-22 宇龙计算机通信科技(深圳)有限公司 Message display method, system, electronic equipment and computer-readable recording medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110881001A (en) 2020-03-13

Similar Documents

Publication Publication Date Title
CN109102264B (en) Electronic red packet detection method and device and terminal equipment
US9021507B2 (en) Dynamic use of data across multiple programs
CN106888236B (en) Session management method and session management device
CN113722124B (en) Content processing method, device, equipment and storage medium of cloud mobile phone
CN113285866B (en) Information sending method and device and electronic equipment
WO2020244159A1 (en) Interface message refreshing method and apparatus, computer device, and readable storage medium
CN111787154A (en) Information processing method and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN107835305B (en) Information input method and device for terminal equipment with screen
CN110881001B (en) Electronic red packet detection method, system and terminal equipment
CN110912801B (en) Method, system and terminal device for detecting electronic red packet
CN107357481B (en) Message display method and message display device
EP4351117A1 (en) Information display method and apparatus, and electronic device
WO2022143661A1 (en) Candidate information display method and apparatus, and electronic device
CN110880999B (en) Electronic red packet identification method and device and terminal equipment
CN113824627A (en) Group chat message display method and device, electronic equipment and storage medium
CN110875869B (en) Red packet identification method, system and terminal equipment
CN113726584A (en) Message sending method and device and electronic equipment
CN112732100A (en) Information processing method and device and electronic equipment
CN110881002B (en) Electronic red packet monitoring method and device and terminal equipment
CN109829079B (en) Information fusion method and device, electronic equipment and storage medium
CN111857463A (en) New message reminding method and device, electronic equipment and medium
CN111049981A (en) Message identification method, device, user equipment and computer readable storage medium
CN110875870B (en) Electronic red packet monitoring method, system and terminal equipment
CN114116095B (en) Input method, input device, electronic equipment, medium and product

Legal Events

Date Code Title Description
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