CN111107093B - Application login method, device, terminal and storage medium - Google Patents

Application login method, device, terminal and storage medium Download PDF

Info

Publication number
CN111107093B
CN111107093B CN201911359174.6A CN201911359174A CN111107093B CN 111107093 B CN111107093 B CN 111107093B CN 201911359174 A CN201911359174 A CN 201911359174A CN 111107093 B CN111107093 B CN 111107093B
Authority
CN
China
Prior art keywords
network
current
current terminal
wifi
login
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
CN201911359174.6A
Other languages
Chinese (zh)
Other versions
CN111107093A (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.)
Suzhou Dajiaying Information Technology Co Ltd
Original Assignee
Suzhou Dajiaying 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 Suzhou Dajiaying Information Technology Co Ltd filed Critical Suzhou Dajiaying Information Technology Co Ltd
Priority to CN201911359174.6A priority Critical patent/CN111107093B/en
Publication of CN111107093A publication Critical patent/CN111107093A/en
Application granted granted Critical
Publication of CN111107093B publication Critical patent/CN111107093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0853Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an application login method, an application login device, a terminal and a storage medium, wherein the method comprises the following steps: when a pre-login instruction of a target application is received, detecting the network type of current transmission data of a current terminal; if the network type of the current data transmission of the current terminal is a WiFi network, closing the WiFi network; setting the network type of current data transmission of the current terminal as a mobile network; acquiring a communication number of a current terminal based on a mobile network; and when a login instruction of the target application is received, verifying and logging in the target application according to the communication number of the current terminal. According to the invention, when the flow switch of the current terminal is not turned on and the WiFi switch and the flow switch are simultaneously turned on, the network type of the current data transmitted by the current terminal can be automatically set as the mobile network, so that an operator can acquire and verify the mobile phone number of a user through the data flow channel, and the situation that a data packet is forcibly sent to the operator through the flow channel for number fetching or verification is avoided.

Description

Application login method, device, terminal and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an application login method, an application login device, a terminal, and a storage medium.
Background
With the continuous development of communication technology, terminal equipment is continuously upgraded, and meanwhile, various applications are developed endlessly, so that great convenience is brought to the life of people. The method brings great convenience to the life of people due to various applications, and brings inconvenience to people due to the safety authentication problem during login.
The traditional security authentication mode needs a user to provide personal information such as an account, a password and the like, and is complex, so that the operation of the user is complicated during authentication and login. The authentication method of one-key login is widely applied at present due to simple operation.
The existing one-key login authentication mode does not require a user to input a verification code and a password, but the process can only be carried out by an operator to acquire and verify the mobile phone number of the user, because the number fetching capability of the operator is realized by a data gateway, the number fetching process can be carried out only under the condition that a flow switch is opened and opened, and when the flow switch is not opened, the user needs to manually open the flow switch to be opened, so that the use experience of the user is influenced. In addition, under the condition that the WiFi switch and the flow switch are simultaneously turned on, the data packet can be forcibly sent to an operator through a flow channel for number fetching or verification, the failure rate of the process is high, and the user experience is poor.
Disclosure of Invention
The invention aims to provide an application login method, an application login device, a terminal and a storage medium, and aims to solve the technical problems that in the existing one-key login authentication mode, when a flow switch is not turned on, a user needs to manually turn on the flow switch to influence the use experience of the user, and when a WiFi switch and the flow switch are turned on simultaneously, a data packet is forcibly sent to an operator through a flow channel to be subjected to number fetching or verification, the failure rate of the process is high, and the user experience is poor.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, the present invention provides an application login method, where the method includes:
when a pre-login instruction of a target application is received, detecting the network type of current transmission data of a current terminal;
if the network type of the current data transmission of the current terminal is a WiFi network, closing the WiFi network;
setting the network type of the current transmission data of the current terminal as a mobile network;
acquiring the communication number of the current terminal based on the mobile network;
and when a login instruction of the target application is received, verifying and logging in the target application according to the communication number of the current terminal.
In one embodiment, before the step of detecting a network type of data currently transmitted by the current terminal when the pre-login instruction of the target application is received, the method further includes:
the dynamic registration is used for monitoring the broadcast of the WiFi network state, wherein the WiFi network state comprises the opening state of the WiFi network and the closing state of the WiFi network.
In one embodiment, the step of detecting the network type of the data currently transmitted by the current terminal when the pre-login instruction of the target application is received comprises:
when a pre-login instruction of a target application is received, monitoring the current network state, and acquiring a network information object in a networking state;
detecting whether the current network is successfully connected or not through the network information object;
and if the current network connection is successful, detecting the network type of the current transmission data of the current terminal.
In one embodiment, if the network type of the current data transmission of the current terminal is a WiFi network, the step of turning off the WiFi network includes:
if the network type of the current data transmitted by the current terminal is a WiFi network, acquiring a WiFi network manager of the system;
and turning off the WiFi network based on the WiFi network manager.
In one embodiment, the step of setting the network type of the current data transmitted by the current terminal as a mobile network includes:
acquiring a network connection manager through a reflection mechanism;
and setting the network type of the current data transmitted by the current terminal as a mobile network through the network connection manager.
In one embodiment, the method further comprises:
after a successful login result of the target application is received, a WiFi network manager of the system is obtained through a reflection mechanism;
restarting the WiFi network based on the WiFi network manager.
In one embodiment, the method further comprises:
and when the WiFi network is restarted based on the WiFi network manager, if an operation instruction of a user is received, loading a preset display animation.
In one embodiment, the step of acquiring the communication number of the current terminal based on the mobile network includes:
obtaining an identifier of the SIM card currently used by the current terminal;
sending a number acquisition request to an operator system to which the SIM card belongs based on the mobile network, wherein the number acquisition request carries an identifier of the SIM card currently used by the current terminal;
and receiving the communication number of the current terminal returned by the operator system according to the number acquisition request.
In one embodiment, the step of performing, when the login instruction of the target application is received, verification login of the target application according to the communication number of the current terminal includes:
when a login instruction of the target application is received, acquiring an identifier of the current terminal and an identifier of an SIM card used by the current terminal;
sending a number verification request to an operator system to which the SIM card belongs based on the mobile network, wherein the number verification request carries the communication number, the identifier of the current terminal and the identifier of the SIM card in use by the current terminal;
and when receiving a verification success message returned after the operator system verifies the communication number according to the number verification request, executing the login operation of the target application.
In a second aspect, the present invention provides an application login apparatus, including:
the detection module is used for detecting the network type of the current data transmitted by the current terminal when a pre-login instruction of a target application is received;
the closing module is used for closing the WiFi network if the network type of the current data transmission of the current terminal is the WiFi network;
the setting module is used for setting the network type of the current transmission data of the current terminal as a mobile network;
the acquisition module is used for acquiring the communication number of the current terminal based on the mobile network;
and the verification login module is used for performing verification login of the target application according to the communication number of the current terminal when the login instruction of the target application is received.
In a third aspect, the present invention provides an application login terminal, the terminal comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the application login method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the application login method as described in the first aspect.
The application login method, the device, the terminal and the storage medium provided by the invention have the following beneficial effects:
the method comprises the steps of firstly obtaining a communication number input in a login interface of a target application, when a pre-login instruction of the target application is received, firstly detecting the network type of current transmission data of a current terminal, if the network type of the current transmission data of the current terminal is a WiFi network, closing the WiFi network, setting the network type of the current transmission data of the current terminal as a mobile network, and then obtaining the communication number of the current terminal based on the mobile network. Therefore, when the flow switch of the current terminal is not turned on and the WiFi switch and the flow switch are turned on simultaneously, the network type of current transmission data of the current terminal can be automatically set as a mobile network, so that an operator can acquire and verify the mobile phone number of a user through a data flow channel of the mobile network, the user does not need to manually turn on the flow switch to acquire the mobile phone number of the user, and meanwhile, the situation that a data packet is forcibly sent to the operator through the flow channel to be numbered or verified is avoided, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating an application login method according to an embodiment;
fig. 2 is a schematic flowchart illustrating a process of detecting a network type of currently transmitted data of a current terminal in an embodiment;
fig. 3 is a schematic flowchart illustrating a process of turning off a WiFi network if a network type of data currently transmitted by a current terminal is the WiFi network in one embodiment;
fig. 4 is a schematic flowchart illustrating a process of setting a network type of currently transmitted data of a current terminal as a mobile network according to an embodiment;
fig. 5 is a schematic flow chart illustrating a process of acquiring a communication number of a current terminal based on a mobile network according to an embodiment;
FIG. 6 is a flowchart illustrating authentication login of a target application according to a communication number of a current terminal in one embodiment;
FIG. 7 is a flowchart illustrating an application login method according to an embodiment;
fig. 8 is a block diagram showing the structure of an application login apparatus according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail with reference to specific examples.
Specifically, the embodiment of the invention provides an application login method mainly aiming at the problem that the existing one-key login authentication method does not need a user to input a verification code or a password, but only can obtain the mobile phone number of the user through an operator, because the number fetching capability of the operator is realized through a data gateway, the number fetching process can be carried out only when a flow switch is turned on, when the flow switch is not turned on, the flow switch is required to be manually turned on by the user, the use experience of the user is influenced, in addition, under the condition that a WiFi switch and the flow switch are turned on simultaneously, a data packet is forced to be sent to the operator through a flow channel for number fetching or verification, the failure rate of the process is high, and the user experience is caused. According to the method, under the conditions that the flow switch of the terminal is not opened and the WiFi switch and the flow switch are simultaneously opened, the network type of the current data transmission of the terminal can be automatically set as the mobile network, so that an operator can acquire the mobile phone number of a user through the data flow channel of the mobile network without manually opening the flow switch by the user, the situation that a data packet is forcibly sent to the operator through the flow channel for number fetching or verification is avoided, and the use experience of the user is improved.
In an embodiment, an execution subject of the method is a mobile terminal based on an Android system, as shown in fig. 1, the method may include the following steps:
s101, when a pre-login instruction of a target application is received, detecting the network type of current data transmission of a current terminal.
The current terminal can be a smart phone, a notebook computer, a tablet computer or a vehicle-mounted terminal based on an Android system. The target application may be any application installed on the current terminal, may also be an application in the operating system of the current terminal, and may also be an application provided by a third party. The pre-login instruction of the target application may be understood as an operation instruction for starting the target application by a user, for example, the user clicks an application icon of the target application, so that the current terminal detects that the target application is triggered to generate the pre-login instruction, and a login interface of the target application is output according to the pre-login instruction. The network types may include WiFi networks and mobile networks. The mobile network may include a 2G mobile communication network, a 3G mobile communication network, a 4G mobile communication network, and the like.
In one embodiment, before the step of detecting a network type of data currently transmitted by the current terminal when the pre-login instruction of the target application is received, the method may further include:
the dynamic registration is used to listen to the broadcast of the WiFi network status.
The WiFi network status may include an on status of the WiFi network and an off status of the WiFi network.
Specifically, the on and off conditions of the WiFi network of the current terminal can be tracked by monitoring the WiFi _ STATE _ CHANGED and the STATE _ CHANGE of the target application.
In one embodiment, as shown in fig. 2, the step of detecting the network type of the current data transmitted by the current terminal when the pre-login instruction of the target application is received may include:
s201, when a pre-login instruction of a target application is received, monitoring the current network state, and acquiring a network information object in a networking state.
The network information object is a networklnfo object used for describing network information.
Specifically, when a pre-login instruction of a target application is received, the current network state may be obtained by monitoring apiconnectionmanager, connectivity _ action.amounts (interface.getaction ()), and a networklnfo object of the networking state may be obtained by a method call of the connectivities manager class.
And S203, detecting whether the current network is successfully connected or not through the network information object.
Specifically, whether the current network is successfully connected is detected through networkinfo.
And S205, if the current network connection is successful, detecting the network type of the current transmission data of the current terminal.
Specifically, if the current network connection is successful, whether the network type of the current data transmission of the current terminal is a WiFi network or a mobile network may be further detected through networkinfo.
It can be understood that, under the condition that the WiFi switch is turned on, the traffic switch is not turned on, and the WiFi switch and the traffic switch are turned on simultaneously, the network type of the current data transmission of the current terminal is the WiFi network; and under the conditions that the WiFi switch is not opened and the flow switch is opened, the network type of the current data transmission of the current terminal is a mobile network.
And S103, if the network type of the current data transmission of the current terminal is a WiFi network, closing the WiFi network.
In an embodiment, as shown in fig. 3, if the network type of the current data transmission of the current terminal is a WiFi network, the step of turning off the WiFi network may include:
s301, if the network type of the current data transmission of the current terminal is a WiFi network, a WiFi network manager of the system is obtained.
Specifically, if the network type of the current data transmitted by the current terminal is a WiFi network, a WiFi network manager (WiFi network manager) of the system may be obtained through a context.
And S303, closing the WiFi network based on the WiFi network manager.
Specifically, after a WiFi network manager of the system is obtained, the WiFi network may be closed by the system by calling WiFiManager, set wifienabled (false), so as to conveniently set the network type of the current data transmission of the terminal as a mobile network, and further facilitate an operator to obtain and verify a mobile phone number of a user through a data traffic channel of the mobile network.
And S105, setting the network type of the current transmission data of the current terminal as a mobile network.
In an embodiment, as shown in fig. 4, the step of setting the network type of the current data transmitted by the current terminal as a mobile network may include:
s401, acquiring a network connection manager through a reflection mechanism.
Specifically, the network connection manager may be acquired through a reflection mechanism in JAVA.
And S403, setting the network type of the current data transmission of the current terminal as a mobile network through the network connection manager.
Specifically, after the network connection manager is obtained through the reflection mechanism in JAVA, the method of switching the mobile network, netlisservice.this.setmobiledatatatus (netlisservice.this, true), may be continuously obtained through the reflection mechanism in JAVA, and the network type of the current data transmitted by the current terminal is set as the mobile network. Therefore, when the data flow of the current terminal is not turned on and the WiFi switch and the flow switch are turned on simultaneously, the network type of the current data transmitted by the current terminal can be automatically set as the mobile network, so that an operator can acquire and verify the mobile phone number of a user through a data flow channel of the mobile network, the user does not need to manually turn on the flow switch to acquire the mobile phone number of the user, meanwhile, the situation that a data packet is forcibly sent to the operator through the flow channel to acquire the number or verify is avoided, and the use experience of the user is improved.
And S107, acquiring the communication number of the current terminal based on the mobile network.
In an embodiment, as shown in fig. 5, the step of acquiring the communication number of the current terminal based on the mobile network may include:
and S501, acquiring the identifier of the SIM card currently used by the current terminal.
The identifier of the SIM card currently being used by the terminal may be an Integrated Circuit Card Identifier (ICCID) of the SIM card currently being used by the terminal. Since each SIM card corresponds to a unique ICCID number, the carrier system can uniquely identify the SIM card using the ICCID number.
S503, sending a number acquisition request to an operator system to which the SIM card belongs based on the mobile network, wherein the number acquisition request carries the identifier of the SIM card currently used by the current terminal.
The number obtaining request is used for requesting the communication number of the current terminal to an operator system to which the SIM card belongs, and the communication number is used for performing one-key login on the target application subsequently.
Specifically, an obtaining number obtaining request may be sent to an operator system to which the SIM card belongs through the mobile network, and after receiving the number obtaining request, the operator system to which the SIM card belongs may analyze the number obtaining request to obtain an identifier of the SIM card currently used by the terminal.
And S505, receiving the communication number of the current terminal returned by the operator system according to the number acquisition request.
The communication number may be a telephone number currently used by the current terminal.
Specifically, after the operator system to which the SIM card belongs obtains the identifier of the SIM card being used by the current terminal, the operator system may determine the phone number currently used by the current terminal according to the identifier of the SIM card being used by the current terminal and return the phone number to the current terminal.
And S109, when the login instruction of the target application is received, verifying and logging in the target application according to the communication number of the current terminal.
In an embodiment, as shown in fig. 6, when the login instruction of the target application is received, the step of performing authenticated login of the target application according to the communication number of the current terminal may include:
s601, when a login instruction of the target application is received, acquiring the identifier of the current terminal and the identifier of the SIM card used by the current terminal.
The identifier of the current terminal may be an IMEI (International Mobile Equipment identity) number of the current terminal. Since the IMEI number of a terminal is one-to-one corresponding to the terminal, the operator system can uniquely identify the terminal by using the IMEI number. The identifier of the SIM card currently being used by the terminal may be an Integrated Circuit Card Identifier (ICCID) of the SIM card currently being used by the terminal. Since each SIM card corresponds to a unique ICCID number, the carrier system can uniquely identify the SIM card using the ICCID number.
Specifically, the current terminal may set a one-key login option in the login interface in advance, and when an instruction that a user triggers (for example, clicks) the one-key login option is received, it is determined that an operation of acquiring an identifier of the current terminal and an identifier of an SIM card being used by the current terminal is detected.
S603, sending a number verification request to an operator system to which the SIM card belongs based on the mobile network, wherein the number verification request carries the communication number, the identifier of the current terminal and the identifier of the SIM card in use by the current terminal.
The number verification request is used for requesting an operator system to which the SIM card belongs to verify the communication number so as to execute one-key login operation of the target application in the following.
Specifically, a number verification request may be sent to an operator system to which the SIM card belongs through the mobile network, and after receiving the number verification request, the operator system to which the SIM card belongs may parse the number verification request to obtain the communication number, the identifier of the current terminal, and the identifier of the SIM card being used by the current terminal.
And S605, when receiving a verification success message returned after the operator system verifies the communication number according to the number verification request, executing the login operation of the target application.
Specifically, after the operator system to which the SIM card belongs obtains the communication number, the identifier of the current terminal, and the identifier of the SIM card currently used by the current terminal, it may verify whether the communication number is the phone number currently used by the current terminal according to the communication number, the identifier of the current terminal, and the identifier of the SIM card currently used by the current terminal. When the communication number is verified to be the telephone number currently used by the current terminal, a verification success message can be returned to the current terminal, so that when the current terminal receives the verification success message, the login operation of the target application is executed and data communication is carried out by using the data traffic of a mobile network, and therefore when the target application is logged in, the mobile phone number can be used as an account number, verification is not needed, the password can be logged in without verification, the password theft risk can be reduced, and the account number safety is improved.
In one embodiment, as shown in fig. 7, the method may further include:
and S701, after a successful login result of the target application is received, acquiring a WiFi network manager of the system through a reflection mechanism.
Specifically, after receiving the successful login result of the target application, the network connection manager may be obtained again through the reflection mechanism, so as to obtain a WiFi network manager.
And S703, restarting the WiFi network based on the WiFi network manager.
Specifically, after obtaining the WiFi network manager, the WiFi network may be turned back on by calling wifimanager.
In the above situation, if the mobile network is continuously turned on, a large amount of data traffic will be consumed, and thus, the data traffic consumption can be reduced by turning on the WiFi network again.
In one embodiment, the method may further comprise: when the WiFi network is restarted based on the WiFi network manager, the method further includes:
and if an operation instruction of the user is received, loading a preset display animation.
The animation displayed by the preset displayed animation, the display mode, the displayed transparency and the like can be set according to the needs of the user, and the embodiment of the invention is not limited to this.
Because the WiFi network cannot be closed or opened immediately, and a period of time is required in the process, in order to improve the use experience of the user, when the WiFi network is restarted, if an operation instruction of the user (for example, an operation instruction on the target application or an operation instruction on another application) is received, a preset display animation can be loaded to perform simulated loading reminding on the user, so that the user is prevented from getting bored while waiting for restarting the WiFi network, the animation which may be interested in the user can be pushed for the user, and the use experience of the user is improved.
According to the application login method provided by the embodiment of the invention, when a pre-login instruction of a target application is received, the network type of current transmission data of a current terminal is detected, if the network type of the current transmission data of the current terminal is a WiFi network, the WiFi network is closed, the network type of the current transmission data of the current terminal is set to be a mobile network, and then the communication number of the current terminal is obtained based on the mobile network. Therefore, when the flow switch of the current terminal is not opened and the WiFi switch and the flow switch are simultaneously opened, the network type of the current transmission data of the current terminal can be automatically set as the mobile network, so that an operator can acquire and verify the mobile phone number of a user through the data flow channel of the mobile network, the user does not need to manually open the flow switch to acquire the mobile phone number of the user, and meanwhile, the situation that a data packet is forcibly sent to the operator through the flow channel to be subjected to number fetching or verification is avoided, and the use experience of the user is improved.
The embodiment of the present invention further provides an application login terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the application login method provided in the foregoing method embodiment.
Correspondingly, an embodiment of the present invention further provides an application login apparatus, and in an embodiment, as shown in fig. 8, the apparatus may include:
the detection module 810 is configured to detect a network type of currently transmitted data of a current terminal when a pre-login instruction of a target application is received;
a closing module 820, configured to close a WiFi network if a network type of current data transmission of the current terminal is the WiFi network;
a setting module 830, configured to set a network type of currently transmitted data of the current terminal as a mobile network;
an obtaining module 840, configured to obtain a communication number of the current terminal based on the mobile network;
and the verification login module 850 is configured to perform verification login of the target application according to the communication number of the current terminal when the login instruction of the target application is received.
In one embodiment, the apparatus may further include:
and the registration module is used for dynamically registering the broadcast for monitoring the WiFi network state, wherein the WiFi network state comprises the opening state of the WiFi network and the closing state of the WiFi network.
In one embodiment, the detection module 810 may include:
the network information object acquisition unit is used for monitoring the current network state and acquiring a network information object in a networking state when a pre-login instruction of a target application is received;
a network connection detection unit for detecting whether the current network is successfully connected through the network information object;
and the network type detection unit is used for detecting the network type of the current data transmitted by the current terminal if the current network connection is successful.
In one embodiment, the shutdown module 820 may include:
the WiFi network manager acquisition unit is used for acquiring a WiFi network manager of the system if the network type of the current data transmitted by the current terminal is a WiFi network;
and the WiFi network closing unit is used for closing the WiFi network based on the WiFi network manager.
In one embodiment, the setting module 830 may include:
a network connection manager acquisition unit for acquiring a network connection manager through a reflection mechanism;
and the network type setting unit is used for setting the network type of the current data transmitted by the current terminal as a mobile network through the network connection manager.
In one embodiment, the apparatus may further include:
the WiFi network manager acquisition module is used for acquiring a WiFi network manager of the system through a reflection mechanism after a successful login result of the target application is received;
and the WiFi network restarting module is used for restarting the WiFi network based on the WiFi network manager.
In one embodiment, the apparatus may further include:
and the preset display animation loading module is used for loading the preset display animation if an operation instruction of a user is received when the WiFi network is restarted based on the WiFi network manager.
In one embodiment, the obtaining module 840 may include:
a first identifier obtaining unit, configured to obtain an identifier of a SIM card being used by the current terminal;
a number obtaining request sending unit, configured to send a number obtaining request to an operator system to which the SIM card belongs based on the mobile network, where the number obtaining request carries an identifier of the SIM card being used by the current terminal;
and the communication number receiving unit is used for receiving the communication number of the current terminal returned by the operator system according to the number acquisition request.
In one embodiment, the authentication login module 850 may include:
a second identifier obtaining unit, configured to obtain, when a login instruction of the target application is received, an identifier of the current terminal and an identifier of a SIM card being used by the current terminal;
a number verification request sending unit, configured to send, based on the mobile network, a number verification request to an operator system to which the SIM card belongs, where the number verification request carries the communication number, an identifier of the current terminal, and an identifier of the SIM card being used by the current terminal;
and the successful verification message receiving unit is used for executing the login operation of the target application when receiving a successful verification message returned by the operator system after the communication number is verified according to the number verification request.
It should be noted that the device and method embodiments in the device embodiment described above are based on the same inventive concept.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the application login method according to the above method embodiment.
It should be noted that: the sequence of the above embodiments of the present invention is only for description, and does not represent the advantages or disadvantages of the embodiments. And specific embodiments of the present invention have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. An application login method, characterized in that the method comprises:
when an operation instruction of starting a target application by a user is received, detecting the network type of the current transmission data of the current terminal;
if the network type of the current data transmission of the current terminal is a WiFi network, closing the WiFi network; under the conditions that the WiFi switch is turned on, the flow switch is not turned on, and the WiFi switch and the flow switch are turned on simultaneously, the network type of the current data transmission of the current terminal is a WiFi network;
setting the network type of the current transmission data of the current terminal as a mobile network;
under the condition that the network type of the current data transmitted by the current terminal is the mobile network, acquiring the communication number of the current terminal based on the mobile network; under the conditions that the WiFi switch is not opened and the flow switch is opened, the network type of the current data transmission of the current terminal is the mobile network;
and when a login instruction of the target application is received, verifying and logging in the target application according to the communication number of the current terminal.
2. The method according to claim 1, wherein before the step of detecting a network type of data currently transmitted by the current terminal when receiving an operation instruction of starting the target application by a user, the method further comprises:
the dynamic registration is used for monitoring the broadcast of the WiFi network state, wherein the WiFi network state comprises the on state of the WiFi network and the off state of the WiFi network.
3. The method according to claim 1, wherein the step of detecting the network type of the currently transmitted data of the current terminal when receiving the operation instruction of the user to start the target application comprises:
when receiving an operation instruction of starting the target application by a user, monitoring the current network state and acquiring a network information object in a networking state;
detecting whether the current network is successfully connected or not through the network information object;
and if the current network connection is successful, detecting the network type of the current transmission data of the current terminal.
4. The method of claim 1, wherein if the network type of the current data transmission of the current terminal is a WiFi network, the step of turning off the WiFi network comprises:
if the network type of the current data transmitted by the current terminal is a WiFi network, acquiring a WiFi network manager of the system;
and turning off the WiFi network based on the WiFi network manager.
5. The method according to claim 1, wherein the step of setting the network type of the current data transmitted by the current terminal as a mobile network comprises:
acquiring a network connection manager through a reflection mechanism;
and setting the network type of the current data transmitted by the current terminal as a mobile network through the network connection manager.
6. The method of claim 1, further comprising:
when a successful login result of the target application is received, a WiFi network manager of the system is obtained through a reflection mechanism;
restarting the WiFi network based on the WiFi network manager.
7. The method of claim 6, further comprising:
and when the WiFi network is restarted based on the WiFi network manager, if an operation instruction of a user is received, loading a preset display animation.
8. The method of claim 1, wherein the step of obtaining the communication number of the current terminal based on the mobile network comprises:
acquiring an identifier of the SIM card currently used by the current terminal;
sending a number acquisition request to an operator system to which the SIM card belongs based on the mobile network, wherein the number acquisition request carries an identifier of the SIM card currently used by the current terminal;
and receiving the communication number of the current terminal returned by the operator system according to the number acquisition request.
9. The method of claim 1, wherein the step of performing the authenticated login of the target application according to the communication number of the current terminal when the login instruction of the target application is received comprises:
when a login instruction of the target application is received, acquiring an identifier of the current terminal and an identifier of an SIM card used by the current terminal;
sending a number verification request to an operator system to which the SIM card belongs based on the mobile network, wherein the number verification request carries the communication number, the identifier of the current terminal and the identifier of the SIM card in use by the current terminal;
and when receiving a verification success message returned after the operator system verifies the communication number according to the number verification request, executing the login operation of the target application.
10. An application login apparatus, the apparatus comprising:
the detection module is used for detecting the network type of the current transmission data of the current terminal when receiving an operation instruction of starting a target application by a user;
the closing module is used for closing the WiFi network if the network type of the current data transmission of the current terminal is the WiFi network; under the conditions that the WiFi switch is turned on, the flow switch is not turned on, and the WiFi switch and the flow switch are turned on simultaneously, the network type of the current data transmission of the current terminal is a WiFi network;
the setting module is used for setting the network type of the current transmission data of the current terminal as a mobile network;
the acquisition module is used for acquiring the communication number of the current terminal based on the mobile network under the condition that the network type of the current data transmitted by the current terminal is the mobile network; under the conditions that a WiFi switch is not turned on and a flow switch is turned on, the network type of the current data transmitted by the current terminal is the mobile network;
and the verification login module is used for performing verification login of the target application according to the communication number of the current terminal when the login instruction of the target application is received.
11. An application login terminal, characterized in that the terminal comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by the processor to implement the application login method according to any of claims 1 to 9.
12. A computer readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the application login method as claimed in any one of claims 1 to 9.
CN201911359174.6A 2019-12-25 2019-12-25 Application login method, device, terminal and storage medium Active CN111107093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911359174.6A CN111107093B (en) 2019-12-25 2019-12-25 Application login method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911359174.6A CN111107093B (en) 2019-12-25 2019-12-25 Application login method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111107093A CN111107093A (en) 2020-05-05
CN111107093B true CN111107093B (en) 2022-07-19

Family

ID=70425289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911359174.6A Active CN111107093B (en) 2019-12-25 2019-12-25 Application login method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111107093B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738046B (en) * 2020-12-24 2023-04-07 中国银联股份有限公司 One-key login method, terminal and system server
CN114338132B (en) * 2021-12-24 2023-08-01 中国联合网络通信集团有限公司 Secret-free login method, client application, operator server and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578463A (en) * 2015-07-22 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Double connection secure communication method and device
CN106203021A (en) * 2016-07-26 2016-12-07 中卓信(北京)科技有限公司 The application login method of a kind of many certification modes integration and system
CN106332255A (en) * 2016-08-19 2017-01-11 广东欧珀移动通信有限公司 Voice communication method of mobile terminal, device and mobile terminal
CN108430094A (en) * 2018-04-20 2018-08-21 Oppo广东移动通信有限公司 Reduce method, apparatus and terminal that WIFI and LTE is interfered with each other

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8260862B2 (en) * 2006-09-14 2012-09-04 Centurylink Intellectual Property Llc System and method for authenticating users of online services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578463A (en) * 2015-07-22 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Double connection secure communication method and device
CN106203021A (en) * 2016-07-26 2016-12-07 中卓信(北京)科技有限公司 The application login method of a kind of many certification modes integration and system
CN106332255A (en) * 2016-08-19 2017-01-11 广东欧珀移动通信有限公司 Voice communication method of mobile terminal, device and mobile terminal
CN108430094A (en) * 2018-04-20 2018-08-21 Oppo广东移动通信有限公司 Reduce method, apparatus and terminal that WIFI and LTE is interfered with each other

Also Published As

Publication number Publication date
CN111107093A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN110392054B (en) Login verification method, device, system, equipment and readable storage medium
CN110708696B (en) Network data recovery method and device, storage medium and electronic equipment
CN108811179B (en) Wireless network connection method, device and storage medium
CN111107093B (en) Application login method, device, terminal and storage medium
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN113490218A (en) Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium
CN110971757B (en) Method, device, equipment and medium for adding WeChat friends from telephone application
CN112738046B (en) One-key login method, terminal and system server
CN113543281B (en) Voice communication method and voice communication device
CN107277799B (en) Method, device, terminal and storage medium for binding mobile phone number
CN107230060A (en) The method and apparatus that a kind of account is reported the loss
CN106294027A (en) A kind of data back up method, device, carrier server and mobile terminal
CN108781358A (en) A kind of method and relevant device managing the signing information collection in eUICC
CN106656985A (en) Backup account login method, device and system
CN107548054B (en) Master-slave equipment switching method of eSIM card, slave equipment and eSIM card management server
CN113542256B (en) Method, device, equipment and storage medium for updating login credentials in client
CN107508746A (en) Good friend's adding method, device and electronic equipment
CN111083694B (en) Application program login method, device, terminal and storage medium
CN111554013A (en) Access control passing method, device, equipment and storage medium
CN109040050A (en) Data interactive method and Related product
CN111867048A (en) Registration control method and device of VoWiFi, electronic equipment and server
CN111901298A (en) Method and device for determining cloud short message platform during SSLVPN authentication and electronic equipment
CN105451233B (en) A kind of anti-method monitored, system and mobile terminal
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
CN111328031A (en) Message forwarding method and device

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