Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present inventionFormula is described in further detail.
Referring to FIG. 1, it illustrates the method flow diagram of terminal binding method provided by one embodiment of the present invention, the endEnd binding method can be applied in first terminal, which can be smart television, smart phone or tablet computerEtc..The terminal binding method, comprising:
Step 101, the bind request for carrying the unique identification of target terminal is sent to server;
Bind request binds the unique identification of user account and target terminal for request server.User accountIt is the account that user passes through that terminal is applied in the server, for example, microblogging account, wechat account, instant messaging account and bankAccount etc..The unique identification of target terminal can be the IMEI(International Mobile of telephone number, target terminalEquipment Identity, International Mobile Equipment Identity identification) and target terminal in SIM(Subscriber IdentityModule, user identification module) card mark etc..Target terminal can be the first terminal for sending bind request, can alsoTo be the second terminal in addition to first terminal.
Due between first terminal and server by cable network or wireless network connection, first terminal can be withBind request is sent to server by network.
Step 102, if target terminal is first terminal, server is received according to what bind request was sent and carries verifyingThe verification information of code;
When target terminal is first terminal, in order to determine that bindings are triggered by the user of first terminal, to mentionSafety of the height to the binding procedure of first terminal, server can also be sent out after receiving bind request to first terminalThe verification information for carrying identifying code is sent, first terminal is proved to be the user of first terminal touching by being handled identifying codeThe bindings of hair.Wherein, verification information can include but is not limited to short message.
When the unique identification that verification information is short message and first terminal is not telephone number, it is also necessary to establish first terminalUnique identification and telephone number corresponding relationship, so that server determines first terminal according to the unique identification of first terminalTelephone number, to send short message to first terminal.
Step 103, identifying code is identified from verification information, and receives the first binding information of input, first bindingInformation includes the unique identification of user account and first terminal;
In the present embodiment, first terminal can directly identify identifying code from verification information, without user from netPage, which is switched to, checks the application of verification information to check identifying code, then inputs from checking the application switching of verification information to webpageIdentifying code improves first terminal by saving handoff procedure of the first terminal between webpage and the application for checking verification informationThe efficiency of binding procedure.
Specifically, the available verification information content of first terminal is searched in verification information content according to predetermined policyIdentifying code.For example, the number of predetermined figure can be determined as identifying code by first terminal;Or, first terminal can be believed in verifyingThe text for searching " identifying code " in content is ceased, the number before or after " identifying code " is determined as identifying code etc., the present embodimentThe mode of identification identifying code is not limited.
In addition, first terminal also needs to obtain the first binding letter of the unique identification including user account and first terminalBreath, is bound the unique identification of which user account and which first terminal with clearly requiring.Specifically, first terminal canTo show the input frame for inputting the first binding information in interface, and input of the user received in input frame is trueIt is set to the first binding information.
Step 104, identifying code and the first binding information are sent to server, so that verifying of the server to identifying code is logicalLater, the unique identification of user account and first terminal in the first binding information is bound.
Identifying code and the first binding information are sent to server by first terminal, and server carries out the identifying code receivedVerifying, the verifying when determining that the identifying code received is identical as the identifying code that carrying is sent in verification information, to identifying codePass through, that is, determines that bindings are user's triggerings of first terminal, at this point, server is by user's account in the first binding informationThe unique identification of family and first terminal is bound, and the binding procedure to first terminal is completed.
In conclusion terminal binding method provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, be inputted again without user from being checked after identifying code in short messageIt into webpage, solves first terminal and is switched to from webpage and check that the application of verification information allows user to check identifying code, from looking intoSee the inefficiency that the application switching of verification information allows user to input first terminal binding procedure caused by identifying code to webpageThe problem of, achieve the effect that the efficiency for improving first terminal binding procedure.
Referring to FIG. 2, it illustrates the method flow diagram of terminal binding method provided by one embodiment of the present invention, the endEnd binding method can be applied in server.The terminal binding method, comprising:
Step 201, the bind request for the unique identification for carrying target terminal that first terminal is sent is received;
Bind request binds the unique identification of user account and target terminal for request server.User can be withApply for user account in the server by terminal.For example, user account can be microblogging account, wechat account, instant messagingAccount and bank account etc..The unique identification of target terminal can be in the IMEI and target terminal of telephone number, target terminalThe mark etc. of SIM card.Target terminal can be the first terminal for sending bind request, be also possible to the in addition to first terminalTwo terminals.
Due to passing through cable network or wireless network connection between first terminal and server, server can lead toIt crosses network and receives the bind request that first terminal is sent.
Step 202, if target terminal is first terminal, identifying code is carried to first terminal transmission according to bind requestVerification information;
When target terminal is first terminal, in order to determine that bindings are triggered by the user of first terminal, to mentionSafety of the height to the binding procedure of first terminal, server can also be sent out after receiving bind request to first terminalThe verification information for carrying identifying code is sent, first terminal is proved to be the user of first terminal touching by being handled identifying codeThe bindings of hair.Wherein, verification information can include but is not limited to short message.
When the unique identification that verification information is short message and first terminal is telephone number, server can be directly to firstTerminal sends short message;When the unique identification of first terminal is not telephone number, server can also be according to pre-establishedThe unique identification of one terminal and the corresponding relationship of telephone number determine the telephone number of first terminal, to send to first terminalShort message.
Further, short message can be generated in server, short message is sent to first terminal further according to telephone number, or, serviceThe telephone number of first terminal can also be sent to third party device by device, and control third party device generation short message is simultaneously whole to firstEnd sends short message, and the present embodiment is said so that server generates short message and sends short message to first terminal according to telephone number as an exampleIt is bright.
Step 203, identifying code and the first binding information that first terminal is sent are received, the identifying code is by first terminal from testingIt identifies and obtains in card information, which is obtained from the input received by first terminal, first binding informationUnique identification including user account and first terminal;
In the present embodiment, what server received is the identifying code that first terminal is identified from verification information, rather thanUser is switched to from webpage checks the application of verification information to check identifying code, then from checking the application switching of verification information to netPage is mentioned come the identifying code inputted by saving handoff procedure of the first terminal between webpage and the application for checking verification informationThe efficiency of high first terminal binding procedure.The first binding information that server receives is that first terminal shows in interface and is used forIt inputs the input frame of the first binding information and is obtained in the input in input frame from the user received.
Step 204, identifying code is verified, and to the identifying code when being verified, in the first binding informationUser account and the unique identification of first terminal bound.
Whether the identifying code that server detection receives and the identifying code that carrying is sent in verification information are identical, if connectThe identifying code received is identical as the identifying code that sends in verification information is carried, then is verified to identifying code, at this point, by theThe unique identification of user account and first terminal in one binding information is bound, and the binding procedure to first terminal is completed;If the identifying code received is different from the identifying code that sends in verification information is carried, to the authentication failed of identifying code, thisWhen the unique identification of user account and first terminal in the first binding information is not bound, process terminates.
In conclusion terminal binding method provided in an embodiment of the present invention, the identifying code sent by receiving first terminalWith the first binding information, which is identified from verification information by first terminal and is obtained, and first binding information is whole by firstEnd is obtained from the input received, is verified to identifying code, and when being verified, is being bound to first to the identifying codeThe unique identification of user account and first terminal in information is bound, and allows server to directly from verification informationThe identifying code identified is verified, rather than is obtained to user from checking after identifying code to be input in webpage again in verification informationThe identifying code got is verified, and is solved first terminal and is switched to from webpage and checks that the application of verification information allows user to checkIdentifying code allows user to input first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageInefficiency the problem of, achieved the effect that improve first terminal binding procedure efficiency.
Please refer to Fig. 3 A, it illustrates another embodiment of the present invention provides terminal binding method method flow diagram, shouldTerminal binding method can be applied to include in the terminal binding system of first terminal and server, which can be intelligenceEnergy TV, smart phone or tablet computer etc..The terminal binding method, comprising:
Step 301, first terminal sends the bind request for carrying the unique identification of target terminal to server;
Bind request binds the unique identification of user account and target terminal for request server.User accountIt is the account that user passes through that terminal is applied in the server, for example, microblogging account, wechat account, instant messaging account and bankAccount etc..The unique identification of target terminal can be the mark of SIM card in the IMEI and target terminal of telephone number, target terminalDeng.Target terminal can be the first terminal for sending bind request, be also possible to the second terminal in addition to first terminal.
First terminal can show that the binding option for carrying out target terminal binding, the binding option include binding in webpageFirst terminal and binding second terminal please refer to the interface schematic diagram at the binding triggering of terminal shown in Fig. 3 B interface.
When target terminal is first terminal, in order to be identified to the first terminal for sending bind request, first terminalIt also needs to carry the unique identification of first terminal in bind request, therefore, carries target terminal only to server transmissionThe bind request of one mark, comprising:
The unique identification of first terminal is obtained by application programming interface;Or, acquisition is defeated in the unique identification of displayingEnter the unique identification of the first terminal inputted in frame;
The unique identification addition of first terminal is sent to server in bind request, so that server is whole according to firstThe unique identification at end sends verification information to first terminal.
Wherein, if being provided with unique identification in first terminal or SIM card, first terminal can pass through application programmingInterface reads the unique identification of setting;If first terminal is not provided with unique identification, first terminal can be shown in webpageUnique identification input frame, and obtain the unique identification that user inputs in unique identification input frame.It is phone number with unique identificationIt is illustrated for code, then please refers to the interface schematic diagram that binding information shown in Fig. 3 C obtains interface, illustrate electricity in Fig. 3 CTalk about number input box.
After first terminal gets unique identification, the unique identification of first terminal can be added in bind requestIt is sent to server.Due to passing through cable network or wireless network connection between first terminal and server, first terminalBind request can be sent to server by network.
Step 302, server receives the bind request for the unique identification for carrying target terminal that first terminal is sent, ifTarget terminal is first terminal, thens follow the steps 303, if target terminal is second terminal, thens follow the steps 311;
The sending method of bind request is sent corresponding to first terminal, server can receive first terminal hair by networkThe bind request sent.
Step 303, server sends the verification information for carrying identifying code according to bind request to first terminal;
When target terminal is first terminal, in order to determine that bindings are triggered by the user of first terminal, to mentionSafety of the height to the binding procedure of first terminal, server can also be sent out after receiving bind request to first terminalThe verification information for carrying identifying code is sent, first terminal is proved to be the user of first terminal touching by being handled identifying codeThe bindings of hair.Wherein, verification information can include but is not limited to short message.
In the present embodiment, server can be generated verification information and be sent out according to the unique identification of first terminal to first terminalVerification information is sent, or, the unique identification of first terminal can also be sent to third party device by server, controls third party deviceIt generates verification information and sends verification information to first terminal, the present embodiment is with server generation verification information and whole according to firstThe unique identification at end is illustrated for sending verification information to first terminal.
Therefore, before the verification information for carrying identifying code to first terminal transmission according to bind request, further includes:
The characteristic information of identifying code and verification information is generated according to bind request;
The verification information for carrying identifying code is sent to first terminal according to bind request, comprising:
The verification information including identifying code and characteristic information is sent to first terminal according to bind request.
Wherein, identifying code can be the combination of at least one of number, letter and symbol, and the mode for generating identifying code canThere are many kinds of, for example, generating identifying code by random algorithm, or, generating identifying code etc. according to current time, the present embodiment is notLimit the generating mode of identifying code.
Characteristic information is for uniquely identifying a verification information.Specifically, characteristic information may include verification informationThe sequence number of sender's unique identification and verification information.Wherein, sender's unique identification is used for the sender of identity verification information,It can be the identification information etc. of telephone number or server.Sequence number is for identifying sender indicated by sender's unique identificationIssue the serial number of the verification information of first terminal, it is assumed that this sequence number for being sent to the verification information of first terminal of sender is3, then it is 4 that sender is sent to the sequence number of the verification information of the first terminal next time.Further, characteristic information can be withIncluding verification information content and verification information sending time etc., the present embodiment is not limited the content of characteristic information.
When server will include that the verification information of identifying code and characteristic information is sent to first terminal, it is also necessary to according to tying upFixed request determines therefore needing to receive the first terminal of verification information will include identifying code and characteristic information according to bind requestVerification information be sent to first terminal, comprising:
The unique identification of the first terminal in bind request is obtained, the unique identification of the first terminal is passed through by first terminalApplication programming interface acquires;Or, the unique identification of the first terminal by first terminal by obtain displaying onlyInput in one mark input frame obtains;
The verification information for carrying identifying code and characteristic information is sent to first terminal according to the unique identification of first terminal.
Server can read the unique identification of the first terminal carried in bind request, when verification information is short message andWhen the unique identification of one terminal is telephone number, server directly can send the short message generated to first terminal;When the first endWhen the unique identification at end is not telephone number, server can also be according to the unique identification and phone of the first terminal pre-establishedThe corresponding relationship of number determines the telephone number of first terminal, to send the short message generated to first terminal.
Step 304, server sends the first webpage information to first terminal according to bind request, which usesIt verifies in whether first terminal is corresponding with bind request to the verification information received;
If first terminal only receives a verification information after sending bind request to server, first terminal can be withIt determines that the verification information is the verification information that server is sent according to bind request, which can be handled;IfFirst terminal receives at least two verification informations after sending bind request to server, then which first terminal can not determineVerification information is the verification information that server is sent according to bind request.
Which, in order to make the clear verification information of first terminal be the verification information that server is sent according to bind request, takeBeing engaged in device can be according to bind request the first webpage information of generation, and the first webpage information is sent to first terminal, at this point, firstWebpage information is verified for whether first terminal to be corresponding with bind request to the verification information received.
Specifically, after according to bind request generation identifying code and the characteristic information of verification information, further includes: believe featureBreath is added in the first webpage information.
Since characteristic information can be used to uniquely identify a verification information, server can be by the spy of generationReference breath, which is added in the first webpage information, is sent to first terminal, so that first terminal is according to the feature in the first webpage informationInformation determines verification information corresponding with bind request.
It should be added that the present embodiment do not limit step 303 and step 304 execute sequence.I.e. server existsAfter generating identifying code and characteristic information, the verification information including identifying code and characteristic information first can be sent to first terminal,The first webpage information including characteristic information is sent to first terminal afterwards;Can also first send to first terminal includes characteristic informationThe first webpage information, after to first terminal send include identifying code and characteristic information verification information;It can also be simultaneously to theIt includes the verification information of identifying code and characteristic information and the first webpage information including characteristic information that one terminal, which is sent,.
Step 305, first terminal receives the verification information for carrying identifying code that server is sent according to bind request;
Wherein, verification information can only carry identifying code;Or, verification information is removed in order to be identified to verification informationIdentifying code is carried, can also carry the characteristic information of verification information.First terminal stores the verification information receivedIn the inbox for the application for checking verification information.
The interface schematic diagram of short message reception interface shown in Fig. 3 D is please referred to, is illustrated in Fig. 3 D for having prompted serverThrough the prompt information for sending short message to first terminal.For example, prompt information can be " user bound account needs SMS confirmation,Identifying code has been sent to terminal, please operates by prompt ".
Step 306, first terminal receives the first webpage information that server is sent according to bind request, first webpage letterBreath is verified for whether first terminal to be corresponding with bind request to the verification information received;Detect the first webpage information withWhether the verification information received matches;If testing result is that the first webpage information is matched with the verification information received, reallySurely step 307 is executed;
If first terminal does not receive verification information before receiving the first webpage information, it is determined that first terminal does not connect alsoReceive verification information corresponding with bind request, only need at this time to the verification information received after the first webpage information intoRow matching;If verification information has been received before receiving the first webpage information in first terminal, first terminal can be to receiptsVerification information in part case in predetermined amount of time is matched, i.e., carries out to the verification information received after transmission bind requestMatching.
For each verification information to be matched, the first webpage information and the verifying that first terminal detection receives are believedWhether breath matches.If it is detected that the first webpage information is matched with the verification information, it is determined that the verification information and bind request pairIt answers, executes step 307;If it is detected that the first webpage information and the verification information mismatch, next verifying letter is continued to testBreath, until detecting verification information corresponding with bind request.
Specifically, whether the first webpage information of detection matches with the verification information received, comprising:
The characteristic information of verification information is obtained from the first webpage information, and the feature of verification information is obtained from verification informationInformation;
It detects the characteristic information obtained from the first webpage information and whether the characteristic information obtained from verification information is identical;
If testing result is the characteristic information obtained from the first webpage information and the characteristic information obtained from verification informationIt is identical, it is determined that the first webpage information is matched with the verification information received.
Since characteristic information can be used to uniquely identify a verification information, first terminal can detecte from theWhether the characteristic information obtained in one webpage information and the characteristic information obtained from verification information are identical.If it is detected that from firstThe characteristic information obtained in webpage information is identical as the characteristic information obtained from verification information, it is determined that the verification information and theThe matching of one webpage information;If it is detected that the characteristic information obtained from the first webpage information and the feature obtained from verification informationInformation is different, it is determined that the verification information and the first webpage information mismatch.
When characteristic information include verification information sender's unique identification and verification information sequence number when, can be from firstThe sequence number of verification information and sender's unique identification of verification information are obtained in webpage information, and are obtained and verified from verification informationThe sequence number of information and sender's unique identification of verification information;Detect the sequence number that is obtained from the first webpage information with from testingWhether the sequence number for demonstrate,proving acquisition of information identical, and detect sender's unique identification for being obtained from the first webpage information with from verifyingWhether sender's unique identification of acquisition of information is identical;If testing result be the sequence number that is obtained from the first webpage information with fromThe sequence number that verification information obtains is identical and sender's unique identification for obtaining from the first webpage information is obtained with from verification informationThe sender's unique identification taken is identical, it is determined that the first webpage information is matched with the verification information received.
It receives verification information it should be added that the present embodiment does not limit first terminal and receives the first webpage informationExecute sequence.I.e. first terminal can first receive verification information and receive the first webpage information again, can also first receive the first netPage information receives verification information again, can also receive verification information and the first webpage information simultaneously.
Step 307, first terminal identifies identifying code from verification information, and receives the first binding information of input, shouldFirst binding information includes the unique identification of user account and first terminal;
In the present embodiment, first terminal can directly identify identifying code from verification information, without user from netPage, which is switched to, checks the application of verification information to check identifying code, then inputs from checking the application switching of verification information to webpageIdentifying code improves first terminal by saving handoff procedure of the first terminal between webpage and the application for checking verification informationThe efficiency of binding procedure.
Specifically, the available verification information content of first terminal is searched in verification information content according to predetermined policyIdentifying code.For example, the number of predetermined figure can be determined as identifying code by first terminal;Or, first terminal can be believed in verifyingThe text for searching " identifying code " in content is ceased, the number before or after " identifying code " is determined as identifying code etc., the present embodimentThe mode of identification identifying code is not limited.
In addition, first terminal also needs to obtain the first binding letter of the unique identification including user account and first terminalBreath, is bound the unique identification of which user account and which first terminal with clearly requiring.Specifically, first terminal canTo show the input frame for inputting the first binding information in interface, and input of the user received in input frame is trueIt is set to the first binding information.The present embodiment does not limit the opportunity that first terminal obtains the first binding information, for example, first terminal canTo obtain the first binding information when sending bind request, first binding information etc. can also be obtained when sending identifying code.
The present embodiment is illustrated for the information that the information input frame of displaying inputs by first terminal acquisition user, thenPlease refer to Fig. 3 C.Since the first binding information further includes user account, user account input frame is also illustrated in Fig. 3 C.Optionally, the first binding information can also include therefore the information such as name, ID card No., password can also be shown in Fig. 3 CThe input frame of above- mentioned information.
Step 308, identifying code and the first binding information are sent to server by first terminal, so that server is to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound;
Identifying code and the first binding information are sent to server by first terminal, so that verifying of the server to identifying code is logicalLater, the unique identification of user account and first terminal in the first binding information is bound, is completed to first terminalBinding procedure.
In order to further increase first terminal binding procedure safety, verification time threshold can also be arranged in serverValue, the i.e. timing since when first terminal sends bind request, if after timing duration reaches verification time threshold value, server is stillIt is not received by identifying code, then server determines this identifying code failure, fails to the bindings of first terminal.Therefore,In order to improve first terminal binding procedure success rate, can also be shown in webpage identifying code failure countdown.It please joinFig. 3 D is examined, in addition to showing the prompt information for prompting server to send short message to first terminal, can also show verifyingThe countdown of code failure.For example, identifying code there are also failure in 24 seconds, then can show " obtaining identifying code (24s) ".
Since first terminal can identify identifying code from verification information, first terminal can not be opened up in webpageShow identifying code input frame, or, as shown in Figure 3D, first terminal can show identifying code input frame in webpage, so as to user coupleThe identifying code that first terminal is automatically filled in is modified, and the identifying code mistake for avoiding first terminal identification leads to first terminalThe problem of binding procedure fails, has achieved the effect that the success rate for the binding procedure for further increasing first terminal.
Step 309, server receives the identifying code and the first binding information that first terminal is sent, and the identifying code is whole by firstEnd is identified from verification information to be obtained, which is obtained from received input by first terminal, first bindingInformation includes the unique identification of user account and first terminal;
Wherein, what server received is the identifying code that first terminal is identified from verification information.
Step 310, server verifies identifying code, and when being verified, is binding to first to the identifying codeThe unique identification of user account and first terminal in information is bound;
Whether the identifying code that server detection receives and the identifying code that carrying is sent in verification information are identical, if connectThe identifying code received is identical as the identifying code that sends in verification information is carried, then is verified to identifying code, at this point, by theThe unique identification of user account and first terminal in one binding information is bound, and the binding procedure to first terminal is completed,And the information in the first binding information is stored in the database of server, for subsequent calls, process terminates;If receivedTo identifying code it is different from the identifying code that sends in verification information is carried, then to the authentication failed of identifying code, at this time not to theThe unique identification of user account and first terminal in one binding information is bound, and process terminates.
Further, server can also be bound into the unique identification of first terminal feedback user account and first terminalThe prompt of function.
Step 311, server is taken according to the unique identification of the second terminal carried in bind request to second terminal transmissionVerification information with identifying code;The second webpage information is sent to first terminal according to bind request;
When target terminal is second terminal, server can be taken receiving the rear of bind request to second terminal transmissionVerification information with identifying code, second terminal are proved to be the user of second terminal triggering by being handled identifying codeBindings, to improve the safety to the binding procedure of second terminal.Wherein, second terminal is carried in bind request onlyOne mark, the unique identification of the second terminal can be second terminal and got by application programming interface and be sent to theOne terminal, it is also possible to second terminal and receives input of the user in the input frame shown in interface to obtain and be sent toOne terminal, it can also be that first terminal receives input of the user in the input frame shown in interface and obtains.
In the present embodiment, server can be generated verification information and be sent out according to the unique identification of second terminal to second terminalVerification information is sent, or, the unique identification of second terminal can also be sent to third party device by server, controls third party deviceIt generates verification information and sends verification information to second terminal, wherein verification information can only carry identifying code;Or, in order toVerification information is identified, verification information can also carry the characteristic information of verification information in addition to carrying identifying code.TheThe verification information received is stored in the inbox for the application for checking verification information by two terminals.Server generation is sent to theThe method of the verification information of two terminals is identical as the method for verification information that server generation is sent to first terminal, is detailed in stepDescription in 303.
Further, in order to make which clear verification information of second terminal be that server is tested according to what bind request was sentInformation is demonstrate,proved, server can generate the second webpage information according to bind request, and the second webpage information is sent to first terminal,The second webpage information is transmitted to second terminal by first terminal to handle, at this point, the second webpage information is used for second terminalIt is whether corresponding with bind request to the verification information received to verify.Server generates the method and clothes of the second webpage informationThe method that business device generates the first webpage information is identical, the description being detailed in step 304.
It should be added that server can first to second terminal send verification information, after to first terminal sendSecond webpage information;Can also first to first terminal send the second webpage information, after to second terminal send verification information;May be used alsoTo send the second webpage information to first terminal while sending verification information to second terminal.
Step 312, first terminal receives the second webpage information that server is sent according to bind request, second webpage letterWhether breath is verify corresponding with bind request to verification information for second terminal;By what is obtained from the second webpage informationThe characteristic information of verification information is sent to second terminal;
In the present embodiment, the second webpage information can be sent to second terminal by first terminal, by second terminal according toTwo webpage informations determine verification information corresponding with bind request.Preferably, in order to which the transmission for saving the second webpage information is openedPin, first terminal can obtain the characteristic information of the second webpage information from the second webpage information, and characteristic information is sent toSecond terminal.Wherein, characteristic information can be used to uniquely identify a verification information.
Step 313, second terminal obtains the characteristic information of verification information from verification information, is detecting from the second webpageThe characteristic information got in information with from the characteristic information got in verification information it is identical after, identified from verification informationIdentifying code is sent to first terminal;
The spy that second terminal can detecte the characteristic information obtained from the second webpage information and obtain from verification informationWhether reference breath is identical.If it is detected that the characteristic information obtained from the second webpage information and the feature obtained from verification informationInformation is identical, it is determined that the verification information is matched with the second webpage information, and second terminal can be identified from verification information and be testedCard code is sent to first terminal;If it is detected that the characteristic information obtained from the second webpage information with obtain from verification informationCharacteristic information is different, it is determined that the verification information and the second webpage information mismatch.
When second terminal sends identifying code to first terminal, if second terminal and first terminal are closer, theIdentifying code can be broadcast to first terminal by short distance broadcast technology by two terminals, which includes but unlimitedIn WiFi(Wireless Fidelity, Wireless Fidelity) technology, Bluetooth technology and NFC(Near FieldCommunication, close range wireless communication) technology.For example, second terminal directly chooses signal after identifying identifying codeThe transmission channel that preferable or current time has built up connection sends identifying code to first terminal, or, second terminal is identifyingThe prompt information for whether sending identifying code to first terminal is shown after identifying code in interface, is tested if user determines to need to sendCode is demonstrate,proved, then shows the sending method for sending identifying code in interface, is sent according to the sending method of user's selection to first terminalIdentifying code.If at a distance from first terminal farther out, second terminal can be sent to first by modes such as short messages to second terminalTerminal.For example, second terminal shows whether test by short message to first terminal transmission after identifying identifying code in interfaceThe prompt information of code is demonstrate,proved, if user's determination needs to send identifying code, identifying code is added in short message and is sent to first terminal,It or directly will be that the verification information of short message is sent to first terminal.
It should be added that the present embodiment does not limit, second terminal receives verification information and first terminal receives secondWebpage information executes sequence.I.e. second terminal can first receive verification information, and first terminal receives the second webpage information again,The second webpage information can be first received with first terminal, second terminal receives verification information again, can also receive and test in second terminalFirst terminal receives the second webpage information while demonstrate,proving information.
Step 314, first terminal receives the identifying code that second terminal is identified and sent from verification information, and receives inputThe second binding information, which is that server is sent to according to the unique identification of the second terminal carried in bind requestSecond terminal, which includes the unique identification of user account and second terminal;Identifying code and second are boundInformation is sent to server;
First terminal chooses corresponding reception mode according to the sending method that second terminal sends identifying code, according to correspondingReception mode receives identifying code.If second terminal sends identifying code to first terminal by short message mode, first terminal is also neededIdentifying code is identified from short message.
First terminal also needs to obtain the second binding information of the unique identification including user account and second terminal, with brightWhich which really need to bind user account and the unique identification of second terminal.Specifically, first terminal can be on boundaryIt is shown in face for inputting the input frame of the second binding information, and input of the user received in input frame is determined as theTwo binding informations.The present embodiment does not limit the opportunity that first terminal obtains the second binding information, for example, first terminal can sent outThe second binding information is obtained when sending bind request, can also obtain second binding information etc. when sending identifying code.
First terminal identifying code that second terminal is identified and sent and is got after getting the second binding informationThe second binding information be sent to server, identifying code and the second binding information are handled by server.
Step 315, server receives the identifying code and the second binding information that first terminal is sent, and the identifying code is whole by secondEnd identifies from the verification information received and is sent to first terminal, and second binding information is by second terminal from received defeatedFirst terminal is obtained and is sent in entering, which includes the unique identification of user account and second terminal;To testingCard code is verified, after to being verified of identifying code, in the second binding information user account and second terminal onlyOne mark is bound.
Whether the identifying code that server detection receives and the identifying code that carrying is sent in verification information are identical, if connectThe identifying code received is identical as the identifying code that sends in verification information is carried, then is verified to identifying code, at this point, by theThe unique identification of user account and second terminal in two binding informations is bound, and the binding procedure to second terminal is completed,And the information in the second binding information is stored in the database of server, for subsequent calls, process terminates;If receivedTo identifying code it is different from the identifying code that sends in verification information is carried, then to the authentication failed of identifying code, at this time not to theThe unique identification of user account and second terminal in two binding informations is bound, and process terminates.
In conclusion terminal binding method provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, without user from being checked after identifying code in verification information againIt is input in webpage, solves first terminal and be switched to from webpage and check that the application of verification information allows user to check identifying code,User is allowed to input the efficiency of first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageLow problem has achieved the effect that the efficiency for improving first terminal binding procedure.In addition, receiving server by first terminalThe first webpage information sent according to bind request;Detect whether the first webpage information matches with the verification information received, it canIt to find verification information corresponding with bind request, then from the verification information identifies identifying code, solves and tested from otherThe problem of identifying code authentication failed caused by identifying code leads to first terminal Bind Failed is identified in card information, has reached raisingThe effect of the success rate of first terminal binding procedure.
Referring to FIG. 4, it illustrates the structural framing figure of terminal binding device provided by one embodiment of the present invention, the endEnd binding device can be applied in first terminal, which can be smart television, smart phone or tablet computerEtc..The terminal binding device, comprising:
Request sending module 401, for sending the bind request for carrying the unique identification of target terminal to server;
When information receiving module 402 for target terminal is first terminal, server is received according to request sending moduleThe verification information for carrying identifying code that 401 bind requests sent are sent;
First obtains module 403, for identifying identifying code from the verification information that information receiving module 402 receives,And the first binding information of input is received, the first binding information includes the unique identification of user account and first terminal;
First sending module 404, identifying code and the first binding information for getting the first acquisition module 403 are sentTo server, so that server is to after being verified of identifying code, to the user account and first terminal in the first binding informationUnique identification bound.
In conclusion terminal binding device provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, without user from being checked after identifying code in verification information againIt is input in webpage, solves first terminal and be switched to from webpage and check that the application of verification information allows user to check identifying code,User is allowed to input the efficiency of first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageLow problem has achieved the effect that the efficiency for improving first terminal binding procedure.
Referring to FIG. 5, the structural framing figure of the terminal binding device provided it illustrates yet another embodiment of the invention, the endEnd binding device can be applied in first terminal, which can be smart television, smart phone or tablet computerEtc..The terminal binding device, comprising: request sending module 401, information receiving module 402, first obtain module 403 and theOne sending module 404.
Request sending module 401, for sending the bind request for carrying the unique identification of target terminal to server;
When information receiving module 402 for target terminal is first terminal, server is received according to request sending moduleThe verification information for carrying identifying code that 401 bind requests sent are sent;
First obtains module 403, for identifying identifying code from the verification information that information receiving module 402 receives,And the first binding information of input is received, the first binding information includes the unique identification of user account and first terminal;
First sending module 404, identifying code and the first binding information for getting the first acquisition module 403 are sentTo server, so that server is to after being verified of identifying code, to the user account and first terminal in the first binding informationUnique identification bound.
Optionally, device further include:
First receiving module 405 obtains module 403 before identifying identifying code in verification information for first, receivesThe first webpage information that server is sent according to bind request, the first webpage information believe the verifying received for first terminalWhether breath is corresponding with bind request to be verified;
Information detecting module 406, for detecting the first webpage information that the first receiving module 405 receives and receivingWhether verification information matches;
Information determination module 407, result for detecting in information detecting module 406 are the first webpage information and receiveVerification information matching after, determine that verification information is corresponding with bind request, trigger execution identifying code is identified from verification informationThe step of.
Optionally, information detecting module 406, comprising:
Information acquisition unit 4061, for obtaining the characteristic information of verification information from the first webpage information, and from verifyingThe characteristic information of acquisition of information verification information;
Information detecting unit 4062, the feature letter obtained from the first webpage information for Detection information acquisition unit 4061Whether breath and the characteristic information obtained from verification information are identical;
Information determination unit 4063, the result for detecting in information detecting unit 4062 are to obtain from the first webpage informationThe characteristic information taken with from the characteristic information that verification information obtains it is identical after, determine that the first webpage information is believed with the verifying that receivesBreath matching.
Optionally, if target terminal is first terminal, request sending module 401, comprising:
Mark acquiring unit 4011, for obtaining the unique identification of first terminal by application programming interface;Or, obtainingTake the unique identification of the first terminal inputted in the unique identification input frame of displaying;
Request transmitting unit 4012, the unique identification addition of the first terminal for getting mark acquiring unit 4011It is sent to server, in bind request so that server sends verifying letter to first terminal according to the unique identification of first terminalBreath.
Optionally, if target terminal is second terminal, device further include:
Second obtains module 408, sends the unique mark for carrying target terminal to server for request sending module 401After the bind request of knowledge, the identifying code that second terminal is identified and sent from verification information is received, and receive the second of inputBinding information, verification information are that server according to the unique identification of the second terminal carried in bind request is sent to second terminal, the second binding information includes the unique identification of user account and second terminal;
Second sending module 409, identifying code and the second binding information for getting the second acquisition module 408 are sentTo server, so that server is to after being verified of identifying code, to the user account and second terminal in the second binding informationUnique identification bound.
Optionally, device further include:
Second receiving module 410 receives second terminal for the second acquisition module 408 and identifies and send from verification informationIdentifying code before, receive the second webpage information for sending according to bind request of server, the second webpage information is for the second endWhether end is verify corresponding with bind request to verification information;
Third sending module 411, for being tested what is obtained from the second webpage information that the second receiving module 410 receivesThe characteristic information of card information is sent to second terminal, so that second terminal obtains the feature letter of verification information from verification informationBreath, is detecting that the characteristic information got from the second webpage information is identical as the characteristic information got from verification informationAfterwards, identify that identifying code is sent to first terminal from verification information.
In conclusion terminal binding device provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, without user from being checked after identifying code in verification information againIt is input in webpage, solves first terminal and be switched to from webpage and check that the application of verification information allows user to check identifying code,User is allowed to input the inefficiency of terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageThe problem of, achieve the effect that the efficiency for improving first terminal binding procedure.In addition, by first terminal receive server according toThe first webpage information that bind request is sent;Detect whether the first webpage information matches with the verification information received, Ke YichaVerification information corresponding with bind request is found, then identifies identifying code from the verification information, is solved from other verifying lettersThe problem of identifying code authentication failed caused by identifying code leads to first terminal Bind Failed is identified in breath, has reached raising firstThe effect of the success rate of terminal binding procedure.
Referring to FIG. 6, the structural block diagram of the terminal provided it illustrates an embodiment of the present disclosure, the terminal is for realTerminal binding method provided by the above embodiment is applied, the terminal in the embodiment of the present disclosure may include one or more following compositionsPart: completing the processor of various processes and method for executing computer program instructions, refers to for information and storage programEnable random access memory (RAM) and read-only memory (ROM), for storing data with the memory of information, I/O equipment, boundaryFace, antenna etc..Specifically:
Terminal 600 may include RF(Radio Frequency, radio frequency) circuit 610, memory 620, input unit 630,Display unit 640, sensor 650, voicefrequency circuit 660, WiFi (wireless fidelity, Wireless Fidelity) module 670, placeManage the components such as device 680, power supply 682, camera 690.It will be understood by those skilled in the art that terminal structure shown in Fig. 6 is simultaneouslyThe not restriction of structure paired terminal may include perhaps combining certain components or different than illustrating more or fewer componentsComponent layout.
It is specifically introduced below with reference to each component parts of the Fig. 6 to terminal 600:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base stationAfter downlink information receives, handled to processor 680;In addition, the data for designing uplink are sent to base station.In general, RF circuit packetInclude but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA(Low Noise Amplifier, low noiseAmplifier), duplexer etc..In addition, RF circuit 610 can also be communicated with network and other equipment by wireless communication.The nothingAny communication standard or agreement, including but not limited to GSM (Global System of Mobile can be used in line communicationCommunication, global system for mobile communications), GPRS (General Packet Radio Service, general packet withoutLine service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronicsMail, SMS (Short Messaging Service, short message service) etc..
Memory 620 can be used for storing software program and module, and processor 680 is stored in memory 620 by operationSoftware program and module, thereby executing the various function application and data processing of terminal 600.Memory 620 can be mainIncluding storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one functionWith program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to terminal 600Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 620 may include high-speed random access memory,It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are depositedMemory device.
Input unit 630 can be used for receiving the number or character information of input, and generate the user setting with terminal 600And the related key signals input of function control.Specifically, input unit 630 may include touch panel 631 and other inputsEquipment 632.Touch panel 631, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makesWith the operation of any suitable object or attachment such as finger, stylus on touch panel 631 or near touch panel 631), andCorresponding attachment device is driven according to preset formula.Optionally, touch panel 631 may include touch detecting apparatus and touchingTouch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letterNumber, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted intoContact coordinate, then give processor 680, and order that processor 680 is sent can be received and executed.Furthermore, it is possible to usingThe multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 631.It is defeated in addition to touch panel 631Entering unit 630 can also include other input equipments 632.Specifically, other input equipments 632 can include but is not limited to physicsOne of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or the information and terminal 600 that are supplied to userVarious menus.Display unit 640 may include display panel 641, optionally, can use LCD (Liquid CrystalDisplay, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comeConfigure display panel 641.Further, touch panel 631 can cover display panel 641, when touch panel 631 is detected at itOn or near touch operation after, send processor 680 to determine the type of touch event, be followed by subsequent processing device 680 according to touchingThe type for touching event provides corresponding visual output on display panel 641.Although in Fig. 6, touch panel 631 and display surfacePlate 641 is the input and input function for realizing terminal 600 as two independent components, but in certain embodiments, it canThat terminal 600 is realized so that touch panel 631 and display panel 641 is integrated outputs and inputs function.
Terminal 600 may also include at least one sensor 650, such as gyro sensor, magnetic induction sensor, light sensingDevice, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and proximity sensor,In, ambient light sensor can adjust the brightness of display panel 641 according to the light and shade of ambient light, and proximity sensor can be in terminal600 when being moved in one's ear, closes display panel 641 and/or backlight.As a kind of motion sensor, acceleration transducer canThe size for detecting (generally three axis) acceleration in all directions, can detect that size and the direction of gravity, can be used for when staticThe application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal posture, Vibration identification correlation function(such as pedometer, percussion) etc.;Barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal 600 etc.Other sensors, details are not described herein.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and terminal 600.AudioElectric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by circuit 660Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, after being received by voicefrequency circuit 660Audio data is converted to, then by after the processing of audio data output processor 680, such as another end is sent to through RF circuit 610End, or audio data is exported to memory 620 to be further processed.
WiFi belongs to short range wireless transmission technology, and terminal 600 can help user's transceiver electronics by WiFi module 670Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shownWiFi module 670, but it is understood that, and it is not belonging to must be configured into for terminal 600, it can according to need completelyDo not change in the range of disclosed essence and omits.
Processor 680 is the control centre of terminal 600, utilizes each portion of various interfaces and the entire terminal of connectionPoint, by running or execute the software program and/or module that are stored in memory 620, and calls and be stored in memory 620Interior data execute the various functions and processing data of terminal 600, to carry out integral monitoring to terminal.Optionally, processor680 may include one or more processing units;Preferably, processor 680 can integrate application processor and modem processor,Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothingLine communication.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Terminal 600 further includes the power supply 682(such as battery powered to all parts), it is preferred that power supply can pass through electricityManagement system and processor 680 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management systemThe functions such as management.
Camera 690 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screensAt.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensorIt is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plateConnector, spring connection type are connect with terminal mainboard, and the image of acquisition is sent to the memory 620;Digital signalProcessor is handled by image of the mathematical operation to acquisition, the analog image of acquisition is converted to digital picture and by connecingMouth is sent to memory 620.
Although being not shown, terminal 600 can also be including bluetooth module etc., and details are not described herein.
Terminal 600 in addition to include one or more processor 680, further include have memory and one or moreModule, one or more module are stored in memory, and are configured to be executed by one or more processor.OnOne or more module is stated with following function:
The bind request for carrying the unique identification of target terminal is sent to server;
If target terminal is first terminal, the verifying for carrying identifying code that server is sent according to bind request is receivedInformation;
Identifying code is identified from verification information, and receives the first binding information of input, and the first binding information includes usingThe unique identification of family account and first terminal;
Identifying code and the first binding information are sent to server, it is right so that server is to after being verified of identifying codeThe unique identification of user account and first terminal in first binding information is bound.
Optionally, before identifying identifying code in verification information, further includes:
The first webpage information that server is sent according to bind request is received, the first webpage information is docked for first terminalWhether the verification information received is corresponding with bind request to be verified;
Detect whether the first webpage information matches with the verification information received;
If testing result is that the first webpage information is matched with the verification information received, it is determined that verification information is asked with bindingAsk corresponding, triggering executes the step of identifying code is identified from verification information.
Optionally, whether the first webpage information of detection matches with the verification information received, comprising:
The characteristic information of verification information is obtained from the first webpage information, and the feature of verification information is obtained from verification informationInformation;
It detects the characteristic information obtained from the first webpage information and whether the characteristic information obtained from verification information is identical;
If testing result is the characteristic information obtained from the first webpage information and the characteristic information obtained from verification informationIt is identical, it is determined that the first webpage information is matched with the verification information received.
Optionally, the bind request for carrying the unique identification of target terminal is sent to server, comprising:
The unique identification of first terminal is obtained by application programming interface;Or, acquisition is defeated in the unique identification of displayingEnter the unique identification of the first terminal inputted in frame;
The unique identification of first terminal is added and is sent to server in the first bind request, so that server is according to theThe unique identification of one terminal sends verification information to first terminal.
Optionally, if target terminal is second terminal, the unique identification for carrying target terminal is sent to serverAfter bind request, further includes:
The identifying code that second terminal is identified and sent from verification information is received, and receives the second binding information of input,Verification information is that server according to the unique identification of the second terminal carried in bind request is sent to second terminal, and second ties upDetermine the unique identification that information includes user account and second terminal;
Identifying code and the second binding information are sent to server, it is right so that server is to after being verified of identifying codeThe unique identification of user account and second terminal in second binding information is bound.
Optionally, second terminal is received before the identifying code for identifying and sending in verification information, further includes:
Receive the second webpage information for sending according to bind request of server, the second webpage information is used for second terminal to testingDemonstrate,prove whether information is verified corresponding with bind request;
The characteristic information of the verification information obtained from the second webpage information is sent to second terminal, so as to second terminalThe characteristic information that verification information is obtained from verification information, the characteristic information that detects to get from the second webpage information withFrom the characteristic information got in verification information it is identical after, identify that identifying code is sent to first terminal from verification information.
Referring to FIG. 7, it illustrates the structural framing figure of terminal binding device provided by one embodiment of the present invention, the endEnd binding device can be applied in server.The terminal binding device, comprising:
Request receiving module 701, the binding of the unique identification for carrying target terminal for receiving first terminal transmissionRequest;
First sending module 702, for being connect according to request receiving module 701 when the target terminal is first terminalThe bind request received sends the verification information for carrying identifying code to first terminal;
First receiving module 703, for receiving the identifying code and the first binding information of first terminal transmission, identifying code is by theOne terminal identifies from the verification information that the first sending module 702 is sent and obtains, and the first binding information is by first terminal from receptionInput in obtain, the first binding information includes the unique identification of user account and first terminal;
First binding module 704, the identifying code for receiving to the first receiving module 703 are verified, and to testingAfter card being verified of code, the unique identification of user account and first terminal in the first binding information is bound.
In conclusion terminal binding device provided in an embodiment of the present invention, the identifying code sent by receiving first terminalWith the first binding information, which is identified from verification information by first terminal and is obtained, and first binding information is whole by firstEnd is obtained from the input received, is verified to identifying code, and when being verified, is being bound to first to the identifying codeThe unique identification of user account and first terminal in information is bound, and allows server to directly from verification informationThe identifying code identified is verified, rather than is obtained to user from checking after identifying code to be input in webpage again in verification informationThe identifying code got is verified, and is solved first terminal and is switched to from webpage and checks that the application of verification information allows user to checkIdentifying code allows user to input first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageInefficiency the problem of, achieved the effect that improve first terminal binding procedure efficiency.
Referring to FIG. 8, the structural framing figure of the terminal binding device provided it illustrates yet another embodiment of the invention, the endEnd binding device can be applied in server.The terminal binding device, comprising: request receiving module 701, the first sending module702, the first receiving module 703 and the first binding module 704.
Request receiving module 701, the bind request of the unique identification for carrying target terminal for receiving terminal transmission;
First sending module 702, for being received according to request receiving module 701 when target terminal is first terminalBind request sent to first terminal and carry the verification information of identifying code;
First receiving module 703, for receiving the identifying code and the first binding information of first terminal transmission, identifying code is by theOne terminal identifies from the verification information that the first sending module 702 is sent and obtains, and the first binding information is by first terminal from receptionInput in obtain, the first binding information includes the unique identification of user account and first terminal;
First binding module 704, the identifying code for receiving to the first receiving module 703 are verified, and to testingAfter card being verified of code, the unique identification of user account and first terminal in the first binding information is bound.
Optionally, device further include:
Second sending module 705 receives the identifying code and the first binding that first terminal is sent for the first receiving module 703Before information, the first webpage information is sent to first terminal according to the first bind request, so that first terminal is detecting firstIt determines that verification information is corresponding with bind request after webpage information and the verification information matching received, is identified from verification informationIdentifying code, for first terminal, to combining, whether the verification information searched out is corresponding with bind request to be tested the first webpage informationCard.
Optionally, device further include:
Information generating module 706 is carried to first terminal transmission according to bind request for the first sending module 702 and is testedBefore the verification information for demonstrate,proving code, the characteristic information of identifying code and verification information is generated according to bind request;
First sending module 702, specifically for according to bind request by the verification information including identifying code and characteristic informationIt is sent to first terminal.
Optionally, device further include:
Auto-building html files module 707 generates identifying code and verification information according to bind request for information generating module 706After characteristic information, characteristic information is added in the first webpage information.
Optionally, the first sending module 702, comprising:
Receiving unit 7021 is identified, for obtaining the unique identification of the first terminal in bind request, first terminal is onlyOne mark is acquired by first terminal by application programming interface;Or, the unique identification of first terminal is by first terminalIt is obtained by obtaining the input in the unique identification input frame of displaying;
Information transmitting unit 7022, the unique identification of first terminal for being got according to mark receiving unit 7021 toFirst terminal sends the verification information for carrying identifying code and characteristic information.
Optionally, if target terminal is second terminal, device further include:
Third sending module 708 carries target terminal for what request receiving module 701 received that first terminal sendsAfter the bind request of unique identification, taken according to the unique identification of the second terminal carried in bind request to second terminal transmissionVerification information with identifying code;
Second receiving module 709, for receiving the identifying code and the second binding information of first terminal transmission, identifying code is by theTwo terminals identify and are sent to first terminal from the verification information that third sending module 708 is sent, and the second binding information is byTwo terminals obtain from received input and are sent to first terminal, and the second binding information includes user account and second terminalUnique identification;
Second binding module 710, the identifying code for receiving to the second receiving module 709 is verified, to verifyingCode be verified after, the unique identification of user account and second terminal in the second binding information is bound.
Optionally, device further include:
4th sending module 711 receives the identifying code and the second binding that first terminal is sent for the second receiving module 709Before information, the second webpage information is sent to first terminal according to bind request, so that first terminal will be from the second webpage informationThe characteristic information of the verification information of middle acquisition is sent to second terminal, and second terminal obtains the spy of verification information from verification informationReference breath, in the characteristic information for detecting the characteristic information got from the second webpage information with being got from verification informationAfter identical, identify that identifying code is sent to first terminal from verification information, identifying code is sent to server by first terminal.
In conclusion terminal binding device provided in an embodiment of the present invention, the identifying code sent by receiving first terminalWith the first binding information, which is identified from verification information by first terminal and is obtained, and first binding information is whole by firstEnd is obtained from the input received, is verified to identifying code, and when being verified, is being bound to first to the identifying codeThe unique identification of user account and first terminal in information is bound, and allows server to directly from verification informationThe identifying code identified is verified, rather than is obtained to user from checking after identifying code to be input in webpage again in verification informationThe identifying code got is verified, and is solved first terminal and is switched to from webpage and checks that the application of verification information allows user to checkIdentifying code allows user to input first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageInefficiency the problem of, achieved the effect that improve first terminal binding procedure efficiency.In addition, by according to bind requestThe first webpage information is sent to first terminal, so that first terminal is in the verification information for detecting the first webpage information Yu receivingIdentifying code is identified when matching from verification information, first terminal can be made to find verification information corresponding with bind request,Identifying code is identified from the verification information again, is solved caused by reading identifying code from other verification informations first terminalIdentifying code authentication failed leads to the problem of first terminal Bind Failed, has reached the success rate for improving first terminal binding procedureEffect.
Referring to FIG. 9, it illustrates the structural schematic diagrams of server provided by one embodiment of the present invention.The server900 include central processing unit (CPU) 901, including random-access memory (ram) 902 and read-only memory (ROM) 903System storage 904, and the system bus 905 of connection system storage 904 and central processing unit 901.The server900 further include the basic input/output (I/O system) 906 of transmission information between each device helped in computer, andMass-memory unit 907 for storage program area 913, application program 910 and other program modules 915.
The basic input/output 906 includes display 908 for showing information and inputs letter for userThe input equipment 909 of such as mouse, keyboard etc of breath.Wherein the display 908 and input equipment 909 are all by being connected toThe input and output controller 910 of system bus 905 is connected to central processing unit 901.The basic input/output 906Can also include input and output controller 910 with for receive and handle from keyboard, mouse or electronic touch pen etc. it is multiple itsThe input of his equipment.Similarly, input and output controller 910 also provides output to display screen, printer or other kinds of defeatedEquipment out.
The mass-memory unit 907 is by being connected to the bulk memory controller (not shown) of system bus 905It is connected to central processing unit 901.The mass-memory unit 907 and its associated computer-readable medium are server900 provide non-volatile memories.That is, the mass-memory unit 907 may include such as hard disk or CD-ROMThe computer-readable medium (not shown) of driver etc.
Without loss of generality, the computer-readable medium may include computer storage media and communication media.ComputerStorage medium includes information such as computer readable instructions, data structure, program module or other data for storageThe volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includesRAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tapeBox, tape, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that the computer storage mediumIt is not limited to above-mentioned several.Above-mentioned system storage 904 and mass-memory unit 907 may be collectively referred to as memory.
According to various embodiments of the present invention, the server 900 can also be arrived by network connections such as internetsRemote computer operation on network.Namely server 900 can be by the network interface that is connected on the system bus 905Unit 911 is connected to network 912, in other words, Network Interface Unit 911 also can be used be connected to other kinds of network orRemote computer system (not shown).
The memory further includes that one or more than one program, the one or more programs are stored inIn memory, the one or more programs have following function:
Receive the bind request for the unique identification for carrying target terminal that first terminal is sent;
If target terminal is first terminal, the verifying letter for carrying identifying code is sent to first terminal according to bind requestBreath;
Identifying code and the first binding information that first terminal is sent are received, identifying code is known from verification information by first terminalIt does not obtain, the first binding information is obtained from received input by first terminal, and the first binding information includes user account andThe unique identification of one terminal;
Identifying code is verified, and to identifying code when being verified, to the user account in the first binding informationIt is bound with the unique identification of first terminal.
Optionally, before the identifying code and the first binding information that receive first terminal transmission, further includes:
The first webpage information is sent to first terminal according to bind request, so that first terminal is detecting the first webpage letterIt ceases and determines that verification information is corresponding with bind request with after the verification information matching received, verifying is identified from verification informationCode, the first webpage information are verified for whether first terminal to be corresponding with bind request to the verification information received.
Optionally, before the verification information for carrying identifying code to first terminal transmission according to bind request, further includes:
The characteristic information of identifying code and verification information is generated according to bind request;
The verification information for carrying identifying code is sent to first terminal according to bind request, comprising:
The verification information including identifying code and characteristic information is sent to first terminal according to bind request.
Optionally, after according to bind request generation identifying code and the characteristic information of verification information, further includes:
Characteristic information is added in the first webpage information.
Optionally, the verification information including identifying code and characteristic information is sent to by first terminal according to bind request, wrappedIt includes:
The unique identification of the first terminal in bind request is obtained, the unique identification of first terminal is by first terminal by answeringIt is acquired with Program Interfaces;Or, the unique identification of first terminal is by first terminal by obtaining unique mark in displayingThe input known in input frame obtains;
The verification information for carrying identifying code and characteristic information is sent to first terminal according to the unique identification of first terminal.
Optionally, if target terminal is second terminal, receive first terminal transmission carries the unique of target terminalAfter the bind request of mark, further includes:
Testing for identifying code is carried to second terminal transmission according to the unique identification of the second terminal carried in bind requestDemonstrate,prove information;
Identifying code and the second binding information that first terminal is sent are received, identifying code is by second terminal from the verifying receivedFirst terminal is identified and is sent in information, and the second binding information is obtained from received input by second terminal and is sent toOne terminal, the second binding information include the unique identification of user account and second terminal;
Identifying code is verified, after to being verified of identifying code, in the second binding information user account andThe unique identification of second terminal is bound.
Optionally, before the identifying code and the second binding information that receive first terminal transmission, further includes:
The second webpage information is sent to first terminal according to bind request, so that first terminal will be from the second webpage informationThe characteristic information of the verification information of acquisition is sent to second terminal, and second terminal obtains the feature of verification information from verification informationInformation, in the characteristic information phase for detecting the characteristic information got from the second webpage information with being got from verification informationWith after, identify that identifying code is sent to first terminal from verification information, identifying code is sent to server by first terminal.
Referring to FIG. 10, the structural block diagram of the terminal binding system provided it illustrates an embodiment of the present disclosure.It shouldTerminal binding system may include: first terminal 1001 and server 1002, lead between first terminal 1001 and server 1002Cross cable network or wireless network connection.
First terminal 1001, for sending the bind request for carrying the unique identification of target terminal to server 1002;
Server 1002 is asked for receiving the binding for the unique identification for carrying target terminal of the transmission of first terminal 1001It asks;If target terminal is first terminal 1001, testing for identifying code is carried to the transmission of first terminal 1001 according to bind requestDemonstrate,prove information;
First terminal 1001 is also used to receive the verifying for carrying identifying code that server 1002 is sent according to bind requestInformation;Identifying code is identified from verification information, and receives the first binding information of input, and the first binding information includes user's accountThe unique identification at family and first terminal 1001;Identifying code and the first binding information are sent to server 1002;
Server 1002 is also used to receive the identifying code and the first binding information of the transmission of first terminal 1001;To identifying codeIt is verified, and after to being verified of identifying code, to the user account and first terminal 1001 in the first binding informationUnique identification is bound.
In conclusion terminal binding system provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, without user from being checked after identifying code in verification information againIt is input in webpage, solves first terminal and be switched to from webpage and check that the application of verification information allows user to check identifying code,User is allowed to input the efficiency of first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageLow problem has achieved the effect that the efficiency for improving first terminal binding procedure.
Figure 11 is please referred to, it illustrates the structural framing figures for the terminal binding system that yet another embodiment of the invention provides.It shouldTerminal binding system may include: first terminal 1001, server 1002 and second terminal 1003, first terminal 1001, servicePass through cable network or wireless network connection between device 1002 and second terminal 1003.
First terminal 1001, for sending the bind request for carrying the unique identification of target terminal to server 1002;
Server 1002 is asked for receiving the binding for the unique identification for carrying target terminal of the transmission of first terminal 1001It asks;If target terminal is first terminal 1001, testing for identifying code is carried to the transmission of first terminal 1001 according to bind requestDemonstrate,prove information;
First terminal 1001 is also used to receive the verifying for carrying identifying code that server 1002 is sent according to bind requestInformation;Identifying code is identified from verification information, and receives the first binding information of input, and the first binding information includes user's accountThe unique identification at family and first terminal 1001;Identifying code and the first binding information are sent to server 1002;
Server 1002 is also used to receive the identifying code and the first binding information of the transmission of first terminal 1001;To identifying codeIt is verified, and after to being verified of identifying code, to the user account and first terminal 1001 in the first binding informationUnique identification is bound.
Optionally, server 1002 are also used to send the first webpage information to first terminal 1001 according to bind request, theOne webpage information is verified for whether first terminal 1001 to be corresponding with bind request to the verification information received;
First terminal 1001 is also used to receive the first webpage information that server 1002 is sent according to bind request;DetectionWhether the first webpage information matches with the verification information received;If testing result is the first webpage information and the verifying receivedInformation matches, it is determined that verification information is corresponding with bind request, and triggering executes the step of identifying code is identified from verification information.
Optionally, first terminal 1001, specifically for obtaining the characteristic information of verification information from the first webpage information, andThe characteristic information of verification information is obtained from verification information;The characteristic information obtained from the first webpage information is detected to believe with from verifyingWhether identical cease the characteristic information obtained;If testing result is that the characteristic information obtained from the first webpage information is believed with from verifyingIt is identical to cease the characteristic information obtained, it is determined that the first webpage information is matched with the verification information received.
Optionally, if target terminal is second terminal 1003, server 1002 is also used to carry according in bind requestThe unique identification of second terminal 1003 sent to second terminal 1003 and carry the verification information of identifying code;
First terminal 1001 is also used to receive the identifying code that second terminal 1003 is identified and sent from verification information, andThe second binding information of input is received, the second binding information includes the unique identification of user account and second terminal 1003;It will testCard code and the second binding information are sent to server 1002;
Server 1002 is also used to receive the identifying code and the second binding information of the transmission of first terminal 1001;To identifying codeVerified, after to being verified of identifying code, in the second binding information user account and second terminal 1003 onlyOne mark is bound.
Optionally, server 1002 are also used to send the second webpage information to first terminal 1001 according to bind request, theWhether two webpage informations are verify corresponding with bind request to verification information for second terminal 1003;
First terminal 1001 is also used to receive the second webpage information that server 1002 is sent according to bind request;It will be fromThe characteristic information of the verification information obtained in second webpage information is sent to second terminal 1003, so that second terminal 1003 is from testingDemonstrate,prove the characteristic information that verification information is obtained in information, detect the characteristic information got from the second webpage information with from testingAfter the characteristic information got in card information is identical, identify that identifying code is sent to first terminal 1001 from verification information.
Further, first terminal 1101 can be the first terminal as shown in Fig. 4 or 5 or 6, and server 1002 can beThe server as shown in Fig. 7 or 8 or 9.
In conclusion terminal binding system provided in an embodiment of the present invention, by identifying identifying code from verification information,And receive the first binding information of input;Identifying code and the first binding information are sent to server, by server to identifying codeBe verified after, the unique identification of user account and first terminal in the first binding information is bound, so that firstTerminal can directly identify identifying code from verification information, without user from being checked after identifying code in verification information againIt is input in webpage, solves first terminal and be switched to from webpage and check that the application of verification information allows user to check identifying code,User is allowed to input the efficiency of first terminal binding procedure caused by identifying code from the application switching of verification information is checked to webpageLow problem has achieved the effect that the efficiency for improving first terminal binding procedure.In addition, receiving server by first terminalThe first webpage information sent according to bind request;Detect whether the first webpage information matches with the verification information received, it canIt to find verification information corresponding with bind request, then from the verification information identifies identifying code, solves and tested from otherIdentifying code authentication failed the problem of leading to first terminal Bind Failed caused by identifying code is read in card information, has reached raising theThe effect of the success rate of one terminal binding procedure.
It should be understood that terminal binding device provided by the above embodiment is when carrying out terminal binding, only with above-mentioned eachThe division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different functionEnergy module is completed, i.e., the internal structure of terminal binding device is divided into different functional modules, described above complete to completePortion or partial function.In addition, terminal binding device provided by the above embodiment belong to terminal binding method embodiment it is sameDesign, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardwareIt completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readableIn storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention andWithin principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.