WO2018219260A1 - Method, device and system for binding mobile phone number - Google Patents

Method, device and system for binding mobile phone number Download PDF

Info

Publication number
WO2018219260A1
WO2018219260A1 PCT/CN2018/088787 CN2018088787W WO2018219260A1 WO 2018219260 A1 WO2018219260 A1 WO 2018219260A1 CN 2018088787 W CN2018088787 W CN 2018088787W WO 2018219260 A1 WO2018219260 A1 WO 2018219260A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
binding
mobile phone
phone number
terminal
Prior art date
Application number
PCT/CN2018/088787
Other languages
French (fr)
Chinese (zh)
Inventor
朱忠磊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2018219260A1 publication Critical patent/WO2018219260A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data

Definitions

  • the embodiments of the present invention relate to the field of mobile terminals, and in particular, to a method, an apparatus, and a system for binding a mobile phone number.
  • a mobile terminal In a mobile terminal, many applications need to bind a mobile phone number to a user account, and implement additional functions such as a verification code receiving function, a short message (Short Message, SMS) push function, and a short message control function through the mobile phone number.
  • additional functions such as a verification code receiving function, a short message (Short Message, SMS) push function, and a short message control function through the mobile phone number.
  • SMS Short Message
  • the embodiment of the present invention provides a mobile phone number binding method, device, and system, which can be used to solve the problem of low human-computer interaction efficiency when binding a mobile phone number to a user account in the related art.
  • the technical solution is as follows:
  • the embodiment of the present application provides a method for binding a mobile phone number, where the method includes:
  • the terminal generates a binding request, where the binding request includes a user account
  • the terminal sends the binding request to the server through the first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data through the short message of the first mobile phone number.
  • the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
  • the terminal generates a message digest corresponding to the binding request
  • the terminal Sending, by the terminal, the information digest corresponding to the binding request to the server by using a second channel, where the second channel is one of the short message channel and the data channel, and the second channel is The first channel is different, and the server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
  • the terminal generates a binding request, including:
  • the terminal acquires the user account according to the first triggering operation
  • the terminal generates the binding request according to the user account.
  • the terminal before the terminal generates the binding request according to the user account, the terminal further includes:
  • the terminal acquires operation verification information
  • the terminal generates the binding request according to the user account, including:
  • the terminal generates the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
  • the operation verification information includes: a ticket and/or a login token
  • the ticket is a ticket corresponding to a binding operation
  • the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
  • the embodiment of the present application provides a method for binding a mobile phone number, where the method includes:
  • the first channel receives, by the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel;
  • the short message channel is a channel for sending data by using a short message of the first mobile phone number,
  • the data channel Is a channel for transmitting data through a mobile communication network or a wireless fidelity network, where the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
  • the second channel receives, by the second channel, a message digest of the binding request sent by the terminal;
  • the second channel is one of the short message channel and the data channel, and the second channel is the first channel Different channels;
  • the binding request matches the information digest, the user account and the first mobile phone number are bound.
  • the method before the binding of the user account and the first mobile phone number, the method further includes:
  • the step of establishing a binding relationship between the user account and the first mobile phone number is performed.
  • the operation verification information includes: a ticket
  • the verifying the validity of the binding process according to the operation verification information including:
  • the operation verification information includes: a login token
  • the verifying the validity of the binding process according to the operation verification information including:
  • an embodiment of the present application provides an apparatus for binding a mobile phone number, where the apparatus includes:
  • a generating module configured to generate a binding request, where the binding request includes a user account
  • a sending module configured to send the binding request to the server by using a first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is sent by using a short message of the first mobile phone number Channel, the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
  • the generating module is further configured to generate a message digest corresponding to the binding request
  • the sending module is further configured to send the information digest corresponding to the binding request to the server by using a second channel, where the second channel is another one of the short message channel and the data channel.
  • the server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
  • the generating module is configured to receive a first triggering operation, acquire the user account according to the first triggering operation, and generate the binding request according to the user account.
  • the apparatus further includes:
  • An obtaining module configured to obtain operation verification information
  • the generating module is further configured to generate the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
  • the operation verification information includes: a ticket and/or a login token
  • the ticket is a ticket corresponding to a binding operation
  • the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
  • an apparatus for binding a mobile phone number comprising:
  • a receiving module configured to receive, by using the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data by using a short message of the first mobile phone number
  • the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network
  • the binding request includes a user account
  • the first mobile phone number is a mobile phone number corresponding to the terminal
  • the receiving module is further configured to receive, by using a second channel, a message digest of the binding request sent by the terminal; the second channel is one of the short message channel and the data channel, and the The second channel is different from the first channel;
  • the verification module is further configured to verify whether the binding information of the binding request and the binding request match;
  • a binding module configured to establish a binding relationship between the user account and the first mobile phone number when the binding request and the information digest match.
  • the apparatus further includes:
  • An obtaining module configured to obtain operation verification information from the binding request
  • the verification module is further configured to verify the validity of the binding process according to the operation verification information
  • the binding module is further configured to perform the step of establishing a binding relationship between the user account and the first mobile phone number when the current binding process is valid.
  • the operation verification information includes: a ticket
  • the verification module is configured to verify whether the ticket is a ticket corresponding to the binding operation.
  • the operation verification information includes: a login token
  • the verification module is configured to verify whether the valid time of the login token is expired.
  • a terminal comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement the first aspect or the first A method for binding a mobile number as described in any of the alternative implementations.
  • a server comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement the second aspect or the second A method for binding a mobile number as described in any of the alternative implementations.
  • a computer storage medium stores at least one instruction that is loaded and executed by a processor to implement the first aspect or any of the alternative implementations of the first aspect The method used to bind the mobile phone number.
  • a computer storage medium stores at least one instruction that is loaded and executed by a processor to implement the second aspect or any alternative implementation of the second aspect The method used to bind the mobile phone number.
  • first aspect, second aspect, and third aspect are only used to explain different aspects of the present application, but do not have a sequential definition or priority limiting function.
  • the mobile communication network or the WiFi network is used as another channel by using the short message service of the first mobile phone number as a channel; the binding request and the message digest of the binding request are respectively sent to the server through respective channels, and the server is When the authentication binding request and the message digest match, the user account and the first mobile phone number are bound.
  • the user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed, and the user does not need to request the verification code and input the verification code, which simplifies the binding of the user.
  • the operation in the process improves the efficiency of human-computer interaction.
  • FIG. 1 is a schematic structural diagram of a system for binding a mobile phone number according to various embodiments of the present application
  • FIG. 2 is a flowchart of a method for binding a mobile phone number according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for binding a mobile phone number according to another embodiment of the present application.
  • FIG. 4 is a schematic diagram of an interface for implementing a method for binding a mobile phone number according to an embodiment of FIG. 3;
  • FIG. 5 is a structural block diagram of an apparatus for binding a mobile phone number according to an embodiment of the present application.
  • FIG. 6 is a structural block diagram of an apparatus for binding a mobile phone number according to another embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
  • the process of binding a mobile phone number to a user account in the related art generally includes: the application displays a registered user interface, and the registered user interface provides a mobile phone number input box, a verification code button, a verification code input box, and a submit button; the user is in the mobile phone. Enter the mobile phone number in the number input box and click the verification code to get the button; the application sends the mobile phone number to the server, and the server sends a short message carrying the verification code to the mobile phone number; after viewing the short message, the user inputs the verification code. Verify the code input box and click the submit button; the application sends the user account, mobile phone number and verification code to the server. When the server verifies that the mobile phone number and the verification code match, the server establishes a binding relationship between the user account and the mobile phone number.
  • the above method requires the user to input a mobile phone number, click a submit button, input a verification code, and click a submit button in a total of four operation steps, and the human-computer interaction efficiency of the whole process is low. Therefore, the embodiments of the present application provide the following embodiments.
  • FIG. 1 is a schematic structural diagram of a system for binding a mobile phone number according to an exemplary embodiment of the present application.
  • the system for binding a mobile phone number may be a system having a service for providing a terminal by using a short message, and the service includes at least one of remote control, verification code verification, and information push.
  • the system for binding a mobile phone number includes: a terminal 120 and a server 140.
  • the terminal 120 can be a mobile phone, a tablet computer, a wearable electronic device, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, and an MP4 (Moving Picture Experts Group Audio Layer IV). Dynamic image experts compress standard audio layers 4) terminals such as players and laptops.
  • the terminal 120 runs a predetermined application, and the predetermined application includes at least one of the following functions: a remote control function by using a short message, a verification code verification function by using a short message, and information through a short message.
  • Push function Different users are distinguished by user accounts in the predetermined application, and each user account needs to be bound to its corresponding mobile phone number.
  • each user account can be bound to at least one mobile phone number.
  • the terminal 120 is connected to and communicates with the server 140 via a wired network or a wireless network.
  • the server 140 and the terminal 120 can communicate through the short message channel, and the short message channel is a channel for transmitting and receiving data through the short message service of the currently valid mobile phone number on the terminal 120, usually by a circuit switching domain in the mobile communication network ( Circuit Switching Domain (CS) is implemented; on the other hand, the server 140 and the terminal 120 can communicate through a data channel, which is a Packet Switching Domain (PS) or Wireless Fidelity (Wireless Fidelity) in the mobile communication network. Fidelity, WiFi) network implementation channel.
  • PS Packet Switching Domain
  • Wireless Fidelity Wireless Fidelity
  • WiFi Wireless Fidelity
  • the server 140 is a background server of a predetermined application, and the server 140 may be a server, a server cluster composed of multiple servers, or a cloud computing center.
  • the server 140 has a function of directly transmitting short messages and/or receiving short messages, or the server 140 has a function of transmitting and/or receiving short messages through a short message platform provided by a mobile operator.
  • FIG. 2 is a flow chart of a method for binding a mobile phone number, shown in an exemplary embodiment of the present application. This embodiment is exemplified by the method being applied between the terminal 120 of the system shown in FIG. 1 and the server 140.
  • the method includes:
  • Step 201 The terminal generates a binding request, where the binding request includes a user account.
  • the binding request is used to request the server to bind the user account and the mobile phone number.
  • the binding request may also have other names such as a registration request, an association request, and the like, which is not limited in this embodiment.
  • the binding request carries a user account.
  • the binding request further carries a first mobile phone number to be bound, where the first mobile phone number is a mobile phone number corresponding to the terminal.
  • the information content carried by the binding request may be different.
  • Step 202 The terminal sends the binding request to the server through the first channel.
  • the first channel is one of a short message channel and a data channel.
  • the short message channel is a channel for transmitting and/or receiving data through a short message service of a mobile number, which is a channel for transmitting and/or receiving data through a mobile communication network or a WiFi network.
  • Step 203 The server receives, by using the first channel, a binding request sent by the terminal.
  • Step 204 The terminal generates a message digest corresponding to the binding request.
  • the information digest may be information obtained by calculating a binding request by using MD5 (Message Digest Algorithm 5, information digest algorithm fifth generation), a hash algorithm, other irreversible encryption algorithms, or a signature algorithm.
  • MD5 Message Digest Algorithm 5, information digest algorithm fifth generation
  • hash algorithm other irreversible encryption algorithms
  • signature algorithm other irreversible encryption algorithms
  • step 204 may be performed before step 202. This embodiment does not limit the sequence between step 202 and step 204.
  • Step 205 The terminal sends the information digest of the binding request to the server through the second channel.
  • the second channel is one of a short message channel and a data channel, and the second channel is different from the first channel.
  • Step 206 The server receives, by using the second channel, a message digest corresponding to the binding request sent by the terminal.
  • Step 207 The server verifies whether the binding request and the information digest match.
  • a summary of the information received by the server may be referred to as a first information digest.
  • the server calculates the second information digest according to the same algorithm as the terminal, and compares the first information digest with the second information digest; if the two information digests are identical, the binding is considered The request matches the message digest; if the two message digests are not identical or completely different, the binding request is considered to not match the message digest.
  • Step 208 When the binding request and the information digest match, the server establishes a binding relationship between the user account and the first mobile phone number.
  • the server obtains the user account and the first mobile phone number from the binding request, and binds the user account and the first mobile phone number.
  • the server obtains the user account from the binding request, obtains the first mobile phone number (that is, the sender of the short message) from the short message received by the short message channel, and then binds the user account with the first mobile phone number.
  • step 202 may be performed simultaneously with step 205, and step 202 may be performed after 205.
  • the mobile communication network or the WiFi network is regarded as another channel by using the short message service of the first mobile phone number as a channel; the binding request and the binding are The requested message digest is sent to the server through the respective channels.
  • the server matches the authentication binding request and the information digest, the server establishes a binding relationship between the user account and the first mobile phone number.
  • the user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed, and the user does not need to request the verification code and input the verification code, which simplifies the binding of the user.
  • the operation in the process improves the efficiency of human-computer interaction.
  • FIG. 3 is a flow chart of a method for binding a mobile phone number, shown in another exemplary embodiment of the present application. This embodiment is exemplified by the method applied to the terminal 120 and the server 140 in the system shown in FIG. The method includes:
  • Step 301 The terminal sends a login request to the server, where the login request carries a user account and a password;
  • the login request is generated using the pre-registered user account and password, and the login request is sent to the server.
  • the user takes the predetermined application in the terminal as a search for a mobile phone program, referring to the left side diagram of FIG. 4, the user inputs the user account zhangsan@xxx.com and the input box 41 in the login interface of the search for the mobile phone program. After the password is clicked on the "Login" button 42, the terminal sends a login request to the server.
  • the server receives the login request sent by the terminal.
  • Step 302 The server verifies the user account and password; and after the verification succeeds, the login token is fed back to the terminal.
  • a token is a digital token assigned to a terminal by a server when the login is successful.
  • the login token usually has an expiration date (for example, within 10 minutes).
  • the terminal When the terminal subsequently communicates with the server, the login token needs to be carried in the information, so that the server recognizes that the terminal is in a valid login state.
  • the terminal stores the login token.
  • the terminal After receiving the login token, the terminal successfully logs in.
  • Step 303 The terminal receives the first triggering operation.
  • the first triggering operation is an operation for generating a binding request.
  • the terminal jumps from the login interface to open the search for the mobile phone interface. If the user wishes to open the search device function, click the "Open Phone Search" button 43 when the search for the mobile phone interface is opened.
  • the process of opening the search for the mobile phone can be regarded as a binding process of binding the user account and the first mobile phone number.
  • Step 304 The terminal acquires a user account and operation verification information according to the first triggering operation.
  • a user account is an account that is registered in the server and is used to identify the user. Operational verification information is used to verify the validity of this binding process.
  • the terminal further acquires the first mobile phone number, where the first mobile phone number is the mobile phone number corresponding to the terminal.
  • Step 305 The terminal generates a binding request according to the user account and the operation verification information.
  • the operation verification information includes: a ticket and/or a login token.
  • the ticket is a ticket corresponding to the binding process, and the ticket can be a string, such as the string A1.
  • the ticket is used to indicate to the server that the operation is a binding operation; the login token is a token generated after the login is successful and the login token has an expiration date, and the first login token may be feedback from the server in step 302.
  • the token may also be a token that was updated by the server after step 302.
  • the binding request (user account, ticket, login token).
  • the binding request (user account, terminal identifier, first mobile phone number, ticket, login token).
  • the terminal identifier may be an IMEI (International Mobile Equipment Identity).
  • Step 306 The terminal sends the binding request to the server through the first channel.
  • the terminal sends a binding request to the server through the data channel.
  • the terminal encrypts the binding request and then sends the binding request to the server.
  • Step 307 The server receives the binding request sent by the terminal by using the first channel.
  • the server receives the binding request sent by the terminal through the data channel. If the binding request is information encrypted by the terminal, the server decrypts the binding request in the same manner to obtain the specific content of the binding request.
  • Step 308 the terminal generates a message digest corresponding to the binding request.
  • the information digest of the binding request is obtained by calculating a binding request by using MD5 (Message Digest Algorithm 5, information digest algorithm fifth generation), a hash algorithm, other irreversible encryption algorithm, or a signature algorithm. .
  • MD5 Message Digest Algorithm 5, information digest algorithm fifth generation
  • a hash algorithm other irreversible encryption algorithm
  • a signature algorithm other irreversible encryption algorithm
  • the summary of the information corresponding to each binding request is unique.
  • Step 309 The terminal sends the information digest of the binding request to the server through the second channel.
  • the terminal sends a message digest to the server via the short message channel.
  • the short message channel is a channel through which the terminal sends data to the server through the short message service of the first mobile number.
  • the server may bind two SMS service numbers in advance on the SMS platform provided by the operator: an uplink short message service number and a downlink short message service number, the uplink short message service number is used to receive the short message sent by the terminal, and the downlink short message service number is used to The terminal sends a short message.
  • the uplink short message service number is: 10600x
  • the downlink short message service number is: 10602x.
  • the terminal stores the uplink short message service number 10600x in advance, and the terminal uses the first mobile phone number as the short message sender, the uplink short message service number 10600x as the short message recipient, and the message summary as the short message content to send the short message, and the short message platform receives the message. Forward to the server after the SMS.
  • Step 310 The server receives, by using the second channel, a message digest corresponding to the binding request sent by the terminal.
  • the server receives the summary of the information sent by the control terminal through the short message channel.
  • the sender of the short message is the first mobile phone number, and the server saves the correspondence between the first mobile phone number and the information digest.
  • a summary of the information received by the server may be referred to as a first information digest.
  • Step 311 The server obtains a user account and operation verification information from the binding request, where the operation verification information includes a ticket and/or a login token.
  • This embodiment is exemplified by the operation verification information including the ticket and the login token.
  • the server parses the binding request to obtain a user account, a ticket, and a login token.
  • the server parses the binding request to obtain a user account, a first mobile phone number, a ticket, and a login token.
  • the server parses the binding request, and obtains a user account, a terminal identifier, a first mobile phone number, a ticket, and a login token.
  • Step 312 The server detects whether the ticket is a ticket corresponding to the binding process.
  • the server needs to detect whether the parsed ticket is corresponding to the binding process. If the ticket is a ticket corresponding to the binding process, proceed to step 313; if the ticket is not a ticket corresponding to the binding process, but a ticket corresponding to other processes, perform other processes (such as a logout process or update) process).
  • Step 313 When the ticket is a ticket corresponding to the binding process, the server detects whether the login token is in an expiration date;
  • Each login token has a certain expiration date, such as 10 minutes, 30 minutes, 2 hours, and so on.
  • the server detects whether the parsed token is in an expiration date; if it is in the expiration date, it proceeds to step 314; if it is not in the expiration, sends a binding failure message to the terminal.
  • step 312 and step 313 may be interchanged or performed in parallel. Only when the detection results of step 312 and step 313 are both "YES", step 314 is entered.
  • Step 314 when the login token is in the expiration date, the server verifies whether the binding request and the information digest match;
  • the server calculates the second information digest according to the same algorithm as the terminal, and compares the first information digest with the second information digest; if the two information digests are identical, the binding is considered The request matches the information digest, and the process proceeds to step 315. If the two information digests are not identical or completely different, the binding request and the information digest are not matched, and the binding failure information is fed back to the terminal.
  • the server queries the corresponding binding request according to the first mobile phone number, and generates a second information digest according to the queried binding request.
  • the server does not store the correspondence between the first mobile phone number and the first information digest, and when the server stores only the first information digest, all binding requests received by the server (which may be in the latest time period) are A second information digest is generated to query whether there is a second information digest that is completely consistent with the first information digest. If there is a completely identical second information digest, it is determined that the two match.
  • Step 315 When the binding request and the information digest match, the server establishes a binding relationship between the user account and the first mobile phone number.
  • Each terminal identifier can be bound to at least one first mobile number. That is, the first mobile number can be more than one.
  • the server when the server opens the function of finding the device, the server establishes a binding relationship between the user account, the terminal identifier, and the first mobile phone number.
  • Table 2 schematically shows the binding relationship.
  • step 316 the server sends a binding success message to the terminal.
  • the server After the terminal successfully opens the search for the mobile phone function, the server sends a binding success message to the terminal.
  • the binding success message can be sent through a short message channel or a data channel.
  • the terminal jumps from the open search mobile phone interface to the search mobile phone function interface, and the search mobile phone function interface provides the location display of the terminal in the map, and the terminal name is “Zhang San”.
  • the short message service of the first mobile phone number is used as a channel, and the mobile communication network or the WiFi network is used as another channel; the binding request and the message digest of the binding request are respectively passed through respective The channel is sent to the server, and the server establishes a binding relationship between the user account and the first mobile phone number when the verification binding request and the message summary match.
  • the user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed.
  • the user only needs to trigger the first triggering operation in the binding process, and does not require the user to request the verification code and input the verification code, which simplifies the operation of the user in the binding process and improves the person. Machine interaction efficiency.
  • the server can detect the validity of the binding process, and only when the binding process is valid, the user account and the first mobile phone number are performed. Binding improves the security of the binding process.
  • FIG. 5 is a block diagram of an apparatus for binding a mobile phone number provided by an exemplary embodiment of the present application, which may be implemented as all or part of a terminal by software, hardware, or a combination of both.
  • the device includes:
  • the generating module 510 is configured to generate a binding request, where the binding request includes a user account;
  • the sending module 520 is configured to send the binding request to the server by using a first channel, where the first channel is one of a short message channel and a data channel, and the short message channel is sent by using a short message of the first mobile phone number a channel of data, which is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
  • the generating module 510 is further configured to generate a message digest corresponding to the binding request.
  • the sending module 520 is further configured to send the information digest corresponding to the binding request to the server by using a second channel, where the second channel is another one of the short message channel and the data channel,
  • the server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
  • the generating module 510 is configured to receive a first triggering operation, acquire the user account according to the first triggering operation, and generate the binding request according to the user account.
  • the apparatus further includes:
  • the obtaining module 530 is configured to obtain operation verification information.
  • the generating module 510 is further configured to generate the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the binding process.
  • the operation verification information includes: a ticket and/or a login token
  • the ticket is a ticket corresponding to a binding operation
  • the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
  • the generating module 510 can be implemented by a processor executing a program, and the sending module 520 can be implemented by a processor controlling a transmitter.
  • the transmitter has short message transmission capability and/or data network transmission capability.
  • the obtaining module 530 may be implemented by a processor executing a program, or the obtaining module 530 may be implemented by a processor executing a program.
  • FIG. 6 shows a block diagram of an apparatus for binding a mobile number provided by another exemplary embodiment of the present application.
  • the device can be implemented as all or part of a server by software, hardware or a combination of both.
  • the device includes:
  • the receiving module 610 is configured to receive, by using the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel, and the short message channel is sent by using a short message of the first mobile phone number.
  • the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network
  • the binding request includes a user account
  • the first mobile phone number is a mobile phone number corresponding to the terminal;
  • the receiving module 610 is further configured to receive, by using a second channel, a message digest of the binding request sent by the terminal, where the second channel is one of the short message channel and the data channel, and The second channel is different from the first channel;
  • the verification module 620 is further configured to verify whether the binding information of the binding request and the binding request match;
  • the binding module 630 is configured to establish a binding relationship between the user account and the first mobile phone number when the binding request and the information digest match.
  • the apparatus further includes:
  • the obtaining module 640 is configured to obtain operation verification information from the binding request.
  • the verification module 620 is further configured to verify the validity of the binding process according to the operation verification information;
  • the binding module 630 is further configured to perform the step of establishing a binding relationship between the user account and the first mobile phone number when the current binding process is valid.
  • the operation verification information includes: a ticket
  • the verification module 620 is configured to verify whether the ticket is a ticket corresponding to the binding operation.
  • the operation verification information includes: a login token
  • the verification module 620 is configured to verify whether the valid time of the login token is expired.
  • the receiving module 610 can be implemented by a processor control receiver, which has short message receiving capability and/or data network receiving capability.
  • the foregoing verifying module 620 can be implemented by a processor executing a program.
  • the transmitter has short message transmission capability and/or data network transmission capability.
  • the binding module 630 can be implemented by a processor executing a program.
  • the device for binding a mobile phone number provided by the foregoing embodiment is bound to the mobile phone number, only the division of each functional module is used as an example. In an actual application, the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the terminal or the server is divided into different functional modules to complete all or part of the functions described above.
  • the device for binding a mobile phone number provided by the foregoing embodiment is the same as the method for binding a mobile phone number. The specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a terminal involved in an exemplary embodiment of the present application.
  • the terminal includes: the terminal includes: a processor 711, a receiver 712, a transmitter 713, a memory 714, and a bus 715.
  • the processor 711 includes one or more processing cores, and the memory 714 is coupled to the processor 711 via a bus 715 for storing at least one instruction, and the processor 711 executing the instructions in the memory 714 to implement the methods illustrated in FIGS. 2 and 3. The steps of the method for binding a mobile phone number on the terminal side in the embodiment.
  • Receiver 712 and transmitter 713 can be implemented as a communication component, which can be a communication chip for modulating and/or demodulating information and receiving or transmitting the information over a wireless signal.
  • memory 714 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable In addition to Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • the terminal may include more or fewer components, for example, the terminal may not include the receiver, or the terminal further includes other components such as a sensor, a display screen, a power supply, etc., this embodiment does not Let me repeat.
  • the embodiment of the present application further provides a computer readable medium, where the at least one instruction is stored, and when the instruction is executed by the processor 711, the terminal side of the method embodiment shown in FIG. 2 and FIG. 3 is used to bind the mobile phone number. The steps of the method.
  • FIG. 8 is a schematic structural diagram of a server provided by an exemplary embodiment of the present application.
  • the server includes a processor 811, a receiver 812, a transmitter 813, a memory 814, a bus 815, and a network interface 816.
  • the processor 811 includes one or more processing cores.
  • the memory 814 is coupled to the processor 811 via a bus 815 for storing at least one instruction, and the processor 811 executing the instructions in the memory 814 to implement the methods illustrated in FIGS. 2 and 3. The steps of the method for binding a mobile phone number on the server side in the embodiment.
  • Receiver 812 and transmitter 813 can be implemented as a communication component, which can be a communication chip for modulating and/or demodulating information and receiving or transmitting the information over a wireless signal.
  • the receiver 812 and the transmitter 813 can alternatively be implemented as a network interface 816 through which the server is connected to the short message transmitting platform to send and receive short messages through the short message transmitting platform.
  • memory 814 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable In addition to Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk
  • Disk Disk or Optical Disk
  • the server may include more or less components, such as the server also includes other components such as an I/O interface such as a keyboard and a mouse, a power supply, and the like, which will not be described in this embodiment. .
  • the embodiment of the present application further provides a computer readable medium, where the at least one instruction is stored, and when the instruction is executed by the processor 811, the server side for binding the mobile phone number in the method embodiment shown in FIG. 2 and FIG. 3 is implemented. The steps of the method.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Disclosed are a method, device and system for binding a mobile phone number. The method comprises: a terminal generating a binding request, the binding request comprising a user account; the terminal sending the binding request to a server via a first channel, the first channel being one of a short message channel and a data channel; the terminal generating an information digest corresponding to the binding request; and the terminal sending the information digest corresponding to the binding request to the server via a second channel, the second channel being the other one of the short message channel and the data channel, and the second channel being different from the first channel. The server is used for establishing a binding relationship between the user account and the first mobile phone number when it is verified that the binding request matches the information digest, so as to enable a user to complete a binding process by merely triggering the generation of a binding request, thereby simplifying an operation of the user during the binding process and improving the efficiency of human-computer interaction.

Description

用于绑定手机号码的方法、装置及系统Method, device and system for binding mobile phone number
本申请要求于2017年06月02日提交中国国家知识产权局、申请号为201710407291.X、发明名称为“用于绑定手机号码的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 2, 2017, the Chinese National Intellectual Property Office, the application number is 201710407291.X, and the invention name is "method, device and system for binding mobile phone numbers". The entire contents are incorporated herein by reference.
技术领域Technical field
本申请实施例涉及移动终端领域,特别涉及一种用于绑定手机号码的方法、装置及系统。The embodiments of the present invention relate to the field of mobile terminals, and in particular, to a method, an apparatus, and a system for binding a mobile phone number.
背景技术Background technique
在移动终端中,很多应用程序都需要为用户帐号绑定一个手机号码,通过该手机号码实现验证码接收功能、短信息(Short Message,SMS)推送功能、短信息控制功能等附加功能。In a mobile terminal, many applications need to bind a mobile phone number to a user account, and implement additional functions such as a verification code receiving function, a short message (Short Message, SMS) push function, and a short message control function through the mobile phone number.
相关技术中,为用户帐号绑定手机号码的流程需要较多步骤,整个流程的人机交互效率较低。In the related art, the process of binding a mobile phone number to a user account requires more steps, and the human-computer interaction efficiency of the entire process is low.
发明内容Summary of the invention
本申请实施例提供了一种手机号码绑定方法、装置及系统,可以用于解决相关技术中为用户帐号绑定手机号码时的人机交互效率较低的问题。所述技术方案如下:The embodiment of the present invention provides a mobile phone number binding method, device, and system, which can be used to solve the problem of low human-computer interaction efficiency when binding a mobile phone number to a user account in the related art. The technical solution is as follows:
第一方面,本申请实施例提供了一种用于绑定手机号码的方法,所述方法包括:In a first aspect, the embodiment of the present application provides a method for binding a mobile phone number, where the method includes:
终端生成绑定请求,所述绑定请求包括用户帐号;The terminal generates a binding request, where the binding request includes a user account;
所述终端将所述绑定请求通过第一通道发送至服务器,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道;The terminal sends the binding request to the server through the first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data through the short message of the first mobile phone number. The data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
所述终端生成与所述绑定请求对应的信息摘要;The terminal generates a message digest corresponding to the binding request;
所述终端将所述绑定请求对应的信息摘要通过第二通道发送至所述服务器,所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同,所述服务器用于在验证所述绑定请求和所述信息摘要相匹配时将所述用户帐号和所述第一手机号码建立绑定关系。Sending, by the terminal, the information digest corresponding to the binding request to the server by using a second channel, where the second channel is one of the short message channel and the data channel, and the second channel is The first channel is different, and the server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
在一个可选的实施例中,所述终端生成绑定请求,包括:In an optional embodiment, the terminal generates a binding request, including:
所述终端接收第一触发操作;Receiving, by the terminal, a first triggering operation;
所述终端根据所述第一触发操作获取所述用户帐号;The terminal acquires the user account according to the first triggering operation;
所述终端根据所述用户帐号生成所述绑定请求。The terminal generates the binding request according to the user account.
在一个可选的实施例中,所述终端根据所述用户帐号生成所述绑定请求之前,还包括:In an optional embodiment, before the terminal generates the binding request according to the user account, the terminal further includes:
所述终端获取操作验证信息;The terminal acquires operation verification information;
所述终端根据所述用户帐号生成所述绑定请求,包括:The terminal generates the binding request according to the user account, including:
所述终端根据所述用户帐号和所述操作验证信息生成所述绑定请求,所述操作验证信息用于验证本次绑定过程的有效性。The terminal generates the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
在一个可选的实施例中,所述操作验证信息包括:票据和/或登录令牌;In an optional embodiment, the operation verification information includes: a ticket and/or a login token;
所述票据是与绑定操作对应的票据,所述登录令牌是在所述用户帐号登录成功后生成的令牌且所述登录令牌具有有效期限。The ticket is a ticket corresponding to a binding operation, and the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
第二方面,本申请实施例提供了一种用于绑定手机号码的方法,所述方法包括:In a second aspect, the embodiment of the present application provides a method for binding a mobile phone number, where the method includes:
通过第一通道接收终端发送的绑定请求,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道,所述绑定请求包括用户帐号,所述第一手机号码是所述终端对应的手机号码;Receiving, by the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel; the short message channel is a channel for sending data by using a short message of the first mobile phone number, the data channel Is a channel for transmitting data through a mobile communication network or a wireless fidelity network, where the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
通过第二通道接收所述终端发送的所述绑定请求的信息摘要;所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同;Receiving, by the second channel, a message digest of the binding request sent by the terminal; the second channel is one of the short message channel and the data channel, and the second channel is the first channel Different channels;
验证所述绑定请求和所述绑定请求的信息摘要是否匹配;Verifying whether the binding request and the information digest of the binding request match;
当所述绑定请求和所述信息摘要匹配时,将所述用户帐号和所述第一手机号码建立绑定关系。When the binding request matches the information digest, the user account and the first mobile phone number are bound.
在一个可选的实施例中,所述将所述用户帐号和所述第一手机号码建立绑定关系之前,还包括:In an optional embodiment, before the binding of the user account and the first mobile phone number, the method further includes:
从所述绑定请求中获取操作验证信息;Obtaining operation verification information from the binding request;
根据所述操作验证信息验证本次绑定过程的有效性;Verifying the validity of the binding process according to the operation verification information;
当所述本次绑定过程有效时,执行所述将所述用户帐号和所述第一手机号码建立绑定关系的步骤。When the binding process is valid, the step of establishing a binding relationship between the user account and the first mobile phone number is performed.
在一个可选的实施例中,所述操作验证信息包括:票据;In an optional embodiment, the operation verification information includes: a ticket;
所述根据所述操作验证信息验证本次绑定过程的有效性,包括:The verifying the validity of the binding process according to the operation verification information, including:
验证所述票据是否与绑定操作对应的票据。A ticket that verifies whether the ticket corresponds to a binding operation.
在一个可选的实施例中,所述操作验证信息包括:登录令牌;In an optional embodiment, the operation verification information includes: a login token;
所述根据所述操作验证信息验证本次绑定过程的有效性,包括:The verifying the validity of the binding process according to the operation verification information, including:
验证所述登录令牌的有效时间是否过期。Verify that the validity time of the login token has expired.
第三方面,本申请实施例提供了一种用于绑定手机号码的装置,所述装置包括:In a third aspect, an embodiment of the present application provides an apparatus for binding a mobile phone number, where the apparatus includes:
生成模块,用于生成绑定请求,所述绑定请求包括用户帐号;a generating module, configured to generate a binding request, where the binding request includes a user account;
发送模块,用于将所述绑定请求通过第一通道发送至服务器,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道;a sending module, configured to send the binding request to the server by using a first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is sent by using a short message of the first mobile phone number Channel, the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
所述生成模块,还用于生成与所述绑定请求对应的信息摘要;The generating module is further configured to generate a message digest corresponding to the binding request;
所述发送模块,还用于将所述绑定请求对应的信息摘要通过第二通道发送至所述服务器,所述第二通道是所述短信通道和所述数据通道中的另一种,所述服务器用于在验证所述绑定请求和所述信息摘要相匹配时将所述用户帐号和所述第一手机号码建立绑定关系。The sending module is further configured to send the information digest corresponding to the binding request to the server by using a second channel, where the second channel is another one of the short message channel and the data channel. The server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
在一个可选的实施例中,所述生成模块,用于接收第一触发操作;根据所述第一触发操作获取所述用户帐号;根据所述用户帐号生成所述绑定请求。In an optional embodiment, the generating module is configured to receive a first triggering operation, acquire the user account according to the first triggering operation, and generate the binding request according to the user account.
在一个可选的实施例中,所述装置还包括:In an optional embodiment, the apparatus further includes:
获取模块,用于获取操作验证信息;An obtaining module, configured to obtain operation verification information;
所述生成模块,还用于根据所述用户帐号和所述操作验证信息生成所述绑定请求,所述操作验证信息用于验证本次绑定过程的有效性。The generating module is further configured to generate the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
在一个可选的实施例中,所述操作验证信息包括:票据和/或登录令牌;In an optional embodiment, the operation verification information includes: a ticket and/or a login token;
所述票据是与绑定操作对应的票据,所述登录令牌是在所述用户帐号登录成功后生成的令牌且所述登录令牌具有有效期限。The ticket is a ticket corresponding to a binding operation, and the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
第四方面,提供了一种用于绑定手机号码的装置,所述装置包括:In a fourth aspect, an apparatus for binding a mobile phone number is provided, the device comprising:
接收模块,用于通过第一通道接收终端发送的绑定请求,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道,所述绑定请求包括用户帐号,所述第一手机号码是所述终端对应的手机号码;a receiving module, configured to receive, by using the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data by using a short message of the first mobile phone number The data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network, the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
所述接收模块,还用于通过第二通道接收所述终端发送的所述绑定请求的信息摘要;所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同;The receiving module is further configured to receive, by using a second channel, a message digest of the binding request sent by the terminal; the second channel is one of the short message channel and the data channel, and the The second channel is different from the first channel;
验证模块,还用于验证所述绑定请求和所述绑定请求的信息摘要是否匹配;The verification module is further configured to verify whether the binding information of the binding request and the binding request match;
绑定模块,用于当所述绑定请求和所述信息摘要匹配时,将所述用户帐号和所述第一手机号码建立绑定关系。And a binding module, configured to establish a binding relationship between the user account and the first mobile phone number when the binding request and the information digest match.
在一个可选的实施例中,所述装置还包括:In an optional embodiment, the apparatus further includes:
获取模块,用于从所述绑定请求中获取操作验证信息;An obtaining module, configured to obtain operation verification information from the binding request;
所述验证模块,还用于根据所述操作验证信息验证本次绑定过程的有效性;The verification module is further configured to verify the validity of the binding process according to the operation verification information;
所述绑定模块,还用于当所述本次绑定过程有效时,执行所述将所述用户帐号和所述第一手机号码建立绑定关系的步骤。The binding module is further configured to perform the step of establishing a binding relationship between the user account and the first mobile phone number when the current binding process is valid.
在一个可选的实施例中,所述操作验证信息包括:票据;In an optional embodiment, the operation verification information includes: a ticket;
所述验证模块,用于验证所述票据是否与绑定操作对应的票据。The verification module is configured to verify whether the ticket is a ticket corresponding to the binding operation.
在一个可选的实施例中,所述操作验证信息包括:登录令牌;In an optional embodiment, the operation verification information includes: a login token;
所述验证模块,用于验证所述登录令牌的有效时间是否过期。The verification module is configured to verify whether the valid time of the login token is expired.
第五方面,提供了一种终端,所述终端包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如上第一方面或第一方面任一可选实现方式中所述的用于绑定手机号码的方法。In a fifth aspect, a terminal is provided, the terminal comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement the first aspect or the first A method for binding a mobile number as described in any of the alternative implementations.
第六方面,提供了一种服务器,所述服务器包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如上第二方面或第二方面任一可选实现方式中所述的用于绑定手机号码的方法。In a sixth aspect, a server is provided, the server comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement the second aspect or the second A method for binding a mobile number as described in any of the alternative implementations.
第七方面,提供了一种计算机存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如上第一方面或第一方面任一可选实现方式中所述的用于绑定手机号码的方法。In a seventh aspect, a computer storage medium is provided, wherein the storage medium stores at least one instruction that is loaded and executed by a processor to implement the first aspect or any of the alternative implementations of the first aspect The method used to bind the mobile phone number.
第八方面,提供了一种计算机存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如上第二方面或第二方面任一可选实现方式中所述的用于绑定手机号码的方法。In an eighth aspect, a computer storage medium is provided, wherein the storage medium stores at least one instruction that is loaded and executed by a processor to implement the second aspect or any alternative implementation of the second aspect The method used to bind the mobile phone number.
需要说明的是,上述第一方面、第二方面、第三方面仅用于说明本申请的不同方面,但并不具有顺序限定或优先级限定作用。It should be noted that the above first aspect, second aspect, and third aspect are only used to explain different aspects of the present application, but do not have a sequential definition or priority limiting function.
本申请实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by the embodiments of the present application include at least:
通过将第一手机号码的短信息服务作为一个通道,将移动通信网络或WiFi网络作为另一个通道;将绑定请求和该绑定请求的消息摘要分别通过各自的通道发送至服务器,由服务器在验证绑定请求和信息摘要相匹配时,将用户帐号和第一手机号码建立绑定关系。使得用户只需要触发生成绑定请求,其它步骤均由终端自动化执行,即可完成用户帐号和第一手机号码的绑定过程,不需要用户请求验证码和输入验证码,简化了用户在绑定过程中的操作,提高了人机交互效率。The mobile communication network or the WiFi network is used as another channel by using the short message service of the first mobile phone number as a channel; the binding request and the message digest of the binding request are respectively sent to the server through respective channels, and the server is When the authentication binding request and the message digest match, the user account and the first mobile phone number are bound. The user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed, and the user does not need to request the verification code and input the verification code, which simplifies the binding of the user. The operation in the process improves the efficiency of human-computer interaction.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请各个实施例所涉及的一种用于绑定手机号码的系统的结构示意图;1 is a schematic structural diagram of a system for binding a mobile phone number according to various embodiments of the present application;
图2是本申请一个实施例提供的用于绑定手机号码的方法的流程图;2 is a flowchart of a method for binding a mobile phone number according to an embodiment of the present application;
图3是本申请另一个实施例提供的用于绑定手机号码的方法的流程图;3 is a flowchart of a method for binding a mobile phone number according to another embodiment of the present application;
图4是本申请图3实施例提供的用于绑定手机号码的方法在实施时的界面示意图;FIG. 4 is a schematic diagram of an interface for implementing a method for binding a mobile phone number according to an embodiment of FIG. 3;
图5是本申请一个实施例提供的用于绑定手机号码的装置的结构方框图;FIG. 5 is a structural block diagram of an apparatus for binding a mobile phone number according to an embodiment of the present application; FIG.
图6是本申请另一个实施例提供的用于绑定手机号码的装置的结构方框图;6 is a structural block diagram of an apparatus for binding a mobile phone number according to another embodiment of the present application;
图7是本申请一个实施例提供的终端的结构示意图;FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application;
图8是本申请一个实施例提供的服务器的结构示意图。FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
相关技术中为用户帐号绑定手机号码的流程通常包括:应用程序显示注册用户界面,该注册用户界面上提供有手机号码输入框、获取验证码按钮、验证码输入框和提交按钮;用户在手机号码输入框中输入手机号码,并且点击验证码获取按钮;应用程序将手机号码发送至服务器,服务器向该手机号码发送一个携带有验证码的短信息;用户在查看短信息后,将验证码输入验证码输入框,并且点击提交按钮;应用程序将用户帐号、手机号码和验证码发送给服务器,服务器在验证手机号码和验证码匹配时,将用户帐号和手机号码之间建立绑定关系。The process of binding a mobile phone number to a user account in the related art generally includes: the application displays a registered user interface, and the registered user interface provides a mobile phone number input box, a verification code button, a verification code input box, and a submit button; the user is in the mobile phone. Enter the mobile phone number in the number input box and click the verification code to get the button; the application sends the mobile phone number to the server, and the server sends a short message carrying the verification code to the mobile phone number; after viewing the short message, the user inputs the verification code. Verify the code input box and click the submit button; the application sends the user account, mobile phone number and verification code to the server. When the server verifies that the mobile phone number and the verification code match, the server establishes a binding relationship between the user account and the mobile phone number.
上述方法需要用户输入手机号码、点击提交按钮、输入验证码和点击提交按钮共四个操作步骤,整个流程的人机交互效率较低。因此,本申请实施例提供如下实施例。The above method requires the user to input a mobile phone number, click a submit button, input a verification code, and click a submit button in a total of four operation steps, and the human-computer interaction efficiency of the whole process is low. Therefore, the embodiments of the present application provide the following embodiments.
图1是本申请的一个示例性实施例示出的用于绑定手机号码的系统的结构示意图。该用于绑定手机号码的系统可以是具有通过短信息为终端提供服务的系统,服务包括远程控制、验证码验证和信息推送中的至少一种。该用于绑定手机号码的系统包括:终端120和服务器140。FIG. 1 is a schematic structural diagram of a system for binding a mobile phone number according to an exemplary embodiment of the present application. The system for binding a mobile phone number may be a system having a service for providing a terminal by using a short message, and the service includes at least one of remote control, verification code verification, and information push. The system for binding a mobile phone number includes: a terminal 120 and a server 140.
终端120可以是手机、平板电脑、可穿戴电子设备、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器和膝上型便携计算机等终端。The terminal 120 can be a mobile phone, a tablet computer, a wearable electronic device, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, and an MP4 (Moving Picture Experts Group Audio Layer IV). Dynamic image experts compress standard audio layers 4) terminals such as players and laptops.
可选地,终端120中运行有预定应用程序,该预定应用程序包括如下功能中的至少一种:通过短信息进行远程控制的功能、通过短信息进行验证码验证的功能、通过短信息进行信息推送的功能。在预定应用程序中以用户帐号区分不同的用户,每个用户帐号需要绑定各自对应的手机号码。可选地,每个用户帐号可以绑定至少一个手机号码。Optionally, the terminal 120 runs a predetermined application, and the predetermined application includes at least one of the following functions: a remote control function by using a short message, a verification code verification function by using a short message, and information through a short message. Push function. Different users are distinguished by user accounts in the predetermined application, and each user account needs to be bound to its corresponding mobile phone number. Optionally, each user account can be bound to at least one mobile phone number.
可选地,终端120通过有线网络或无线网络与服务器140相连以及通信。一方面,服务器140和终端120之间可以通过短信通道进行通信,短信通道是通过终端120上当前有效的手机号码的短信息服务进行数据收发的通道,通常由移动通信网络中的电路交换域(Circuit Switching Domain,CS)实现;另一方面,服务器140和终端120之间可以通过数据通道进行通信,数据通道是移动通信网络中的分组交换域(Packet Switching Domain,PS)或无线保真(Wireless Fidelity,WiFi)网络实现的通道。Optionally, the terminal 120 is connected to and communicates with the server 140 via a wired network or a wireless network. On the one hand, the server 140 and the terminal 120 can communicate through the short message channel, and the short message channel is a channel for transmitting and receiving data through the short message service of the currently valid mobile phone number on the terminal 120, usually by a circuit switching domain in the mobile communication network ( Circuit Switching Domain (CS) is implemented; on the other hand, the server 140 and the terminal 120 can communicate through a data channel, which is a Packet Switching Domain (PS) or Wireless Fidelity (Wireless Fidelity) in the mobile communication network. Fidelity, WiFi) network implementation channel.
服务器140是预定应用程序的后台服务器,服务器140可以是一台服务器、多台服务器组成的服务器集群或云计算中心。服务器140具有直接发送短信息和/或接收短信息的功能,或者服务器140具有通过移动运营商提供的短信平台来发送和/或接收短信息的功能。The server 140 is a background server of a predetermined application, and the server 140 may be a server, a server cluster composed of multiple servers, or a cloud computing center. The server 140 has a function of directly transmitting short messages and/or receiving short messages, or the server 140 has a function of transmitting and/or receiving short messages through a short message platform provided by a mobile operator.
图2是本申请的一个示例性实施例示出的用于绑定手机号码的方法的流程图。本实施例以该方法应用于图1所示的系统的终端120和服务器140之间来举例说明。该方法包括:2 is a flow chart of a method for binding a mobile phone number, shown in an exemplary embodiment of the present application. This embodiment is exemplified by the method being applied between the terminal 120 of the system shown in FIG. 1 and the server 140. The method includes:
步骤201,终端生成绑定请求,该绑定请求包括用户帐号;Step 201: The terminal generates a binding request, where the binding request includes a user account.
该绑定请求用于向服务器请求将用户帐号和手机号码进行绑定。在不同的实施例中,该绑定请求还可能具有注册请求、关联请求等其它名称,本实施例对此不加以限定。The binding request is used to request the server to bind the user account and the mobile phone number. In other embodiments, the binding request may also have other names such as a registration request, an association request, and the like, which is not limited in this embodiment.
该绑定请求携带有用户帐号。可选地,该绑定请求还携带有待绑定的第一手机号码,第一手机号码是终端对应的手机号码。在不同的实施例中,绑定请求所携带的信息内容可以各不相同。The binding request carries a user account. Optionally, the binding request further carries a first mobile phone number to be bound, where the first mobile phone number is a mobile phone number corresponding to the terminal. In different embodiments, the information content carried by the binding request may be different.
步骤202,终端将绑定请求通过第一通道发送至服务器;Step 202: The terminal sends the binding request to the server through the first channel.
第一通道是短信通道和数据通道中的一种。短信通道是通过手机号码的短信息服务发 送和/或接收数据的通道,数据通道是通过移动通信网络或WiFi网络发送和/或接收数据的通道。The first channel is one of a short message channel and a data channel. The short message channel is a channel for transmitting and/or receiving data through a short message service of a mobile number, which is a channel for transmitting and/or receiving data through a mobile communication network or a WiFi network.
步骤203,服务器接收通过第一通道接收终端发送的绑定请求;Step 203: The server receives, by using the first channel, a binding request sent by the terminal.
步骤204,终端生成与绑定请求对应的信息摘要;Step 204: The terminal generates a message digest corresponding to the binding request.
信息摘要可以是通过MD5(Message Digest Algorithm 5,信息摘要算法第五代)、哈希算法、其它不可逆加密算法或签名算法对绑定请求进行计算后得到的信息。通常,每一个绑定请求对应的信息摘要都是唯一的。The information digest may be information obtained by calculating a binding request by using MD5 (Message Digest Algorithm 5, information digest algorithm fifth generation), a hash algorithm, other irreversible encryption algorithms, or a signature algorithm. Usually, the summary of the information corresponding to each binding request is unique.
可选地,步骤204可以在步骤202之前执行,本实施例不限定步骤202和步骤204之间的先后顺序。Optionally, step 204 may be performed before step 202. This embodiment does not limit the sequence between step 202 and step 204.
步骤205,终端将绑定请求的信息摘要通过第二通道发送至服务器;Step 205: The terminal sends the information digest of the binding request to the server through the second channel.
第二通道是短信通道和数据通道中的一种,且第二通道与第一通道不同。The second channel is one of a short message channel and a data channel, and the second channel is different from the first channel.
步骤206,服务器通过第二通道接收终端发送的绑定请求对应的信息摘要;Step 206: The server receives, by using the second channel, a message digest corresponding to the binding request sent by the terminal.
步骤207,服务器验证绑定请求和信息摘要是否匹配;Step 207: The server verifies whether the binding request and the information digest match.
服务器接收到的信息摘要,可称为第一信息摘要。A summary of the information received by the server may be referred to as a first information digest.
可选地,服务器对接收到的绑定请求按照与终端相同的算法计算出第二信息摘要,将第一信息摘要和第二信息摘要进行比较;如果两个信息摘要完全相同,则认为绑定请求与该信息摘要匹配;如果两个信息摘要不完全相同或完全不相同,则认为绑定请求和该信息摘要不匹配。Optionally, the server calculates the second information digest according to the same algorithm as the terminal, and compares the first information digest with the second information digest; if the two information digests are identical, the binding is considered The request matches the message digest; if the two message digests are not identical or completely different, the binding request is considered to not match the message digest.
步骤208,当绑定请求和信息摘要匹配时,服务器将用户帐号和第一手机号码建立绑定关系。Step 208: When the binding request and the information digest match, the server establishes a binding relationship between the user account and the first mobile phone number.
可选地,服务器从绑定请求中获取用户帐号和第一手机号码,将用户帐号和第一手机号码进行绑定。或者,服务器从绑定请求中获取用户帐号,从短信通道接收到的短信息中获取第一手机号码(也即短信息的发送方),然后将用户帐号和第一手机号码进行绑定。Optionally, the server obtains the user account and the first mobile phone number from the binding request, and binds the user account and the first mobile phone number. Alternatively, the server obtains the user account from the binding request, obtains the first mobile phone number (that is, the sender of the short message) from the short message received by the short message channel, and then binds the user account with the first mobile phone number.
本实施例对上述步骤202和步骤205所示出的两个发送步骤的前后关系不加以限定,步骤202可以与步骤205同时执行,步骤202也可以在205之后执行。In this embodiment, the context of the two sending steps shown in step 202 and step 205 is not limited. Step 202 may be performed simultaneously with step 205, and step 202 may be performed after 205.
在本实施例提供的用于绑定手机号码的方法中,通过将第一手机号码的短信息服务作为一个通道,将移动通信网络或WiFi网络作为另一个通道;将绑定请求和该绑定请求的消息摘要分别通过各自的通道发送至服务器,由服务器在验证绑定请求和信息摘要相匹配时,将用户帐号和第一手机号码建立绑定关系。使得用户只需要触发生成绑定请求,其它步骤均由终端自动化执行,即可完成用户帐号和第一手机号码的绑定过程,不需要用户请求验证码和输入验证码,简化了用户在绑定过程中的操作,提高了人机交互效率。In the method for binding a mobile phone number provided by this embodiment, the mobile communication network or the WiFi network is regarded as another channel by using the short message service of the first mobile phone number as a channel; the binding request and the binding are The requested message digest is sent to the server through the respective channels. When the server matches the authentication binding request and the information digest, the server establishes a binding relationship between the user account and the first mobile phone number. The user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed, and the user does not need to request the verification code and input the verification code, which simplifies the binding of the user. The operation in the process improves the efficiency of human-computer interaction.
图3是本申请的另一个示例性实施例示出的用于绑定手机号码的方法的流程图。本实施例以该方法应用于图1所示的系统中终端120和服务器140之间来举例说明。该方法包括:3 is a flow chart of a method for binding a mobile phone number, shown in another exemplary embodiment of the present application. This embodiment is exemplified by the method applied to the terminal 120 and the server 140 in the system shown in FIG. The method includes:
步骤301,终端向服务器发送登录请求,该登录请求中携带有用户帐号和密码;Step 301: The terminal sends a login request to the server, where the login request carries a user account and a password;
终端中在需要和服务器通信时,使用预先注册的用户帐号和密码生成登录请求,向服务器发送登录请求。When the terminal needs to communicate with the server, the login request is generated using the pre-registered user account and password, and the login request is sent to the server.
示意性的,以终端中的预定应用程序是查找手机程序为例,参考图4的左侧图示,用户在查找手机程序的登录界面中的输入框41中输入用户帐号zhangsan@xxx.com和密码,然后点击“登录”按钮42后,终端向服务器发送登录请求。Illustratively, taking the predetermined application in the terminal as a search for a mobile phone program, referring to the left side diagram of FIG. 4, the user inputs the user account zhangsan@xxx.com and the input box 41 in the login interface of the search for the mobile phone program. After the password is clicked on the "Login" button 42, the terminal sends a login request to the server.
对应地,服务器接收终端发送的登录请求。Correspondingly, the server receives the login request sent by the terminal.
步骤302,服务器对用户帐号和密码进行验证;并在验证成功后,向终端反馈登录令牌。Step 302: The server verifies the user account and password; and after the verification succeeds, the login token is fed back to the terminal.
登录令牌(token)是登录成功时由服务器分配给终端的一种数字令牌。登录令牌通常具有有效期限(比如10分钟内),终端后续与服务器通信时,需要在信息中携带该登录令牌,以便服务器识别出该终端是处于有效登录状态的终端。A token is a digital token assigned to a terminal by a server when the login is successful. The login token usually has an expiration date (for example, within 10 minutes). When the terminal subsequently communicates with the server, the login token needs to be carried in the information, so that the server recognizes that the terminal is in a valid login state.
用户帐号、登录密码和登录令牌之间存在对应关系。表一示意性的示出了该对应关系。There is a correspondence between the user account, login password, and login token. Table 1 schematically shows the correspondence.
表一Table I
用户名username 登录密码login password 登录令牌tokenLogin token token 有效期限Validity period
张三Zhang San 128568128568 1F4Gsdfa1F4Gsdfa 11:02-11:1211:02-11:12
李四Li Si 865986865986 5548asdf15548asdf1 10:59-11:0910:59-11:09
王五Wang Wu 11553361155336 2146451af2146451af 11:04-11:1411:04-11:14
对应地,终端存储该登录令牌。Correspondingly, the terminal stores the login token.
终端在接收到登录令牌后,成功登录。After receiving the login token, the terminal successfully logs in.
步骤303,终端接收第一触发操作;Step 303: The terminal receives the first triggering operation.
可选地,第一触发操作是用于生成绑定请求的操作。Optionally, the first triggering operation is an operation for generating a binding request.
结合参考图4的右侧图示,终端从登录界面跳转到开通查找手机界面,如果用户希望开通查找设备功能,则在开通查找手机界面点击“开通查找手机”按钮43。该开通查找手机过程可以认为是将用户帐号和第一手机号码进行绑定的绑定过程。Referring to the right side diagram of FIG. 4, the terminal jumps from the login interface to open the search for the mobile phone interface. If the user wishes to open the search device function, click the "Open Phone Search" button 43 when the search for the mobile phone interface is opened. The process of opening the search for the mobile phone can be regarded as a binding process of binding the user account and the first mobile phone number.
步骤304,终端根据第一触发操作获取用户帐号和操作验证信息;Step 304: The terminal acquires a user account and operation verification information according to the first triggering operation.
用户帐号是在服务器中注册且用于标识用户身份的帐号。操作验证信息用于验证本次绑定过程的有效性。A user account is an account that is registered in the server and is used to identify the user. Operational verification information is used to verify the validity of this binding process.
可选地,终端还获取第一手机号码,第一手机号码是终端对应的手机号码。Optionally, the terminal further acquires the first mobile phone number, where the first mobile phone number is the mobile phone number corresponding to the terminal.
步骤305,终端根据用户帐号和操作验证信息生成绑定请求;Step 305: The terminal generates a binding request according to the user account and the operation verification information.
可选地,操作验证信息包括:票据和/或登录令牌(token)。其中,票据是与绑定过程对应的票据,该票据可以是一个字符串,比如字符串A1。票据用于向服务器表示本次操作是一次绑定操作;而登录令牌是在登录成功后生成的令牌且登录令牌具有有效期限,该第一登录令牌可以是步骤302中由服务器反馈的令牌,也可以是在步骤302之后由服务器更新过的令牌。Optionally, the operation verification information includes: a ticket and/or a login token. The ticket is a ticket corresponding to the binding process, and the ticket can be a string, such as the string A1. The ticket is used to indicate to the server that the operation is a binding operation; the login token is a token generated after the login is successful and the login token has an expiration date, and the first login token may be feedback from the server in step 302. The token may also be a token that was updated by the server after step 302.
可选地,绑定请求=(用户帐号,票据,登录令牌)。Optionally, the binding request = (user account, ticket, login token).
在一个可能的实现方式中,若终端还获取了第一手机号码,终端根据用户帐号、第一手机号码和操作验证信息生成绑定请求。比如,终端将用户帐号、第一手机号码和操作验证信息依次排序,并在每两个信息之间添加逗号,得到绑定请求=(用户帐号,第一手机号码,票据,登录令牌)。In a possible implementation manner, if the terminal further acquires the first mobile phone number, the terminal generates a binding request according to the user account, the first mobile phone number, and the operation verification information. For example, the terminal sequentially sorts the user account, the first mobile phone number, and the operation verification information, and adds a comma between each two information to obtain a binding request=(user account, first mobile phone number, ticket, login token).
在另一个可能的实现方式中,若终端还获取了操作验证信息,则绑定请求=(用户帐号,终端标识,第一手机号码,票据,登录令牌)。当终端是手机时,终端标识可以是IMEI(International Mobile Equipment Identity,国际移动设备身份码)。In another possible implementation manner, if the terminal also obtains the operation verification information, the binding request=(user account, terminal identifier, first mobile phone number, ticket, login token). When the terminal is a mobile phone, the terminal identifier may be an IMEI (International Mobile Equipment Identity).
步骤306,终端将绑定请求通过第一通道发送至服务器;Step 306: The terminal sends the binding request to the server through the first channel.
示意性的,终端通过数据通道将绑定请求发送给服务器。可选地,终端将绑定请求加密后,再发送给服务器。Schematically, the terminal sends a binding request to the server through the data channel. Optionally, the terminal encrypts the binding request and then sends the binding request to the server.
步骤307,服务器通过第一通道接收终端发送的绑定请求;Step 307: The server receives the binding request sent by the terminal by using the first channel.
服务器通过数据通道接收终端发送的绑定请求。若该绑定请求是终端加密过的信息,则服务器通过相同的方式对该绑定请求进行解密,以得到绑定请求的具体内容。The server receives the binding request sent by the terminal through the data channel. If the binding request is information encrypted by the terminal, the server decrypts the binding request in the same manner to obtain the specific content of the binding request.
步骤308,终端生成绑定请求对应的信息摘要;Step 308, the terminal generates a message digest corresponding to the binding request.
在一个实施例中,绑定请求的信息摘要是通过MD5(Message Digest Algorithm 5,信息摘要算法第五代)、哈希算法、其它不可逆加密算法或签名算法对绑定请求进行计算后得到的信息。通常,每一个绑定请求对应的信息摘要都是唯一的。In an embodiment, the information digest of the binding request is obtained by calculating a binding request by using MD5 (Message Digest Algorithm 5, information digest algorithm fifth generation), a hash algorithm, other irreversible encryption algorithm, or a signature algorithm. . Usually, the summary of the information corresponding to each binding request is unique.
步骤309,终端将绑定请求的信息摘要通过第二通道发送至服务器;Step 309: The terminal sends the information digest of the binding request to the server through the second channel.
示意性的,终端通过短信通道将信息摘要发送至服务器。短信通道是终端通过第一手机号码的短信息服务向服务器发送数据的通道。Schematically, the terminal sends a message digest to the server via the short message channel. The short message channel is a channel through which the terminal sends data to the server through the short message service of the first mobile number.
服务器可以预先在运营商提供的短信平台上绑定两个短信服务号:上行短信服务号和 下行短信服务号,该上行短信服务号用于接收终端发送的短信息,下行短信服务号用于向终端发送短信息。比如,上行短信服务号为:10600x,下行短信服务号为:10602x。The server may bind two SMS service numbers in advance on the SMS platform provided by the operator: an uplink short message service number and a downlink short message service number, the uplink short message service number is used to receive the short message sent by the terminal, and the downlink short message service number is used to The terminal sends a short message. For example, the uplink short message service number is: 10600x, and the downlink short message service number is: 10602x.
终端中预先存储有上行短信服务号10600x,终端将第一手机号码作为短信发件人,将上行短信服务号10600x作为短信收件人、将信息摘要作为短信息内容进行短信发送,短信平台在收到该短信后转发给服务器。The terminal stores the uplink short message service number 10600x in advance, and the terminal uses the first mobile phone number as the short message sender, the uplink short message service number 10600x as the short message recipient, and the message summary as the short message content to send the short message, and the short message platform receives the message. Forward to the server after the SMS.
步骤310,服务器通过第二通道接收终端发送的绑定请求对应的信息摘要;Step 310: The server receives, by using the second channel, a message digest corresponding to the binding request sent by the terminal.
服务器通过短信通道接收控制终端发送的信息摘要。可选地,由于该信息摘要是携带在短信中,该短信的发件人是第一手机号码,服务器保存该第一手机号码和信息摘要之间的对应关系。The server receives the summary of the information sent by the control terminal through the short message channel. Optionally, since the information digest is carried in the short message, the sender of the short message is the first mobile phone number, and the server saves the correspondence between the first mobile phone number and the information digest.
服务器接收到的信息摘要,可称为第一信息摘要。A summary of the information received by the server may be referred to as a first information digest.
步骤311,服务器从绑定请求中获取用户帐号和操作验证信息,操作验证信息包括票据和/或登录令牌;Step 311: The server obtains a user account and operation verification information from the binding request, where the operation verification information includes a ticket and/or a login token.
本实施例以操作验证信息同时包括票据和登录令牌来举例说明。This embodiment is exemplified by the operation verification information including the ticket and the login token.
可选地,服务器对绑定请求进行解析,得到用户帐号、票据和登录令牌。Optionally, the server parses the binding request to obtain a user account, a ticket, and a login token.
可选地,服务器对绑定请求进行解析,得到用户帐号、第一手机号码、票据和登录令牌;Optionally, the server parses the binding request to obtain a user account, a first mobile phone number, a ticket, and a login token.
可选地,服务器对绑定请求进行解析,得到用户帐号、终端标识、第一手机号码、票据和登录令牌。Optionally, the server parses the binding request, and obtains a user account, a terminal identifier, a first mobile phone number, a ticket, and a login token.
步骤312,服务器检测票据是否为与绑定过程对应的票据;Step 312: The server detects whether the ticket is a ticket corresponding to the binding process.
由于终端与服务器之间可能存在多种操作过程:绑定过程、注销过程、更换SIM卡过程,不同的操作过程分别对应各自的票据,服务器需要检测解析出的票据是否为与绑定过程对应的票据,若该票据是与绑定过程对应的票据,则进入步骤313;若该票据不是与绑定过程对应的票据,而是与其它过程对应的票据,则执行其它过程(比如注销过程或更新过程)。Because there may be multiple operations between the terminal and the server: the binding process, the logout process, and the process of replacing the SIM card, different operations respectively correspond to the respective tickets, and the server needs to detect whether the parsed ticket is corresponding to the binding process. If the ticket is a ticket corresponding to the binding process, proceed to step 313; if the ticket is not a ticket corresponding to the binding process, but a ticket corresponding to other processes, perform other processes (such as a logout process or update) process).
步骤313,当票据是与绑定过程对应的票据时,服务器检测登录令牌是否处于有效期限;Step 313: When the ticket is a ticket corresponding to the binding process, the server detects whether the login token is in an expiration date;
每个登录令牌都具有一定的有效期限,比如10分钟、30分钟、2小时等。Each login token has a certain expiration date, such as 10 minutes, 30 minutes, 2 hours, and so on.
服务器检测解析出的登录令牌是否处于有效期限;若处于有效期限,则进入步骤314;若未处于有效期限,则向终端发送绑定失败信息。The server detects whether the parsed token is in an expiration date; if it is in the expiration date, it proceeds to step 314; if it is not in the expiration, sends a binding failure message to the terminal.
需要说明的是,步骤312和步骤313的执行先后顺序可以互换或者并列执行,只有在步骤312和步骤313的检测结果均为“是”的情况下,才进入步骤314。It should be noted that the execution order of step 312 and step 313 may be interchanged or performed in parallel. Only when the detection results of step 312 and step 313 are both "YES", step 314 is entered.
步骤314,当登录令牌处于有效期限时,服务器验证绑定请求和信息摘要是否匹配;Step 314, when the login token is in the expiration date, the server verifies whether the binding request and the information digest match;
可选地,服务器对接收到的绑定请求按照与终端相同的算法计算出第二信息摘要,将第一信息摘要和第二信息摘要进行比较;如果两个信息摘要完全相同,则认为绑定请求与该信息摘要匹配,进入步骤315;如果两个信息摘要不完全相同或完全不相同,则认为绑定请求和该信息摘要不匹配,向终端反馈绑定失败信息。Optionally, the server calculates the second information digest according to the same algorithm as the terminal, and compares the first information digest with the second information digest; if the two information digests are identical, the binding is considered The request matches the information digest, and the process proceeds to step 315. If the two information digests are not identical or completely different, the binding request and the information digest are not matched, and the binding failure information is fed back to the terminal.
可选地,若服务器存储有第一手机号码和第一信息摘要之间的对应关系,则服务器根据第一手机号码查询对应的绑定请求,根据查询到的绑定请求生成第二信息摘要。或者,服务器未存储有第一手机号码和第一信息摘要之间的对应关系,服务器仅存储有第一信息摘要时,服务器将接收到的所有绑定请求(可以是最近一段时间内的)均生成对应的第二信息摘要,查询是否存在与第一信息摘要完全一致的第二信息摘要,若存在完全一致的第二信息摘要,则确定两者匹配。Optionally, if the server stores the correspondence between the first mobile phone number and the first information digest, the server queries the corresponding binding request according to the first mobile phone number, and generates a second information digest according to the queried binding request. Or, the server does not store the correspondence between the first mobile phone number and the first information digest, and when the server stores only the first information digest, all binding requests received by the server (which may be in the latest time period) are A second information digest is generated to query whether there is a second information digest that is completely consistent with the first information digest. If there is a completely identical second information digest, it is determined that the two match.
步骤315,当绑定请求和信息摘要匹配时,服务器建立用户帐号和第一手机号码之间的绑定关系;Step 315: When the binding request and the information digest match, the server establishes a binding relationship between the user account and the first mobile phone number.
每个终端标识可绑定至少一个第一手机号码。也即,第一手机号码可以不止一个。Each terminal identifier can be bound to at least one first mobile number. That is, the first mobile number can be more than one.
在一个可能的实施例中,服务器为终端开通查找设备功能时,会同时建立用户帐号、终端标识和第一手机号码之间的绑定关系。表二示意性的示出了该绑定关系。In a possible embodiment, when the server opens the function of finding the device, the server establishes a binding relationship between the user account, the terminal identifier, and the first mobile phone number. Table 2 schematically shows the binding relationship.
表二Table II
用户帐号user account 终端标识(IMEI)Terminal Identification (IMEI) 手机号phone number
张三Zhang San xxxxxx0601472104Xxxxxx0601472104 134xxxx8888134xxxx8888
李四Li Si Xxxxxx121272105Xxxxxx121272105 135xxxx6666135xxxx6666
李四Li Si xxxxxx0701472234Xxxxxx0701472234 186xxxx7777186xxxx7777
步骤316,服务器向终端发送绑定成功消息。In step 316, the server sends a binding success message to the terminal.
服务器在终端成功开通查找手机功能后,向终端发送绑定成功消息。可选地,绑定成功消息可以通过短信通道或数据通道进行发送。After the terminal successfully opens the search for the mobile phone function, the server sends a binding success message to the terminal. Optionally, the binding success message can be sent through a short message channel or a data channel.
结合参考图4C,服务器向终端反馈绑定成功消息后,终端从开通查找手机界面跳转到查找手机功能界面,该查找手机功能界面提供有终端在地图中的位置显示,终端的名称“张三的手机”以及状态“在线”,此后,用户可以控制终端进行响铃、锁死、抹除数据等操作。Referring to FIG. 4C, after the server feeds back the binding success message to the terminal, the terminal jumps from the open search mobile phone interface to the search mobile phone function interface, and the search mobile phone function interface provides the location display of the terminal in the map, and the terminal name is “Zhang San”. The mobile phone and the status "online", after which, the user can control the terminal to ring, lock, erase data and other operations.
在本实施例提供的方法中,通过将第一手机号码的短信息服务作为一个通道,将移动通信网络或WiFi网络作为另一个通道;将绑定请求和该绑定请求的消息摘要分别通过各自的通道发送至服务器,由服务器在验证绑定请求和信息摘要相匹配时,将用户帐号和第一手机号码建立绑定关系。使得用户只需要触发生成绑定请求,其它步骤均由终端自动化执行,即可完成用户帐号和第一手机号码的绑定过程。In the method provided in this embodiment, the short message service of the first mobile phone number is used as a channel, and the mobile communication network or the WiFi network is used as another channel; the binding request and the message digest of the binding request are respectively passed through respective The channel is sent to the server, and the server establishes a binding relationship between the user account and the first mobile phone number when the verification binding request and the message summary match. The user only needs to trigger the generation of the binding request, and the other steps are automatically executed by the terminal, and the binding process between the user account and the first mobile phone number can be completed.
在本实施例提供的方法中,用户在绑定过程中只需要触发第一触发操作即可,不需要用户请求验证码和输入验证码,简化了用户在绑定过程中的操作,提高了人机交互效率。In the method provided in this embodiment, the user only needs to trigger the first triggering operation in the binding process, and does not require the user to request the verification code and input the verification code, which simplifies the operation of the user in the binding process and improves the person. Machine interaction efficiency.
在本实施例提供的方法中,还通过增加操作验证信息,能够使得服务器对本次绑定过程的有效性进行检测,只有在本次绑定过程有效时才将用户帐号和第一手机号码进行绑定,提高了绑定过程的安全性。In the method provided in this embodiment, by adding the operation verification information, the server can detect the validity of the binding process, and only when the binding process is valid, the user account and the first mobile phone number are performed. Binding improves the security of the binding process.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following is an embodiment of the apparatus of the present application, which may be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
图5示出了本申请一个示例性实施例提供的用于绑定手机号码的装置的框图,该装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。所述装置包括:FIG. 5 is a block diagram of an apparatus for binding a mobile phone number provided by an exemplary embodiment of the present application, which may be implemented as all or part of a terminal by software, hardware, or a combination of both. The device includes:
生成模块510,用于生成绑定请求,所述绑定请求包括用户帐号;The generating module 510 is configured to generate a binding request, where the binding request includes a user account;
发送模块520,用于将所述绑定请求通过第一通道发送至服务器,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道;The sending module 520 is configured to send the binding request to the server by using a first channel, where the first channel is one of a short message channel and a data channel, and the short message channel is sent by using a short message of the first mobile phone number a channel of data, which is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
所述生成模块510,还用于生成与所述绑定请求对应的信息摘要;The generating module 510 is further configured to generate a message digest corresponding to the binding request.
所述发送模块520,还用于将所述绑定请求对应的信息摘要通过第二通道发送至所述服务器,所述第二通道是所述短信通道和所述数据通道中的另一种,所述服务器用于在验证所述绑定请求和所述信息摘要相匹配时将所述用户帐号和所述第一手机号码建立绑定关系。The sending module 520 is further configured to send the information digest corresponding to the binding request to the server by using a second channel, where the second channel is another one of the short message channel and the data channel, The server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
在一个可选的实施例中,所述生成模块510,用于接收第一触发操作;根据所述第一触发操作获取所述用户帐号;根据所述用户帐号生成所述绑定请求。In an optional embodiment, the generating module 510 is configured to receive a first triggering operation, acquire the user account according to the first triggering operation, and generate the binding request according to the user account.
在一个可选的实施例中,所述装置还包括:In an optional embodiment, the apparatus further includes:
获取模块530,用于获取操作验证信息;The obtaining module 530 is configured to obtain operation verification information.
所述生成模块510,还用于根据所述用户帐号和所述操作验证信息生成所述绑定请求,所述操作验证信息用于验证本次绑定过程的有效性。The generating module 510 is further configured to generate the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the binding process.
在一个可选的实施例中,所述操作验证信息包括:票据和/或登录令牌;In an optional embodiment, the operation verification information includes: a ticket and/or a login token;
所述票据是与绑定操作对应的票据,所述登录令牌是在所述用户帐号登录成功后生成的令牌且所述登录令牌具有有效期限。The ticket is a ticket corresponding to a binding operation, and the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
上述生成模块510可以通过处理器执行程序来实现,上述发送模块520可以通过处理 器控制发射器来实现。该发射器具有短信息发送能力和/或数据网络发送能力。上述获取模块530可以通过处理器执行程序来实现,或者,上述获取模块530可以通过处理器执行程序来实现。The generating module 510 can be implemented by a processor executing a program, and the sending module 520 can be implemented by a processor controlling a transmitter. The transmitter has short message transmission capability and/or data network transmission capability. The obtaining module 530 may be implemented by a processor executing a program, or the obtaining module 530 may be implemented by a processor executing a program.
图6示出了本申请另一个示例性实施例提供的用于绑定手机号码的装置的框图。该装置可以通过软件、硬件或者两者的结合实现成为服务器的全部或一部分。所述装置包括:FIG. 6 shows a block diagram of an apparatus for binding a mobile number provided by another exemplary embodiment of the present application. The device can be implemented as all or part of a server by software, hardware or a combination of both. The device includes:
接收模块610,用于通过第一通道接收终端发送的绑定请求,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道,所述绑定请求包括用户帐号,所述第一手机号码是所述终端对应的手机号码;The receiving module 610 is configured to receive, by using the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel, and the short message channel is sent by using a short message of the first mobile phone number. a channel, the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network, the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
所述接收模块610,还用于通过第二通道接收所述终端发送的所述绑定请求的信息摘要;所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同;The receiving module 610 is further configured to receive, by using a second channel, a message digest of the binding request sent by the terminal, where the second channel is one of the short message channel and the data channel, and The second channel is different from the first channel;
验证模块620,还用于验证所述绑定请求和所述绑定请求的信息摘要是否匹配;The verification module 620 is further configured to verify whether the binding information of the binding request and the binding request match;
绑定模块630,用于当所述绑定请求和所述信息摘要匹配时,将所述用户帐号和所述第一手机号码建立绑定关系。The binding module 630 is configured to establish a binding relationship between the user account and the first mobile phone number when the binding request and the information digest match.
在一个可选的实施例中,所述装置还包括:In an optional embodiment, the apparatus further includes:
获取模块640,用于从所述绑定请求中获取操作验证信息;The obtaining module 640 is configured to obtain operation verification information from the binding request.
所述验证模块620,还用于根据所述操作验证信息验证本次绑定过程的有效性;The verification module 620 is further configured to verify the validity of the binding process according to the operation verification information;
所述绑定模块630,还用于当所述本次绑定过程有效时,执行所述将所述用户帐号和所述第一手机号码建立绑定关系的步骤。The binding module 630 is further configured to perform the step of establishing a binding relationship between the user account and the first mobile phone number when the current binding process is valid.
在一个可选的实施例中,所述操作验证信息包括:票据;In an optional embodiment, the operation verification information includes: a ticket;
所述验证模块620,用于验证所述票据是否与绑定操作对应的票据。The verification module 620 is configured to verify whether the ticket is a ticket corresponding to the binding operation.
在一个可选的实施例中,所述操作验证信息包括:登录令牌;In an optional embodiment, the operation verification information includes: a login token;
所述验证模块620,用于验证所述登录令牌的有效时间是否过期。The verification module 620 is configured to verify whether the valid time of the login token is expired.
上述接收模块610可以通过处理器控制接收器来实现,该接收器具有短信息接收能力和/或数据网络接收能力;上述验证模块620可以通过处理器执行程序来实现。该发送器具有短信息发送能力和/或数据网络发送能力。上述绑定模块630可以通过处理器执行程序来实现。The receiving module 610 can be implemented by a processor control receiver, which has short message receiving capability and/or data network receiving capability. The foregoing verifying module 620 can be implemented by a processor executing a program. The transmitter has short message transmission capability and/or data network transmission capability. The binding module 630 can be implemented by a processor executing a program.
需要说明的是:上述实施例提供的用于绑定手机号码的装置在绑定手机号码时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端或服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的用于绑定手机号码的装置与用于绑定手机号码的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the device for binding a mobile phone number provided by the foregoing embodiment is bound to the mobile phone number, only the division of each functional module is used as an example. In an actual application, the foregoing function may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the terminal or the server is divided into different functional modules to complete all or part of the functions described above. In addition, the device for binding a mobile phone number provided by the foregoing embodiment is the same as the method for binding a mobile phone number. The specific implementation process is described in detail in the method embodiment, and details are not described herein again.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
图7示出了本申请一个示例性实施例所涉及的终端的结构示意图。该终端包括:该终端包括:处理器711、接收器712、发射器713、存储器714和总线715。FIG. 7 is a schematic structural diagram of a terminal involved in an exemplary embodiment of the present application. The terminal includes: the terminal includes: a processor 711, a receiver 712, a transmitter 713, a memory 714, and a bus 715.
处理器711包括一个或者一个以上处理核心,存储器714通过总线715与处理器711相连,存储器714用于存储至少一条指令,处理器711执行存储器714中的指令时实现图2和图3所示方法实施例中终端侧的用于绑定手机号码的方法的步骤。The processor 711 includes one or more processing cores, and the memory 714 is coupled to the processor 711 via a bus 715 for storing at least one instruction, and the processor 711 executing the instructions in the memory 714 to implement the methods illustrated in FIGS. 2 and 3. The steps of the method for binding a mobile phone number on the terminal side in the embodiment.
接收器712和发射器713可以实现为一个通信组件,该通信组件可以是一块通信芯片,用于对信息进行调制和/或解调,并通过无线信号接收或发送该信息。 Receiver 712 and transmitter 713 can be implemented as a communication component, which can be a communication chip for modulating and/or demodulating information and receiving or transmitting the information over a wireless signal.
此外,存储器714可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随时存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器, 快闪存储器,磁盘或光盘。Moreover, memory 714 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable In addition to Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
上述结构示意仅为对终端的示意性说明,终端可以包括更多或更少的部件,比如终端可以不包括接收器,或者,终端还包括传感器、显示屏、电源等其它部件,本实施例不再赘述。The foregoing structure is only a schematic description of the terminal, and the terminal may include more or fewer components, for example, the terminal may not include the receiver, or the terminal further includes other components such as a sensor, a display screen, a power supply, etc., this embodiment does not Let me repeat.
本申请实施例还提供一种计算机可读介质,其上存储有至少一条指令,该指令被处理器711执行时实现图2和图3所示方法实施例中终端侧的用于绑定手机号码的方法的步骤。The embodiment of the present application further provides a computer readable medium, where the at least one instruction is stored, and when the instruction is executed by the processor 711, the terminal side of the method embodiment shown in FIG. 2 and FIG. 3 is used to bind the mobile phone number. The steps of the method.
图8示出了本申请一个示例性实施例提供的服务器的结构示意图,该服务器包括:处理器811、接收器812、发射器813、存储器814、总线815和网络接口816。FIG. 8 is a schematic structural diagram of a server provided by an exemplary embodiment of the present application. The server includes a processor 811, a receiver 812, a transmitter 813, a memory 814, a bus 815, and a network interface 816.
处理器811包括一个或者一个以上处理核心,存储器814通过总线815与处理器811相连,存储器814用于存储至少一条指令,处理器811执行存储器814中的指令时实现图2和图3所示方法实施例中服务器侧的用于绑定手机号码的方法的步骤。The processor 811 includes one or more processing cores. The memory 814 is coupled to the processor 811 via a bus 815 for storing at least one instruction, and the processor 811 executing the instructions in the memory 814 to implement the methods illustrated in FIGS. 2 and 3. The steps of the method for binding a mobile phone number on the server side in the embodiment.
接收器812和发射器813可以实现为一个通信组件,该通信组件可以是一块通信芯片,用于对信息进行调制和/或解调,并通过无线信号接收或发送该信息。在其它实施例中,接收器812和发射器813可替代实现成为网络接口816,服务器通过该网络接口816与短信息发送平台相连,通过短信息发送平台来收发短信息。 Receiver 812 and transmitter 813 can be implemented as a communication component, which can be a communication chip for modulating and/or demodulating information and receiving or transmitting the information over a wireless signal. In other embodiments, the receiver 812 and the transmitter 813 can alternatively be implemented as a network interface 816 through which the server is connected to the short message transmitting platform to send and receive short messages through the short message transmitting platform.
此外,存储器814可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随时存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Moreover, memory 814 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable In addition to Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
上述结构示意仅为对服务器的示意性说明,服务器可以包括更多或更少的部件,比如服务器还包括诸如键盘和鼠标之类的I/O接口、电源等其它部件,本实施例不再赘述。The above structure is only for the schematic description of the server, the server may include more or less components, such as the server also includes other components such as an I/O interface such as a keyboard and a mouse, a power supply, and the like, which will not be described in this embodiment. .
本申请实施例还提供一种计算机可读介质,其上存储有至少一条指令,该指令被处理器811执行时实现图2和图3所示方法实施例中服务器侧的用于绑定手机号码的方法的步骤。The embodiment of the present application further provides a computer readable medium, where the at least one instruction is stored, and when the instruction is executed by the processor 811, the server side for binding the mobile phone number in the method embodiment shown in FIG. 2 and FIG. 3 is implemented. The steps of the method.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the protection of the present application. Within the scope.

Claims (21)

  1. 一种用于绑定手机号码的方法,其特征在于,所述方法包括:A method for binding a mobile phone number, the method comprising:
    终端生成绑定请求,所述绑定请求包括用户帐号;The terminal generates a binding request, where the binding request includes a user account;
    所述终端将所述绑定请求通过第一通道发送至服务器,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道;The terminal sends the binding request to the server through the first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data through the short message of the first mobile phone number. The data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
    所述终端生成与所述绑定请求对应的信息摘要;The terminal generates a message digest corresponding to the binding request;
    所述终端将所述绑定请求对应的信息摘要通过第二通道发送至所述服务器,所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同,所述服务器用于在验证所述绑定请求和所述信息摘要相匹配时将所述用户帐号和所述第一手机号码建立绑定关系。Sending, by the terminal, the information digest corresponding to the binding request to the server by using a second channel, where the second channel is one of the short message channel and the data channel, and the second channel is The first channel is different, and the server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
  2. 根据权利要求1所述的方法,其特征在于,所述终端生成绑定请求,包括:The method according to claim 1, wherein the terminal generates a binding request, including:
    所述终端接收第一触发操作;Receiving, by the terminal, a first triggering operation;
    所述终端根据所述第一触发操作获取所述用户帐号;The terminal acquires the user account according to the first triggering operation;
    所述终端根据所述用户帐号生成所述绑定请求。The terminal generates the binding request according to the user account.
  3. 根据权利要求2所述的方法,其特征在于,所述终端根据所述用户帐号生成所述绑定请求之前,还包括:The method according to claim 2, wherein before the terminal generates the binding request according to the user account, the method further includes:
    所述终端获取操作验证信息;The terminal acquires operation verification information;
    所述终端根据所述用户帐号生成所述绑定请求,包括:The terminal generates the binding request according to the user account, including:
    所述终端根据所述用户帐号和所述操作验证信息生成所述绑定请求,所述操作验证信息用于验证本次绑定过程的有效性。The terminal generates the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
  4. 根据权利要求3所述的方法,其特征在于,所述操作验证信息包括:票据和/或登录令牌;The method according to claim 3, wherein the operation verification information comprises: a ticket and/or a login token;
    所述票据是与绑定操作对应的票据,所述登录令牌是在所述用户帐号登录成功后生成的令牌且所述登录令牌具有有效期限。The ticket is a ticket corresponding to a binding operation, and the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
  5. 一种用于绑定手机号码的方法,其特征在于,所述方法包括:A method for binding a mobile phone number, the method comprising:
    通过第一通道接收终端发送的绑定请求,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道,所述绑定请求包括用户帐号,所述第一手机号码是所述终端对应的手机号码;Receiving, by the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel; the short message channel is a channel for sending data by using a short message of the first mobile phone number, the data channel Is a channel for transmitting data through a mobile communication network or a wireless fidelity network, where the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
    通过第二通道接收所述终端发送的所述绑定请求的信息摘要;所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同;Receiving, by the second channel, a message digest of the binding request sent by the terminal; the second channel is one of the short message channel and the data channel, and the second channel is the first channel Different channels;
    验证所述绑定请求和所述绑定请求的信息摘要是否匹配;Verifying whether the binding request and the information digest of the binding request match;
    当所述绑定请求和所述信息摘要匹配时,将所述用户帐号和所述第一手机号码建立绑定关系。When the binding request matches the information digest, the user account and the first mobile phone number are bound.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述用户帐号和所述第一手机号码建立绑定关系之前,还包括:The method according to claim 5, wherein before the establishing a binding relationship between the user account and the first mobile phone number, the method further includes:
    从所述绑定请求中获取操作验证信息;Obtaining operation verification information from the binding request;
    根据所述操作验证信息验证本次绑定过程的有效性;Verifying the validity of the binding process according to the operation verification information;
    当所述本次绑定过程有效时,执行所述将所述用户帐号和所述第一手机号码建立绑定关系的步骤。When the binding process is valid, the step of establishing a binding relationship between the user account and the first mobile phone number is performed.
  7. 根据权利要求6所述的方法,其特征在于,所述操作验证信息包括:票据;The method according to claim 6, wherein the operation verification information comprises: a ticket;
    所述根据所述操作验证信息验证本次绑定过程的有效性,包括:The verifying the validity of the binding process according to the operation verification information, including:
    验证所述票据是否与绑定操作对应的票据。A ticket that verifies whether the ticket corresponds to a binding operation.
  8. 根据权利要求6所述的方法,其特征在于,所述操作验证信息包括:登录令牌;The method according to claim 6, wherein the operation verification information comprises: a login token;
    所述根据所述操作验证信息验证本次绑定过程的有效性,包括:The verifying the validity of the binding process according to the operation verification information, including:
    验证所述登录令牌的有效时间是否过期。Verify that the validity time of the login token has expired.
  9. 一种用于绑定手机号码的装置,其特征在于,所述装置包括:A device for binding a mobile phone number, the device comprising:
    生成模块,用于生成绑定请求,所述绑定请求包括用户帐号;a generating module, configured to generate a binding request, where the binding request includes a user account;
    发送模块,用于将所述绑定请求通过第一通道发送至服务器,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道;a sending module, configured to send the binding request to the server by using a first channel, where the first channel is one of a short message channel and a data channel; and the short message channel is sent by using a short message of the first mobile phone number Channel, the data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network;
    所述生成模块,还用于生成与所述绑定请求对应的信息摘要;The generating module is further configured to generate a message digest corresponding to the binding request;
    所述发送模块,还用于将所述绑定请求对应的信息摘要通过第二通道发送至所述服务器,所述第二通道是所述短信通道和所述数据通道中的另一种,所述服务器用于在验证所述绑定请求和所述信息摘要相匹配时将所述用户帐号和所述第一手机号码建立绑定关系。The sending module is further configured to send the information digest corresponding to the binding request to the server by using a second channel, where the second channel is another one of the short message channel and the data channel. The server is configured to establish a binding relationship between the user account and the first mobile phone number when verifying that the binding request matches the information digest.
  10. 根据权利要求9所述的装置,其特征在于,所述生成模块,用于接收第一触发操作;根据所述第一触发操作获取所述用户帐号;根据所述用户帐号生成所述绑定请求。The device according to claim 9, wherein the generating module is configured to receive a first triggering operation, acquire the user account according to the first triggering operation, and generate the binding request according to the user account. .
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    获取模块,用于获取操作验证信息;An obtaining module, configured to obtain operation verification information;
    所述生成模块,还用于根据所述用户帐号和所述操作验证信息生成所述绑定请求,所述操作验证信息用于验证本次绑定过程的有效性。The generating module is further configured to generate the binding request according to the user account and the operation verification information, where the operation verification information is used to verify the validity of the current binding process.
  12. 根据权利要求11所述的装置,其特征在于,所述操作验证信息包括:票据和/或登录令牌;The apparatus according to claim 11, wherein the operation verification information comprises: a ticket and/or a login token;
    所述票据是与绑定操作对应的票据,所述登录令牌是在所述用户帐号登录成功后生成的令牌且所述登录令牌具有有效期限。The ticket is a ticket corresponding to a binding operation, and the login token is a token generated after the user account is successfully logged in, and the login token has an expiration date.
  13. 一种用于绑定手机号码的装置,其特征在于,所述装置包括:A device for binding a mobile phone number, the device comprising:
    接收模块,用于通过第一通道接收终端发送的绑定请求,所述第一通道是短信通道和数据通道中的一种;所述短信通道是通过第一手机号码的短信息发送数据的通道,所述数据通道是通过移动通信网络或无线保真网络发送数据的通道,所述绑定请求包括用户帐号,所述第一手机号码是所述终端对应的手机号码;a receiving module, configured to receive, by using the first channel, a binding request sent by the terminal, where the first channel is one of a short message channel and a data channel; and the short message channel is a channel for sending data by using a short message of the first mobile phone number The data channel is a channel for transmitting data through a mobile communication network or a wireless fidelity network, the binding request includes a user account, and the first mobile phone number is a mobile phone number corresponding to the terminal;
    所述接收模块,还用于通过第二通道接收所述终端发送的所述绑定请求的信息摘要;所述第二通道是所述短信通道和所述数据通道中的一种,且所述第二通道与所述第一通道不同;The receiving module is further configured to receive, by using a second channel, a message digest of the binding request sent by the terminal; the second channel is one of the short message channel and the data channel, and the The second channel is different from the first channel;
    验证模块,还用于验证所述绑定请求和所述绑定请求的信息摘要是否匹配;The verification module is further configured to verify whether the binding information of the binding request and the binding request match;
    绑定模块,用于当所述绑定请求和所述信息摘要匹配时,将所述用户帐号和所述第一手机号码建立绑定关系。And a binding module, configured to establish a binding relationship between the user account and the first mobile phone number when the binding request and the information digest match.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    获取模块,用于从所述绑定请求中获取操作验证信息;An obtaining module, configured to obtain operation verification information from the binding request;
    所述验证模块,还用于根据所述操作验证信息验证本次绑定过程的有效性;The verification module is further configured to verify the validity of the binding process according to the operation verification information;
    所述绑定模块,还用于当所述本次绑定过程有效时,执行所述将所述用户帐号和所述第一手机号码建立绑定关系的步骤。The binding module is further configured to perform the step of establishing a binding relationship between the user account and the first mobile phone number when the current binding process is valid.
  15. 根据权利要求14所述的装置,其特征在于,所述操作验证信息包括:票据;The device according to claim 14, wherein the operation verification information comprises: a ticket;
    所述验证模块,用于验证所述票据是否与绑定操作对应的票据。The verification module is configured to verify whether the ticket is a ticket corresponding to the binding operation.
  16. 根据权利要求14所述的装置,其特征在于,所述操作验证信息包括:登录令牌;The apparatus according to claim 14, wherein the operation verification information comprises: a login token;
    所述验证模块,用于验证所述登录令牌的有效时间是否过期。The verification module is configured to verify whether the valid time of the login token is expired.
  17. 一种终端,其特征在于,所述终端包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如权利要求1至4任一所述的用于绑定手机号码的方法。A terminal, comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement any of claims 1 to 4 The method used to bind the mobile phone number.
  18. 一种服务器,其特征在于,所述服务器包括:处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如权利要求5至8任一所述的用 于绑定手机号码的方法。A server, comprising: a processor and a memory, wherein the memory stores at least one instruction loaded by the processor and executed to implement any of claims 5-8 The method used to bind the mobile phone number.
  19. 一种计算机存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1至4任一所述的用于绑定手机号码的方法。A computer storage medium, characterized in that at least one instruction is stored in the storage medium, the instruction being loaded and executed by a processor to implement the binding of a mobile phone number according to any one of claims 1 to 4. method.
  20. 一种计算机存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求5至8任一所述的用于绑定手机号码的方法。A computer storage medium, characterized in that the storage medium stores at least one instruction, the instruction being loaded and executed by a processor to implement the binding of a mobile phone number according to any one of claims 5 to 8. method.
  21. 一种用于绑定手机号码的系统,其特征在于,所述系统包括终端和服务器;A system for binding a mobile phone number, characterized in that the system comprises a terminal and a server;
    所述终端包括如权利要求5至12任一所述的装置,所述服务器包括如权利要求13至16任一所述的装置;The terminal comprises the apparatus according to any one of claims 5 to 12, the server comprising the apparatus according to any one of claims 13 to 16;
    或,or,
    所述终端包括如权利要求17所述的终端,所述服务器包括如权利要求18所述的服务器。The terminal comprises the terminal of claim 17, the server comprising the server of claim 18.
PCT/CN2018/088787 2017-06-02 2018-05-29 Method, device and system for binding mobile phone number WO2018219260A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710407291.X 2017-06-02
CN201710407291.XA CN107318100B (en) 2017-06-02 2017-06-02 Method, device and system for binding mobile phone number

Publications (1)

Publication Number Publication Date
WO2018219260A1 true WO2018219260A1 (en) 2018-12-06

Family

ID=60183968

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/088787 WO2018219260A1 (en) 2017-06-02 2018-05-29 Method, device and system for binding mobile phone number

Country Status (2)

Country Link
CN (1) CN107318100B (en)
WO (1) WO2018219260A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107318100B (en) * 2017-06-02 2020-01-14 Oppo广东移动通信有限公司 Method, device and system for binding mobile phone number
CN108923948A (en) * 2018-08-01 2018-11-30 上海小蚁科技有限公司 Camera binding method, device and its medium
CN111030984B (en) * 2019-10-22 2022-08-19 上海泰宇信息技术股份有限公司 Data safety transmission system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080085728A1 (en) * 2006-10-05 2008-04-10 Verizon Services Corp. Short message service (sms) data transfer
CN102299930A (en) * 2011-09-19 2011-12-28 北京无限新锐网络科技有限公司 Method for ensuring security of client software
CN103178906A (en) * 2011-12-22 2013-06-26 国民技术股份有限公司 Communication system and communication method
CN104917586A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Verification method, device and system of transmitted data
CN105848119A (en) * 2016-03-22 2016-08-10 赵莉莉 Method for providing short message reception confirmation display, mobile terminal, server and system
CN105898728A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Mobile phone account member rights and interests binding method, mobile phone device, server and system
CN107318100A (en) * 2017-06-02 2017-11-03 广东欧珀移动通信有限公司 Method, apparatus and system for binding phone number

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984261B (en) * 2012-12-04 2015-07-08 中国联合网络通信集团有限公司 Network service login method, equipment and system based on mobile telephone terminal
CN103152331B (en) * 2013-02-07 2016-01-20 百度在线网络技术(北京)有限公司 The method, system and the cloud server that log in/register is carried out by mobile terminal
CN103313245B (en) * 2013-05-28 2016-04-20 中国联合网络通信集团有限公司 Based on the Network access method of mobile phone terminal, equipment and system
CN104717261B (en) * 2013-12-17 2018-05-29 华为技术有限公司 A kind of login method and desktop management equipment
CN105812413B (en) * 2014-12-29 2020-04-21 深圳市腾讯计算机系统有限公司 Communication method and device
CN104954383A (en) * 2015-06-24 2015-09-30 深圳市兰丁科技有限公司 Application program login method and system
CN106453263A (en) * 2016-09-19 2017-02-22 惠州Tcl移动通信有限公司 Method and system of binding cellphone number with APP

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080085728A1 (en) * 2006-10-05 2008-04-10 Verizon Services Corp. Short message service (sms) data transfer
CN102299930A (en) * 2011-09-19 2011-12-28 北京无限新锐网络科技有限公司 Method for ensuring security of client software
CN103178906A (en) * 2011-12-22 2013-06-26 国民技术股份有限公司 Communication system and communication method
CN104917586A (en) * 2014-03-11 2015-09-16 腾讯科技(深圳)有限公司 Verification method, device and system of transmitted data
CN105898728A (en) * 2015-10-22 2016-08-24 乐视致新电子科技(天津)有限公司 Mobile phone account member rights and interests binding method, mobile phone device, server and system
CN105848119A (en) * 2016-03-22 2016-08-10 赵莉莉 Method for providing short message reception confirmation display, mobile terminal, server and system
CN107318100A (en) * 2017-06-02 2017-11-03 广东欧珀移动通信有限公司 Method, apparatus and system for binding phone number

Also Published As

Publication number Publication date
CN107318100A (en) 2017-11-03
CN107318100B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US10630488B2 (en) Method and apparatus for managing application identifier
KR102137122B1 (en) Security check method, device, terminal and server
CN105099673A (en) Authorization method, authorization requesting method and devices
US11177963B2 (en) Method for authenticating a user based on an image relation rule and corresponding first user device, server and system
WO2018037453A1 (en) Authentication system, and information recording medium
US20140006781A1 (en) Encapsulating the complexity of cryptographic authentication in black-boxes
CN104601590A (en) Login method, server and mobile terminal
CN103107996A (en) On-line download method and system of digital certificate and digital certificate issuing platform
US11824854B2 (en) Communication system and computer readable storage medium
CN112543166B (en) Real name login method and device
WO2018219260A1 (en) Method, device and system for binding mobile phone number
CN105933322B (en) Plug-in services acquisition methods, plug-in services providing method and device
CN111914229A (en) Identity authentication method and device, electronic equipment and storage medium
KR20110083886A (en) Apparatus and method for other portable terminal authentication in portable terminal
CN109815666B (en) Identity authentication method and device based on FIDO protocol, storage medium and electronic equipment
CN110740038B (en) Blockchain and communication method, gateway, communication system and storage medium thereof
WO2014180431A1 (en) Network management security authentication method, device and system, and computer storage medium
CN113746719A (en) Task information processing method and device, electronic equipment and storage medium
WO2023009229A1 (en) End to end verification of an election run over a public network
CN109120611B (en) User authentication method, apparatus, system and medium for address generation server
WO2014169802A1 (en) Terminal, network side device, terminal application control method, and system
CN112261002B (en) Data interface docking method and device
JP7159461B2 (en) Authorization Method, Auxiliary Authorization Component, Management Server, and Computer Readable Medium
CN111404680B (en) Password management method and device
KR102263053B1 (en) A database structure capable of synchronizing data between devices in a local area network environment and a data synchronization method using the same

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: 18809741

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: 18809741

Country of ref document: EP

Kind code of ref document: A1