CN109565463B - Method, device and terminal for processing short message verification code - Google Patents

Method, device and terminal for processing short message verification code Download PDF

Info

Publication number
CN109565463B
CN109565463B CN201680088433.4A CN201680088433A CN109565463B CN 109565463 B CN109565463 B CN 109565463B CN 201680088433 A CN201680088433 A CN 201680088433A CN 109565463 B CN109565463 B CN 109565463B
Authority
CN
China
Prior art keywords
short message
verification code
validity period
determining
input
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
CN201680088433.4A
Other languages
Chinese (zh)
Other versions
CN109565463A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN109565463A publication Critical patent/CN109565463A/en
Application granted granted Critical
Publication of CN109565463B publication Critical patent/CN109565463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Abstract

The method for processing the short message verification code provided by the embodiment of the invention is used for a terminal comprising a screen. Displaying a verification interface of an application on a screen, wherein the verification interface comprises a verification code input box, receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in the short message application as unread, and inputting the verification code input box by the short message verification code within a validity period. And determining whether the short message verification code of the short message is correctly input into the verification code input box, and if the short message verification code is not correctly input in the validity period, marking the short message including the short message verification code in the short message application as read, so that the user experience is improved.

Description

Method, device and terminal for processing short message verification code
Technical Field
The invention relates to the field of computers, in particular to a method, a device and a terminal for processing a short message verification code.
Background
The verification is usually required under the scenes that a user consumes, logs in a website or applies for an account, binds a mobile phone and the like, and besides adopting a picture verification code, equipment such as the mobile phone and the like can also be adopted to receive a short message verification code so as to ensure that the user operates by a non-machine.
Scenarios for performing captcha validation include, but are not limited to, the following: a consumption verification code, a coupon picking verification code, a money extraction and payment verification code, a registration verification code, a network connection verification code, a password changing verification code, a safety verification code, a mobile phone login (dynamic) verification code and a mobile phone binding verification code.
The short message verification code is generally a random word string, and is not limited to numbers, English letters or symbols.
Under the applied verification code input interface, the service request is generally made to acquire the verification code by clicking a button such as "acquire verification code". The short message verification code is sent to the mobile phone in a short message, when the mobile phone in the verification code input interface receives the short message verification code, the received short message verification code is usually displayed in a notification bar for a period of time (such as 2 seconds), and in the period of time during which the short message verification code is displayed, a user can quickly memorize the short message verification code and then input the verification code input box. Some mobile phone applications already provide a verification code reading mechanism, and once the short message verification code is received and automatically written in the application verification code input box, the verification code can be successfully verified and then the next operation can be carried out.
If the short message verification code is not correctly input into the verification code input box, the short message containing the short message verification code is marked as unread (for example, an unread message is marked on a short message interface), and the unread mark disappears only after the user enters the short message application and reads again. The short message verification code is usually valid only within a limited time (for example, valid within 1 minute), and will be invalid after the limited time, and no value is provided for the user, however, even if the short message verification code is invalid, the short message containing the short message verification code may still be marked as unread to remind the user to read.
Disclosure of Invention
According to some embodiments, a method, a device and a terminal for processing a short message verification code are provided, which aim to solve the problem that a user is still reminded to read if the short message verification code is invalid in the prior art.
In a first aspect, an embodiment of the present invention provides a method for processing a short message verification code, where the method is used for a terminal including a screen, and the method includes: displaying a verification interface of an application on the screen, wherein the verification interface comprises a verification code input box; receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box in the validity period by the short message verification code; determining whether a short message verification code of the short message is correctly input into the verification code input box; if the short message verification code is determined not to be correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read.
By the method, the short message verification code of the short message is not correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read from the unread mark, and the user experience is improved.
In one possible implementation, the incorrectly input includes: the short message verification code is not input in the verification code input box, an incorrect short message verification code is input, or a correct short message verification code is input but not confirmed.
In one possible implementation manner, the determining that the short message verification code is not correctly input within the validity period includes: determining that the short message verification code is not correctly input into the verification code input box, and determining that the validity period of the short message has been exceeded since the short message was received.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a short message verification code validity period specified in the application from the beginning of reception.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a common validity period since receipt, the common validity period indicating an expiration duration of a short message authentication code of at least one associated application, the common validity period being greater than the validity period of the short message authentication code.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a validity period specified in the short message since receipt.
In one possible implementation, the method further includes: and determining that the short message application comprises at least one short message, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
According to a second aspect of the present invention, there is provided a device for processing a short message verification code, for a terminal including a screen, wherein the device includes: the display module is used for displaying a verification interface of an application on the screen, and the verification interface comprises a verification code input box; the short message module is used for receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen through the display module, marking the short message in short message application as unread, and inputting the verification code input box in a validity period by the short message verification code; the determining module is used for determining whether the short message verification code of the short message is correctly input into the verification code input box; the short message module is further used for marking the short message including the short message verification code in the short message application as read if the determining module determines that the short message verification code is not correctly input in the validity period.
By the method, the short message verification code of the short message is not correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read from the unread mark, and the user experience is improved.
In one possible implementation manner, the determining that the short message verification code is not correctly input by the determining module includes: and determining that the short message verification code is not input in the verification code input box, inputting an incorrect short message verification code, or inputting a correct short message verification code but not confirming.
In one possible implementation manner, the determining module is further configured to determine that the short message verification code is not correctly input into the verification code input box, and determine that the validity period of the short message has been exceeded since the short message was received.
In one possible implementation manner, the determining module is further configured to determine that the short message has exceeded the validity period of the short message verification code specified in the application from the receiving.
In a possible implementation manner, the determining module is further configured to determine that the short message has exceeded a common validity period from the receiving, the common validity period being used for indicating an expiration duration of a short message verification code of at least one related application, and the common validity period being greater than the validity period of the short message verification code.
In one possible implementation, the determining module is further configured to determine that the validity period specified in the short message has been exceeded since the short message was received.
In one possible implementation, the apparatus further includes: a cleaning module; the determining module is used for determining that at least one short message is contained in the short message application, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input; the cleaning module is used for deleting the short message.
According to a third aspect of the present invention, there is provided a terminal comprising: a screen; one or more processors; a memory; a plurality of application programs; the memory is used for storing a computer program; the processor runs the computer program and executes the following processes: displaying a verification interface of an application on the screen, wherein the verification interface comprises a verification code input box; receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box in the validity period by the short message verification code; determining whether a short message verification code of the short message is correctly input into the verification code input box; if the short message verification code is determined not to be correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read.
By the method, the short message verification code of the short message is not correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read from the unread mark, and the user experience is improved.
In one possible implementation, the incorrectly input includes: the short message verification code is not input in the verification code input box, an incorrect short message verification code is input, or a correct short message verification code is input but not confirmed.
In one possible implementation manner, the determining that the short message verification code is not correctly input within the validity period includes: determining that the short message verification code is not correctly input into the verification code input box, and determining that the validity period of the short message has been exceeded since the short message was received.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a short message verification code validity period specified in the application from the beginning of reception.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a common validity period since receipt, the common validity period indicating an expiration duration of a short message authentication code of at least one associated application, the common validity period being greater than the validity period of the short message authentication code.
In one possible implementation, the determining that the validity period has been exceeded by the short message from the reception includes: determining that the short message has exceeded a validity period specified in the short message since receipt.
In one possible implementation, the process further includes: and determining that the short message application comprises at least one short message, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by a terminal device including a screen and a plurality of application programs, cause the terminal device to perform any one of the optional implementation methods provided above.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is to be expressly understood that the drawings in the following description are only illustrative of some embodiments of the invention and are not intended to be exhaustive. For a person skilled in the art, it is possible to derive other figures from these figures without inventive effort.
Fig. 1 is a schematic structural diagram illustrating a terminal for processing a short message verification code according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of processing a short message verification code on a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating another process of processing a short message verification code on a terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating a device for processing a short message verification code according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another short message verification code processing apparatus according to an embodiment of the present invention;
fig. 6 illustrates a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be further described below with reference to the drawings in the embodiments of the present invention.
The method and apparatus for processing a short message verification code according to an embodiment of the present invention may be applied to any terminal having a screen and a plurality of application programs, where the apparatus may be hardware, software, or a combination of software and hardware with processing capability installed in the terminal, where the terminal may be a mobile phone, a Tablet Personal Computer (Laptop Computer), a Laptop Computer (Laptop Computer), a digital camera, a digital video camera, a projection Device, a Personal Digital Assistant (PDA), an electronic book reader (e-book reader), a Wearable Device (Wearable Device), a virtual reality smart Device, and the like, and the terminal may establish communication with a network through a 2G, 3G, 4G, or W-LAN (wireless local area network), and for simplicity, the embodiment of the present invention is not further limited. For convenience of description, in the following embodiments, a mobile terminal is taken as an example for description.
An embodiment of the present invention provides a mobile terminal, which is configured to execute the method described in the embodiment of the present invention. Taking a mobile terminal as an example of a mobile phone, fig. 1 shows a structure of a mobile terminal 100 according to an embodiment of the present invention.
Fig. 1 is a block diagram illustrating a partial structure of a cellular phone 100 related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 1, a cellular phone 100 includes RF (Radio Frequency) circuits 110, a memory 120, an input unit 130, a screen 140, a sensor 150, an audio circuit 160, a processor 180, and a power supply 190. Those skilled in the art will appreciate that the handset architecture shown in fig. 1 is by way of example only, is not intended to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the components of the mobile phone 100 in detail with reference to fig. 1:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 180; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing of the mobile phone 100 by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone 100, and the like. In addition, the Memory 120 may include a volatile Memory, such as a non-volatile Random Access Memory (NVRAM), a Phase Change Random Access Memory (PRAM), a Magnetoresistive Random Access Memory (MRAM), and the like, and a non-volatile Memory, such as at least one magnetic disk Memory device, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a flash Memory device, such as a NOR flash Memory (NOR flash Memory), or a NAND flash Memory (NAND flash Memory).
The input unit 130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations of a user on or near the touch panel 131 (e.g., operations of the user on or near the touch panel 131 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 131 may include two parts, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Screen 140 may be used to display information entered by or provided to the user as well as various interfaces of handset 100. The screen 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch panel 131 can cover the display panel 141, and when the touch panel 131 detects a touch operation on or near the touch panel 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 1, the touch panel 131 and the display panel 141 are two independent components to implement the input and output functions of the mobile phone 100, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement the input and output functions of the mobile phone 100.
The handset 100 may also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 141 and/or the backlight when the mobile phone 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone 100, further description is omitted here.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the handset 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is then processed by the audio data output processor 180 and then transmitted to, for example, another cellular phone via the RF circuit 110, or the audio data is output to the memory 120 for further processing.
The processor 180 is a control center of the mobile phone 100, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Alternatively, processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The application programs include any application installed on the handset 100 including, but not limited to, browser, email, instant messaging service, word processing, keyboard virtualization, Widget (Widget), encryption, digital rights management, voice recognition, voice replication, location (e.g., functions provided by the global positioning system), music playing, and so forth.
The handset 100 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 180 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the handset 100 may further include a short-range wireless transmission device such as a WiFi module, which is not described herein.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for processing a short message verification code according to an embodiment of the present invention, which is used for a terminal including a screen, and as shown in fig. 2, the method includes the following steps:
s201, displaying a verification interface of the application on a screen, wherein the verification interface comprises a verification code input box.
The screen of the handset may be used to display content for viewing by the user. Generally, scenes such as consumption verification, coupon picking verification, payment verification, registration verification, network connection verification, password change verification, security verification, mobile phone login (dynamic) verification, mobile phone binding verification and the like need to display a verification interface on a screen, and the verification interface comprises a verification code input box for inputting a verification code so as to pass the verification.
The processor 180 displays the authentication interface of the application on the screen, typically triggered by an operation on the application. Taking payment verification as an example, selecting "next" or "pay" after selecting an item to purchase in the shopping application triggers the processor 180 to display a verification interface for the application on the screen.
S202, receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box by the short message verification code within a validity period.
In order to pass the verification of the verification interface, the correct verification code needs to be input in the verification code input box. For security, the verification code is usually sent to the mobile phone in a short message, and the short message includes the short message verification code.
The short message containing the short message verification code can be sent to the mobile phone while displaying the verification interface, and additional triggering is not needed. Similarly, taking payment verification as an example, when selecting "next step" or "payment" after selecting a commodity to be purchased in a shopping application, the trigger processor 180 triggers the server of the application to send a short message containing a short message verification code to the mobile phone while displaying a verification interface of the application on the screen. Optionally, the short message including the short message verification code may also be triggered to be sent to the mobile phone on the verification interface after the verification interface is displayed, and additional triggering is required. Similarly, taking payment verification as an example, when selecting 'next step' or 'payment' after selecting a commodity to be purchased in a shopping application, triggering the application to display a verification interface of the application on a screen, wherein the verification interface comprises a button for 'sending a verification code', and triggering a server of the application to send a short message containing a short message verification code to a mobile phone after a user presses the button.
The short message containing the short message verification code can also comprise other information besides the short message verification code, such as the validity period of the short message verification code. Taking payment verification as an example, the short message may further include a payment amount, a payment account, a payee, and the like. The validity period of the short message verification code can be carried in the short message or not, but is prompted to the user on an application verification interface, for example, counting down. The short message verification code can be verified to pass only by inputting the verification code input box and confirming the input in the validity period, and if the short message verification code is input beyond the validity period, the short message verification code is invalid to cause that the verification fails.
After receiving the short message containing the short message verification code, the mobile phone needs to inform the user so as to input the correct short message verification code into the verification code input box. Usually, the short message received by the mobile phone under the applied authentication interface is partially or completely displayed on the screen. Taking a mobile phone running an Android operating system as an example, at least part of information of the short message including the short message verification code is displayed in the notification bar.
After the mobile phone receives the short message containing the short message verification code, the processor 180 will mark the short message in the short message application as unread, and until the user clicks to read the short message or utilizes the scheme of the embodiment of the present invention, the processor 180 will not mark the short message in the short message application as read.
S203, determining whether the short message verification code of the short message is correctly input into the verification code input box.
At present, there are two ways to input the short message verification code in the verification code input box, one is to manually input the verification code input box after the user remembers the received short message verification code, and the other is to automatically acquire the short message verification code and fill the short message verification code in the verification code input box by the processor 180. Taking a mobile phone running an Android operating system as an example, the processor 180 automatically obtains the short message verification code and fills the verification code input box in part of applications, and detailed implementation methods are not described in detail herein.
The input verification code input box for inputting the verification code of the short message correctly at least meets two requirements, firstly, the short message verification code is input and confirmed within the validity period of the short message verification code, and secondly, the short message verification code of the input verification code input box is consistent with the short message verification code in the received short message. If the short message verification code is not input in the verification code input box, or an error short message verification code is input, or a correct short message verification code is input but is not confirmed before the validity period expires, and the short message exceeds the validity period of the short message verification code from the receiving, the short message verification code is not correctly input in the verification code input box within the validity period. The confirmation is generally embodied in the form of "submission" or "next step" and the like in the embodiment of the present application, and is used for submitting the input content for verification.
Because different applications can set different short message verification code validity periods, a common validity period can be set for the convenience of unified management of the processor, and the common validity period is used for indicating the expiration duration of the short message verification code of at least one related application. The common validity period is preferably greater than the short message verification code validity period of the related application. Since the common validity period can be configured to be directly read by the processor 180, the processor 180 does not need to acquire the short message authentication code from the application or the short message each time when the short message authentication code is correctly input, which is simpler to implement.
After the short message verification code is input in the verification code input box, the processor 180 compares whether the input short message verification code is consistent with the short message verification code in the received short message, and if so, determines that the short message verification code of the short message is correctly input in the verification code input box. If the processor 180 compares that the inputted short message authentication code is not consistent with the short message authentication code in the received short message and the short message has exceeded the validity period since the reception, it is determined that the short message authentication code of the short message is not correctly inputted into the authentication code input box within the validity period. The input short message verification code is inconsistent with the short message verification code in the received short message, namely the short message verification code is not correctly input, and the method comprises the following conditions: the short message verification code is not input in the verification code input box, an incorrect short message verification code is input, or a correct short message verification code is input but is not confirmed. The processor 180 determines whether the inputted short message verification code is correctly inputted during the validity period is also implemented in the prior art, and will not be described in detail herein. It can be understood that, when it is determined that the short message verification code of the short message is not correctly input in the validity period, the relevant validity period may be the validity period of the short message verification code or a common validity period.
The method for determining that the short message exceeds the validity period from the receiving comprises at least one of the following steps:
determining that the short message from the receiving already exceeds the validity period of the short message verification code specified in the application;
determining that the short message has exceeded a common validity period from receipt;
it is determined that the short message has exceeded the validity period specified in the short message since receipt.
S204, if the short message verification code is determined not to be correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read.
If it is determined in the previous step that the short message verification code is not correctly input within the validity period, the processor 180 marks the short message including the short message verification code in the short message application as read from unread.
Compared with the prior art, the short message verification code of the short message is not correctly input in the validity period, so that the short message verification code cannot be used for verification even if the user reads back, and the unread short message is not necessary to be prompted to the user.
Hereinafter, a method for processing a short message verification code according to an embodiment of the present invention will be specifically described with reference to fig. 1, fig. 2, and fig. 3. Referring to fig. 3, fig. 3 is a schematic flowchart of a method for processing a short message verification code according to an embodiment of the present invention, for a terminal including a screen, as shown in fig. 3.
S301, determining that at least one short message is contained in the short message application, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
Determining that the short message application includes at least one short message and the short message verification code of the short message is not correctly input within the validity period may be implemented in combination with the previous embodiment, in which if it is determined that the short message verification code is not correctly input within the validity period, the short message application including the short message verification code is marked as read. While the mark is read, the short message can be moved into a special category of short message applications, such as the "incorrectly entered verification message" category. Automatic classification of short messages in short message applications has been implemented in the prior art, such as the "notification message" classification, and will not be described in detail herein.
Therefore, it is only required to determine whether there is a short message in the above special classification of the short message application if it is determined that the short message application includes at least one short message and the short message verification code of the short message is not correctly input in the validity period, and if so, it is determined that the short message application includes at least one short message and the short message verification code of the short message is not correctly input in the validity period.
In addition to the above method, the processor 180 may also screen the short message in the short message application, first find the short message containing the short message verification code, and then determine the short message whose short message verification code is not correctly input in the validity period. Finding a short message containing a short message verification code has been implemented in the prior art and will not be described in detail herein. The method in the above embodiment may be referred to determine that the short message verification code is not correctly input within the validity period.
If the short message containing the short message verification code is not correctly input in the valid period, the short message is marked as read in the last embodiment and still stored in the mobile phone, and the short message can be searched and read through the short message application. Because the short message verification code of the short message is not correctly input in the validity period, the short message verification code and other information contained in the short message become meaningless information, and after a certain time, the embodiment of the invention can directly delete the information, delete useless information in the application of the short message and improve the user experience.
In the above steps, when it is determined that the short message application includes at least one short message and the short message verification code of the short message is not correctly input within the validity period, it is further determined whether the short message has exceeded the clearing period since the short message was received, and if so, the processor 180 deletes the short message. The clearing period is the time length used for indicating to delete the short message of which the short message verification code is not correctly input. The clearing period can be used for indicating the time length for deleting all short messages which are not correctly input with the short message verification code in the short message application. Optionally, the clearing period is longer than the validity period of the short message verification code or the common validity period mentioned in the above embodiments.
In the embodiment of the invention, because the short message verification code of the short message is not correctly input in the validity period, the short message verification code and other information contained in the short message become meaningless information, a certain time is reserved for the user to look up the short message conveniently, and after the certain time is exceeded, the embodiment of the invention directly deletes the information, deletes useless information in the application of the short message, and improves the user experience.
For convenience of description, only the parts related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a short message verification code processing apparatus according to an embodiment of the present invention, for a terminal including a screen, where the apparatus includes: a display module 101, a short message module 102 and a determination module 103, wherein: the display module 101 is configured to display a verification interface of an application on the screen, where the verification interface includes a verification code input box. The short message module 102 is configured to receive a short message including a short message verification code, display the short message including the short message verification code on the screen through the display module, mark the short message in a short message application as unread, and input the verification code input box in a validity period by the short message verification code. A determining module 103, configured to determine whether the short message verification code of the short message is correctly input into the verification code input box. The short message module 102 is further configured to mark the short message including the short message verification code in the short message application as read if the determination module determines that the short message verification code is not correctly input within the validity period.
In this embodiment, for example: the display module 101, the short message module 102 and the determination module 103 may be implemented as described in steps S2O 1-S204 in the embodiment shown in fig. 2.
Compared with the prior art, the short message verification code of the short message is not correctly input in the validity period, so that the short message verification code cannot be used for verification even if the user reads back, and the unread short message is not necessary to be prompted to the user.
Hereinafter, another processing apparatus for short message verification code according to an embodiment of the present invention will be specifically described with reference to fig. 4 and 5. Referring to fig. 5, fig. 5 is a schematic structural diagram of another short message verification code processing apparatus according to an embodiment of the present invention, where the processing apparatus of fig. 5 includes: a screening module 104 and a cleaning module 105. The screening module 104 is configured to determine that the short message application includes at least one short message, the short message verification code of the short message is not correctly input within the validity period, and the short message has exceeded a clearing period from the receiving, where the clearing period is used to indicate a duration for deleting the short message of which the short message verification code is not correctly input. In the screening module 104, it is determined that at least one short message which is not contended for input within the validity period is included in the short message application list and the short message has exceeded a clearing period from the reception, the clearing module 105 is configured to delete the short message.
In this embodiment, for example: the screening module 103 and the cleaning module 104 may be implemented as described in step S301 in the embodiment shown in fig. 3.
In the embodiment of the invention, because the short message verification code of the short message is not correctly input in the validity period, the short message verification code and other information contained in the short message become meaningless information, a certain time is reserved for a user to look up the short message, and after the certain time is exceeded, the embodiment of the invention directly deletes the information, deletes useless information in the application of the short message, and improves the user experience.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention, as shown in fig. 6, including: a screen 121, one or more processors 122, and a memory 123. For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the technology are not disclosed.
A screen 121 as an output interface with a user, displaying visual output to the user; the screen 121 may be the screen 140 in the terminal device shown in fig. 1.
The processor 122 may be the processor 180 shown in fig. 1. The memory 123 may be the memory 120 of the terminal device shown in fig. 1, or some component in the memory 120.
In this embodiment of the present invention, the terminal further includes a plurality of application programs, the memory is used to store a computer program, and the processor runs the computer program and executes the following steps:
displaying a verification interface of an application on the screen, wherein the verification interface comprises a verification code input box;
receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box in the validity period by the short message verification code;
determining whether a short message verification code of the short message is correctly input into the verification code input box;
if the short message verification code is determined not to be correctly input in the validity period, the short message including the short message verification code in the short message application is marked as read.
In this embodiment, the implementation of the processing step of the short message verification code may refer to the embodiment shown in fig. 2, and will not be described repeatedly here.
Compared with the prior art, the short message verification code of the short message is not correctly input in the validity period, so that the short message verification code cannot be used for verification even if the user reads back, and the unread short message is not necessary to be prompted to the user.
In this embodiment, the processor 122 may be further configured to perform the following steps:
and determining that the short message application comprises at least one short message, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
In this embodiment, the implementation of the processing step of the short message verification code may refer to the embodiment shown in fig. 3, and a repeated description is not provided herein.
Compared with the prior art, the short message verification code of the short message is not correctly input in the validity period, the short message verification code and other information contained in the short message become meaningless information, a certain time is reserved for a user to look up the short message, and after the certain time is exceeded, the information is directly deleted, useless information in short message application is deleted, and user experience is improved.
Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, the one or more programs including instructions, which when executed by a terminal including a screen and a plurality of application programs, cause the terminal to perform the method set forth in the embodiments illustrated in fig. 2 and 3.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (18)

1. A processing method of a short message verification code is used for a terminal comprising a screen, wherein the method comprises the following steps:
displaying a verification interface of an application on the screen, wherein the verification interface comprises a verification code input box;
receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box in the validity period by the short message verification code;
determining whether a short message verification code of the short message is correctly input into the verification code input box, and marking the short message including the short message verification code in the short message application as read until the short message verification code is determined not to be correctly input into the verification code input box within the validity period;
wherein the incorrectly input comprises: the short message verification code is not input in the verification code input box, an incorrect short message verification code is input, or a correct short message verification code is input but not confirmed.
2. The method of claim 1, wherein the determining that the short message verification code was not correctly entered within a validity period comprises:
determining that the short message verification code is not correctly input into the verification code input box, and determining that the validity period of the short message has been exceeded since the short message was received.
3. The method of claim 2, wherein the determining that the short message has exceeded the validity period since receipt comprises:
determining that the short message has exceeded a short message verification code validity period specified in the application from the beginning of reception.
4. The method of claim 2, wherein the determining that the short message has exceeded the validity period since receipt comprises:
determining that the short message has exceeded a common validity period since receipt, the common validity period indicating an expiration duration of a short message authentication code of at least one associated application, the common validity period being greater than the validity period of the short message authentication code.
5. The method of claim 2, wherein the determining that the short message has exceeded the validity period since receipt comprises:
determining that the short message has exceeded a validity period specified in the short message since receipt.
6. The method of any one of claims 1 to 5, wherein the method further comprises:
and determining that the short message application comprises at least one short message, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
7. A processing device of a short message verification code is used for a terminal comprising a screen, wherein the device comprises:
the display module is used for displaying a verification interface of an application on the screen, and the verification interface comprises a verification code input box;
the short message module is used for receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen through the display module, marking the short message in short message application as unread, and inputting the verification code input box in a validity period by the short message verification code;
the determining module is used for determining whether the short message verification code of the short message is correctly input into the verification code input box;
the short message module is further used for marking the short message including the short message verification code in the short message application as read until the determining module determines that the short message verification code is not correctly input into the verification code input box within the validity period;
wherein the determining that the short message verification code is incorrectly input by the determining module comprises: and determining that the short message verification code is not input in the verification code input box, inputting an incorrect short message verification code, or inputting a correct short message verification code but not confirming.
8. The apparatus of claim 7, wherein,
the determining module is further used for determining that the short message verification code is not correctly input into the verification code input box and determining that the validity period of the short message is exceeded from the beginning of receiving.
9. The apparatus of claim 8, wherein the means for determining is further configured to determine that the short message has exceeded a short message authentication code validity period specified in the application since receipt.
10. The apparatus of claim 8, wherein,
the determining module is further configured to determine that the short message has exceeded a common validity period since the short message was received, the common validity period being used to indicate an expiration duration of a short message verification code of at least one related application, and the common validity period being greater than the validity period of the short message verification code.
11. The apparatus of claim 8, wherein,
the determining module is further configured to determine that the short message has exceeded a validity period specified in the short message since receipt.
12. The apparatus of any of claims 7 to 11, further comprising: a cleaning module;
the determining module is used for determining that at least one short message is contained in the short message application, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input;
the cleaning module is used for deleting the short message.
13. A terminal, comprising:
a screen;
one or more processors;
a memory;
a plurality of application programs; and
the memory is used for storing a computer program;
the processor runs the computer program and executes the following processes:
displaying a verification interface of an application on the screen, wherein the verification interface comprises a verification code input box;
receiving a short message comprising a short message verification code, displaying the short message comprising the short message verification code on the screen, marking the short message in short message application as unread, and inputting the verification code input box in the validity period by the short message verification code;
determining whether a short message verification code of the short message is correctly input into the verification code input box, and marking the short message including the short message verification code in the short message application as read until the short message verification code is determined not to be correctly input into the verification code input box within the validity period;
wherein the incorrectly input comprises: the short message verification code is not input in the verification code input box, an incorrect short message verification code is input, or a correct short message verification code is input but not confirmed.
14. The terminal of claim 13, wherein the determining that the short message verification code was not correctly entered within a validity period comprises:
determining that the short message verification code is not correctly input into the verification code input box, and determining that the validity period of the short message has been exceeded since the short message was received.
15. The terminal of claim 14, wherein the determining that the validity period has been exceeded by the short message since receipt comprises:
determining that the short message has exceeded a short message verification code validity period specified in the application from the beginning of reception.
16. The terminal of claim 14, wherein the determining that the validity period has been exceeded by the short message since receipt comprises:
determining that the short message has exceeded a common validity period since receipt, the common validity period indicating an expiration duration of a short message authentication code of at least one associated application, the common validity period being greater than the validity period of the short message authentication code.
17. The terminal of claim 14, wherein the determining that the validity period has been exceeded by the short message since receipt comprises:
determining that the short message has exceeded a validity period specified in the short message since receipt.
18. The terminal of any of claims 13-17, wherein the flow further comprises: and determining that the short message application comprises at least one short message, the short message verification code of the short message is not correctly input in the validity period, and the short message exceeds a clearing period from the beginning of receiving, deleting the short message, wherein the clearing period is used for indicating the time length for deleting the short message of which the short message verification code is not correctly input.
CN201680088433.4A 2016-12-30 2016-12-30 Method, device and terminal for processing short message verification code Active CN109565463B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/113985 WO2018120237A1 (en) 2016-12-30 2016-12-30 Method and apparatus for processing short message verification code, and terminal

Publications (2)

Publication Number Publication Date
CN109565463A CN109565463A (en) 2019-04-02
CN109565463B true CN109565463B (en) 2020-11-17

Family

ID=62706677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680088433.4A Active CN109565463B (en) 2016-12-30 2016-12-30 Method, device and terminal for processing short message verification code

Country Status (2)

Country Link
CN (1) CN109565463B (en)
WO (1) WO2018120237A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491802B (en) * 2020-10-29 2023-04-07 广西电力职业技术学院 Identity authentication communication device and identity authentication method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030081001A1 (en) * 2001-10-25 2003-05-01 Munro Michael W. Computer-assisted deletion of received electronic messages
DE102011000112A1 (en) * 2011-01-13 2012-07-19 Bundesdruckerei Gmbh Method for verifying personal data in customer traffic
CN103716469A (en) * 2014-01-06 2014-04-09 广州市久邦数码科技有限公司 Method and system for processing unread short messages
CN104010085B (en) * 2014-06-12 2016-04-20 北京奇虎科技有限公司 Message treatment method and device
CN104052652B (en) * 2014-06-19 2017-09-15 北京奇虎科技有限公司 It is a kind of to realize method, client, system and electronic equipment that message is automatically deleted
CN104462934B (en) * 2014-12-01 2018-02-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105812554A (en) * 2016-03-01 2016-07-27 中山大学深圳研究院 Method and system for intelligently managing text messages in mobile phones
CN105933502B (en) * 2016-03-29 2019-11-15 北京小米移动软件有限公司 The method and apparatus for marking message read states

Also Published As

Publication number Publication date
CN109565463A (en) 2019-04-02
WO2018120237A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN106293751B (en) Method for displaying information on terminal equipment and terminal equipment
CN106126015B (en) A kind of application program launching control method and terminal
CN107580147B (en) Management method of notification message and mobile terminal
WO2019205065A1 (en) Method for quickly opening application or application function, and terminal
WO2017211205A1 (en) Method and device for updating whitelist
KR20150080736A (en) Method for executing a function and Electronic device using the same
CN105900466A (en) Message processing method and apparatus
WO2018049893A1 (en) Data transmission method and terminal device
CN110855551B (en) Message reply method, server and electronic equipment
CN106445596B (en) Method and device for managing setting items
CN110457888B (en) Verification code input method and device, electronic equipment and storage medium
CN107682359B (en) Application registration method and mobile terminal
CN108604265A (en) The method and terminal device of outline management application program usage time
WO2018161540A1 (en) Fingerprint registration method and related product
CN109062634B (en) Application starting method and mobile terminal
CN111459362A (en) Information display method, information display device, electronic apparatus, and storage medium
CN107609407A (en) The guard method of information security and device in a kind of user terminal
CN111866885A (en) Verification information sharing method and device and electronic equipment
CN111061446A (en) Display method and electronic equipment
JP6974620B2 (en) Notification message processing method and terminal
CN110430252B (en) Resource data processing method and device, equipment and readable storage medium
CN110719361B (en) Information transmission method, mobile terminal and storage medium
CN107613093A (en) The display methods and user terminal of a kind of communication information
CN109565463B (en) Method, device and terminal for processing short message verification code
CN106970761A (en) Control method and device for the electronic installation with full frame fingerprint recognition

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