Mobile phone number binding method, device, electronic device and storage medium
By obtaining credential information through the mini program's login interface and combining it with mobile phone number recognition technology, an association between the user ID and the mobile phone number is automatically established, solving the security risks and user experience issues associated with mini program accounts and achieving safe and efficient one-click login.
Patent Information
- Application Number
- CN202111584685.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The existing method of associating mini-program accounts has security risks and provides a poor user experience, especially since it cannot be updated in a timely manner after the mobile phone number is cancelled or transferred, posing a risk of information leakage.
The login credential information is obtained through the login interface of the mini program, and combined with the mobile phone number recognition technology, an association relationship between the target user ID and the mobile phone number ID is automatically established to achieve one-click binding and login.
It improves user experience, avoids the risk of SMS verification code leakage and information leakage, and simplifies user operation processes.
Smart Images

Figure CN114385991B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for binding a mobile phone number. Background Art
[0002] Mini programs are apps that can be used without downloading or installing. They realize the dream of apps being "at your fingertips," allowing users to open apps with a simple scan or search. They also embody the "use it and go" philosophy, freeing users from the worry of installing too many apps. Apps will be ubiquitous and available at any time, without the need for installation or uninstallation.
[0003] Mini Programs have their own account system, provided by the Mini Program runtime environment. Typically, after logging into a Mini Program, the Mini Program account system is linked to the actual business account. For example, the China Telecom Huan GO Mini Program manages Mini Program accounts and China Telecom mobile phone numbers, providing query and top-up services for the linked phone number.
[0004] Currently, there are two main methods for linking mini-program accounts: 1. Directly obtaining the mobile phone number provided during account registration through the mini-program. This is the mobile phone number verified when registering the app. However, after the mobile phone number is deregistered or transferred, the business party cannot access it, which poses certain security risks. 2. Obtaining the mobile phone number by having the user enter the mobile phone number and verify it via SMS, and then linking the account to the verified mobile phone number. This method requires multiple user interactions, reduces the user experience, and also carries the risk of user information leakage. Summary of the Invention
[0005] The present application provides a mobile phone number binding method, device, electronic device and storage medium to solve the problems of security risks and poor user experience in the account association method of mini-programs in the existing technology.
[0006] In order to solve the above problems, the embodiment of the present application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for binding a mobile phone number, comprising:
[0008] Based on the login interface of the mini-program, obtain the login credential information corresponding to the mini-program;
[0009] Obtaining a target user identifier corresponding to the target user through the login credential information;
[0010] Determine the target number identifier corresponding to the mobile phone number in the target user's terminal based on the loaded access link and mobile phone number identification technology;
[0011] An association relationship between the target user identifier and the target number identifier is established and saved.
[0012] Optionally, the mini-program-based login interface acquires login credential information corresponding to the mini-program, including:
[0013] After the target user launches the mini program, obtaining a login interface for the mini program;
[0014] Call the login interface to obtain the login credential information corresponding to the mini program.
[0015] Optionally, obtaining a target user identifier corresponding to a target user through the login credential information includes:
[0016] When the target user launches the mini-program through the target application, obtaining the user identity information of the target user in the target application;
[0017] Based on the user identity information, a target user identifier of the target user is determined.
[0018] Optionally, determining the target number identifier corresponding to the mobile phone number in the terminal used by the target user based on the loaded access link and mobile phone number identification technology includes:
[0019] Loading the access link based on a preset component;
[0020] After the target user accesses the access link, the mobile phone number of the target user in the terminal is identified based on the mobile phone number identification technology;
[0021] Obtain the target number identifier of the mobile phone number in the mini program.
[0022] Optionally, after establishing and saving the association relationship between the target user identifier and the target number identifier, the method further includes:
[0023] Generate a status identifier corresponding to the target number identifier;
[0024] The state identifier is marked as a valid state identifier.
[0025] Optionally, after establishing and saving the association relationship between the target user identifier and the target number identifier, the method further includes:
[0026] After receiving the login request initiated by the target user, obtaining the associated target number identifier according to the target user identifier of the target user;
[0027] If the status identifier corresponding to the target number identifier is a valid status identifier, allowing the target user to log in to the mini program;
[0028] In the case where the status identifier corresponding to the target number identifier is an invalid status identifier, the target user is denied from logging into the mini program.
[0029] In a second aspect, an embodiment of the present application provides a mobile phone number binding device, comprising:
[0030] A login credential information acquisition module, configured to acquire the login credential information corresponding to the mini-program based on the mini-program's login interface;
[0031] A target user identification acquisition module is used to obtain the target user identification corresponding to the target user through the login credential information;
[0032] A target number identification determination module is used to determine the target number identification corresponding to the mobile phone number in the terminal used by the target user based on the loaded access link and mobile phone number identification technology;
[0033] The association relationship saving module is used to establish and save the association relationship between the target user identifier and the target number identifier.
[0034] Optionally, the login credential information acquisition module includes:
[0035] A login interface acquisition unit, configured to acquire the login interface of the mini-program after the target user launches the mini-program;
[0036] The login credential acquisition unit is used to call the login interface to obtain the login credential information corresponding to the mini program.
[0037] Optionally, the target user identification acquisition module includes:
[0038] A user identity information acquisition unit, configured to acquire the user identity information of the target user in the target application when the target user launches the mini program through the target application;
[0039] A target user identification determination unit is configured to determine a target user identification of the target user based on the user identity information.
[0040] Optionally, the target number identification determination module includes:
[0041] An access link loading unit, configured to load the access link based on a preset component;
[0042] a mobile phone number identification unit, configured to identify the mobile phone number of the target user in the terminal based on mobile phone number identification technology after the target user accesses the access link;
[0043] The number identification acquisition unit is used to obtain the target number identification of the mobile phone number in the mini program.
[0044] Optionally, the device further comprises:
[0045] A status identifier generating module, configured to generate a status identifier corresponding to the target number identifier;
[0046] The status identification marking module is used to mark the status identification as a valid status identification.
[0047] Optionally, the device further comprises:
[0048] A number identification acquisition module is used to acquire an associated target number identification according to the target user identification of the target user after receiving a login request initiated by the target user;
[0049] A mini-program login permission module, configured to allow the target user to log in to the mini-program if the status identifier corresponding to the target number identifier is a valid status identifier;
[0050] The mini-program login rejection module is used to reject the target user from logging into the mini-program when the status identifier corresponding to the target number identifier is an invalid status identifier.
[0051] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0052] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the above-mentioned methods for binding a mobile phone number when executing the program.
[0053] In a fourth aspect, an embodiment of the present application provides a readable storage medium, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute any of the mobile phone number binding methods described above.
[0054] Compared with the prior art, this application has the following advantages:
[0055] The embodiment of the present application provides a method, device, electronic device and storage medium for binding a mobile phone number. Through a login interface based on a mini-program, the login credential information corresponding to the mini-program is obtained. Through the login credential information, the target user identifier corresponding to the target user is obtained. According to the access link loaded in the mini-program and the mobile phone number identification technology, the target number identifier corresponding to the mobile phone number in the terminal used by the target user is determined, and the association relationship between the target user identifier and the target number identifier is established and saved. The embodiment of the present application can accurately identify the user's mobile phone number by adopting the mobile phone number identification technology, and establish an association between the mobile phone number and the user identifier, so that one-click login can be achieved, which can effectively avoid the risk of leakage of the user's SMS verification code and user information leakage. In addition, the user does not need to manually input the entire process, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A flowchart of a method for binding a mobile phone number provided in an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structure of a mobile phone number binding device provided in an embodiment of the present application;
[0058] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0060] Example 1
[0061] Reference Figure 1 , shows a flowchart of the steps of a mobile phone number binding method provided by an embodiment of the present application, such as Figure 1 As shown, the mobile phone number binding method may include the following steps:
[0062] Step 101: Based on the login interface of the mini-program, obtain the login credential information corresponding to the mini-program.
[0063] The embodiment of the present application can be applied to the scenario of quickly obtaining the mobile phone number of the user who logs in to the mini program.
[0064] A mini program is an application that can be used without downloading.
[0065] The login interface refers to the interface provided by the Mini Program to users to log in to the Mini Program.
[0066] In this embodiment, when a user needs to log in to a mini-program, the user can obtain the login credential information (ie, code) corresponding to the mini-program through the login interface of the mini-program.
[0067] The process of obtaining login credential information can be described in detail in conjunction with the following specific implementation methods.
[0068] In a specific implementation of the present application, the above step 101 may include:
[0069] Sub-step A1: After the target user launches the mini program, obtain the login interface of the mini program.
[0070] In this embodiment, the target user refers to a user who wants to log in to the mini program.
[0071] After the target user launches the mini program, the mini program's login interface can be obtained.
[0072] After obtaining the login interface of the mini program, execute sub-step A2.
[0073] Sub-step A2: Call the login interface to obtain the login credential information corresponding to the mini program.
[0074] After obtaining the mini-program's login interface, you can call it to obtain the mini-program's corresponding login credentials. Specifically, when the target user logs in to the mini-program, you can obtain the login interface provided by the open platform to which the mini-program belongs (such as WeChat), such as wx.login(Object objct), and call this interface to obtain the login credentials (code).
[0075] After acquiring the login credential information corresponding to the mini-program based on the mini-program login interface, step 102 is executed.
[0076] Step 102: Obtain a target user identifier corresponding to the target user through the login credential information.
[0077] The target user identifier is a unique identifier used to indicate the identity of the target user. In this example, the target user identifier can be a numeric identifier, such as 1, 2, 3, .... The target user identifier can also be an alphabetic identifier, such as a, b, c, .... In a specific implementation, the target user identifier can also be an identifier in other forms, specifically, it can be determined according to business needs, and this embodiment is not limited to this.
[0078] After obtaining the login credential information corresponding to the mini-program based on the mini-program login interface, the target user identifier corresponding to the target user can be obtained through the login credential information. Specifically, it can be described in detail in combination with the following specific implementation method.
[0079] In a specific implementation of the present application, the above step 102 may include:
[0080] Sub-step B1: When the target user launches the mini-program through the target application, obtain the user identity information of the target user in the target application.
[0081] In this embodiment, the target application refers to the application to which the mini program belongs. For example, when a user logs in to the mini program through WeChat, WeChat is the target application. Or, when a user logs in to the mini program through QQ, QQ is the target application, etc.
[0082] It can be understood that the above examples are merely examples listed for a better understanding of the technical solutions of the embodiments of the present application, and are not intended to be the sole limitation on the embodiments.
[0083] When the target user launches the mini program through the target application (such as scanning the WeChat code to log in to the mini program, etc.), the user identity information of the target user in the target application can be obtained, for example, the target user's username or WeChat ID in WeChat.
[0084] After obtaining the user identity information of the target user in the target application, sub-step B2 is executed.
[0085] Sub-step B2: Determine the target user identifier of the target user based on the user identity information.
[0086] After obtaining the user identity information of the target user in the target application, the target user ID of the target user can be determined based on the user identity information of the target user in the target application. Specifically, the mini program can assign a user ID to the target user based on the user identity information, namely, the target user ID. This process is the process of exchanging user identity information for a target user ID.
[0087] After the target user identifier corresponding to the target user is acquired through the login credential information, step 103 is executed.
[0088] Step 103: Determine the target number identifier corresponding to the mobile phone number in the target user's terminal based on the loaded access link and mobile phone number identification technology.
[0089] After obtaining the target user identifier corresponding to the target user through the login credential information, the target number identifier corresponding to the mobile phone number in the terminal used by the target user can be determined based on the loaded access link and mobile phone number identification technology. Specifically, it can be described in detail in combination with the following specific implementation method.
[0090] In a specific implementation of the present application, step 103 may include:
[0091] Sub-step C1: loading the access link based on a preset component.
[0092] In this embodiment, when the target user logs in to the mini program through the target application, an access link can be loaded through the preset component. The access link can be used to instruct the user to log in to the mini program, for example, through the web-view component, loading the H5 link, etc.
[0093] After the access link is loaded based on the preset component, sub-step C2 is executed.
[0094] Sub-step C2: After the target user accesses the access link, the mobile phone number of the target user in the terminal is identified based on the mobile phone number identification technology.
[0095] After the access link is loaded based on the preset component, when the target user accesses the access link, the mobile phone number of the SIM card in the terminal used by the target user can be identified based on the mobile phone number identification technology.
[0096] After the mobile phone number of the target user in the terminal is identified based on the mobile phone number identification technology, sub-step C3 is executed.
[0097] Sub-step C3: Obtain the target number identifier of the mobile phone number in the mini program.
[0098] After identifying the target user's mobile phone number in the terminal using mobile phone number recognition technology, the target number identifier of the mobile phone number can be obtained in the mini program. Specifically, technologies such as "communication gateway pre-login" and SIM card recognition can be used to accurately identify the user's mobile phone number. The password-free login capability provided by a specific open platform can be used to obtain the current user's mobile phone number. After obtaining the user's mobile phone number, the mini program can assign an identifier to the mobile phone number, namely the target number identifier.
[0099] After the target number identifier corresponding to the mobile phone number in the target user's terminal is determined based on the loaded access link and the mobile phone number identification technology, step 104 is executed.
[0100] Step 104: Establish and save the association relationship between the target user identifier and the target number identifier.
[0101] After determining the target number identifier corresponding to the mobile phone number used by the target user in the terminal based on the loaded access link and mobile phone number identification technology, the association relationship between the target user identifier and the target number identifier can be established and saved to realize the binding of the mini program with the mobile phone number of the target user.
[0102] The embodiment of the present application can accurately identify the user's mobile phone number by adopting mobile phone number recognition technology, and establish an association between the mobile phone number and the user identification, so as to realize one-click login, which can effectively avoid the risk of leakage of user SMS verification code and user information leakage. In addition, the user does not need to input manually during the entire process, thereby improving the user experience.
[0103] In this embodiment, after the association relationship between the target user identifier and the target number identifier is established, the status of the mobile phone number may also be saved. Specifically, this may be described in detail in conjunction with the following specific implementation.
[0104] In a specific implementation of the present application, after step 104, the following steps may also be performed:
[0105] Step D1: Generate a status identifier corresponding to the target number identifier.
[0106] In this embodiment, after the association relationship between the target user identifier and the target number identifier is established, a status identifier corresponding to the target number identifier may be generated. The status identifier may be used to indicate the validity of the mobile phone number corresponding to the target number identifier.
[0107] After the status identifier corresponding to the target number identifier is generated, step D2 is executed.
[0108] Step D2: Mark the status identifier as a valid status identifier.
[0109] After the status identifier corresponding to the target number identifier is generated, the status identifier may be marked as a valid status identifier, that is, the mobile phone number corresponding to the target number identifier at the current time is a valid number.
[0110] The embodiment of the present application can monitor the validity of a mobile phone number in real time by saving the status identifier corresponding to the target number identifier.
[0111] After establishing and saving the above association relationship, when the user logs in subsequently, the user's mobile phone number for logging into the mini program can be quickly obtained. Specifically, it can be described in detail in combination with the following specific implementation method.
[0112] In another specific implementation of the present application, after the above step 104, the following steps may be further included:
[0113] Step E1: After receiving the login request initiated by the target user, the associated target number identifier is obtained according to the target user identifier of the target user.
[0114] In this embodiment, after receiving the login request initiated by the target user to log in to the mini program, the associated target number identifier can be obtained based on the target user's target user identifier. Specifically, when the target user logs in to the mini program through the target application, the target user identifier of the target user can be determined based on the target user's user identity information in the target application, and then, the matching target number identifier can be obtained based on the target user identifier.
[0115] After the associated target number identifier is acquired according to the target user identifier of the target user, step E2 is executed.
[0116] Step E2: When the status identifier corresponding to the target number identifier is a valid status identifier, the target user is allowed to log in to the mini program.
[0117] After the associated target number identifier is acquired according to the target user identifier of the target user, the state identifier corresponding to the target number identifier may be acquired.
[0118] Furthermore, it can be determined whether the status identifier is a valid status identifier.
[0119] When it is determined that the status identifier corresponding to the target number identifier is a valid status identifier, the target user is allowed to log in to the mini program.
[0120] Step E3: When the status identifier corresponding to the target number identifier is an invalid status identifier, deny the target user from logging into the mini program.
[0121] If the status identifier corresponding to the target number identifier is determined to be invalid (e.g., the mobile phone number has been transferred or cancelled), the target user will be denied access to the mini program. If the target user still wants to log in to the mini program, the mobile phone number can be obtained by the user entering the mobile phone number and performing SMS verification. The account is then associated with the verified mobile phone number and the mini program is logged in.
[0122] The mobile phone number binding method provided in the embodiment of the present application obtains the login credential information corresponding to the mini-program through a login interface based on the mini-program, obtains the target user ID corresponding to the target user through the login credential information, determines the target number ID corresponding to the mobile phone number in the terminal used by the target user based on the access link and mobile phone number identification technology loaded in the mini-program, and establishes and saves the association relationship between the target user ID and the target number ID. The embodiment of the present application can accurately identify the user's mobile phone number by adopting mobile phone number identification technology, and establishes an association between the mobile phone number and the user ID, thereby realizing one-click login, which can effectively avoid the risk of leakage of user SMS verification code and user information leakage, and no manual input is required by the user during the whole process, thereby improving the user experience.
[0123] Example 2
[0124] Reference Figure 2 , shows a schematic diagram of the structure of a mobile phone number binding device provided in an embodiment of the present application, such as Figure 2 As shown, the mobile phone number binding device 200 may include the following modules:
[0125] A login credential information acquisition module 210 is configured to acquire the login credential information corresponding to the mini-program based on the mini-program's login interface;
[0126] The target user identification acquisition module 220 is used to obtain the target user identification corresponding to the target user through the login credential information;
[0127] The target number identification determination module 230 is used to determine the target number identification corresponding to the mobile phone number in the terminal used by the target user based on the loaded access link and mobile phone number identification technology;
[0128] The association relationship saving module 240 is configured to establish and save the association relationship between the target user identifier and the target number identifier.
[0129] Optionally, the login credential information acquisition module 210 includes:
[0130] A login interface acquisition unit, configured to acquire the login interface of the mini-program after the target user launches the mini-program;
[0131] The login credential acquisition unit is used to call the login interface to obtain the login credential information corresponding to the mini program.
[0132] Optionally, the target user identification acquisition module 220 includes:
[0133] A user identity information acquisition unit, configured to acquire the user identity information of the target user in the target application when the target user launches the mini program through the target application;
[0134] A target user identification determination unit is configured to determine a target user identification of the target user based on the user identity information.
[0135] Optionally, the target number identification determination module 230 includes:
[0136] An access link loading unit, configured to load the access link based on a preset component;
[0137] a mobile phone number identification unit, configured to identify the mobile phone number of the target user in the terminal based on mobile phone number identification technology after the target user accesses the access link;
[0138] The number identification acquisition unit is used to obtain the target number identification of the mobile phone number in the mini program.
[0139] Optionally, the device further comprises:
[0140] A status identifier generating module, configured to generate a status identifier corresponding to the target number identifier;
[0141] The status identification marking module is used to mark the status identification as a valid status identification.
[0142] Optionally, the device further comprises:
[0143] A number identification acquisition module is used to acquire an associated target number identification according to the target user identification of the target user after receiving a login request initiated by the target user;
[0144] A mini-program login permission module, configured to allow the target user to log in to the mini-program if the status identifier corresponding to the target number identifier is a valid status identifier;
[0145] The mini-program login rejection module is used to reject the target user from logging into the mini-program when the status identifier corresponding to the target number identifier is an invalid status identifier.
[0146] The mobile phone number binding device provided in the embodiment of the present application obtains the login credential information corresponding to the mini-program through a login interface based on the mini-program, obtains the target user ID corresponding to the target user through the login credential information, determines the target number ID corresponding to the mobile phone number in the terminal used by the target user based on the access link and mobile phone number identification technology loaded in the mini-program, and establishes and saves the association relationship between the target user ID and the target number ID. The embodiment of the present application can accurately identify the user's mobile phone number by adopting mobile phone number identification technology, and establishes an association between the mobile phone number and the user ID, thereby realizing one-click login, which can effectively avoid the risk of leakage of user SMS verification code and user information leakage, and no manual input is required by the user during the whole process, thereby improving the user experience.
[0147] For the sake of simplicity, the aforementioned method embodiments are described as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0148] Example 3
[0149] An embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-described methods for binding a mobile phone number is implemented.
[0150] Reference Figure 3 , shows a schematic structural diagram of an electronic device provided by an embodiment of the present application, such as Figure 3 As shown, the electronic device 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 302 or computer program instructions loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The CPU 301, ROM 302, and RAM 403 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0151] Multiple components in the electronic device 300 are connected to the I / O interface 305, including an input unit 306, such as a keyboard, a mouse, a microphone, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a magnetic disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0152] The various processes and procedures described above may be executed by the processing unit 301. For example, the method of any of the above embodiments may be implemented as a computer software program, which is tangibly contained in a computer-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the CPU 301, one or more actions in the method described above may be performed.
[0153] Example 4
[0154] An embodiment of the present application provides a readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any of the mobile phone number binding methods described above.
[0155] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0156] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity, or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, commodity, or device that includes the element.
[0157] The above is a detailed introduction to a mobile phone number binding method, a mobile phone number binding device, an electronic device and a storage medium provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea; at the same time, for general technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A method for binding a mobile phone number, characterized in that: include: Obtaining login credential information corresponding to the mini-program based on a login interface provided by the open platform to which the mini-program belongs; Obtaining a target user identifier corresponding to the target user through the login credential information; Determine the target number identifier corresponding to the mobile phone number in the target user's terminal based on the loaded access link and mobile phone number identification technology; The step of determining the target number identifier corresponding to the mobile phone number in the terminal of the target user based on the loaded access link and mobile phone number identification technology includes: Loading the access link based on a preset component; After the target user accesses the access link, the mobile phone number of the target user in the terminal is identified based on mobile phone number recognition technology; the mobile phone number recognition technology includes communication gateway pre-login technology and SIM card recognition technology; the mobile phone number recognition technology is used to obtain the mobile phone number of the target user through the password-free login capability provided by a specific open platform; Obtain the target number identifier of the mobile phone number in the mini program; An association relationship between the target user identifier and the target number identifier is established and saved to bind the mini program to the target user's mobile phone number.
2. The method according to claim 1, characterized in that The mini-program-based login interface obtains the login credential information corresponding to the mini-program, including: After the target user launches the mini program, obtaining a login interface for the mini program; Call the login interface to obtain the login credential information corresponding to the mini program.
3. The method according to claim 1, characterized in that The step of obtaining a target user identifier corresponding to a target user through the login credential information includes: When the target user launches the mini-program through the target application, obtaining the user identity information of the target user in the target application; Based on the user identity information, a target user identifier of the target user is determined.
4. The method according to claim 1, wherein After establishing and saving the association relationship between the target user identifier and the target number identifier, the method further includes: Generate a status identifier corresponding to the target number identifier; The state identifier is marked as a valid state identifier.
5. The method according to claim 4, characterized in that After establishing and saving the association relationship between the target user identifier and the target number identifier, the method further includes: After receiving the login request initiated by the target user, obtaining the associated target number identifier according to the target user identifier of the target user; If the status identifier corresponding to the target number identifier is a valid status identifier, allowing the target user to log in to the mini program; In the case where the status identifier corresponding to the target number identifier is an invalid status identifier, the target user is denied from logging into the mini program.
6. A mobile phone number binding device, characterized in that: include: A login credential information acquisition module, configured to acquire the login credential information corresponding to the mini-program based on the login interface provided by the open platform to which the mini-program belongs; A target user identification acquisition module is used to obtain the target user identification corresponding to the target user through the login credential information; A target number identification determination module is used to determine the target number identification corresponding to the mobile phone number in the terminal used by the target user based on the loaded access link and mobile phone number identification technology; The target number identification determination module includes: An access link loading unit, configured to load the access link based on a preset component; a mobile phone number identification unit configured to identify the mobile phone number of the target user in the terminal after the target user accesses the access link based on mobile phone number identification technology; the mobile phone number identification technology includes communication gateway pre-login technology and SIM card identification technology; the mobile phone number identification technology is used to obtain the mobile phone number of the target user through the password-free login capability provided by a specific open platform; A number identification acquisition unit, configured to acquire a target number identification of the mobile phone number in the mini program; The association relationship saving module is used to establish and save the association relationship between the target user identifier and the target number identifier to achieve the binding of the mini program with the mobile phone number of the target user.
7. The device according to claim 6, characterized in that The login credential information acquisition module includes: A login interface acquisition unit, configured to acquire the login interface of the mini-program after the target user launches the mini-program; The login credential acquisition unit is used to call the login interface to obtain the login credential information corresponding to the mini program.
8. The device according to claim 6, characterized in that The target user identification acquisition module includes: A user identity information acquisition unit, configured to acquire the user identity information of the target user in the target application when the target user launches the mini program through the target application; A target user identification determination unit is configured to determine a target user identification of the target user based on the user identity information.
9. The device according to claim 6, characterized in that The device further comprises: A status identifier generating module, configured to generate a status identifier corresponding to the target number identifier; The status identification marking module is used to mark the status identification as a valid status identification.
10. The device according to claim 9, characterized in that The device further comprises: A number identification acquisition module is used to acquire an associated target number identification according to the target user identification of the target user after receiving a login request initiated by the target user; A mini-program login permission module, configured to allow the target user to log in to the mini-program if the status identifier corresponding to the target number identifier is a valid status identifier; The mini-program login rejection module is used to reject the target user from logging into the mini-program when the status identifier corresponding to the target number identifier is an invalid status identifier.
11. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the mobile phone number binding method according to any one of claims 1 to 5 when executing the program.
12. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the mobile phone number binding method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Automatic login method, terminal and server
CN103618794A
Member system and method logged in based on phone number verification code
CN107124399A
Authentication method and device for logging in applet
CN110990826A
Account management method, server, terminal and processor
CN113672887A