WO2018120237A1 - Method and apparatus for processing short message verification code, and terminal - Google Patents

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

Info

Publication number
WO2018120237A1
WO2018120237A1 PCT/CN2016/113985 CN2016113985W WO2018120237A1 WO 2018120237 A1 WO2018120237 A1 WO 2018120237A1 CN 2016113985 W CN2016113985 W CN 2016113985W WO 2018120237 A1 WO2018120237 A1 WO 2018120237A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
verification code
validity period
input
determining
Prior art date
Application number
PCT/CN2016/113985
Other languages
French (fr)
Chinese (zh)
Inventor
潘毅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/113985 priority Critical patent/WO2018120237A1/en
Priority to CN201680088433.4A priority patent/CN109565463B/en
Publication of WO2018120237A1 publication Critical patent/WO2018120237A1/en

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

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, an apparatus, and a terminal for processing a short message verification code.
  • the user needs to verify in the scenario of user consumption, login website or account application, binding mobile phone, etc.
  • the mobile phone and other devices can also be used to receive the SMS verification code to ensure that the user is not operating.
  • the scenarios for verification code verification include but are not limited to the following: consumption verification code, receipt of coupon verification code, money withdrawal payment verification code, registration verification code, network connection verification code, password change verification code, security verification code, mobile phone login ( Dynamic) verification code, mobile phone binding verification code.
  • the SMS verification code is generally a random string, not limited to numbers, English letters or symbols.
  • the verification code is generally requested from the service by clicking a button such as "acquire verification code".
  • the SMS verification code is sent to the mobile phone by SMS, and the mobile phone under the verification code input interface usually displays the received SMS verification code in the notification bar for a certain period of time (for example, 2 seconds) when the mobile phone receives the SMS verification code, which is displayed in the SMS verification code.
  • a certain period of time for example, 2 seconds
  • the user can quickly memorize the SMS verification code and input the verification code input box.
  • Some mobile phone applications have provided a verification code reading mechanism. Once the SMS verification code is received, it is automatically filled in to the application verification code input box. After the verification code is successfully verified, the next step can be performed.
  • the SMS containing the SMS verification code will be marked as unread (for example, an unread message is marked on the SMS interface), and only the user enters the SMS application and rereads it. The mark will disappear.
  • the SMS verification code is usually valid only for a limited time (for example, valid for 1 minute). It will expire after a limited time and will no longer be of value to the user. However, even if the SMS verification code is invalid, the SMS verification code may still be included. Short message marked as unread to remind users to read read.
  • a method, an apparatus, and a terminal for processing a short message verification code are provided to solve the problem that the short message verification code fails in the prior art but still reminds the user to read.
  • an embodiment of the present invention provides a method for processing a short message verification code, which is used for a terminal including a screen, the method comprising: displaying an authentication interface of an application on the screen, where the verification interface includes a verification code input box; Receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen, marking the short message in the short message application as unread, and the short message verification code needs to be input within a valid period The verification code input box; determining whether the short message verification code of the short message is correctly input into the verification code input box; if it is determined that the short message verification code is not correctly input within the validity period, the short The short message including the short message verification code in the message application is marked as read.
  • the not being correctly input includes: not inputting a short message verification code in the verification code input box, inputting an incorrect short message verification code, or inputting a correct short message verification code but not confirming.
  • the determining that the short message verification code is not correctly input during the validity period comprises: determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message is from The start of reception has exceeded the validity period.
  • the determining that the short message has exceeded the validity period from the beginning of the receiving comprises: determining that the short message has exceeded the validity period of the short message verification code specified in the application from the beginning of the receiving.
  • the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a public validity period from the beginning of receiving, The public validity period is used to indicate an expiration time of the short message verification code of the at least one related application, and the public validity period is greater than the validity period of the short message verification code.
  • the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
  • the method further includes: determining that the short message application includes at least one piece of the short message, the short message verification code of the short message is not correctly input within a validity period, and the short message is The short message is deleted after the cleaning period has been exceeded, and the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
  • a processing device for processing a short message verification code according to a second aspect of the present invention for a terminal including a screen
  • the device comprises: a display module, configured to display an authentication interface of the application on the screen, the verification The interface includes a verification code input box, and the short message module is configured to receive a short message including a short message verification code, and display the short message including the short message verification code on the screen by using the display module, and use the short message application
  • the short message is marked as unread, and the short message verification code needs to be input into the verification code input box during the validity period; and the determining module is 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 is further configured to: if the determining module determines that the short message verification code is not correctly input within the validity period, mark the short message including the short message verification code in the short message application Read as already.
  • the determining, by the determining, that the short message verification code is not correctly input includes: 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 the correct SMS verification code but not confirmed.
  • 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 short message has exceeded the validity period from the start of receiving.
  • 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 beginning of the receiving.
  • the determining module is further configured to: determine that the short message has exceeded a public validity period from the beginning of the receiving, where the public validity period is used to indicate an expiration time of the short message verification code of the at least one related application, The public validity period is greater than the validity period of the short message verification code.
  • the determining module is further configured to determine that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
  • the device further includes: a cleaning module; the determining module is configured to determine that the short message application includes at least one of the short messages, and the short message short message verification code is within a validity period The short message has not been correctly input, and the short message has exceeded the cleaning period from the beginning of the receiving, the cleaning period is used to indicate the deletion of the short message of the short message that is not correctly input the short message verification code; the cleaning module is used to delete the short message short message.
  • a terminal comprising: a screen; one or more processors; a memory; a plurality of applications; the memory for storing a computer program; the processor, running the computer program, Performing a process of displaying an authentication interface of the application on the screen, the verification interface including a verification code input box, receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen Marking the short message in the short message application as unread, the short message verification code needs to input the verification code input box during the validity period; and determining whether the short message verification code of the short message is correctly input into the verification a code input box; if it is determined that the short message verification code is not correctly input within the validity period, marking the short message including the short message verification code in the short message application as read.
  • the not being correctly input includes: not inputting a short message verification code in the verification code input box, inputting an incorrect short message verification code, or inputting a correct short message verification code but not confirming.
  • the determining that the short message verification code is not correctly input during the validity period comprises: determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message is from The start of reception has exceeded the validity period.
  • the determining that the short message has exceeded the validity period from the beginning of the receiving comprises: determining that the short message has exceeded the validity period of the short message verification code specified in the application from the beginning of the receiving.
  • the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a public validity period from the beginning of the receiving, and the public validity period is used to indicate The expiration time of the short message verification code of the at least one related application, where the public validity period is greater than the validity period of the short message verification code.
  • the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
  • the process further includes: determining that the short message application includes at least one piece of the short message, and the short message verification code of the short message is not correctly input within a validity period, and the short message is The short message is deleted after the cleaning period has been exceeded, and the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
  • an embodiment of the present invention provides a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a terminal device including a screen and a plurality of applications
  • the terminal device performs any of the optional implementation methods provided as described above.
  • FIG. 1 is a schematic structural diagram of a terminal for processing a short message verification code according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of processing a short message verification code on a terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for processing a short message verification code on a terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of 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 apparatus for processing a short message verification code according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the method and device for processing the short message verification code in the embodiment of the present invention can be applied to any terminal having a screen and a plurality of applications, and the device can be hardware, software or software and hardware with processing capability installed in the terminal.
  • the terminal may be a mobile phone, a tablet personal computer, a laptop computer, a digital camera, a digital camera, a projection device, a personal digital assistant (PDA), an electronic device.
  • PDA personal digital assistant
  • a book reader English: e-book reader
  • a wearable device Wearable Device
  • a virtual reality smart device etc.
  • the terminal can establish communication with the network through 2G, 3G, 4G or W-LAN (wireless local area network),
  • 2G, 3G, 4G or W-LAN wireless local area network
  • FIG. 1 shows the structure of the mobile terminal 100 provided by the embodiment of the present invention.
  • FIG. 1 is a block diagram showing a partial structure of a mobile phone 100 related to a mobile terminal provided by an embodiment of the present invention.
  • the mobile phone 100 includes components such as an RF (Radio Frequency) circuit 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.
  • RF Radio Frequency
  • FIG. 1 is only an example of implementation, and does not constitute a limitation on a mobile phone, and may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
  • the components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
  • the RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can 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 running 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 required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 100 (such as audio data, phone book, etc.) and the like.
  • the memory 120 may include volatile memory, such as non-volatile volatile random access memory (NVRAM), phase change random access memory (PRAM), and magnetic reluctance memory.
  • NVRAM non-volatile volatile random access memory
  • PRAM phase change random access memory
  • magnetic reluctance memory such as magnetic reluctance memory.
  • Memory may also include non-volatile memory, such as at least one disk storage Device, Electronically Erasable Programmable Read-Only Memory (EEPROM), flash memory device, such as NOR flash memory or NAND flash memory.
  • non-volatile memory such as at least one disk storage Device, Electronically Erasable Programmable Read-Only Memory (EEPROM), flash memory device, such as NOR flash memory or NAND flash memory.
  • EEPROM Electronically Erasable Programmable Read-Only Memory
  • flash memory device such as NOR flash memory or NAND flash memory.
  • the input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 100.
  • 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, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 131 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 may also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • 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. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141.
  • the touch panel 131 and the display panel 141 are two independent components to implement the input and input functions of the mobile phone 100 in FIG. 1, in some embodiments, the touch panel 131 may be integrated with the display panel 141. The input and output functions of the mobile phone 100 are implemented.
  • the mobile phone 100 can also include at least one type of sensor 150, such as a light sensor, a motion sensor, and His sensor.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile phone 100 moves to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the other mobile phone via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the application includes any application installed on the mobile phone 100, including but not limited to browsers, emails, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, Voice copying, positioning (such as those provided by GPS), music playback, and more.
  • the mobile phone 100 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • a power source 190 such as a battery
  • the power source can It is logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 100 may further include a short-range wireless transmission device such as a WiFi module, and details are not described herein again.
  • a short-range wireless transmission device such as a WiFi module
  • FIG. 2 is a schematic flowchart of a method for processing a short message verification code according to an embodiment of the present invention.
  • the terminal including the screen, as shown in FIG. 2 includes the following steps:
  • the screen of the phone can be used to display content for viewing by the user.
  • the verification of the consumer the receipt of the coupon verification, the payment verification, the registration verification, the network connection verification, the password verification, the security verification, the mobile phone login (dynamic) verification, the mobile phone binding verification, etc. all need to display the verification interface on the screen, verify
  • the interface includes a verification code input box for entering a verification code to pass verification.
  • the verification interface of the processor 180 displaying the application on the screen is typically triggered by the operation of the application. Taking the payment verification as an example, after selecting the item to be purchased in the shopping application and selecting “Next” or “Payment”, the trigger processor 180 displays the verification interface of the application on the screen.
  • S202 Receive a short message including a short message verification code, and display the short message including the short message verification code on the screen, and mark the short message in the short message application as unread, and the short message verification code needs to be valid. Enter the verification code input box.
  • the verification code is usually sent to the mobile phone as a short message, and the short message contains the SMS verification code.
  • the short message containing the SMS verification code can be sent to the mobile phone while displaying the verification interface, and no additional trigger is needed.
  • the trigger processor 180 displays the verification interface of the application on the screen, and also triggers the application server to the mobile phone. Send a short message with a text message verification code.
  • 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 displaying the verification interface, and an additional trigger is required.
  • the trigger application When “Next” or “Payment” is selected, the trigger application displays an application's verification interface on the screen, and the verification interface includes a "send verification code” button, and the application server is triggered to the mobile phone after the user presses the button. Send a short message with a text message verification code.
  • the short message including the short message verification code may include other information, such as the validity period of the short message verification code, in addition to 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 may be carried in the short message, or may not be carried in the short message, but is presented to the user on the verification interface of the application, for example, counting down.
  • the SMS verification code needs to enter the verification code input box within the validity period and confirm to pass the verification. If the validity period is exceeded, the SMS verification code will be invalid and the verification will not pass.
  • the mobile phone After receiving the short message containing the SMS verification code, the mobile phone needs to notify the user to input the correct SMS verification code into the verification code input box.
  • the short message received by the mobile phone in the authentication interface of the application will be partially or completely displayed on the screen. Take the mobile phone running the Android operating system as an example, and at least part of the short message including the short message verification code is displayed in the notification bar.
  • the processor 180 marks the short message in the short message application as unread until the user clicks to read the short message or uses the solution of the embodiment of the present invention. 180 will mark the short message in the short message application as read.
  • the SMS verification code input box there are two ways to input the SMS verification code in the verification code input box.
  • One is to manually input the verification code input box after the user remembers the received SMS verification code, and the other way is to automatically obtain the SMS verification by the processor 180. Enter the code and enter the verification code input box.
  • the processor 180 automatically obtains the short message verification code and fills in the verification code input box has been implemented in some applications, and the detailed implementation method will not be described in detail herein.
  • the SMS verification code is correctly entered into the verification code input box to meet at least two requirements. First, enter the SMS verification code and confirm during the validity period of the SMS verification code. Second, enter the SMS verification code and the short reception code of the verification code input box. The SMS verification code in the message is the same. If the SMS verification code is not entered in the verification code input box, or the wrong SMS verification code is entered, or the correct SMS verification code is entered, but there is If there is no confirmation before the expiration of the validity period, and the short message has exceeded the validity period of the short message verification code from the beginning of the reception, the short message verification code is not correctly input into the verification code input box within the validity period.
  • the confirmation is generally implemented by means of “submission” or “next step” in the embodiment of the present application, and is used for requesting verification of the input content.
  • a public validity period may be set, and the public validity period is used to indicate the expiration duration of the SMS verification code of at least one related application.
  • the public validity period is preferably greater than the validity period of the SMS verification code of the relevant application. Since the public validity period can be configured to be directly read by the processor 180, the processor 180 determines whether the short message verification code is correctly input, and does not need to be acquired once from the application or the short message every time, which is simpler to implement.
  • 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 determines that the short message short message verification code is correctly input. Verification code input box. If the processor 180 compares the input short message verification code with the short message verification code in the received short message, and the short message has exceeded the validity period from the beginning of the reception, it is determined that the short message short message verification code is not correctly input within the validity period. The verification code input box. The input SMS verification code is inconsistent with the SMS verification code in the received short message, that is, the SMS verification code is not correctly input, including the following situation: the SMS verification code is not input in the verification code input box, and the wrong SMS verification code is input.
  • the processor 180 determines whether the input short message verification code is correctly input within the validity period, and will not be described in detail herein. It can be understood that when the short message verification code of the short message is not correctly input within the validity period, the relevant validity period may be the validity period of the short message verification code, or may be a public validity period.
  • the method for determining that the short message has exceeded the validity period from the start of reception includes at least one of the following:
  • the processor 180 marks the short message including the short message verification code in the short message application from being unread as read.
  • the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user.
  • the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
  • FIG. 3 is a schematic flowchart 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, as shown in FIG. 3.
  • S301 Determine that the short message application includes at least one short message, where the short message verification code is not correctly input within the validity period, and the short message has exceeded the cleaning period from the beginning of the receiving, the short message is deleted, and the cleaning is performed.
  • the period is used to indicate the length of time to delete the short message that is not correctly input the short message verification code.
  • 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.
  • the short message verification code is not valid within the validity period.
  • the short message including the short message verification code in the short message application is marked as read. While being marked as read, this short message can be moved into a special category of the short message application, such as the "authentication message not entered correctly" classification.
  • Automatic classification of short messages in short message applications has been implemented in the prior art, such as "notification messages" classification, and will not be described in detail herein.
  • 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, only need to determine whether there is a short message in the special category of the short message application, and if yes, determine the short message.
  • the application contains at least one short message and the short message verification code of the short message is not correctly transmitted within the validity period.
  • the processor 180 may filter the short message in the short message application, first find the short message including the short message verification code, and then determine the short message that the short message verification code is not correctly input within 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. To determine that the short message verification code is not correctly input within the validity period, reference may be made to the method in the above embodiment.
  • the short message containing the SMS verification code is not correctly entered within the validity period, it is marked as read in the previous embodiment, and is still stored in the mobile phone, and can be read by the short message application. Since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information. After a certain period of time, the embodiment of the present invention can use such information. Direct deletion, delete the useless information in the short message application, and improve the user experience.
  • the processor 180 delete the short message.
  • the cleaning period is a duration for indicating deletion of the short message that the short message verification code is not correctly input.
  • the cleanup period can be used to indicate the length of time to delete all short messages in the short message application that are not correctly input the short message verification code.
  • the cleaning period is greater than the validity period or the public validity period of the short message verification code mentioned in the foregoing embodiment.
  • the short message verification code of the short message since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information, and the user is allowed to check for a certain period of time. After the short message is over a certain period of time, the embodiment of the present invention directly deletes such information, deletes the useless information in the short message application, and improves the user experience.
  • the device embodiment of the present invention is used to perform the method of the foregoing method embodiment of the present invention.
  • the device embodiment of the present invention is used to perform the method of the foregoing method embodiment of the present invention.
  • the device embodiment of the present invention is used to perform the method of the foregoing method embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device 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 the device includes: a display module 101 and a short message module 102. And determining module 103, wherein: the display module 101 is configured to display an authentication interface of the application on the screen, the verification interface including a verification code input box.
  • the short message module 102 is configured to receive a short message including a short message verification code, and display the short message including the short message verification code on the screen by using the display module, and mark the short message in the short message application as not Reading, the short message verification code needs to input the verification code input box within the validity period.
  • the determining module 103 is 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 determining module determines that the short message verification code is not correctly input within the validity period.
  • the embodiments of the display module 101, the short message module 102, and the determining module 103 refer to the description of steps S201 to S204 in the embodiment shown in FIG.
  • the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user.
  • the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
  • FIG. 5 is a schematic structural diagram of another apparatus for processing a short message verification code according to an embodiment of the present invention.
  • 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 of the short messages, and the short message verification code of the short message is not correctly input during the validity period, and the short message has exceeded the cleaning period since the receiving.
  • the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
  • the filtering module 104 determines that the short message application list includes at least one short message that is not attempted to be input during the validity period and the short message has exceeded the cleaning period from the beginning of the receiving, and the cleaning module 105 is configured to delete the short message.
  • the implementation of the screening module 103 and the cleaning module 104 refer to the description of step S301 in the embodiment shown in FIG.
  • the short message verification code of the short message since the short message verification code of the short message is not valid during the validity period If the input, the SMS verification code and other information included in the short message become meaningless information, and the user is allowed to check the short message after a certain period of time. After a certain period of time, the embodiment of the present invention directly deletes such information. The useless information in the short message application has been removed, improving the user experience.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the method includes: a screen 121, one or more processors 122, and a memory 123.
  • a screen 121 For the convenience of description, only the parts related to the embodiments of the present invention are shown. For the specific technical details not disclosed, please refer to the above method embodiments of the present invention and other parts of the application documents.
  • the screen 121 as an output interface with the user, displays the visual output to the user; the screen 121 may be the screen 140 in the terminal device shown in FIG.
  • Processor 122 can be processor 180 shown in FIG.
  • the memory 123 may be the middle memory 120 of the terminal device shown in FIG. 1, or a part of the components in the memory 120.
  • the terminal further includes a plurality of applications, the memory is used to store a computer program, and the processor runs the computer program, and performs the following steps:
  • the verification interface including a verification code input box
  • the short message including the short message verification code in the short message application is marked as read.
  • the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user.
  • the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
  • processor 122 is further configured to perform the following steps:
  • the short message verification code is not correctly input during the validity period, and the short message has exceeded the cleaning period since the receiving, and the short message is deleted.
  • the cleaning period is used to indicate the length of time for deleting the short message that is not correctly inputting the short message verification code.
  • the short message verification code of the short message since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information, and the user is allowed to check the time.
  • the short message after a certain period of time, the embodiment of the present invention deletes such information directly, deletes the useless information in the short message application, and improves the user experience.
  • Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a terminal including a screen and a plurality of applications, cause the terminal to execute a map 2 and the method described in the embodiment shown in Fig. 3.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

A method for processing a short message verification code provided in an embodiment of the present invention is applied to a terminal comprising a screen. The method comprises: displaying a verification interface of an application on a screen, the verification interface comprising a short message verification code input box; receiving a short message comprising the short message verification code and displaying the short message comprising the short message verification code on the screen; marking the short message in the short message application to be "not read", the short message verification code needing to be inputted into the verification code input box in a valid period; determining whether the short message verification code of the short message is correctly inputted into the verification code input box; and if the short message verification code is not correctly inputted in the valid period, marking the short message comprising the short message verification code in the short message application, to be "read". User experience is improved.

Description

一种短信验证码的处理方法、装置和终端Method, device and terminal for processing short message verification code 技术领域Technical field
本发明涉及计算机领域,尤其涉及一种短信验证码的处理方法、装置及终端。The present invention relates to the field of computers, and in particular, to a method, an apparatus, and a terminal for processing a short message verification code.
背景技术Background technique
通常在用户进行消费、登陆网站或账户申请、绑定手机等场景下需要进行验证,除了采用图片验证码,也可以采用手机等设备接收短信验证码,以确保是本人非机器进行操作。Usually, the user needs to verify in the scenario of user consumption, login website or account application, binding mobile phone, etc. In addition to using the image verification code, the mobile phone and other devices can also be used to receive the SMS verification code to ensure that the user is not operating.
进行验证码验证的场景包括但不仅限于以下:消费验证码、领取优惠券验证码、钱款提取支付验证码、注册验证码、网络连接验证码、更改密码验证码、安全验证码、手机登陆(动态)验证码、手机绑定验证码。The scenarios for verification code verification include but are not limited to the following: consumption verification code, receipt of coupon verification code, money withdrawal payment verification code, registration verification code, network connection verification code, password change verification code, security verification code, mobile phone login ( Dynamic) verification code, mobile phone binding verification code.
短信验证码一般为随机字串,不仅限于数字、英文字母或者符号。The SMS verification code is generally a random string, not limited to numbers, English letters or symbols.
在应用的验证码输入界面下,一般通过点击“获取验证码”等按钮向服务请求获取验证码。短信验证码以短信发送到手机,处于验证码输入界面下的手机收到短信验证码时通常会在通知栏显示收到的短信验证码一段时间(比如2秒),在短信验证码显示的这段时间内,用户可以快速记忆所述短信验证码后输入验证码输入框。一部分手机应用已经提供了验证码读取的机制,一旦接收到短信验证码自动填写到应用验证码输入框,验证码被验证成功后就可进行下一步操作。In the verification code input interface of the application, the verification code is generally requested from the service by clicking a button such as "acquire verification code". The SMS verification code is sent to the mobile phone by SMS, and the mobile phone under the verification code input interface usually displays the received SMS verification code in the notification bar for a certain period of time (for example, 2 seconds) when the mobile phone receives the SMS verification code, which is displayed in the SMS verification code. During the period of time, the user can quickly memorize the SMS verification code and input the verification code input box. Some mobile phone applications have provided a verification code reading mechanism. Once the SMS verification code is received, it is automatically filled in to the application verification code input box. After the verification code is successfully verified, the next step can be performed.
如果短信验证码没有正确的输入到验证码输入框,包含短信验证码的短信会被标记为未读(比如在短信界面标记有一条未读消息),只有用户进入到短信应用重新阅读后未读标记才会消失。短信验证码通常只在限定的时间内有效(比如1分钟内有效),限定的时间之后就会失效,对用户也不再有价值,然而即使短信验证码失效了仍然可能将包含短信验证码的短消息标记为未读提醒用户阅 读。If the SMS verification code is not correctly entered into the verification code input box, the SMS containing the SMS verification code will be marked as unread (for example, an unread message is marked on the SMS interface), and only the user enters the SMS application and rereads it. The mark will disappear. The SMS verification code is usually valid only for a limited time (for example, valid for 1 minute). It will expire after a limited time and will no longer be of value to the user. However, even if the SMS verification code is invalid, the SMS verification code may still be included. Short message marked as unread to remind users to read read.
发明内容Summary of the invention
根据一些实施例提供的一种短信验证码的处理方法、装置和终端,旨在解决现有技术中短信验证码失效了却仍然提醒用户阅读的问题。According to some embodiments, a method, an apparatus, and a terminal for processing a short message verification code are provided to solve the problem that the short message verification code fails in the prior art but still reminds the user to read.
第一方面,本发明实施例提供一种短信验证码的处理方法,用于包括屏幕的终端,该方法包括:在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;如果确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。In a first aspect, an embodiment of the present invention provides a method for processing a short message verification code, which is used for a terminal including a screen, the method comprising: displaying an authentication interface of an application on the screen, where the verification interface includes a verification code input box; Receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen, marking the short message in the short message application as unread, and the short message verification code needs to be input within a valid period The verification code input box; determining whether the short message verification code of the short message is correctly input into the verification code input box; if it is determined that the short message verification code is not correctly input within the validity period, the short The short message including the short message verification code in the message application is marked as read.
通过这种方式,短消息的短信验证码在有效期内未被正确输入时,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。In this way, when the short message verification code of the short message is not correctly input within the validity period, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
在一个可能的实现方式中,所述未被正确输入包括:所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。In a possible implementation manner, the not being correctly input includes: not inputting a short message verification code 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 a possible implementation, the determining that the short message verification code is not correctly input during the validity period comprises: determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message is from The start of reception has exceeded the validity period.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of the receiving comprises: determining that the short message has exceeded the validity period of the short message verification code specified in the application from the beginning of the receiving.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了公用的有效期,所述 公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a public validity period from the beginning of receiving, The public validity period is used to indicate an expiration time of the short message verification code of the at least one related application, and the public validity period is greater than the validity period of the short message verification code.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
在一个可能的实现方式中,所述方法进一步包括:确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。In a possible implementation, the method further includes: determining that the short message application includes at least one piece of the short message, the short message verification code of the short message is not correctly input within a validity period, and the short message is The short message is deleted after the cleaning period has been exceeded, and the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
根据本发明第二方面提供的一种短信验证码的处理装置,用于包括屏幕的终端,其中,所述装置包括:显示模块,用于在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;短消息模块,用于接收包括短信验证码的短消息并通过所述显示模块在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;确定模块,用于确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;所述短消息模块还用于如果所述确定模块确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。A processing device for processing a short message verification code according to a second aspect of the present invention, for a terminal including a screen, wherein the device comprises: a display module, configured to display an authentication interface of the application on the screen, the verification The interface includes a verification code input box, and the short message module is configured to receive a short message including a short message verification code, and display the short message including the short message verification code on the screen by using the display module, and use the short message application The short message is marked as unread, and the short message verification code needs to be input into the verification code input box during the validity period; and the determining module is 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 is further configured to: if the determining module determines that the short message verification code is not correctly input within the validity period, mark the short message including the short message verification code in the short message application Read as already.
通过这种方式,短消息的短信验证码在有效期内未被正确输入时,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。In this way, when the short message verification code of the short message is not correctly input within the validity period, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
在一个可能的实现方式中,所述确定模块确定所述短信验证码未被正确的输入包括:确定所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。In a possible implementation manner, the determining, by the determining, that the short message verification code is not correctly input, includes: 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 the correct SMS verification code but not confirmed.
在一个可能的实现方式中,所述确定模块还用于确定所述短信验证码未被正确输入所述验证码输入框,并确定所述短消息从接收开始已经超过了所述有效期。 In a possible implementation, 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 short message has exceeded the validity period from the start of receiving.
在一个可能的实现方式中,所述确定模块还用于确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。In a possible implementation, 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 beginning of the receiving.
在一个可能的实现方式中,所述确定模块还用于确定所述短消息从接收开始已经超过了公用的有效期,所述公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。In a possible implementation manner, the determining module is further configured to: determine that the short message has exceeded a public validity period from the beginning of the receiving, where the public validity period is used to indicate an expiration time of the short message verification code of the at least one related application, The public validity period is greater than the validity period of the short message verification code.
在一个可能的实现方式中,所述确定模块还用于确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。In a possible implementation manner, the determining module is further configured to determine that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
在一个可能的实现方式中,所述的装置还包括:清理模块;所述确定模块用于确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长;所述清理模块用于删除所述短消息。In a possible implementation, the device further includes: a cleaning module; the determining module is configured to determine that the short message application includes at least one of the short messages, and the short message short message verification code is within a validity period The short message has not been correctly input, and the short message has exceeded the cleaning period from the beginning of the receiving, the cleaning period is used to indicate the deletion of the short message of the short message that is not correctly input the short message verification code; the cleaning module is used to delete the short message short message.
根据本发明第三方面提供的一种终端,包括:屏幕;一个或多个处理器;存储器;多个应用程序;所述存储器用于存储计算机程序;所述处理器,运行所述计算机程序,执行下述流程:在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;如果确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。A terminal according to a third aspect of the present invention, comprising: a screen; one or more processors; a memory; a plurality of applications; the memory for storing a computer program; the processor, running the computer program, Performing a process of displaying an authentication interface of the application on the screen, the verification interface including a verification code input box, receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen Marking the short message in the short message application as unread, the short message verification code needs to input the verification code input box during the validity period; and determining whether the short message verification code of the short message is correctly input into the verification a code input box; if it is determined that the short message verification code is not correctly input within the validity period, marking the short message including the short message verification code in the short message application as read.
通过这种方式,短消息的短信验证码在有效期内未被正确输入时,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。In this way, when the short message verification code of the short message is not correctly input within the validity period, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
在一个可能的实现方式中,所述未被正确输入包括:所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。 In a possible implementation manner, the not being correctly input includes: not inputting a short message verification code 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 a possible implementation, the determining that the short message verification code is not correctly input during the validity period comprises: determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message is from The start of reception has exceeded the validity period.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of the receiving comprises: determining that the short message has exceeded the validity period of the short message verification code specified in the application from the beginning of the receiving.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了公用的有效期,所述公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a public validity period from the beginning of the receiving, and the public validity period is used to indicate The expiration time of the short message verification code of the at least one related application, where the public validity period is greater than the validity period of the short message verification code.
在一个可能的实现方式中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。In a possible implementation manner, the determining that the short message has exceeded the validity period from the beginning of receiving includes: determining that the short message has exceeded a validity period specified in the short message from the beginning of receiving.
在一个可能的实现方式中,所述流程进一步包括:确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。In a possible implementation manner, the process further includes: determining that the short message application includes at least one piece of the short message, and the short message verification code of the short message is not correctly input within a validity period, and the short message is The short message is deleted after the cleaning period has been exceeded, and the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
第四方面,本发明实施例提供一种存储一个或多个程序的计算机可读存储介质,该一个或多个程序包括指令,该指令当被包括屏幕和多个应用程序的终端设备执行时使所述终端设备执行如上述提供的任意一种可选的实现方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a terminal device including a screen and a plurality of applications The terminal device performs any of the optional implementation methods provided as described above.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,而非全部。对于本领域普通技术人员来讲,在没有付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is apparent that the drawings in the following description are only some, but not all, of the invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图1示出本发明实施例提供的一种用于处理短信验证码的终端的结构示意图;1 is a schematic structural diagram of a terminal for processing a short message verification code according to an embodiment of the present invention;
图2示出本发明实施例提供的一种在终端上处理短信验证码的流程示意图;2 is a schematic flowchart of processing a short message verification code on a terminal according to an embodiment of the present invention;
图3示出本发明实施例提供的另一种在终端上处理短信验证码的流程示意图;FIG. 3 is a schematic flowchart of another method for processing a short message verification code on a terminal according to an embodiment of the present invention;
图4示出本发明实施例提供的一种短信验证码的处理装置的结构示意图;FIG. 4 is a schematic structural diagram of a device for processing a short message verification code according to an embodiment of the present invention;
图5示出本发明实施例提供的另一种短信验证码的处理装置的结构示意图;FIG. 5 is a schematic structural diagram of another apparatus for processing a short message verification code according to an embodiment of the present invention;
图6示出本发明实施例提供的一种终端的结构示意图。FIG. 6 is 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 are further described below in conjunction with the accompanying drawings in the embodiments of the present invention.
本发明实施例短信验证码的处理方法和装置,可应用于具有屏幕及多个应用程序的任何终端中,所述装置可以是安装于终端中的具有处理能力的硬件、软件或软件与硬件的结合,其中,所述终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、数码相机、数字摄影机、投影设备、个人数字助理(personal digital assistant,简称PDA)、电子书阅读器(英文:e-book reader)或可穿戴式设备(Wearable Device)、虚拟现实智能设备等,所述终端可以通过2G、3G、4G或W-LAN(无线局域网)与网络建立通信,为简明起见,对此本发明实施例不做进一步限定。为了方便说明,在以下的实施例中,以移动终端为例进行说明。The method and device for processing the short message verification code in the embodiment of the present invention can be applied to any terminal having a screen and a plurality of applications, and the device can be hardware, software or software and hardware with processing capability installed in the terminal. In combination, the terminal may be a mobile phone, a tablet personal computer, a laptop computer, a digital camera, a digital camera, a projection device, a personal digital assistant (PDA), an electronic device. A book reader (English: e-book reader) or a wearable device (Wearable Device), a virtual reality smart device, etc., the terminal can establish communication with the network through 2G, 3G, 4G or W-LAN (wireless local area network), For the sake of brevity, the embodiment of the present invention is not further limited. For convenience of description, in the following embodiments, a mobile terminal will be described as an example.
本发明一实施例提供一种移动终端,可用于执行本发明实施例中所述的方法。以移动终端为手机为例,图1示出了本发明实施例提供的移动终端100的结构。 An embodiment of the present invention provides a mobile terminal, which can be used to perform the method described in the embodiments of the present invention. Taking the mobile terminal as a mobile phone as an example, FIG. 1 shows the structure of the mobile terminal 100 provided by the embodiment of the present invention.
图1示出的是与本发明实施例提供的移动终端相关的手机100的部分结构的框图。参考图1,手机100包括RF(Radio Frequency,射频)电路110、存储器120、输入单元130、屏幕140、传感器150、音频电路160、处理器180、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构只做实现方式的举例,并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 1 is a block diagram showing a partial structure of a mobile phone 100 related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 1, the mobile phone 100 includes components such as an RF (Radio Frequency) circuit 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. It can be understood by those skilled in the art that the structure of the mobile phone shown in FIG. 1 is only an example of implementation, and does not constitute a limitation on a mobile phone, and may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
下面结合图1对手机100的各个构成部件进行具体的介绍:The components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 110 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the processor 180 processes the data. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuits include, but are 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, RF circuitry 110 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile Random Access Memory,简称NVRAM)、相变化随机存取内存(Phase Change RAM,简称PRAM)、磁阻式随机存取内存(Magetoresistive RAM,简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储 器件、电子可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。The memory 120 can 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 running 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 required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 100 (such as audio data, phone book, etc.) and the like. In addition, the memory 120 may include volatile memory, such as non-volatile volatile random access memory (NVRAM), phase change random access memory (PRAM), and magnetic reluctance memory. Memory (Magetoresistive RAM, MRAM for short), etc., may also include non-volatile memory, such as at least one disk storage Device, Electronically Erasable Programmable Read-Only Memory (EEPROM), flash memory device, such as NOR flash memory or NAND flash memory.
输入单元130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触控面板131以及其他输入设备132。触控面板131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板131上或在触控面板131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板131。除了触控面板131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 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, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 131 or near the touch panel 131. Operation), and drive the corresponding connecting device according to a preset program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
屏幕140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种界面。屏幕140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触控面板131可覆盖显示面板141,当触控面板131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板131与显示面板141是作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板131与显示面板141集成而实现手机100的输入和输出功能。 Screen 140 can be used to display information entered by the user or information provided to the user as well as various interfaces of handset 100. 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. When the touch panel 131 detects a touch operation on or near the touch panel 131, the touch panel 131 transmits to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event. The type provides a corresponding visual output on display panel 141. Although the touch panel 131 and the display panel 141 are two independent components to implement the input and input functions of the mobile phone 100 in FIG. 1, in some embodiments, the touch panel 131 may be integrated with the display panel 141. The input and output functions of the mobile phone 100 are implemented.
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其 他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone 100 can also include at least one type of sensor 150, such as a light sensor, a motion sensor, and His sensor. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile phone 100 moves to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. As for the mobile phone 100 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here Let me repeat.
音频电路160、扬声器161,传声器162可提供用户与手机100之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the handset 100. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, sent to the other mobile phone via the RF circuit 110, or outputted to the memory 120 for further processing.
处理器180是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the handset 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the mobile phone 100 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
所述应用程序包括安装在手机100上的任何应用,包括但不限于浏览器、电子邮件、即时消息服务、文字处理、键盘虚拟、窗口小部件(Widget)、加密、数字版权管理、语音识别、语音复制、定位(例如由全球定位系统提供的功能)、音乐播放等等。The application includes any application installed on the mobile phone 100, including but not limited to browsers, emails, instant messaging services, word processing, keyboard virtualization, widgets, encryption, digital rights management, voice recognition, Voice copying, positioning (such as those provided by GPS), music playback, and more.
手机100还包括给各个部件供电的电源190(比如电池),优选的,电源可 以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 also includes a power source 190 (such as a battery) that supplies power to the various components. Preferably, the power source can It is logically connected to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机100还可以包括WiFi模块等短距离无线传输器件,在此不再赘述。Although not shown, the mobile phone 100 may further include a short-range wireless transmission device such as a WiFi module, and details are not described herein again.
以下,将结合图1具体阐述本发明实施例提供的一种短信验证码的处理方法,请参阅图2,图2是本发明实施例提供的一种短信验证码的处理方法的流程示意图,用于包括屏幕的终端,如图2所示,包括如下步骤:The following is a detailed description of a method for processing a short message verification code according to an embodiment of the present invention. Referring to FIG. 2, FIG. 2 is a schematic flowchart of a method for processing a short message verification code according to an embodiment of the present invention. The terminal including the screen, as shown in FIG. 2, includes the following steps:
S201、在屏幕上显示应用的验证界面,验证界面包括验证码输入框。S201. Display an application verification interface on the screen, and the verification interface includes a verification code input box.
手机的屏幕可以用于显示内容给用户查看。通常,消费验证、领取优惠券验证、支付验证、注册验证、网络连接验证、更改密码验证、安全验证、手机登陆(动态)验证、手机绑定验证等场景都需要在屏幕上显示验证界面,验证界面包括验证码输入框,用于输入验证码以通过验证。The screen of the phone can be used to display content for viewing by the user. Usually, the verification of the consumer, the receipt of the coupon verification, the payment verification, the registration verification, the network connection verification, the password verification, the security verification, the mobile phone login (dynamic) verification, the mobile phone binding verification, etc. all need to display the verification interface on the screen, verify The interface includes a verification code input box for entering a verification code to pass verification.
处理器180在屏幕上显示应用的验证界面通常由对应用的操作触发。以支付验证为例,在购物应用中选择要购买的商品后选择“下一步”或“支付”,触发处理器180在屏幕上显示应用的验证界面。The verification interface of the processor 180 displaying the application on the screen is typically triggered by the operation of the application. Taking the payment verification as an example, after selecting the item to be purchased in the shopping application and selecting “Next” or “Payment”, the trigger processor 180 displays the verification interface of the application on the screen.
S202、接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框。S202. Receive a short message including a short message verification code, and display the short message including the short message verification code on the screen, and mark the short message in the short message application as unread, and the short message verification code needs to be valid. Enter the verification code input box.
为了通过验证界面的验证,需要在验证码输入框中输入正确的验证码。为安全,验证码通常是以短消息发送到手机,短消息中包含短信验证码。In order to verify the verification of the interface, you need to enter the correct verification code in the verification code input box. For security, the verification code is usually sent to the mobile phone as a short message, and the short message contains the SMS verification code.
包含短信验证码的短消息可以是显示验证界面的同时向手机发送,不需要额外的触发。同样以支付验证为例,在购物应用中选择要购买的商品后选择“下一步”或“支付”时,触发处理器180在屏幕上显示应用的验证界面的同时,也触发应用的服务器向手机发送包含短信验证码的短消息。可选的,包含短信验证码的短消息也可以是显示验证界面之后在验证界面上被触发向手机发送,需要额外的触发。同样以支付验证为例,在购物应用中选择要购买的商品后选 择“下一步”或“支付”时,触发应用在屏幕上显示应用的验证界面,在该验证界面上包含“发送验证码”的按钮,在用户按了该按钮之后才触发应用的服务器向手机发送包含短信验证码的短消息。The short message containing the SMS verification code can be sent to the mobile phone while displaying the verification interface, and no additional trigger is needed. Similarly, in the case of payment verification, when selecting the item to be purchased in the shopping application and selecting "Next" or "Payment", the trigger processor 180 displays the verification interface of the application on the screen, and also triggers the application server to the mobile phone. Send a short message with a text message verification code. 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 displaying the verification interface, and an additional trigger is required. Similarly, in the case of payment verification, select the item to be purchased in the shopping application. When "Next" or "Payment" is selected, the trigger application displays an application's verification interface on the screen, and the verification interface includes a "send verification code" button, and the application server is triggered to the mobile phone after the user presses the button. Send a short message with a text message verification code.
所述包含短信验证码的短消息中除了包括短信验证码,还可以包括其他信息,比如短信验证码的有效期。以支付验证为例,该短消息还可以包括支付金额、支付账户、收款方等。短信验证码的有效期除了可以携带在短消息中,也可以不携带在短消息中,而是在应用的验证界面上提示给用户,比如,倒计时。短信验证码需要在有效期内输入验证码输入框并确认才能验证通过,如果超过有效期输入,短信验证码会失效导致验证不通过。The short message including the short message verification code may include other information, such as the validity period of the short message verification code, in addition to 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 may be carried in the short message, or may not be carried in the short message, but is presented to the user on the verification interface of the application, for example, counting down. The SMS verification code needs to enter the verification code input box within the validity period and confirm to pass the verification. If the validity period is exceeded, the SMS verification code will be invalid and the verification will not pass.
手机接收到包含短信验证码的短消息后,需要通知用户以便于向验证码输入框输入正确的短信验证码。通常的,在应用的验证界面下手机收到的短消息会部分或全部显示在屏幕上。以运行Android操作系统的手机为例,在通知栏显示短信验证码在内的短消息的至少部分信息。After receiving the short message containing the SMS verification code, the mobile phone needs to notify the user to input the correct SMS verification code into the verification code input box. Usually, the short message received by the mobile phone in the authentication interface of the application will be partially or completely displayed on the screen. Take the mobile phone running the Android operating system as an example, and at least part of the short message including the short message verification code is displayed in the notification bar.
手机接收到包含短信验证码的短消息后,处理器180会将短消息应用中的所述短消息标记为未读,直到用户点击阅读该短消息或利用本发明实施例的方案后,处理器180才会将短消息应用中的所述短消息标记为已读。After the mobile phone receives the short message including the short message verification code, the processor 180 marks the short message in the short message application as unread until the user clicks to read the short message or uses the solution of the embodiment of the present invention. 180 will mark the short message in the short message application as read.
S203、确定所述短消息的短信验证码是否被正确的输入所述验证码输入框。S203. Determine whether the short message verification code of the short message is correctly input into the verification code input box.
目前在验证码输入框输入短信验证码的方式有两种,一种是由用户记住收到的短信验证码之后,手动输入验证码输入框,另一种方式为处理器180自动获取短信验证码并填入验证码输入框。以运行Android操作系统的手机为例,处理器180自动获取短信验证码并填入验证码输入框在部分应用中已经实现,在此不再详述细实现方法。Currently, there are two ways to input the SMS verification code in the verification code input box. One is to manually input the verification code input box after the user remembers the received SMS verification code, and the other way is to automatically obtain the SMS verification by the processor 180. Enter the code and enter the verification code input box. Taking the mobile phone running the Android operating system as an example, the processor 180 automatically obtains the short message verification code and fills in the verification code input box has been implemented in some applications, and the detailed implementation method will not be described in detail herein.
短信验证码被正确的输入验证码输入框至少要满足两点要求,第一,在短信验证码有效期内输入短信验证码并确认,第二,输入验证码输入框的短信验证码与接收的短消息中的短信验证码一致。如果验证码输入框中没有输入短信验证码,或者输入了错误的短信验证码,或者输入了正确的短信验证码但在有 效期满之前没有确认,并且所述短消息从接收开始已经超过了短信验证码的有效期,那么短信验证码在有效期内未被正确的输入验证码输入框。确认在本申请实施例中一般通过“提交”或“下一步”等方式体现,用于将输入的内容提请验证。The SMS verification code is correctly entered into the verification code input box to meet at least two requirements. First, enter the SMS verification code and confirm during the validity period of the SMS verification code. Second, enter the SMS verification code and the short reception code of the verification code input box. The SMS verification code in the message is the same. If the SMS verification code is not entered in the verification code input box, or the wrong SMS verification code is entered, or the correct SMS verification code is entered, but there is If there is no confirmation before the expiration of the validity period, and the short message has exceeded the validity period of the short message verification code from the beginning of the reception, the short message verification code is not correctly input into the verification code input box within the validity period. The confirmation is generally implemented by means of “submission” or “next step” in the embodiment of the present application, and is used for requesting verification of the input content.
由于不同的应用会设定不同的短信验证码有效期,为了方便处理器统一管理,可以设定一个公用的有效期,该公用的有效期用于指示至少一个相关应用的短信验证码的过期时长。该公用的有效期最好大于相关应用的短信验证码有效期。由于公用的有效期可以配置为处理器180直接读取,处理器180确定短信验证码是否被正确输入时不需要每一次都从应用或短消息获取一次,实现起来更简单。Since different applications set different SMS verification code expiration dates, in order to facilitate unified management of the processor, a public validity period may be set, and the public validity period is used to indicate the expiration duration of the SMS verification code of at least one related application. The public validity period is preferably greater than the validity period of the SMS verification code of the relevant application. Since the public validity period can be configured to be directly read by the processor 180, the processor 180 determines whether the short message verification code is correctly input, and does not need to be acquired once from the application or the short message every time, which is simpler to implement.
在验证码输入框输入短信验证码后,处理器180会比较输入的短信验证码是否与接收到的短消息中的短信验证码一致,一致则确定短消息的短信验证码被正确的输入所述验证码输入框。如果处理器180比较输入的短信验证码与接收到的短消息中的短信验证码不一致,且短消息从接收开始已经超过了有效期,则确定短消息的短信验证码在有效期内未被正确的输入所述验证码输入框。输入的短信验证码与接收到的短消息中的短信验证码不一致,即短信验证码未被正确的输入,包括以下情形:验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。处理器180判断输入的短信验证码在有效期内是否被正确的输入在现有技术中也已经实现,在此不再详述。可以理解的,上文中确定短消息的短信验证码在有效期内未被正确的输入时,相关的有效期可以是短信验证码的有效期,也可以是公用的有效期。After inputting the short message verification code 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 determines that the short message short message verification code is correctly input. Verification code input box. If the processor 180 compares the input short message verification code with the short message verification code in the received short message, and the short message has exceeded the validity period from the beginning of the reception, it is determined that the short message short message verification code is not correctly input within the validity period. The verification code input box. The input SMS verification code is inconsistent with the SMS verification code in the received short message, that is, the SMS verification code is not correctly input, including the following situation: the SMS verification code is not input in the verification code input box, and the wrong SMS verification code is input. Or enter the correct SMS verification code but did not confirm. It is also implemented in the prior art that the processor 180 determines whether the input short message verification code is correctly input within the validity period, and will not be described in detail herein. It can be understood that when the short message verification code of the short message is not correctly input within the validity period, the relevant validity period may be the validity period of the short message verification code, or may be a public validity period.
确定所述短消息从接收开始已经超过了有效期的方法包括以下至少一种:The method for determining that the short message has exceeded the validity period from the start of reception includes at least one of the following:
确定短消息从接收开始已经超过了所述应用中指定的短信验证码有效期;Determining that the short message has exceeded the validity period of the short message verification code specified in the application from the start of receiving;
确定短消息从接收开始已经超过了公用的有效期;Determining that the short message has exceeded the public validity period since the reception;
确定短消息从接收开始已经超过了该短消息中指定的有效期。It is determined that the short message has exceeded the validity period specified in the short message since the reception.
S204、如果确定所述短信验证码在所述有效期内未被正确输入,则将所述 短消息应用中包括所述短信验证码的所述短消息标记为已读。S204. If it is determined that the short message verification code is not correctly input within the validity period, the The short message including the short message verification code in the short message application is marked as read.
如果上一步中判断所述短信验证码在所述有效期内未被正确输入,则处理器180将所述短消息应用中包括所述短信验证码的所述短消息从未读标记为已读。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 from being unread as read.
相比于现有技术,由于该短消息的短信验证码在有效期内未被正确输入,即使用户回头再去阅读也不能用于验证,将该未读短消息提示给用户已经没有必要,在本发明的上述实施例中,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。Compared with the prior art, since the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user. In the above embodiment of the invention, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
以下,将结合图1、图2和图3具体阐述本发明实施例提供的一种短信验证码的处理方法。请参阅图3,图3是本发明实施例提供的一种短信验证码的处理方法的流程示意图,用于包括屏幕的终端,如图3所示。Hereinafter, a method for processing a short message verification code according to an embodiment of the present invention will be specifically described in conjunction with FIG. 1, FIG. 2 and FIG. 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, which is used for a terminal including a screen, as shown in FIG. 3.
S301,确定短消息应用中包含至少一条短消息,该短消息的短信验证码在有效期内未被正确输入,且该短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。S301. Determine that the short message application includes at least one short message, where the short message verification code is not correctly input within the validity period, and the short message has exceeded the cleaning period from the beginning of the receiving, the short message is deleted, and the cleaning is performed. The period is used to indicate the length of time to delete the short message that is not correctly input the short message verification code.
确定短消息应用中包含至少一条短消息且该短消息的短信验证码在有效期内未被正确输入可以结合上个实施例来实现,上个实施例中如果确定短信验证码在有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。在标记为已读的同时,可以将这个短消息移入短消息应用的一个特殊分类中,比如“未正确输入的验证消息”分类。在短消息应用中自动将短消息分类已经在现有技术中实现,比如“通知消息”分类,在此不再详述。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 the previous embodiment, if it is determined that the short message verification code is not valid within the validity period, And inputting, the short message including the short message verification code in the short message application is marked as read. While being marked as read, this short message can be moved into a special category of the short message application, such as the "authentication message not entered correctly" classification. Automatic classification of short messages in short message applications has been implemented in the prior art, such as "notification messages" classification, and will not be described in detail herein.
因此,确定短消息应用中包含至少一条短消息且该短消息的短信验证码在有效期内未被正确输入只需要确定短消息应用的上述特殊分类中是否有短消息,如果有,则判断短消息应用中包含至少一条短消息且该短消息的短信验证码在有效期内未被正确输。 Therefore, 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, only need to determine whether there is a short message in the special category of the short message application, and if yes, determine the short message. The application contains at least one short message and the short message verification code of the short message is not correctly transmitted within the validity period.
除了上述的方法,也可以由处理器180对短消息应用中的短消息进行筛选,先找到包含短信验证码的短消息,再确定该短信验证码在有效期内未被正确输入的短消息。找到包含短信验证码的短消息在现有技术中已经实现,在此不再详述。确定该短信验证码在有效期内未被正确输入可以参考上述实施例中的方法。In addition to the above method, the processor 180 may filter the short message in the short message application, first find the short message including the short message verification code, and then determine the short message that the short message verification code is not correctly input within 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. To determine that the short message verification code is not correctly input within the validity period, reference may be made to the method in the above embodiment.
如果包含短信验证码的短消息在有效期内没有被正确输入,在上一个实施例中被标注为已读,并且仍然保存在手机中,可以通过短消息应用查找阅读。由于该短消息的短信验证码在有效期内未被正确输入,该短消息包含的短信验证码及其他信息都成为了没有意义的信息,超过了一定时间后,本发明实施例可以将这类信息直接删除,删除了短消息应用中的无用信息,改善了用户的体验。If the short message containing the SMS verification code is not correctly entered within the validity period, it is marked as read in the previous embodiment, and is still stored in the mobile phone, and can be read by the short message application. Since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information. After a certain period of time, the embodiment of the present invention can use such information. Direct deletion, delete the useless information in the short message application, and improve the user experience.
上述步骤中确定短消息应用中包含至少一条短消息且该短消息的短信验证码在有效期内未被正确输入时,进一步确定该短消息从接收开始是否已经超过清理周期,如果是,那么处理器180删除该短消息。清理周期为用于指示删除所述未被正确输入短信验证码的短消息的时长。清理周期可以用于指示删除短消息应用中所有未被正确输入短信验证码的短消息的时长。可选的,清理周期要大于上述实施例中提到的短信验证码的有效期或公用的有效期。In the foregoing step, 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 within the validity period, further determining whether the short message has exceeded the cleaning period from the start of receiving, and if so, the processor 180 delete the short message. The cleaning period is a duration for indicating deletion of the short message that the short message verification code is not correctly input. The cleanup period can be used to indicate the length of time to delete all short messages in the short message application that are not correctly input the short message verification code. Optionally, the cleaning period is greater than the validity period or the public validity period of the short message verification code mentioned in the foregoing embodiment.
在本发明的上述实施例中,由于该短消息的短信验证码在有效期内未被正确输入,该短消息包含的短信验证码及其他信息都成为了没有意义的信息,留一定时间方便用户查阅该短消息,超过了一定时间后,本发明实施例将这类信息直接删除,删除了短消息应用中的无用信息,改善了用户的体验。In the above embodiment of the present invention, since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information, and the user is allowed to check for a certain period of time. After the short message is over a certain period of time, the embodiment of the present invention directly deletes such information, deletes the useless information in the short message application, and improves the user experience.
下面为本发明装置实施例,本发明装置实施例用于执行本发明上述方法实施例的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明上述方法实施例及申请文件其他部分。The following is a device embodiment of the present invention. The device embodiment of the present invention is used to perform the method of the foregoing method embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Reference is made to the above method embodiments of the present invention and other parts of the application.
请参阅图4,图4是本发明实施例提供的一种短信验证码的处理装置的结构示意图,用于包括屏幕的终端,该装置包括:显示模块101、短消息模块102 和确定模块103,其中:显示模块101,用于在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框。短消息模块102,用于接收包括短信验证码的短消息并通过所述显示模块在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框。确定模块103,用于确定所述短消息的短信验证码是否被正确的输入所述验证码输入框。短消息模块102还用于如果确定模块确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a device 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 the device includes: a display module 101 and a short message module 102. And determining module 103, wherein: the display module 101 is configured to display an authentication interface of the application on the screen, the verification interface including a verification code input box. The short message module 102 is configured to receive a short message including a short message verification code, and display the short message including the short message verification code on the screen by using the display module, and mark the short message in the short message application as not Reading, the short message verification code needs to input the verification code input box within the validity period. The determining module 103 is 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 determining module determines that the short message verification code is not correctly input within the validity period.
本实施例中,例如:显示模块101、短消息模块102和确定模块103的实施方式,可以参见图2所示实施例中的步骤S201~S204的说明。In this embodiment, for example, the embodiments of the display module 101, the short message module 102, and the determining module 103, refer to the description of steps S201 to S204 in the embodiment shown in FIG.
相比于现有技术,由于该短消息的短信验证码在有效期内未被正确输入,即使用户回头再去阅读也不能用于验证,将该未读短消息提示给用户已经没有必要,在本发明的上述实施例中,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。Compared with the prior art, since the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user. In the above embodiment of the invention, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
以下,将结合图4和图5具体阐述本发明实施例提供的另一种短信验证码的处理装置。参阅图5,图5是本发明实施例提供的另一种短信验证码的处理装置的结构示意图,图5的处理装置包括:筛选模块104和清理模块105。其中筛选模块104用于确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。在筛选模块104确定短消息应用列表中至少包括一条在有效期内未被争取输入的短消息且短消息从接收开始已经超过了清理周期,清理模块105,用于删除所述短消息。In the following, another apparatus for processing a short message verification code according to an embodiment of the present invention will be specifically described with reference to FIG. 4 and FIG. Referring to FIG. 5, FIG. 5 is a schematic structural diagram of another apparatus for processing a short message verification code according to an embodiment of the present invention. 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 of the short messages, and the short message verification code of the short message is not correctly input during the validity period, and the short message has exceeded the cleaning period since the receiving. The cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code. The filtering module 104 determines that the short message application list includes at least one short message that is not attempted to be input during the validity period and the short message has exceeded the cleaning period from the beginning of the receiving, and the cleaning module 105 is configured to delete the short message.
本实施例中,例如:筛选模块103和清理模块104的实施方式,可以参见图3所示实施例中的步骤S301的说明。In this embodiment, for example, the implementation of the screening module 103 and the cleaning module 104, refer to the description of step S301 in the embodiment shown in FIG.
在本发明的上述实施例中,由于该短消息的短信验证码在有效期内未被正 确输入,该短消息包含的短信验证码及其他信息都成为了没有意义的信息,留了一定时间给用户查阅该短消息,超过了一定时间后,本发明实施例将这类信息直接删除,删除了短消息应用中的无用信息,改善了用户的体验。In the above embodiment of the present invention, since the short message verification code of the short message is not valid during the validity period If the input, the SMS verification code and other information included in the short message become meaningless information, and the user is allowed to check the short message after a certain period of time. After a certain period of time, the embodiment of the present invention directly deletes such information. The useless information in the short message application has been removed, improving the user experience.
请参阅图6,图6是本发明实施例提供的另一种终端的结构示意图,如图6所示,包括:屏幕121,一个或多个处理器122,存储器123。为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明上述方法实施例及申请文件其他部分。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, the method includes: a screen 121, one or more processors 122, and a memory 123. For the convenience of description, only the parts related to the embodiments of the present invention are shown. For the specific technical details not disclosed, please refer to the above method embodiments of the present invention and other parts of the application documents.
屏幕121,作为与用户之间的输出接口,将可视输出显示给用户;该屏幕121可以是图1所示的终端设备中的屏幕140。The screen 121, as an output interface with the user, displays the visual output to the user; the screen 121 may be the screen 140 in the terminal device shown in FIG.
处理器122可以是图1所示的处理器180。存储器123可以是图1所示的终端设备的中存储器120,或者存储器120中的部分组件。 Processor 122 can be processor 180 shown in FIG. The memory 123 may be the middle memory 120 of the terminal device shown in FIG. 1, or a part of the components in the memory 120.
本发明实施例中,终端还包括多个应用程序,所述存储器用于存储计算机程序,所述处理器运行所述计算机程序,执行如下步骤:In the embodiment of the present invention, the terminal further includes a plurality of applications, the memory is used to store a computer program, and the processor runs the computer program, and performs the following steps:
在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;Displaying an authentication interface of the application on the screen, the verification interface including a verification code input box;
接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;Receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen, marking the short message in the short message application as unread, and the short message verification code needs to be input within a valid period The verification code input box;
确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;Determining whether the short message verification code of the short message is correctly input into the verification code input box;
如果确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。If it is determined that the short message verification code is not correctly input within the validity period, the short message including the short message verification code in the short message application is marked as read.
其中,本实施例中,关于短信验证码的处理步骤的实施方式可以参考图2所示的实施例,此处不作重复说明。For the implementation of the processing procedure of the short message verification code in this embodiment, reference may be made to the embodiment shown in FIG. 2, and no repeated description is provided herein.
相比于现有技术,由于该短消息的短信验证码在有效期内未被正确输入,即使用户回头再去阅读也不能用于验证,将该未读短消息提示给用户已经没有必要,在本发明的上述实施例中,将短消息应用中包括所述短信验证码的短消息从未读标记为已读,改善了用户的体验。 Compared with the prior art, since the short message verification code of the short message is not correctly input within the validity period, even if the user goes back to read, it cannot be used for verification, and it is unnecessary to present the unread short message to the user. In the above embodiment of the invention, the short message including the short message verification code in the short message application is never read as read, which improves the user experience.
本实施例中,处理器122还可以用于执行如下步骤:In this embodiment, the processor 122 is further configured to perform the following steps:
确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。Determining that the short message application includes at least one of the short message, the short message verification code is not correctly input during the validity period, and the short message has exceeded the cleaning period since the receiving, and the short message is deleted. The cleaning period is used to indicate the length of time for deleting the short message that is not correctly inputting the short message verification code.
其中,本实施例中,关于短信验证码的处理步骤的实施方式可以参考图3所示的实施例,此处不作重复说明。For the implementation of the processing procedure of the short message verification code in this embodiment, reference may be made to the embodiment shown in FIG. 3, which is not repeatedly described herein.
相比于现有技术,由于该短消息的短信验证码在有效期内未被正确输入,该短消息包含的短信验证码及其他信息都成为了没有意义的信息,留了一定时间给用户查阅该短消息,超过了一定时间后,本发明实施例将这类信息直接删除,删除了短消息应用中的无用信息,改善了用户的体验。Compared with the prior art, since the short message verification code of the short message is not correctly input within the validity period, the short message verification code and other information included in the short message become meaningless information, and the user is allowed to check the time. The short message, after a certain period of time, the embodiment of the present invention deletes such information directly, deletes the useless information in the short message application, and improves the user experience.
本发明实施例还提供一种存储一个或多个程序的计算机可读存储介质,上述一个或多个程序包括指令,该指令当被包括屏幕和多个应用程序的终端执行时使该终端执行图2和图3所示的实施例中记载的方法。Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, the one or more programs including instructions that, when executed by a terminal including a screen and a plurality of applications, cause the terminal to execute a map 2 and the method described in the embodiment shown in Fig. 3.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (21)

  1. 一种短信验证码的处理方法,用于包括屏幕的终端,其中,所述方法包括:A method for processing a short message verification code for a terminal including a screen, wherein the method includes:
    在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;Displaying an authentication interface of the application on the screen, the verification interface including a verification code input box;
    接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;Receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen, marking the short message in the short message application as unread, and the short message verification code needs to be input within a valid period The verification code input box;
    确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;Determining whether the short message verification code of the short message is correctly input into the verification code input box;
    如果确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。If it is determined that the short message verification code is not correctly input within the validity period, the short message including the short message verification code in the short message application is marked as read.
  2. 根据权利要求1所述的方法,其中,所述未被正确输入包括:The method of claim 1 wherein said not being correctly entered comprises:
    所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。The SMS verification code is not input in the verification code input box, the wrong SMS verification code is input, or the correct SMS verification code is input but not confirmed.
  3. 根据权利要求1或2所述的方法,其中,所述确定所述短信验证码在有效期内未被正确输入,包括:The method according to claim 1 or 2, wherein the determining that the short message verification code is not correctly input during the validity period comprises:
    确定所述短信验证码未被正确输入所述验证码输入框,并确定所述短消息从接收开始已经超过了所述有效期。Determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message has exceeded the validity period from the start of reception.
  4. 根据权利要求3所述的方法,其中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:The method of claim 3, wherein the determining that the short message has exceeded the validity period from the beginning of receiving comprises:
    确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。It is determined that the short message has exceeded the validity period of the short message verification code specified in the application from the start of receiving.
  5. 根据权利要求3所述的方法,其中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:The method of claim 3, wherein the determining that the short message has exceeded the validity period from the beginning of receiving comprises:
    确定所述短消息从接收开始已经超过了公用的有效期,所述公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。Determining that the short message has exceeded the public validity period from the beginning of the receiving, the public validity period is used to indicate the expiration time of the short message verification code of the at least one related application, and the public validity period is greater than the validity period of the short message verification code.
  6. 根据权利要求3所述的方法,其中,所述确定所述短消息从接收开始已 经超过了所述有效期,包括:The method of claim 3 wherein said determining said short message has been received since receipt After exceeding the validity period, including:
    确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。It is determined that the short message has exceeded the validity period specified in the short message from the start of reception.
  7. 根据权利要求1至6中任一项所述的方法,其中所述方法进一步包括:The method of any of claims 1 to 6, wherein the method further comprises:
    确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。Determining that the short message application includes at least one of the short message, the short message verification code is not correctly input during the validity period, and the short message has exceeded the cleaning period since the receiving, and the short message is deleted. The cleaning period is used to indicate the length of time for deleting the short message that is not correctly inputting the short message verification code.
  8. 一种短信验证码的处理装置,用于包括屏幕的终端,其中,所述装置包括:A device for processing a short message verification code for a terminal including a screen, wherein the device comprises:
    显示模块,用于在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;a display module, configured to display an authentication interface of the application on the screen, where the verification interface includes a verification code input box;
    短消息模块,用于接收包括短信验证码的短消息并通过所述显示模块在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;a short message module, configured to receive a short message including a short message verification code, and display the short message including the short message verification code on the screen by using the display module, and mark the short message in the short message application as unread The short message verification code needs to input the verification code input box within a valid period;
    确定模块,用于确定所述短消息的短信验证码是否被正确的输入所述验证码输入框;a determining module, 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 is further configured to: if the determining module determines that the short message verification code is not correctly input within the validity period, mark the short message of the short message application that includes the short message verification code as Have read.
  9. 根据权利要求8所述的装置,其中,The device according to claim 8, wherein
    所述确定模块确定所述短信验证码未被正确的输入包括:确定所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。The determining module determines that the short message verification code is not correctly input, including: 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.
  10. 根据权利要求8或9所述的装置,其中,The device according to claim 8 or 9, wherein
    所述确定模块还用于确定所述短信验证码未被正确输入所述验证码输入框,并确定所述短消息从接收开始已经超过了所述有效期。 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 short message has exceeded the validity period from the start of receiving.
  11. 根据权利要求10所述的装置,其中,所述确定模块还用于确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。The apparatus according to claim 10, wherein said determining module is further configured to determine that said short message has exceeded a validity period of a short message verification code specified in said application from the start of reception.
  12. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述确定模块还用于确定所述短消息从接收开始已经超过了公用的有效期,所述公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。The determining module is further configured to determine that the short message has exceeded a public validity period from the beginning of the receiving, the public validity period is used to indicate an expiration time of the short message verification code of the at least one related application, where the public validity period is greater than the The validity period of the SMS verification code.
  13. 根据权利要求10所述的装置,其中,The device according to claim 10, wherein
    所述确定模块还用于确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。The determining module is further configured to determine that the short message has exceeded a validity period specified in the short message from the start of receiving.
  14. 根据权利要求8至13中任一项所述的装置,还包括:清理模块;The apparatus according to any one of claims 8 to 13, further comprising: a cleaning module;
    所述确定模块用于确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长;The determining module is configured to determine that the short message application includes at least one of the short messages, and the short message verification code of the short message is not correctly input during the validity period, and the short message has exceeded the cleaning period from the beginning of the receiving, The cleaning period is used to indicate the length of time for deleting the short message that is not correctly inputting the short message verification code;
    所述清理模块用于删除所述短消息。The cleaning module is configured to delete the short message.
  15. 一种终端,包括:A terminal comprising:
    屏幕;screen;
    一个或多个处理器;One or more processors;
    存储器;Memory
    多个应用程序;及Multiple applications; and
    所述存储器用于存储计算机程序;The memory is for storing a computer program;
    所述处理器,运行所述计算机程序,执行下述流程:The processor, running the computer program, performs the following process:
    在所述屏幕上显示应用的验证界面,所述验证界面包括验证码输入框;Displaying an authentication interface of the application on the screen, the verification interface including a verification code input box;
    接收包括短信验证码的短消息并在所述屏幕上显示所述包括短信验证码的短消息,将短消息应用中的所述短消息标记为未读,所述短信验证码需在有效期内输入所述验证码输入框;Receiving a short message including a short message verification code, and displaying the short message including the short message verification code on the screen, marking the short message in the short message application as unread, and the short message verification code needs to be input within a valid period The verification code input box;
    确定所述短消息的短信验证码是否被正确的输入所述验证码输入框; Determining whether the short message verification code of the short message is correctly input into the verification code input box;
    如果确定所述短信验证码在所述有效期内未被正确输入,则将所述短消息应用中包括所述短信验证码的所述短消息标记为已读。If it is determined that the short message verification code is not correctly input within the validity period, the short message including the short message verification code in the short message application is marked as read.
  16. 根据权利要求15所述的终端,其中,所述未被正确输入包括:The terminal of claim 15, wherein the incorrect input comprises:
    所述验证码输入框中未输入短信验证码,输入错误的短信验证码,或输入正确的短信验证码但未确认。The SMS verification code is not input in the verification code input box, the wrong SMS verification code is input, or the correct SMS verification code is input but not confirmed.
  17. 根据权利要求15或16所述的终端,其中,所述确定所述短信验证码在有效期内未被正确输入,包括:The terminal according to claim 15 or 16, wherein the determining that the short message verification code is not correctly input during the validity period comprises:
    确定所述短信验证码未被正确输入所述验证码输入框,并确定所述短消息从接收开始已经超过了所述有效期。Determining that the short message verification code is not correctly input into the verification code input box, and determining that the short message has exceeded the validity period from the start of reception.
  18. 根据权利要求17所述的终端,其中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:The terminal according to claim 17, wherein the determining that the short message has exceeded the validity period from the start of receiving comprises:
    确定所述短消息从接收开始已经超过了所述应用中指定的短信验证码有效期。It is determined that the short message has exceeded the validity period of the short message verification code specified in the application from the start of receiving.
  19. 根据权利要求17所述的终端,其中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:The terminal according to claim 17, wherein the determining that the short message has exceeded the validity period from the start of receiving comprises:
    确定所述短消息从接收开始已经超过了公用的有效期,所述公用的有效期用于指示至少一个相关应用的短信验证码的过期时长,所述公用的有效期大于所述短信验证码的有效期。Determining that the short message has exceeded the public validity period from the beginning of the receiving, the public validity period is used to indicate the expiration time of the short message verification code of the at least one related application, and the public validity period is greater than the validity period of the short message verification code.
  20. 根据权利要求17所述的终端,其中,所述确定所述短消息从接收开始已经超过了所述有效期,包括:The terminal according to claim 17, wherein the determining that the short message has exceeded the validity period from the start of receiving comprises:
    确定所述短消息从接收开始已经超过了所述短消息中指定的有效期。It is determined that the short message has exceeded the validity period specified in the short message from the start of reception.
  21. 根据权利要求15至20中任一项所述的终端,其中,所述流程进一步包括:确定所述短消息应用中包含至少一条所述短消息,所述短消息的短信验证码在有效期内未被正确输入,且所述短消息从接收开始已经超过清理周期,则删除所述短消息,所述清理周期用于指示删除所述未被正确输入短信验证码的短消息的时长。 The terminal according to any one of claims 15 to 20, wherein the process further comprises: determining that the short message application includes at least one of the short messages, and the short message short message verification code is not valid during the validity period. If the short message is correctly input, and the short message has exceeded the cleaning period from the beginning of the receiving, the short message is deleted, and the cleaning period is used to indicate the length of time for deleting the short message that is not correctly input the short message verification code.
PCT/CN2016/113985 2016-12-30 2016-12-30 Method and apparatus for processing short message verification code, and terminal WO2018120237A1 (en)

Priority Applications (2)

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
CN201680088433.4A CN109565463B (en) 2016-12-30 2016-12-30 Method, device and terminal for processing short message verification code

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 (1)

Publication Number Publication Date
WO2018120237A1 true WO2018120237A1 (en) 2018-07-05

Family

ID=62706677

Family Applications (1)

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

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2477352A2 (en) * 2011-01-13 2012-07-18 Bundesdruckerei GmbH verification of identification of Identity card data for customers handling
CN104010085A (en) * 2014-06-12 2014-08-27 北京奇虎科技有限公司 Message processing method and device
CN105812554A (en) * 2016-03-01 2016-07-27 中山大学深圳研究院 Method and system for intelligently managing text messages in mobile phones
CN105933502A (en) * 2016-03-29 2016-09-07 北京小米移动软件有限公司 Method and device for marking message to be in read status

Family Cites Families (4)

* 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
CN103716469A (en) * 2014-01-06 2014-04-09 广州市久邦数码科技有限公司 Method and system for processing unread short messages
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2477352A2 (en) * 2011-01-13 2012-07-18 Bundesdruckerei GmbH verification of identification of Identity card data for customers handling
CN104010085A (en) * 2014-06-12 2014-08-27 北京奇虎科技有限公司 Message processing method and device
CN105812554A (en) * 2016-03-01 2016-07-27 中山大学深圳研究院 Method and system for intelligently managing text messages in mobile phones
CN105933502A (en) * 2016-03-29 2016-09-07 北京小米移动软件有限公司 Method and device for marking message to be in read status

Also Published As

Publication number Publication date
CN109565463A (en) 2019-04-02
CN109565463B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
US11109191B2 (en) Method for displaying current geographical location on emergency call screen and terminal
WO2019205065A1 (en) Method for quickly opening application or application function, and terminal
WO2018032661A1 (en) Information displaying method for terminal device, and terminal device
WO2017118412A1 (en) Method, apparatus and system for updating key
CN106126015B (en) A kind of application program launching control method and terminal
WO2017211205A1 (en) Method and device for updating whitelist
JP6072281B2 (en) NFC data transmission method, terminal device, server, program, and recording medium
WO2016082194A1 (en) Message processing method and apparatus
CN114827914B (en) Short message processing method and device and electronic equipment
WO2018049893A1 (en) Data transmission method and terminal device
KR20150080736A (en) Method for executing a function and Electronic device using the same
WO2014206143A1 (en) Method, apparatus and device for displaying number of unread messages
CN108604265A (en) The method and terminal device of outline management application program usage time
CN104104656B (en) Give the method and device of account number for change
WO2018049894A1 (en) Data transmission method and device
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
CN109062634B (en) Application starting method and mobile terminal
CN108834132A (en) A kind of data transmission method and equipment and related media production
WO2019144947A1 (en) Display method and apparatus for authentication window
WO2017193645A1 (en) Method and apparatus for displaying data, and terminal
WO2017005080A1 (en) Webpage display method, terminal device and storage medium
CN108540645B (en) Mobile terminal operation method and mobile terminal
JP6974620B2 (en) Notification message processing method and terminal
CN105262909B (en) Mobile terminal using method, mobile terminal and storage medium
WO2018120237A1 (en) Method and apparatus for processing short message verification code, and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16925466

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16925466

Country of ref document: EP

Kind code of ref document: A1