[go: up one dir, main page]

CN113779542B - One-key login processing method and device, computer equipment and storage medium - Google Patents

One-key login processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113779542B
CN113779542B CN202110916860.XA CN202110916860A CN113779542B CN 113779542 B CN113779542 B CN 113779542B CN 202110916860 A CN202110916860 A CN 202110916860A CN 113779542 B CN113779542 B CN 113779542B
Authority
CN
China
Prior art keywords
communication number
terminal
sim card
login
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110916860.XA
Other languages
Chinese (zh)
Other versions
CN113779542A (en
Inventor
黄成康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shuhe Information Technology Co Ltd
Original Assignee
Shanghai Shuhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shuhe Information Technology Co Ltd filed Critical Shanghai Shuhe Information Technology Co Ltd
Priority to CN202110916860.XA priority Critical patent/CN113779542B/en
Publication of CN113779542A publication Critical patent/CN113779542A/en
Application granted granted Critical
Publication of CN113779542B publication Critical patent/CN113779542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/41User authentication where a single sign-on provides access to a plurality of computers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a processing method, a device, computer equipment and a storage medium for one-key login, wherein the method comprises the following steps: acquiring the equipment authority of a terminal; acquiring a communication number of a terminal according to the equipment authority; if the communication number is successfully acquired, displaying a one-key login page at the terminal according to the communication number; if the communication number fails to be acquired, acquiring SIM card information of the terminal, sending a query request of the communication number to the server according to the SIM card information, and displaying a one-key login page on the terminal according to the communication number when the communication number fed back by the server is received; and performing one-key login processing based on the one-key login page. The method can reduce the dependence on third-party services during one-key login so as to improve the success rate of one-key login.

Description

One-key login processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of account login technologies, and in particular, to a method and an apparatus for processing one-key login, a computer device, and a storage medium.
Background
Currently, a one-key login method provided by a user terminal generally obtains related information of a mobile phone number of a user by calling a third party service, and a one-key login process is shown in fig. 1. As shown in fig. 1, the pre-fetch number of the external provider is unstable when the one-touch login is performed, and the one-touch login cannot be used as long as the pre-fetch number fails.
Therefore, the one-key login mode of the current user account needs to strongly depend on the third-party provider service, but the third-party service is uncontrollable, and if the third-party service is unavailable, the one-key login cannot be directly caused. In addition, the one-key login method requires a third-party service to obtain a mobile phone number each time, which results in cost.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for processing one-touch login, which can reduce the dependency on a third-party service at the time of one-touch login to improve the success rate of one-touch login.
A processing method of one-key login comprises the following steps: acquiring the equipment authority of a terminal; acquiring a communication number of a terminal according to the equipment authority; if the communication number is successfully acquired, displaying a one-key login page at the terminal according to the communication number; if the communication number fails to be acquired, acquiring SIM card information of the terminal, sending a query request of the communication number to the server according to the SIM card information, and displaying a one-key login page on the terminal according to the communication number when the communication number fed back by the server is received; and performing one-key login processing based on the one-key login page.
In one embodiment, the server is configured to query the communication number based on the SIM card information of the terminal and feed back the communication number to the terminal when receiving the query request.
In one embodiment, a method for processing a one-key login further includes: when the equipment authority acquisition fails, calling a third-party service to acquire a communication number of the terminal; and/or calling a third-party service to acquire the communication number of the terminal when the communication number fed back by the server is not received or the information of the failure of the query of the communication number fed back by the server is received within the preset time.
A processing method of one-key login comprises the following steps: receiving a login request of one-key login sent by a terminal, and acquiring SIM card information of the terminal according to the login request; acquiring a communication number of the terminal from a database according to the SIM card information; if the communication number is successfully acquired, responding to the login request according to the communication number, and sending login response information to the terminal; and if the communication number acquisition fails, calling a third-party service to acquire the communication number of the terminal, responding to the login request according to the communication number, and sending login response information to the terminal.
In one embodiment, a method for processing a one-key login further includes: acquiring equipment information of the terminal according to the login request; the reading of the communication number of the terminal from the database according to the SIM card information includes: and reading the communication number of the terminal from the database according to the SIM card information and the equipment information.
In one embodiment, a method for processing a one-key login further includes: if the communication number is not read from the database according to the SIM card information and the equipment information, acquiring a mask communication number of the terminal through a third-party service, and processing the communication number by the mask communication number in a mask mode to obtain the mask communication number; and reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number.
In one embodiment, the processing method of one-key login further includes: when the terminal adopts one-key registration, obtaining the SIM card information, the communication number and the equipment information of the terminal, and binding and storing the SIM card information, the communication number and the equipment information of the terminal; when the terminal adopts the verification code to register, the SIM card information, the communication number and the equipment information of the terminal are obtained, the mask communication number of the terminal is obtained through the third-party service, and if the mask communication number is matched with the communication number, the SIM card information, the communication number and the equipment information of the terminal are bound and stored.
A one-touch login processing device, comprising: the first acquisition module is used for acquiring the equipment authority of the terminal; the second acquisition module is used for acquiring the communication number of the terminal according to the equipment authority; the display module is used for displaying a one-key login page on the terminal according to the communication number if the communication number is successfully acquired, acquiring SIM card information of the terminal if the communication number is unsuccessfully acquired, sending a query request of the communication number to the server according to the SIM card information, and displaying the one-key login page on the terminal according to the communication number when the communication number fed back by the server is received; the login module is used for performing one-key login processing based on the one-key login page;
or, a processing device for one-key login comprises: the receiving module is used for receiving a login request of one-key login sent by the terminal and acquiring SIM card information of the terminal according to the login request; the third acquisition module is used for acquiring the communication number of the terminal from the database according to the SIM card information; and the response module is used for responding to the login request according to the communication number and sending login response information to the terminal if the communication number is successfully acquired, calling the third-party service to acquire the communication number of the terminal if the communication number is unsuccessfully acquired, and sending the login response information to the terminal according to the communication number response login request.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of the embodiments when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
The one-key login processing method, the one-key login processing device, the computer equipment and the storage medium acquire the equipment authority of the terminal, acquire the communication number of the terminal according to the equipment authority, if the communication number is successfully acquired, display a one-key login page on the terminal according to the communication number, if the communication number is unsuccessfully acquired, acquire the SIM card information of the terminal, send a query request of the communication number to the server according to the SIM card information, when the communication number fed back by the server is received, display the one-key login page on the terminal according to the communication number, and perform one-key login processing based on the one-key login page. Therefore, in the one-key login operation process, the communication number of the terminal is acquired through the equipment authority of the terminal, or the communication number of the terminal is acquired through the SIM card information request server side of the terminal, the third-party service is not needed, and the one-key login success rate is improved.
The one-key login processing method, the one-key login processing device, the computer equipment and the storage medium receive a login request of one-key login sent by a terminal, acquire SIM card information of the terminal according to the login request, acquire a communication number of the terminal from a database according to the SIM card information, respond to the login request according to the communication number if the acquisition of the communication number is successful, send login response information to the terminal, call a third-party service to acquire the communication number of the terminal if the acquisition of the communication number is failed, and respond to the login request according to the communication number and send the login response information to the terminal. Therefore, the communication number of the terminal is acquired from the database through the SIM card information, and the communication number is acquired only by relying on the third-party service when the communication number is not acquired through the SIM card information, so that the dependence on the third-party service is reduced, and the success rate of one-key login is improved.
Drawings
FIG. 1 is a flow diagram illustrating a method for processing a one-touch login as currently used in one embodiment;
FIG. 2 is a diagram of an application environment in which a method for processing a one-touch login is performed, according to an embodiment;
FIG. 3 is a flowchart illustrating a method for processing a one-touch login in one embodiment;
FIG. 4 is a diagram illustrating a process of obtaining a communication number in a one-touch login processing method according to an embodiment;
FIG. 5 is a flowchart illustrating a method for processing a one-touch login in another embodiment;
fig. 6 is a schematic flow chart illustrating a process of acquiring a mobile phone number by a server through an exact matching algorithm in one embodiment;
fig. 7 is a schematic flow chart illustrating a process of acquiring a mobile phone number by a near exact match algorithm by a server in an embodiment;
FIG. 8 is a flowchart illustrating a method for processing a one-touch login in an exemplary embodiment;
FIG. 9 is a block diagram of an embodiment of a processing device for one-touch login;
FIG. 10 is a block diagram showing the construction of a one-touch login processing apparatus according to another embodiment;
FIG. 11 is a diagram of the internal structure of a computer device in one embodiment;
fig. 12 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The processing method for one-key login is applied to the application environment shown in fig. 2. As shown in fig. 2, a one-touch login application is installed in the terminal 102, and is used for implementing a one-touch login processing method to provide a one-touch login of an account for a user. The server cluster 104 is a server corresponding to the terminal 102, and is configured to implement a one-key login processing method, so as to provide a background data service support for the one-key login of the terminal 102. The server cluster 106 is a background of the third-party service, and is configured to provide the third-party service to the terminal 102 and the server cluster 104. Specifically, when the terminal 102 provides a one-key login of an account for a user, the device authority of the terminal 102 is acquired, the communication number of the terminal 102 is acquired according to the device authority, if the communication number is successfully acquired, a one-key login page is displayed on the terminal 102 according to the communication number, if the communication number is unsuccessfully acquired, the SIM card information of the terminal 102 is acquired, and an inquiry request of the communication number is sent to the server according to the SIM card information. When the communication number fed back by the server is received, a one-key login page is displayed on the terminal 102 according to the communication number, and one-key login processing is performed based on the one-key login page. When the server cluster 104 provides background data service support for one-key login of the terminal 102, the specific operation flow is as follows: the method comprises the steps of receiving a login request of one-key login sent by a terminal 102, obtaining SIM card information of the terminal 102 according to the login request, obtaining a communication number of the terminal 102 from a database according to the SIM card information, responding to the login request according to the communication number if the communication number is successfully obtained, sending login response information to the terminal 102, calling a third-party service to obtain the communication number of the terminal 102 if the communication number is failed to obtain, responding to the login request according to the communication number, and sending login response information to the terminal 102. The terminal 102 may be a mobile phone, a notebook computer, or the like. One or more servers may be included in both server cluster 104 and server cluster 106.
In one embodiment, as shown in fig. 3, a method for processing one-touch login is provided, which is described by taking the method as an example applied to the terminal 102 in fig. 2, and includes the following steps:
s302, acquiring the equipment authority of the terminal.
In this embodiment, an application program for providing one-key login for a user is installed on the terminal. And when the application program is started and enters a one-key login process, judging whether the application program has the equipment authority of the terminal. And if so, directly acquiring the equipment authority of the terminal. And if not, requesting to acquire the equipment authority of the terminal. For example, the application program has no authority, and the request for acquiring the authority can be displayed on the terminal interface at the moment. And the terminal user determines the authority given to the application program through the display interface so that the application program can acquire the equipment authority of the terminal. And when the application program obtains the equipment right of the terminal, the information on the terminal can be read. For example, the information of the communication number on the terminal can be read.
And S304, acquiring the communication number of the terminal according to the equipment authority.
After the application program obtains the equipment authority of the terminal, the information in the equipment authority range on the terminal can be read. In this embodiment, the application program obtains the communication number of the terminal according to the device authority. The communication number is used as account information for one-key login. The communication number may be a cell phone number.
And S306, if the communication number is successfully acquired, displaying a one-key login page on the terminal according to the communication number.
In this embodiment, when the application program obtains the communication number of the terminal according to the device permission, the communication number may not be obtained successfully, or the communication number may be obtained successfully. And if the communication number is acquired, displaying a one-key login page at the terminal according to the communication number. And the one-key login page displays information of one-key login of the user. The one-key login information comprises a communication account used by one-key login. The communication account number may be a one-touch account. When a user triggers a one-key login control on the one-key login page, the application program communicates with the background server to realize one-key login.
S308, if the communication number fails to be obtained, obtaining the SIM card information of the terminal, sending a communication number query request to the server according to the SIM card information, and when the communication number fed back by the server is received, displaying a one-key login page on the terminal according to the communication number.
In this embodiment, if the communication number of the terminal fails to be acquired according to the device permission, the application program acquires the SIM card information of the terminal, and sends a query request of the communication number to the server based on the SIM card information. SIM card: subscriber Identity Module, subscriber Identity Module. And when the server receives the inquiry request of the communication number containing the SIM card information, the server acquires the communication number according to the SIM card information and feeds back the communication number to the terminal. And when the application program of the terminal receives the communication number, displaying a one-key login page at the terminal according to the communication number.
S310, one-key login processing is carried out based on the one-key login page.
In this embodiment, the one-touch login page is used to provide a trigger operation of one-touch login for a user. The one-key login page comprises login information required by one-key login. For example, account information and password information required for one-touch login. When a user triggers a login control on a one-key login page, the application program obtains the one-key login processing based on the one-key login page. The one-key login processing comprises the steps of obtaining information on a one-key login page, sending a login request to a background server based on the information on the one-key login page, and receiving response information of the login request fed back by the background server.
The one-key login processing method includes the steps of obtaining equipment authority of a terminal, obtaining a communication number of the terminal according to the equipment authority, if the communication number is successfully obtained, displaying a one-key login page on the terminal according to the communication number, if the communication number is unsuccessfully obtained, obtaining SIM card information of the terminal, sending a query request of the communication number to a server according to the SIM card information, when the communication number fed back by the server is received, displaying the one-key login page on the terminal according to the communication number, and performing one-key login processing based on the one-key login page. Therefore, in the one-key login operation process, the communication number of the terminal is acquired through the equipment authority of the terminal, or the communication number of the terminal is acquired through the SIM card information request server side of the terminal, the third-party service is not required to be relied on, and the one-key login success rate is improved.
In an embodiment, the server is configured to query a communication number based on SIM card information of the terminal and feed back the communication number to the terminal when receiving the query request.
In this embodiment, the SIM card information and the communication account information corresponding to the SIM card information are stored in the background server of the terminal. When the server receives a query request of the communication number sent by the terminal, the SIM card information is analyzed from the query request, and then the communication number is matched according to the SIM card information and fed back to the terminal. Therefore, the communication number can be obtained without calling a third-party service, the dependence on the third-party service is reduced, and the success rate of one-key login is improved.
In an embodiment, after the step of obtaining the communication number of the terminal according to the device right, the method further includes: when the equipment authority acquisition fails, calling a third-party service to acquire the communication number of the terminal; and/or calling a third-party service to acquire the communication number of the terminal when the communication number fed back by the server is not received within the preset time or the information of the query failure of the communication number fed back by the server is received.
In this embodiment, the terminal first obtains the communication number of the terminal through the device right of the terminal. When the terminal cannot acquire the equipment right, the third-party service can be adopted to acquire the communication number of the terminal so as to improve the success rate of one-key login. Or when the terminal acquires the equipment authority but cannot acquire the communication number of the terminal based on the equipment authority, calling the third-party service to acquire the communication number of the terminal. For example, when a communication number fed back by the server is not received within a preset time, it is determined that the communication number of the terminal cannot be acquired based on the device permission. Or when receiving the information of the failed inquiry of the communication number fed back by the server, judging that the communication number of the terminal cannot be acquired based on the equipment authority.
An embodiment is provided below to describe in detail the process of acquiring the communication number in the above processing method for one-touch login:
as shown in fig. 4, the terminal is a mobile phone device, and the communication number is a mobile phone number. And when the application program is started, acquiring the equipment authority of the mobile phone. Further, a mobile phone number of a mobile phone manufacturer is obtained. And if the acquisition fails, sending a request to the server, and performing library collision by the server to acquire the mobile phone number. The database collision means that the server performs data matching in the database through the identification information of the mobile phone to find out the mobile phone number matched with the identification information of the mobile phone. And if the mobile phone number is failed to be acquired through the server side collision library, acquiring the mobile phone number through the third-party operator service.
In the specific embodiment, the mobile phone number of the equipment mobile phone manufacturer is preferentially acquired, and if the mobile phone number cannot be acquired, the server interface SIM card number is called to collide with the database for acquisition. And if the mobile phone number cannot be acquired, the bottom logic is carried out, and a third-party service is called to acquire the mobile phone number.
In one embodiment, as shown in fig. 5, a method for processing one-touch login is provided, which is described by taking the method as an example applied to the server cluster 104 in fig. 2, and includes the following steps:
s502, receiving a login request of one-key login sent by the terminal, and acquiring SIM card information of the terminal according to the login request.
In this embodiment, when a login request of one-key login sent by a terminal is received, SIM card information of the terminal corresponding to the login request is obtained. The login request may include identification information of the terminal, and the server acquires the SIM card information of the terminal through the identification information of the terminal. The server side may further analyze the login request to obtain the SIM card information of the terminal.
S504, the communication number of the terminal is obtained from the database according to the SIM card information.
In this embodiment, the database in the background stores the SIM card information and the communication number of the terminal, and the communication number is associated and bound with the SIM card information. The SIM card information and the communication number of the terminal are uploaded to the server side by the terminal after the user registers the terminal and are stored in the database by the server side. And the server acquires the communication number of the terminal from the database according to the SIM card information. Specifically, the terminal may be a mobile phone, and the communication number may be a mobile phone number.
Specifically, the communication number is a mobile phone number, and a mode of acquiring the communication number of the terminal from the database through the SIM card information is called an exact matching algorithm. The process of the server obtaining the mobile phone number through the exact matching algorithm can be seen in fig. 6. For example, the accurate data uid and the mobile phone number are accurately inquired according to the SIM card number, and if the data is inquired, the mobile phone number is obtained after the database is successfully collided. Wherein the uid is a user ID. Generally, different SIM card numbers can be bound to the mobile phone number, and the SIM card number is only one mobile phone number.
S506, if the communication number is successfully acquired, the login request is responded according to the communication number, and login response information is sent to the terminal.
In this embodiment, if the server acquires the communication number from the database according to the SIM card information, the server responds to the login request according to the communication number. Specifically, when the server judges that the user of the terminal is registered according to the communication number, the server responds to the login request of the terminal. And further, acquiring login response information corresponding to the communication number. Specifically, the related information of the user is obtained according to the communication number, and the related information comprises the personal information of the user and the history information of the user in the application program. And obtaining login response information based on the relevant information of the user, and sending the login response information to the terminal.
And S508, if the communication number acquisition fails, calling the third-party service to acquire the communication number of the terminal, responding to the login request according to the communication number, and sending login response information to the terminal.
In this embodiment, if the server fails to obtain the communication number from the database according to the SIM card information, it may be preliminarily determined that the communication number of the terminal is not stored in the database. And calling the third-party service to acquire the communication number of the terminal, so as to respond to the login request according to the communication number and send login response information to the terminal. Specifically, the terminal may be a mobile phone, and the communication number may be a mobile phone number. The third party service may be a third party operator service at this time.
The one-key login processing method includes the steps of receiving a login request of one-key login sent by a terminal, obtaining SIM card information of the terminal according to the login request, obtaining a communication number of the terminal from a database according to the SIM card information, responding to the login request according to the communication number if the communication number is successfully obtained, sending login response information to the terminal, calling a third-party service to obtain the communication number of the terminal if the communication number is unsuccessfully obtained, responding to the login request according to the communication number, and sending the login response information to the terminal. Therefore, the communication number of the terminal is acquired from the database through the SIM card information, and the communication number is acquired only by relying on the third-party service when the communication number is not acquired through the SIM card information, so that the dependence on the third-party service is reduced, and the success rate of one-key login is improved.
In an embodiment, before the step of reading the communication number of the terminal from the database according to the SIM card information, the method further includes: acquiring equipment information of the terminal according to the login request; the step of reading the communication number of the terminal from the database according to the SIM card information comprises the following steps: and reading the communication number of the terminal from the database according to the SIM card information and the equipment information.
In this embodiment, the device information may be an Identity document (ID number). The device ID is a unique ID generated from device hardware information of the terminal within the application program, and is used to uniquely identify the terminal. The server reads the communication number of the terminal from the database according to the SIM card information and the equipment information, so that the accuracy of obtaining the communication number can be improved. Specifically, the server side accurately inquires the mobile phone number according to the SIM card number and the equipment ID, and if data is inquired, the server side successfully hits the database and reads the mobile phone number of the terminal.
In an embodiment, after the step of reading the communication number of the terminal from the database according to the SIM card information and the device information, the method further includes: if the communication number is not read from the database according to the SIM card information and the equipment information, acquiring a mask communication number of the terminal through a third-party service, and processing the communication number by the mask communication number in a mask mode to obtain the mask communication number; and reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number.
In this embodiment, when storing the communication number of the terminal, the database binds and stores the communication number with the SIM card information, the device information, and the mask communication number. If the communication number is not read from the database according to the SIM card information and the equipment information, the mask code communication number of the terminal can be obtained through the third-party service, and the communication number of the terminal is read from the database according to the SIM card information, the equipment information and the mask code communication number, so that the accuracy of obtaining the communication number can be improved.
For example, the communication number is a mobile phone number. The mobile phone number actively input by the user is generally the number of the mobile phone card used by the user, and the mask mobile phone number service can be freely obtained through third-party service. The mask mobile phone number is matched with the clear mobile phone number, and the mobile phone number of the current SIM card can be presumed to be the mobile phone number actively input by the user. Therefore, when the mobile phone number of the terminal is acquired, the mask code communication number of the terminal is added for matching and identification, and the accuracy of acquiring the communication number is improved.
For the above embodiment, a specific embodiment is given below:
as shown in fig. 7, the terminal is a mobile phone, and the communication number is a mobile phone number. The database records the relevant information of the mobile phone through a collision table. When the mobile phone number is obtained by near exact matching, the processing is performed through the flow shown in fig. 7, which is specifically shown in fig. 7.
In an embodiment, before the step of reading the communication number of the terminal from the database according to the SIM card information, the device information, and the mask communication number, the method further includes: when the terminal adopts one-key registration, obtaining the SIM card information, the communication number and the equipment information of the terminal, and binding and storing the SIM card information, the communication number and the equipment information of the terminal; when the terminal adopts the verification code to register, obtaining the SIM card information, the communication number and the equipment information of the terminal, obtaining the mask communication number of the terminal through the third-party service, and binding and storing the SIM card information, the communication number and the equipment information of the terminal if the mask communication number is matched with the communication number.
In this embodiment, the server stores the SIM card information, the communication number, and the device information in the database through the user registration information. Specifically, the data source of the server-side database table crash includes the following two ways:
1) When the user uses one key to register, the uid is generated, and the uid, the SIM card number, the mobile phone number and the equipment ID are stored in a database, and accurate data is recorded. Wherein the uid is a user ID. At the moment, the external charging is only once, so that the implementation cost of one-key login is reduced.
2) When a user registers by using the verification code, a supplier interface is called to prefetch a mask mobile phone number, if the mobile phone number registered by the verification code is matched with the mask mobile phone number, the uid, the SIM card number, the mobile phone number and the equipment ID are stored in a database while the uid is generated, and accurate data is recorded. No fee is charged externally at this time.
The method for processing one-key login applied to the terminal and the method for processing one-key login applied to the server described in the above embodiments provide a specific embodiment. The specific implementation flow is shown in fig. 8 to explain that the terminal and the server perform information interaction to implement one-key login of the terminal.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
The present application further provides a device for processing one-key login, as shown in fig. 9, the device includes a first obtaining module 902, a second obtaining module 904, a displaying module 906, and a login module 908. A first obtaining module 902, configured to obtain a device permission of a terminal; a second obtaining module 904, configured to obtain a communication number of the terminal according to the device permission; the display module 906 is configured to display a one-key login page at the terminal according to the communication number if the communication number is successfully acquired, acquire SIM card information of the terminal if the communication number is unsuccessfully acquired, send a query request of the communication number to the server according to the SIM card information, and display the one-key login page at the terminal according to the communication number when the communication number fed back by the server is received; a login module 908, configured to perform one-key login processing based on the one-key login page.
In one embodiment, the server is configured to query a communication number based on SIM card information of the terminal and feed back the communication number to the terminal when receiving the query request.
In one embodiment, the processing device for one-key login further comprises a calling module. The calling module is used for calling the third-party service to acquire the communication number of the terminal when the equipment permission acquisition fails; and/or calling a third-party service to acquire the communication number of the terminal when the communication number fed back by the server is not received or the information of the failure of the query of the communication number fed back by the server is received within the preset time.
The present application further provides a processing apparatus for one-touch login, as shown in fig. 10, the apparatus includes a receiving module 1002, a third obtaining module 1004, and a responding module 1006. The receiving module 1002 is configured to receive a login request sent by a terminal for one-key login, and obtain SIM card information of the terminal according to the login request; a third obtaining module 1004, configured to obtain a communication number of the terminal from the database according to the SIM card information; a response module 1006, configured to, if the obtaining of the communication number is successful, respond to the login request according to the communication number and send login response information to the terminal, and if the obtaining of the communication number is failed, invoke the third-party service to obtain the communication number of the terminal, and respond to the login request according to the communication number and send the login response information to the terminal.
In one embodiment, the processing apparatus for one-key login further includes a fourth obtaining module, configured to obtain device information of the terminal according to the login request; the reading of the communication number of the terminal from the database according to the SIM card information includes: and reading the communication number of the terminal from the database according to the SIM card information and the equipment information.
In one embodiment, the device for processing one-key login further comprises a fifth obtaining module, configured to obtain a mask communication number of the terminal through a third-party service if the communication number is not read from the database according to the SIM card information and the device information, where the mask communication number is obtained by processing the communication number in a mask manner; and reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number.
In one embodiment, the device for processing one-key login further comprises a storage module, configured to, when the terminal performs one-key registration, acquire SIM card information, a communication number, and device information of the terminal, and bind and store the SIM card information, the communication number, and the device information of the terminal; when the terminal adopts the verification code to register, the SIM card information, the communication number and the equipment information of the terminal are obtained, the mask communication number of the terminal is obtained through the third-party service, and if the mask communication number is matched with the communication number, the SIM card information, the communication number and the equipment information of the terminal are bound and stored.
For specific limitations of the processing device for one-touch login, reference may be made to the above limitations on the processing method for one-touch login, and details are not described here. The modules in the processing device for one-touch login can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a one-touch-entry processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the computer equipment is used for connecting with an external terminal so as to perform data interaction with the terminal. The computer program is executed by a processor to implement a one-touch-entry processing method.
It will be appreciated by those skilled in the art that the configurations shown in fig. 11 and 12 are block diagrams of only some of the configurations relevant to the present application, and do not constitute a limitation on the computing devices to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring the equipment authority of a terminal; acquiring a communication number of a terminal according to the equipment authority; if the communication number is successfully acquired, displaying a one-key login page at the terminal according to the communication number, if the communication number is unsuccessfully acquired, acquiring SIM card information of the terminal, sending a query request of the communication number to the server according to the SIM card information, and when the communication number fed back by the server is received, displaying the one-key login page at the terminal according to the communication number; and performing one-key login processing based on the one-key login page.
In one embodiment, the server is used for inquiring the communication number based on the SIM card information of the terminal and feeding back the communication number to the terminal when receiving the inquiry request.
In one embodiment, the processor, when executing the computer program, performs the steps of: when the equipment authority acquisition fails, calling a third-party service to acquire a communication number of the terminal; and/or calling a third-party service to acquire the communication number of the terminal when the communication number fed back by the server is not received within the preset time or the information of the query failure of the communication number fed back by the server is received.
In one embodiment, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: receiving a login request of one-key login sent by a terminal, and acquiring SIM card information of the terminal according to the login request; acquiring a communication number of the terminal from a database according to the SIM card information; if the communication number is successfully acquired, the login response information is sent to the terminal according to the communication number response login request, if the communication number acquisition fails, the third-party service is called to acquire the communication number of the terminal, and the login response information is sent to the terminal according to the communication number response login request.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring equipment information of the terminal according to the login request; the reading of the communication number of the terminal from the database according to the SIM card information includes: and reading the communication number of the terminal from the database according to the SIM card information and the equipment information.
In one embodiment, the processor, when executing the computer program, performs the steps of: if the communication number is not read from the database according to the SIM card information and the equipment information, acquiring a mask communication number of the terminal through a third-party service, and processing the communication number by the mask communication number in a mask mode to obtain the mask communication number; and reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number.
In one embodiment, the processor, when executing the computer program, performs the steps of: when the terminal adopts one-key registration, obtaining the SIM card information, the communication number and the equipment information of the terminal, and binding and storing the SIM card information, the communication number and the equipment information of the terminal; when the terminal adopts the verification code to register, the SIM card information, the communication number and the equipment information of the terminal are obtained, the mask communication number of the terminal is obtained through the third-party service, and if the mask communication number is matched with the communication number, the SIM card information, the communication number and the equipment information of the terminal are bound and stored.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of: acquiring the equipment authority of a terminal; acquiring a communication number of a terminal according to the equipment authority; if the communication number is successfully acquired, displaying a one-key login page at the terminal according to the communication number, if the communication number is unsuccessfully acquired, acquiring SIM card information of the terminal, sending a query request of the communication number to the server according to the SIM card information, and when the communication number fed back by the server is received, displaying the one-key login page at the terminal according to the communication number; and performing one-key login processing based on the one-key login page.
In one embodiment, the server is configured to query a communication number based on SIM card information of the terminal and feed back the communication number to the terminal when receiving the query request.
In one embodiment, the computer program when executed by a processor performs the steps of: when the equipment authority acquisition fails, calling a third-party service to acquire the communication number of the terminal; and/or calling a third-party service to acquire the communication number of the terminal when the communication number fed back by the server is not received or the information of the failure of the query of the communication number fed back by the server is received within the preset time.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of: receiving a login request of one-key login sent by a terminal, and acquiring SIM card information of the terminal according to the login request; acquiring a communication number of the terminal from a database according to the SIM card information; if the communication number is successfully acquired, the login response information is sent to the terminal according to the communication number response login request, if the communication number acquisition fails, the third-party service is called to acquire the communication number of the terminal, and the login response information is sent to the terminal according to the communication number response login request.
In one embodiment, the computer program when executed by the processor performs the steps of: acquiring equipment information of the terminal according to the login request; the reading of the communication number of the terminal from the database according to the SIM card information includes: and reading the communication number of the terminal from the database according to the SIM card information and the equipment information.
In one embodiment, the computer program when executed by the processor performs the steps of: if the communication number is not read from the database according to the SIM card information and the equipment information, acquiring a mask communication number of the terminal through a third-party service, and processing the communication number by the mask communication number in a mask mode to obtain the mask communication number; and reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number.
In one embodiment, the computer program when executed by the processor performs the steps of: when the terminal adopts one-key registration, obtaining the SIM card information, the communication number and the equipment information of the terminal, and binding and storing the SIM card information, the communication number and the equipment information of the terminal; when the terminal adopts the verification code to register, the SIM card information, the communication number and the equipment information of the terminal are obtained, the mask communication number of the terminal is obtained through the third-party service, and if the mask communication number is matched with the communication number, the SIM card information, the communication number and the equipment information of the terminal are bound and stored.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method for processing a one-touch login, the method comprising:
acquiring the equipment authority of a terminal;
acquiring a communication number of a terminal according to the equipment authority;
if the communication number is successfully acquired, displaying a one-key login page at the terminal according to the communication number;
if the communication number fails to be acquired, acquiring SIM card information of the terminal, sending a query request of the communication number to a server according to the SIM card information, and displaying a one-key login page on the terminal according to the communication number when the communication number fed back by the server is received;
performing one-key login processing based on the one-key login page;
the server side obtains SIM card information of the terminal and equipment information of the terminal according to the query request, reads a communication number of the terminal from a database according to the SIM card information and the equipment information, obtains a mask communication number of the terminal through a third-party service if the communication number is not read from the database according to the SIM card information and the equipment information, processes the communication number through a mask mode according to the mask communication number, reads the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number, responds to the query request according to the communication number if the communication number is successfully obtained, sends the communication number to the terminal, calls the third-party service to obtain the communication number of the terminal if the communication number is failed to obtain, responds to the query request according to the communication number, and sends the communication number to the terminal.
2. The method of claim 1, further comprising:
when the equipment authority acquisition fails, calling a third-party service to acquire the communication number of the terminal;
and/or the presence of a gas in the gas,
and when the communication number fed back by the server is not received or the information of the failure of the inquiry of the communication number fed back by the server is received within the preset time, calling a third-party service to obtain the communication number of the terminal.
3. A method for processing one-touch login, the method comprising:
receiving a login request of one-key login sent by a terminal, and acquiring SIM card information of the terminal according to the login request;
acquiring equipment information of the terminal according to the login request;
reading the communication number of the terminal from a database according to the SIM card information and the equipment information;
if the communication number is not read from the database according to the SIM card information and the equipment information, obtaining a mask communication number of the terminal through a third-party service, and processing the communication number through a mask mode by the mask communication number;
reading the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number;
if the communication number is successfully acquired, responding to the login request according to the communication number, and sending login response information to the terminal;
and if the communication number acquisition fails, calling a third-party service to acquire the communication number of the terminal, responding to the login request according to the communication number, and sending login response information to the terminal.
4. The method of claim 3, further comprising:
when the terminal adopts one-key registration, obtaining SIM card information, communication numbers and equipment information of the terminal, and binding and storing the SIM card information, the communication numbers and the equipment information of the terminal;
when the terminal adopts verification code registration, SIM card information, communication number and equipment information of the terminal are obtained, a mask communication number of the terminal is obtained through third-party service, and if the mask communication number is matched with the communication number, the SIM card information, the communication number and the equipment information of the terminal are bound and stored.
5. A processing apparatus for one-touch login, the processing apparatus comprising:
the first acquisition module is used for acquiring the equipment authority of the terminal;
the second acquisition module is used for acquiring the communication number of the terminal according to the equipment authority;
the display module is used for displaying a one-key login page on the terminal according to the communication number if the communication number is successfully acquired, acquiring SIM card information of the terminal if the communication number is unsuccessfully acquired, sending a query request of the communication number to a server according to the SIM card information, and displaying the one-key login page on the terminal according to the communication number when the communication number fed back by the server is received;
the login module is used for performing one-key login processing based on the one-key login page;
the server side obtains SIM card information of the terminal and equipment information of the terminal according to the query request, reads a communication number of the terminal from a database according to the SIM card information and the equipment information, obtains a mask communication number of the terminal through a third-party service if the communication number is not read from the database according to the SIM card information and the equipment information, processes the communication number through a mask mode according to the mask communication number, reads the communication number of the terminal from the database according to the SIM card information, the equipment information and the mask communication number, responds to the query request according to the communication number if the communication number is successfully obtained, sends the communication number to the terminal, calls the third-party service to obtain the communication number of the terminal if the communication number is failed to obtain, responds to the query request according to the communication number, and sends the communication number to the terminal.
6. A processing apparatus for one-touch login, the processing apparatus comprising:
the terminal comprises a receiving module, a login module and a processing module, wherein the receiving module is used for receiving a login request of one-key login sent by a terminal, acquiring SIM card information of the terminal according to the login request and acquiring equipment information of the terminal according to the login request;
a third obtaining module, configured to read a communication number of the terminal from a database according to the SIM card information and the device information, obtain a mask communication number of the terminal through a third-party service if the communication number is not read from the database according to the SIM card information and the device information, where the mask communication number is obtained by processing the communication number in a mask manner, and read the communication number of the terminal from the database according to the SIM card information, the device information, and the mask communication number;
and the response module is used for responding the login request according to the communication number and sending login response information to the terminal if the communication number is successfully acquired, calling a third-party service to acquire the communication number of the terminal if the communication number is unsuccessfully acquired, responding the login request according to the communication number and sending the login response information to the terminal.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 2 are implemented when the computer program is executed by the processor, or in that the steps of the method of any of claims 3 to 4 are implemented when the computer program is executed by the processor.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 2, or which, when being executed by a processor, carries out the steps of the method of any one of claims 3 to 4.
CN202110916860.XA 2021-08-11 2021-08-11 One-key login processing method and device, computer equipment and storage medium Active CN113779542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110916860.XA CN113779542B (en) 2021-08-11 2021-08-11 One-key login processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110916860.XA CN113779542B (en) 2021-08-11 2021-08-11 One-key login processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113779542A CN113779542A (en) 2021-12-10
CN113779542B true CN113779542B (en) 2023-03-17

Family

ID=78837241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110916860.XA Active CN113779542B (en) 2021-08-11 2021-08-11 One-key login processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113779542B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766938B (en) * 2022-10-27 2025-06-17 曹庆波 A method, device and system for preventing SIM card from being tracked

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581108B (en) * 2012-07-19 2017-05-03 阿里巴巴集团控股有限公司 Login authentication method, login authentication client, login authentication server and login authentication system
CN103618794B (en) * 2013-11-29 2017-11-14 北京奇虎科技有限公司 Method, terminal and the server of automated log on
CN107566421B (en) * 2017-10-30 2020-05-26 江西博瑞彤芸科技有限公司 Login method
CN109787991B (en) * 2019-01-31 2022-02-25 平安科技(深圳)有限公司 Password-free login method, device, device and storage medium based on mobile terminal
CN112738046B (en) * 2020-12-24 2023-04-07 中国银联股份有限公司 One-key login method, terminal and system server
CN113157375A (en) * 2021-04-27 2021-07-23 北京达佳互联信息技术有限公司 Content display method, device, equipment, system and storage medium

Also Published As

Publication number Publication date
CN113779542A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN110633160A (en) Interface calling method and device, computer equipment and storage medium
CN111275448A (en) Face data processing method and device and computer equipment
CN111866850A (en) Configuration file switching method and device, computer equipment and storage medium
CN111259358B (en) Login method, login device, computer equipment and storage medium
CN112261717B (en) Network registration method, device, user terminal and storage medium
US20220417328A1 (en) Internet of vehicle service activation method, and computer device, and storage medium
CN110555769A (en) Block chain transaction data processing method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN109688121B (en) Resource data acquisition method and device, computer equipment and storage medium
CN110909330A (en) Vehicle networking platform authorization method, device, equipment and storage medium
WO2019080421A1 (en) Vehicle insurance message push method and apparatus, computer storage medium and computer device
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN111328068B (en) Card writing method and device, computer equipment and storage medium
CN109257426B (en) Service line resource loading method and device, computer equipment and storage medium
CN111552942A (en) Identity authentication method, system, device and computer storage medium
CN113779542B (en) One-key login processing method and device, computer equipment and storage medium
CN111355800A (en) Service processing method, device, equipment and storage medium
CN112785288A (en) Order data processing method and device, computer equipment and storage medium
CN111400684B (en) Electronic license information acquisition method, system, device, equipment and storage medium
CN110597815A (en) Service processing method, device, computer equipment and storage medium
CN109447825A (en) Method, apparatus, computer equipment and the storage medium of online declaration form processing
CN110516172B (en) Resource calling method and device, computer equipment and storage medium
CN112085543A (en) Electronic invoice generation method and device and storage medium
CN110134900A (en) Page data sharing method, device, computer equipment and storage medium
CN111372235B (en) Identification card configuration information determination method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant