CN116436707A - Login method, device, medium and computer equipment based on applet - Google Patents

Login method, device, medium and computer equipment based on applet Download PDF

Info

Publication number
CN116436707A
CN116436707A CN202310700734.XA CN202310700734A CN116436707A CN 116436707 A CN116436707 A CN 116436707A CN 202310700734 A CN202310700734 A CN 202310700734A CN 116436707 A CN116436707 A CN 116436707A
Authority
CN
China
Prior art keywords
login
applet
network device
network equipment
network
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.)
Granted
Application number
CN202310700734.XA
Other languages
Chinese (zh)
Other versions
CN116436707B (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.)
Changsha Developer Technology Co ltd
Beijing Innovation Lezhi Network Technology Co ltd
Original Assignee
Changsha Developer Technology Co ltd
Beijing Innovation Lezhi Network 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 Changsha Developer Technology Co ltd, Beijing Innovation Lezhi Network Technology Co ltd filed Critical Changsha Developer Technology Co ltd
Priority to CN202310700734.XA priority Critical patent/CN116436707B/en
Publication of CN116436707A publication Critical patent/CN116436707A/en
Application granted granted Critical
Publication of CN116436707B publication Critical patent/CN116436707B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/36User authentication by graphic or iconic representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention relates to the technical field of login methods based on applets, and provides a login method, a device, a medium and computer equipment based on applets, wherein a login inlet is generated and displayed on a display interface of first network equipment, and the login inlet comprises two-dimensional codes of applet codes; detecting whether a login request signal sent by second network equipment exists or not; if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code; verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet; and sending a login authorization code to the first network device and the second network device, and directly completing simultaneous login of the PC end and the mobile end through the silent login state of the small program, so that the use convenience is improved, and the login security is considered. And the applet can intelligently switch the automatic display and request the display, so that the resources of the network equipment are saved, and the user experience is improved.

Description

Login method, device, medium and computer equipment based on applet
Technical Field
The present invention relates to the field of a login method based on an applet, and in particular, to a login method based on an applet, a device, a medium, and a computer device.
Background
When a PC end user logs in a website, the login account password is required to carry out verification login, in the prior art, when the PC end user logs in the website, the address of the user at the appointed PC end can be recorded, and in the client permission state, the logged-in user information is set to be silent login, namely, when the user logs in the same website of the same PC end next time, the user can log in automatically.
However, the use environment of the PC end is complex, and when the use security of the PC end needs to be increased, the client is generally not allowed to log in silently, which undoubtedly increases the operation steps of user login; in addition, in the prior art, the applet is relatively fixed in display under the normal condition, and when the applet is used for PC login, the applet cannot be intelligently and cooperatively switched with the PC, so that the user experience is poor, and the problem of PC end user login to be solved is solved by considering the user login convenience, ensuring the user login safety and improving the user experience.
Disclosure of Invention
Based on this, it is necessary to propose an applet-based login method in order to solve the above-described problems.
A method of applet-based login, the method comprising:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
Detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device, completing simultaneous login of the first network device and the second network device, and automatically switching the applet from the first display interface to the second display interface.
Further, after the login authorization code is sent to the first network device and the second network device to complete simultaneous login of the first network device and the second network device, and the applet is automatically switched from the first display interface to the second display interface, the method further includes: determining whether the relative position of the first network device and the second network device is greater than a preset threshold,
If the first network device is greater than the preset threshold value, and the first network device is detected to be not operated within a preset time period,
and sending an interface switching request to the server by the applet, and switching to a third interface according to the return information of the server.
Further, the determining whether the relative position of the first network device and the second network device is greater than a preset threshold value includes:
the second network device monitors wireless signals of the first network device;
if the monitored wireless signal intensity of the first network equipment is lower than a preset value, judging that the relative position of the first network equipment and the second network equipment is larger than a preset threshold value;
and/or the number of the groups of groups,
detecting network state information of the second network device;
if the network of the second network device is switched from the first network to the second network, judging that the relative position of the first network device and the second network device is larger than a preset threshold value.
Further, the step of generating the login entry and displaying the login entry on the display interface of the first network device includes:
creating an applet code to be passed through an applet end;
when a webpage creation signal of a display interface of a first network device is obtained, sending an applet code request instruction to a host server, wherein the applet code request instruction comprises an applet code to be passed and an applet login state, the applet request instruction is used for requesting the host server to obtain the applet code, and the host server is a supply server of a host program of a second network device;
If the applet request instruction passes, transmitting an applet code to the first network equipment, and generating a login entry on a display interface of the first network equipment, wherein the login entry comprises a two-dimensional code containing the applet code;
or if the applet request instruction passes, generating a login entry, wherein the login entry comprises a two-dimensional code containing applet codes, sending the login entry to the first network equipment and displaying the login entry on a display interface of the first network equipment.
Further, the method further comprises:
producing a login entry on a webpage of the first network device, wherein the two-dimensional code is associated with a non-repeated senceID;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal comprises a sendeID and a unionID, and the unionID is the ID of a host program which is read by the small program in a silent mode when the second network equipment scans the two-dimensional code through the host program;
if the login request signal is detected, verifying whether the unionID is silent login, if so, mapping and binding the senseID and the unionID; and generating a login authorization code based on the senseID and the unionID, and transmitting the login authorization code to the first network device and the second network device simultaneously.
Further, the step of the applet end quiescing and reading the unionID of the current host program user includes:
the applet side obtains the user UnionID through wx.Login+code 2Session,
or, the applet end calls the cloud function of the current host program user, and obtains the UnionID through the cloud.
Further, the mobile application account, the website application account, and the applet account of the same host program have the same UnionID.
A sign-on device for a genetic applet, comprising:
the display module is used for generating a login inlet and displaying the login inlet on a display interface of the first network device, wherein the login inlet comprises a two-dimensional code containing applet codes;
the login request module is used for detecting whether a login request signal sent by the second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
the calling module is used for sending an applet calling signal to the second network equipment if the login request signal is acquired, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
The verification module is used for verifying whether the applet is silent login or not, and if yes, acquiring a login authorization code of the applet;
the login module is used for simultaneously sending login authorization codes to the first network equipment and the second network equipment and finishing simultaneous login of the first network equipment and the second network equipment;
and the applet switching module is used for switching the applet from the basic edition to the concise edition after the login module completes simultaneous login of the first network equipment and the second network equipment.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
Verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device, completing the simultaneous login of the first network device and the second network device, and switching the applet from the basic edition to the concise edition.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
And simultaneously sending a login authorization code to the first network device and the second network device, completing the simultaneous login of the first network device and the second network device, and switching the applet from the basic edition to the concise edition.
According to the small program-based login method provided by the scheme, the two-dimensional code login entrance containing the small program code is displayed on the display interface of the PC end which needs to be logged in, such as a website page, a user can see the login entrance when opening the website, the user scans the two-dimensional code login entrance through the mobile end and sends a login request signal to the development server, the development server sends a small program calling signal to the mobile end when acquiring the login request signal, and the mobile end uses the scanning action of the host program of the small program, so that the host program of the small program can call the small program corresponding to the small program code through the small program calling signal when acquiring the small program calling signal, and verify whether the login state of the small program is silent login, if yes, the login authorization code of the small program can be acquired, if no, a login authorization window can be popped up, and a user can finish login authorization. Further, by setting a plurality of versions for the applet, when a user scans the two-dimensional code on the first network device through the second network device, and the user logs in the first network device and the second network device at the same time, the applet can intelligently and automatically switch display and request display, so that the load of the network device can be reduced, the resources of the network device can be saved, and other applications can be operated more smoothly; and when the relative position of the first network device and the second network device is judged to be larger than the threshold value and the first network device does not operate in the preset time period, the applet is switched to the reproduction mode, so that the user can continue browsing the content, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is an application environment diagram of an applet-based login method in one embodiment;
FIG. 2 is a flow diagram of an applet-based login method in one embodiment;
FIG. 3 is a block diagram of an applet-based login device in one embodiment;
FIG. 4 is a block diagram of a computer device in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 is a diagram of an embodiment applet-based login method application environment. Referring to fig. 1, the applet-based login method is applied to an applet-based login system.
The technical problem solved by the embodiment is as follows: when a PC end user logs in a website, the login account password is required to carry out verification login, in the prior art, when the PC end user logs in the website, the address of the user at the appointed PC end can be recorded, and in the client permission state, the logged-in user information is set to be silent login, namely, when the user logs in the same website of the same PC end next time, the user can log in automatically. However, the use environment of the PC end is complex, when the use security of the PC end needs to be increased, the client is generally not allowed to log in silently, which increases the complexity of user login, and how to consider the convenience of user login and ensure the security of user login is a problem of logging in the PC end user to be solved.
An applet-based login method, as shown in fig. 2, the method comprising:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
If the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device to complete simultaneous login of the first network device and the second network device, and directly and automatically switching the applet from the first interface to the second interface.
Specifically, the first network device is a PC device, the PC device displays a login entry through a web login interface of a display screen, and the second network device is a second network device. According to the method and the device, the applet of the second network equipment is verified to be in silent login, so that the first network equipment can log in conveniently, a user can log in a non-sense mode after using the second network equipment to scan the login two-dimensional code, and user experience is improved. And after the simultaneous login of the first network device and the second network device is completed, the applet is switched from the basic version to the compact version. It can be understood that when the user uses the second network device to scan the two-dimensional code on the first network device, the purpose is to use the second network device, and on this basis, if the applet on the first network device still keeps the basic version, it will occupy more CPU resources of the first network device and current network resources, resulting in resource waste. In this embodiment, by switching the applet from the basic version to the compact version, resources are saved and unnecessary resource waste is avoided. In particular, a basic version of an applet is understood to be a version that is typically used by a user to open the applet directly through a second network device, which includes the complete functionality that the applet has developed for the typical user, and can provide complete services.
Further, the first interface of the applet is a basic version interface, and the second interface is a compact version interface. The applet basic version may include versions of user basic information, member renewal, balance management, balance recharge, etc., and corresponding search functions to meet the basic operational needs of the user. The concise version of the applet may be a version containing functions of user basic information, member renewal, balance management, balance recharging, etc., so that the user can realize operations that are more convenient to implement on the second network device, such as operations requiring mobile payment, such as member renewal, balance recharging, etc. The compact applet may not provide search functionality and browsing of the complete content, or may provide browsing of only a portion of the content, such as: user collection, user browsing history or trending content, etc., to reduce the content it needs to communicate with the server. According to the embodiment, the applet is provided with the basic version and the concise version, and when a user directly opens the applet through the second network equipment, the applet of the basic version can be called, so that the user can use the basic complete function of the applet; when the second network equipment scans the login two-dimensional code of the first network equipment, the applet is directly and automatically switched into a concise version, so that a user can browse contents by using the first network equipment, and the second network equipment is used for member management, so that the user can recharge and renew quickly, and the working efficiency of the user is improved; and unnecessary communication resource waste is reduced, so that the second network device can have more resources to run other applications.
Specifically, the host program of the second network device includes: weChat program, payment treasury program, microblog program, QQ, hundred degree program.
Further, the sending the login authorization code to the first network device and the second network device completes the simultaneous login of the first network device and the second network device, and after the applet is switched to the compact version, the method further includes:
judging whether the relative position of the first network equipment and the second network equipment is larger than a threshold value, if so, and if the first network equipment does not operate in a preset time period, sending an interface switching request to a server by the applet, and switching to a third interface according to the return information of the server. Specifically, the third interface is a replica.
Specifically, when the second network device is used for code scanning login, the second network device is located in a relatively close distance from the first network device, and is usually located in the same space. And after the user logs in by scanning the code, browsing the content by using the first network equipment. However, during browsing, when the user needs to leave the current space due to subjective or objective factors, there is no way to continue browsing the content on the second network device. In this embodiment, after the first network device and the second network device log in at the same time and the applet is switched to the compact version, the relative positions of the first network device and the second network device are judged, and when the relative positions of the first network device and the second network device are detected to exceed a certain threshold value, the two are far away; and if the user does not operate the first network device within the preset time period, the user is informed that the user has originally used the first network device and does not need to use the first network device. At this time, the applet on the second network device is switched from the compact version to the copy version, which can display the last viewed content and location of the first network device, so that the user can continue to view the content through the second network device. It will be appreciated that the applet may be a customized version, and when switching to that version, it may send a replication request to the server, and after receiving the replication request, the server obtains the last browsing content and browsing location of the user via the first network device, and sends the relevant information to the applet, so that the applet may directly display the last browsing content and location of the user, so that the user continues to browse the content. Through the on-demand switching of the applet versions, the resource utilization rate is improved, and the user experience is improved.
Further, the determining whether the relative position of the first network device and the second network device is greater than a threshold value includes: the determination is made by detecting status information of the first network device and/or the second network device.
In one embodiment, the wireless signal of the first network device may be monitored by the second network device; and if the monitored wireless signal intensity of the first network equipment is lower than a preset value, judging that the relative position of the first network equipment and the second network equipment is larger than a preset threshold value.
Specifically, the determination is made by detecting relative status information of the first network device and the second network device. When the second network device scans the two-dimensional code displayed on the first network device, the second network device synchronously requests the MAC address of the first network device and the MAC address of the wireless device, where the wireless device may be bluetooth, a wireless network card or other wireless devices capable of transmitting and receiving wireless signals, and the server receives the request, acquires related information from the first network device and returns the related information to the second network device. After the second network device receives the information, the wireless signal sent by the first network device is monitored through the corresponding wireless device, and when the signal strength of the wireless signal sent by the first network device is monitored to be lower than a first threshold value, the relative position distance between the first network device and the second network device can be determined to be far. In this embodiment, when the server requests the MAC address of the first network device and the MAC address of the wireless device thereof, the server may simultaneously obtain whether the wireless device of the first network device is turned on, and if not, push a prompt or instruction synchronously to remind the user to turn on the wireless device of the first network device, so that the second network device may search for the wireless signal sent by the wireless device of the first network device.
In another embodiment, network state information of the second network device may be detected; if the network of the second network device is switched from the first network to the second network, judging that the relative position of the first network device and the second network device is larger than a preset threshold value.
Specifically, the second network device determines the relative position of the first network device and the second network device by detecting its own status information. When the second network device scans the two-dimensional code displayed by the first network device, the logged-in applet records the first network information of the second network device. If the second network device is accessed through the wireless network, the network information may include: information about the wireless network, such as wireless network ssid, network band, IP address, signal strength, etc.; if the second network device accesses the network through cellular data, the network information may include: IP address and base station related information, wherein the base station related information includes location area, base station number, base station signal strength, sector number, cell number. After the network information of the second network device is obtained, the network information is monitored, if the information such as the IP address, the base station number, the sector number, the cell number and the like is changed, the second network device is changed into the second network information, at the moment, the applet can determine that the relative position distance between the first network device and the second network device is far, and can send a version switching request to the server by combining the operation condition of the user on the first network device, the server obtains the content currently displayed by the first network device and the current browsing position, copies the display content and the current browsing position and sends the copy content and the current browsing position to the applet, and at the moment, the applet is switched to a third interface to display the copy content and display the current browsing position, so that the user continues to browse the content currently displayed by the first device on the second network device.
Specifically, the step of generating the login entry and displaying the login entry on the display interface of the first network device includes:
creating an applet code to be passed through an applet end;
when a webpage creation signal of a display interface of a first network device is obtained, sending an applet code request instruction to a host server, wherein the applet code request instruction comprises an applet code to be passed and an applet login state, the applet request instruction is used for requesting the host server to obtain the applet code, and the host server is a supply server of a host program of a second network device;
if the applet request instruction passes, sending an applet code to the first network equipment, and generating a login entry on a display interface of the first network equipment, wherein the login entry comprises a two-dimensional code containing the applet code, and the validity period of the two-dimensional code is 5-15 minutes;
or if the applet request instruction passes, generating a login entry, wherein the login entry comprises a two-dimensional code containing applet codes, sending the login entry to the first network equipment and displaying the login entry on a display interface of the first network equipment, and the validity period of the two-dimensional code is 5-15 minutes.
Further, the method further comprises: producing a login entry on a webpage of the first network device, wherein the two-dimensional code is associated with a non-repeated senceID;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal comprises a sendeID and a unionID, and the unionID is the ID of a host program which is read by the small program in a silent mode when the second network equipment scans the two-dimensional code through the host program;
if the login request signal is detected, verifying whether the unionID is silent login, if so, mapping and binding the senseID and the unionID; and generating a login authorization code based on the senseID and the unionID, and transmitting the login authorization code to the first network device and the second network device simultaneously.
The method specifically comprises the following steps: producing a login entry on a webpage of a PC device, displaying the login entry on the webpage of the PC device, wherein the login entry comprises a two-dimensional code containing an applet code, a non-repeated senceID is generated in the two-dimensional code, the webpage of the PC device continuously interacts with a development server and judges whether the senceID is mapped out of a user;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the two-dimensional code through a host program, the trigger signal is a signal generated after the host program scans the code and reads a sendeID through an applet terminal, and meanwhile, the applet terminal quietly reads a unionID of a current host program user, and the login request signal comprises the sendeID and the unionID;
If the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to a host program through the applet calling signal, wherein the host program is a host environment program of the applet, and the applet calling signal comprises a sendeID and a unionID;
verifying whether the applet is silent login comprises: verifying whether the unionID has a unique corresponding account number in a user database, if so, confirming that the applet is silent login, and if not, sending an authorized guide page to a webpage of the PC equipment;
if the applet is silent login, the unionID meets the corresponding legal unique user account, the senceID is updated and a legal user is mapped, and a login authorization code of the applet is obtained;
and the second network equipment acquires the senceID state updating signal, and completes the login of the second network equipment according to the user account corresponding to the updated senceID and the login Token.
Specifically, the step of the applet end quiescing and reading the unionID of the current host program user includes:
the applet side obtains the user UnionID through wx.Login+code 2Session,
or, the applet end calls the cloud function of the current host program user, and obtains the UnionID through the cloud.
Specifically, the mobile application account, the website application account, and the applet account of the same host program have the same UnionID.
According to the small program-based login method provided by the scheme, the two-dimensional code login entrance containing the small program code is displayed on the display interface of the PC end which needs to be logged in, such as a website page, a user can see the login entrance when opening the website, the user scans the two-dimensional code login entrance through the mobile end and sends a login request signal to the development server, the development server sends a small program calling signal to the mobile end when acquiring the login request signal, and the mobile end uses the scanning action of the host program of the small program, so that the host program of the small program can call the small program corresponding to the small program code through the small program calling signal when acquiring the small program calling signal, and verify whether the login state of the small program is silent login, if yes, the login authorization code of the small program can be acquired, if no, a login authorization window can be popped up, and a user can finish login authorization.
The present embodiment provides a login device for a gene applet, as shown in fig. 3, including:
the display module is used for generating a login inlet and displaying the login inlet on a display interface of the first network device, wherein the login inlet comprises a two-dimensional code containing applet codes;
the login request module is used for detecting whether a login request signal sent by the second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
the calling module is used for sending an applet calling signal to the second network equipment if the login request signal is obtained, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
the verification module is used for verifying whether the applet is silent login or not, and if yes, acquiring a login authorization code of the applet;
and the login module is used for simultaneously sending login authorization codes to the first network equipment and the second network equipment and finishing the simultaneous login of the first network equipment and the second network equipment.
In one embodiment, a method of logging in a genetic applet is provided. The method can be applied to a terminal or a server, and the embodiment is applied to terminal illustration. The login method of the gene applet specifically comprises the following steps:
Generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device to finish the simultaneous login of the first network device and the second network device.
According to the small program-based login method provided by the scheme, the two-dimensional code login entrance containing the small program code is displayed on the display interface of the PC end which needs to be logged in, such as a website page, a user can see the login entrance when opening the website, the user scans the two-dimensional code login entrance through the mobile end and sends a login request signal to the development server, the development server sends a small program calling signal to the mobile end when acquiring the login request signal, and the mobile end uses the scanning action of the host program of the small program, so that the host program of the small program can call the small program corresponding to the small program code through the small program calling signal when acquiring the small program calling signal, and verify whether the login state of the small program is silent login, if yes, the login authorization code of the small program can be acquired, if no, a login authorization window can be popped up, and a user can finish login authorization.
FIG. 4 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 4, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by a processor, causes the processor to implement an applet-based login method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform an applet-based login method. Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is presented comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
Generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device to finish the simultaneous login of the first network device and the second network device.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
Detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
if the login request signal is obtained, an applet calling signal is sent to the second network equipment, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
and simultaneously sending a login authorization code to the first network device and the second network device to finish the simultaneous login of the first network device and the second network device.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. An applet-based login method, said method comprising:
generating a login inlet and displaying the login inlet on a display interface of first network equipment, wherein the login inlet comprises a two-dimensional code containing applet codes;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
If the login request signal is obtained, sending an applet calling signal to the second network equipment, and calling an applet corresponding to the applet code to a host program by the second network equipment through the applet calling signal, wherein the host program is a host environment program of the applet;
verifying whether the applet is silent login, if so, acquiring a login authorization code of the applet;
sending a login authorization code to the first network device and the second network device to finish simultaneous login of the first network device and the second network device;
and the applet is automatically switched from the first display interface to the second display interface.
2. The applet-based login method according to claim 1, wherein the sending a login authorization code to the first network device and the second network device completes simultaneous login of the first network device and the second network device, and after the applet is automatically switched from the first display interface to the second display interface, further comprises:
determining whether the relative position of the first network device and the second network device is greater than a preset threshold,
if the first network device is greater than the preset threshold value, and the first network device is detected to be not operated within a preset time period,
and sending an interface switching request to the server by the applet, and switching to a third interface according to the return information of the server.
3. The applet-based login method according to claim 2, wherein said determining whether the relative location of the first network device and the second network device is greater than a preset threshold comprises:
the second network device monitors wireless signals of the first network device;
if the monitored wireless signal intensity of the first network equipment is lower than a preset value, judging that the relative position of the first network equipment and the second network equipment is greater than a preset threshold value;
and/or the number of the groups of groups,
detecting network state information of the second network device;
if the network of the second network device is switched from the first network to the second network, judging that the relative position of the first network device and the second network device is larger than a preset threshold value.
4. The applet-based login method according to claim 1, wherein the step of generating a login entry and displaying the login entry on a display interface of a first network device comprises:
creating an applet code to be passed through an applet end;
when a webpage creation signal of a display interface of a first network device is acquired, an applet request instruction is sent to a host server, wherein the applet request instruction comprises an applet code to be passed and an applet login state, the applet request instruction is used for requesting the host server to acquire the applet code, and the host server is a supply server of a host program of a second network device;
If the applet request instruction passes, transmitting an applet code to the first network equipment, and generating a login entry on a display interface of the first network equipment, wherein the login entry comprises a two-dimensional code containing the applet code;
or if the applet request instruction passes, generating a login entry, wherein the login entry comprises a two-dimensional code containing applet codes, sending the login entry to the first network equipment and displaying the login entry on a display interface of the first network equipment.
5. The applet-based login method according to claim 1, wherein the method further comprises:
producing a login entry on a webpage of the first network device, wherein the two-dimensional code is associated with a non-repeated senceID;
detecting whether a login request signal sent by second network equipment exists or not, wherein the login request signal comprises a sendeID and a unionID, and the unionID is the ID of a host program which is read by the small program in a silent mode when the second network equipment scans the two-dimensional code through the host program;
if the login request signal is detected, verifying whether the unionID is silent login, if so, mapping and binding the senseID and the unionID; and generating a login authorization code based on the senseID and the unionID, and transmitting the login authorization code to the first network device and the second network device simultaneously.
6. The applet-based login method according to claim 1, wherein: the step of the applet end quiescing and reading the unionID of the current host program user comprises the following steps:
the applet side obtains the user UnionID through wx.Login+code 2Session,
or, the applet end calls the cloud function of the current host program user, and obtains the UnionID through the cloud.
7. The applet-based login method according to claim 1, wherein:
the mobile application account, the website application account and the applet account of the same host program have the same unionID.
8. A device for registering a genetic applet, comprising:
the display module is used for generating a login inlet and displaying the login inlet on a display interface of the first network device, wherein the login inlet comprises a two-dimensional code containing applet codes;
the login request module is used for detecting whether a login request signal sent by the second network equipment exists or not, wherein the login request signal is a trigger signal of the second network equipment for scanning the login inlet through a host program;
the calling module is used for sending an applet calling signal to the second network equipment if the login request signal is acquired, and the second network equipment calls an applet corresponding to the applet code to the host program through the applet calling signal, wherein the host program is a host environment program of the applet;
The verification module is used for verifying whether the applet is silent login or not, and if yes, acquiring a login authorization code of the applet;
and the login module is used for simultaneously sending login authorization codes to the first network equipment and the second network equipment and finishing the simultaneous login of the first network equipment and the second network equipment.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 7.
CN202310700734.XA 2023-06-14 2023-06-14 Login method, device, medium and computer equipment based on applet Active CN116436707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310700734.XA CN116436707B (en) 2023-06-14 2023-06-14 Login method, device, medium and computer equipment based on applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310700734.XA CN116436707B (en) 2023-06-14 2023-06-14 Login method, device, medium and computer equipment based on applet

Publications (2)

Publication Number Publication Date
CN116436707A true CN116436707A (en) 2023-07-14
CN116436707B CN116436707B (en) 2023-08-25

Family

ID=87080141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310700734.XA Active CN116436707B (en) 2023-06-14 2023-06-14 Login method, device, medium and computer equipment based on applet

Country Status (1)

Country Link
CN (1) CN116436707B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756446A (en) * 2023-08-23 2023-09-15 北京创新乐知网络技术有限公司 Login method, device, medium and equipment based on scanning two-dimension code

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070759A1 (en) * 2008-09-17 2010-03-18 Gmv Soluciones Globales Internet, S.A. Method and system for authenticating a user by means of a mobile device
CN108733991A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 Web application access method and device, storage medium
CN110968856A (en) * 2019-12-12 2020-04-07 百度国际科技(深圳)有限公司 Login method, login device, electronic equipment and storage medium
CN111245825A (en) * 2020-01-09 2020-06-05 百度在线网络技术(北京)有限公司 Applet login method, server and electronic device
CN111651746A (en) * 2020-06-01 2020-09-11 支付宝(杭州)信息技术有限公司 Login data processing method, device, equipment and system
CN114547569A (en) * 2022-02-11 2022-05-27 支付宝(杭州)信息技术有限公司 Account login processing method and device
CN115186248A (en) * 2022-07-12 2022-10-14 深圳市电子商务安全证书管理有限公司 Login method of application page, terminal equipment, server and storage medium
CN115632804A (en) * 2022-08-15 2023-01-20 深圳市酷开网络科技股份有限公司 Account login method, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100070759A1 (en) * 2008-09-17 2010-03-18 Gmv Soluciones Globales Internet, S.A. Method and system for authenticating a user by means of a mobile device
CN108733991A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 Web application access method and device, storage medium
CN110968856A (en) * 2019-12-12 2020-04-07 百度国际科技(深圳)有限公司 Login method, login device, electronic equipment and storage medium
CN111245825A (en) * 2020-01-09 2020-06-05 百度在线网络技术(北京)有限公司 Applet login method, server and electronic device
CN111651746A (en) * 2020-06-01 2020-09-11 支付宝(杭州)信息技术有限公司 Login data processing method, device, equipment and system
CN114547569A (en) * 2022-02-11 2022-05-27 支付宝(杭州)信息技术有限公司 Account login processing method and device
CN115186248A (en) * 2022-07-12 2022-10-14 深圳市电子商务安全证书管理有限公司 Login method of application page, terminal equipment, server and storage medium
CN115632804A (en) * 2022-08-15 2023-01-20 深圳市酷开网络科技股份有限公司 Account login method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756446A (en) * 2023-08-23 2023-09-15 北京创新乐知网络技术有限公司 Login method, device, medium and equipment based on scanning two-dimension code
CN116756446B (en) * 2023-08-23 2023-11-10 北京创新乐知网络技术有限公司 Login method, device, medium and equipment based on scanning two-dimension code

Also Published As

Publication number Publication date
CN116436707B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
CN109510849B (en) Cloud-storage account authentication method and device
KR100996768B1 (en) System for remotely accessing a mass storage unit and a security storage unit in a portable communicating object
CN116436707B (en) Login method, device, medium and computer equipment based on applet
CN105207996A (en) Account merging method and apparatus
CN105072080A (en) Information verification method, device and system
CN111866850A (en) Configuration file switching method and device, computer equipment and storage medium
CN104185179A (en) Control apparatus and method for subscriber identity module, and subscriber identity module
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN111148088A (en) Method, device, equipment and storage medium for managing mobile terminal and system
CN111177741A (en) Pre-authorization data access method and device based on enterprise browser
KR101580419B1 (en) Method for accessing at least one service and corresponding system
CN112860778A (en) Database management method, device, equipment and medium for desktop application program
KR20110112570A (en) Apparatus and method for restricting network access in mobile communication terminal
CN112565239B (en) Authentication method, device, computer equipment and storage medium for integrating multiple operators
CN112699034A (en) Virtual login user construction method, device, equipment and storage medium
CN114585055B (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN108600242B (en) Account registration method, device and equipment of application software and readable storage medium
CN108021967B (en) Method and device for copying intelligent card and computer readable storage medium
CN112218249B (en) Data transmission method, data transmission device, data downloading method and related equipment
CN112767583A (en) Access control management method and system
CN111294786B (en) Card writing protection method and device for mobile terminal, mobile terminal and storage medium
CN108596660B (en) Method, system, computer device and storage medium for pushing advertisement task
CN110087201B (en) Information processing method, device and storage medium
CN111064675B (en) Access flow control method, device, network equipment and storage medium
CN116156508A (en) Webpage access method, device, 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