Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a terminal and a computer readable storage medium for batch changing of mobile phone numbers, aiming at solving the problem of low efficiency of batch changing of bound mobile phone numbers in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for changing mobile phone numbers in batches comprises the following steps:
receiving a target application downloading instruction, and downloading a target application, wherein third party application information corresponding to a third party application is added in the target application;
when the target application receives a mobile phone number change instruction sent by a user, controlling the target application to carry out verification code verification processing on an original bound mobile phone number and a newly bound mobile phone number;
after the verification is passed, if a third party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third party application according to the third party application information;
and when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the original bound mobile phone number with a new bound mobile phone number.
In further implementations, the target application has a platform interface specification and the third party application has a rebinding interface that conforms to the platform interface specification.
In a further implementation manner, when the target application receives a mobile phone number change instruction sent by a user, controlling the target application to perform verification code verification processing on an originally bound mobile phone number and a newly bound mobile phone number includes:
when the target application receives a mobile phone number binding changing instruction sent by a user, detecting an original binding mobile phone number input by the user, and acquiring a first verification code;
if the first verification code input by the user is detected to be correct, detecting a new bound mobile phone number input by the user, and acquiring a second verification code;
and if the second verification code input by the user is detected to be correct, the verification is passed.
In a further implementation manner, the information for the third party comprises an application name, an interface address and authentication information;
after the verification is passed, if a third-party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third-party application according to the third-party application information, wherein the mobile phone number replacing request comprises:
after the verification is passed, if a third-party application selection instruction sent by the user is received, the target application is controlled to send a mobile phone number replacement request to an interface address corresponding to the third-party application selected by the user.
In a further implementation manner, when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the originally bound mobile phone number with a newly bound mobile phone number includes:
when the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
if the third party application mobile phone number is successfully changed, a result instruction of successful change of the binding is generated;
and controlling the third-party application to send a result instruction of successful binding change to the target application.
In a further implementation manner, when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the originally bound mobile phone number with a newly bound mobile phone number includes:
when the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
if the third party application mobile phone number fails to change the binding, a result instruction of the failed binding change is generated;
and controlling the third-party application to send a result instruction of failed bundle change to the target application.
In a further implementation manner, when the third party application receives the request for replacing the mobile phone number, after controlling the third party application to replace the original bound mobile phone number with a new bound mobile phone number, the method further includes:
when the target application receives result instructions sent by all third-party applications, controlling the target application to generate a visual interface according to all the result instructions;
and displaying the change binding results corresponding to all third-party applications on the visual interface.
In a further implementation, a one-click change-binding button is provided in the target application.
The present invention provides a terminal, including: the mobile phone number batch rebinding program is stored on the memory and can run on the processor, and when being executed by the processor, the mobile phone number batch rebinding program realizes the steps of the mobile phone number batch rebinding method.
The invention provides a computer-readable storage medium, which stores a computer program that can be executed for implementing the steps of the mobile phone number batch rebinding method as described above.
The invention provides a method, a terminal and a computer readable storage medium for changing the binding of mobile phone numbers in batches, wherein the method for changing the binding of the mobile phone numbers in batches comprises the following steps: receiving a target application downloading instruction, and downloading a target application, wherein third party application information corresponding to a third party application is added in the target application; when the target application receives a mobile phone number change instruction sent by a user, controlling the target application to carry out verification code verification processing on an original bound mobile phone number and a newly bound mobile phone number; after the verification is passed, if a third party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third party application according to the third party application information; and when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the original bound mobile phone number with a new bound mobile phone number. According to the invention, when a mobile phone number change instruction sent by a user is received, the mobile phone number is directly verified, verification code verification does not need to be obtained for different applications, and only one operation of verifying the correctness of the original bound mobile phone number and the newly bound mobile phone number is needed in a target application, so that the process is simple, and the efficiency of changing the mobile phone number is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The existing mode for replacing and binding mobile phone numbers in batches has the following defects besides the defect of low efficiency: firstly, account login information of all applications in the mobile terminal needs to be acquired first, and all verification codes need to be acquired when the short message of the mobile terminal is accessed. Thus, when account login information of all applications is acquired, the account of the user is no longer safe, and personal privacy leakage and property loss are caused, so that the legal rights and interests of the user are infringed. Secondly, the premise that a request for replacing the bound mobile phone number needs to be submitted to the third-party application is that the binding replacing interfaces of the applications need to be known and are developed according to the interface specification, and the workload of developers is difficult to estimate due to the docking mode, because each pair of applications needs to develop one interface for the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for changing a bundle of mobile phone numbers in batches according to the present invention. As shown in fig. 1, the method for changing the mobile phone numbers in batches according to the embodiment of the present invention includes the following steps:
step S100, receiving a target application downloading instruction, and downloading the target application, wherein third party application information corresponding to the third party application is added into the target application.
Specifically, the target application is developed based on Android and IOS technologies, and a user can achieve the purpose of one-key mobile phone number changing and binding through the target application.
In one implementation, the target application has a platform interface specification and the third party application has a rebinding interface that conforms to the platform interface specification.
Specifically, if the third-party application is to have the function of changing the mobile phone numbers in batches, a developer of the third-party application needs to develop a change interface according to the platform interface specification of the target application. Therefore, the invention provides interface specifications for the third party application needing to be accessed without docking different interfaces aiming at different applications, and has universality.
Therefore, the third-party application can upload the application information of the third-party application to the target application through the re-binding interface in advance, and the third-party application information can be added to the platform of the target application. Therefore, compared with the prior art that account login information of all applications in the mobile terminal needs to be acquired, the method and the device utilize the high-safety binding exchange interface to upload the third-party application information to the platform of the target application, not only acquire the information of the third-party application, but also maintain the safety of the third-party application, do not need to acquire the account information of each application of the user, and do not damage the account safety of the user.
The user only needs to download the target application on the mobile terminal, and the target application can be opened to realize the function of changing the bound mobile phone numbers in batches.
The step S100 is followed by: step S200, when the target application receives a mobile phone number binding change instruction sent by a user, controlling the target application to carry out verification code verification processing on the original bound mobile phone number and the newly bound mobile phone number.
That is, the invention verifies the mobile phone number when receiving the mobile phone number binding change instruction sent by the user. Compared with the scheme that in the prior art, after the application selected by the user is accessed by using the account login information and the request for changing the bound mobile phone number is submitted respectively, the short message of the mobile terminal is accessed, all the verification codes are obtained, and the verification codes are submitted to the corresponding application, the verification codes do not need to be obtained and verified for different applications any more, only the verification needs to be carried out once in the target application, the process is simplified, and the consumed time is greatly shortened.
In an implementation manner, referring to fig. 2, the step S200 specifically includes:
step S210, when the target application receives a mobile phone number change instruction sent by a user, detecting an original bound mobile phone number input by the user and acquiring a first verification code;
step S220, if the first verification code input by the user is detected to be correct, detecting a new bound mobile phone number input by the user, and acquiring a second verification code;
and step S230, if the second verification code input by the user is detected to be correct, the verification is passed.
Specifically, a user opens a target application on the mobile terminal, clicks a binding change button, and inputs an original binding mobile phone number; the mobile terminal obtains a first verification code, and the user inputs the first verification code. If the input is correct, the newly bound mobile phone number can be continuously input, then the mobile terminal obtains a second verification code, the user inputs the second verification code, and if the input is correct, the verification is passed.
The step S200 is followed by: and step S300, after the verification is passed, if a third party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third party application according to the third party application information.
That is to say, after the verification is passed, the user can select the third-party application needing to replace the mobile phone number, the target application acquires the corresponding third-party application information according to the selection of the user, and then sends a request for replacing the mobile phone number to the corresponding third-party application according to the third-party application information.
In one implementation, the third party information includes an application name, an interface address, and authentication information. The step S300 specifically includes: after the verification is passed, if a third-party application selection instruction sent by the user is received, the target application is controlled to send a mobile phone number replacement request to an interface address corresponding to the third-party application selected by the user. Specifically, the request for changing the mobile phone number includes an original bound mobile phone number and a new bound mobile phone number. The target application sends the mobile phone number replacing request to the interface address corresponding to the third-party application selected by the user, and the third-party application can acquire the original bound mobile phone number and the new bound mobile phone number.
The step S300 is followed by: and S400, when the third-party application receives the mobile phone number replacing request, controlling the third-party application to replace the original bound mobile phone number with a new bound mobile phone number.
In one implementation, referring to fig. 3, the step S400 specifically includes:
step S410a, when the third party application receives the request for replacing the mobile phone number, the third party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
step S420a, if the third party application mobile phone number is successfully changed, a result instruction of successful change of the binding is generated;
and step S430a, controlling the third-party application to send a result instruction of successful binding change to the target application.
In a further implementation manner, referring to fig. 4, the step S400 further includes:
step S410b, when the third party application receives the request for replacing the mobile phone number, the third party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
step S420b, if the third party application mobile phone number fails to change the binding, generating a result instruction of the failed binding change;
and step S430b, controlling the third-party application to send a result instruction of failed bundle change to the target application.
That is to say, when the third party application on the mobile terminal receives the request for changing the mobile phone number, the original bound mobile phone number is replaced by the new bound mobile phone number, and the operation result is divided into two types, and the binding is successfully changed or the binding is failed to change. The third party application responds to the success or failure results to the target application platform.
In one implementation, the step S400 is followed by: and when the target application receives result instructions sent by all the third-party applications, controlling the target application to generate a visual interface according to all the result instructions. And displaying the change binding results corresponding to all third-party applications on the visual interface. Therefore, the user can see the change binding result conveniently in the target application, the third-party application does not need to be opened one by one for checking, and convenience is provided for the user.
In a further implementation, a one-click change-binding button is provided in the target application. Therefore, after the user opens the target application, the user can operate the target application only by clicking the binding change button, and the operation is very convenient.
According to the cloud docking method, the third-party application is required to develop an interface according to the interface specification of the binding changing platform, a user only needs to perform operation of checking the correctness of the new mobile phone number and the old mobile phone number once in the target application, the platform informs the third-party application of the operation of changing the mobile phone number, the third-party application can respond to the request of changing the mobile phone number, the process is simple, and the efficiency of changing the mobile phone number is improved.
The following description will be given by way of a specific example.
Referring to fig. 5, fig. 5 is a specific flowchart for changing the bound mobile phone number.
A1, opening an application by a user, and clicking a one-key binding change button;
a2, the user fills in the original binding mobile phone number to obtain a first short message verification code;
a3, inputting a first short message verification code by a user;
a4, judging whether the first short message verification code is correct or not; if yes, executing the step A5, otherwise, returning to the step A3;
a5, inputting a new bound mobile phone number by a user to acquire a second short message verification code;
a6, inputting a second short message verification code by a user;
a7, judging whether the second short message verification code is correct; if yes, executing the step A8, otherwise, returning to the step A6;
a8, the user selects a third-party application needing to replace the mobile phone number;
a9, the target application sends a request for changing the mobile phone number to an interface address corresponding to the third-party application selected by the user;
a10, after receiving the request, the third party application completes the operation of replacing the user mobile phone number, and responds the successful or failed operation result to the target application;
a11, the target application collects the response results of the third-party application, and a visual interface is generated to inform the user whether the third-party application is successful in replacing the mobile phone number.
Further, as shown in fig. 6, based on the above method for changing the mobile phone number in batches, the present invention also provides a terminal, which includes aprocessor 10 and amemory 20. Fig. 6 shows only some of the components of the terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Thememory 20 may in some embodiments be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. Thememory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, thememory 20 may also include both an internal storage unit and an external storage device of the terminal. Thememory 20 is used for storing application software installed in the terminal and various types of data, such as program codes for installing the terminal. Thememory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, thememory 20 stores a mobile phone numberbatch rebinding program 30, and the mobile phone numberbatch rebinding program 30 can be executed by theprocessor 10, so as to implement the mobile phone number batch rebinding method in the present application.
Theprocessor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, and is configured to run program codes stored in thememory 20 or process data, for example, execute the mobile phone number batch rebinding method.
In one embodiment, when theprocessor 10 executes the mobile phone numberbulk rebinding program 30 in thememory 20, the following steps are implemented:
receiving a target application downloading instruction, and downloading a target application, wherein third party application information corresponding to a third party application is added in the target application;
when the target application receives a mobile phone number change instruction sent by a user, controlling the target application to carry out verification code verification processing on an original bound mobile phone number and a newly bound mobile phone number;
after the verification is passed, if a third party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third party application according to the third party application information;
and when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the original bound mobile phone number with a new bound mobile phone number.
The target application has a platform interface specification and the third party application has a rebundling interface that conforms to the platform interface specification.
When the target application receives a mobile phone number binding change instruction sent by a user, the target application is controlled to carry out verification code verification processing of an original bound mobile phone number and a newly bound mobile phone number, and the verification code verification processing comprises the following steps:
when the target application receives a mobile phone number binding changing instruction sent by a user, detecting an original binding mobile phone number input by the user, and acquiring a first verification code;
if the first verification code input by the user is detected to be correct, detecting a new bound mobile phone number input by the user, and acquiring a second verification code;
and if the second verification code input by the user is detected to be correct, the verification is passed.
The third party information comprises an application name, an interface address and authentication information;
after the verification is passed, if a third-party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third-party application according to the third-party application information, wherein the mobile phone number replacing request comprises:
after the verification is passed, if a third-party application selection instruction sent by the user is received, the target application is controlled to send a mobile phone number replacement request to an interface address corresponding to the third-party application selected by the user.
When the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number, and the method comprises the following steps:
when the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
if the third party application mobile phone number is successfully changed, a result instruction of successful change of the binding is generated;
and controlling the third-party application to send a result instruction of successful binding change to the target application.
When the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number, and the method comprises the following steps:
when the third-party application receives the request for replacing the mobile phone number, the third-party application is controlled to replace the original bound mobile phone number with a new bound mobile phone number;
if the third party application mobile phone number fails to change the binding, a result instruction of the failed binding change is generated;
and controlling the third-party application to send a result instruction of failed bundle change to the target application.
When the third party application receives the request for replacing the mobile phone number, after controlling the third party application to replace the original bound mobile phone number with the new bound mobile phone number, the method further comprises the following steps:
when the target application receives result instructions sent by all third-party applications, controlling the target application to generate a visual interface according to all the result instructions;
and displaying the change binding results corresponding to all third-party applications on the visual interface.
And a one-key binding changing button is arranged in the target application.
The present invention also provides a computer-readable storage medium storing a computer program executable for implementing the steps of the method for batch rebinding of mobile phone numbers as described above.
In summary, the mobile phone number batch rebinding method, the terminal and the computer readable storage medium disclosed by the present invention comprise: receiving a target application downloading instruction, and downloading a target application, wherein third party application information corresponding to a third party application is added in the target application; when the target application receives a mobile phone number change instruction sent by a user, controlling the target application to carry out verification code verification processing on an original bound mobile phone number and a newly bound mobile phone number; after the verification is passed, if a third party application selection instruction is received, controlling the target application to send a mobile phone number replacing request to the selected third party application according to the third party application information; and when the third-party application receives the request for replacing the mobile phone number, controlling the third-party application to replace the original bound mobile phone number with a new bound mobile phone number. According to the invention, when a mobile phone number change instruction sent by a user is received, the mobile phone number is directly verified, verification code verification does not need to be obtained for different applications, and only one operation of verifying the correctness of the original bound mobile phone number and the newly bound mobile phone number is needed in a target application, so that the process is simple, and the efficiency of changing the mobile phone number is improved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.