CN113961836A - Page jump method and device, electronic equipment and storage medium - Google Patents

Page jump method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113961836A
CN113961836A CN202111376276.6A CN202111376276A CN113961836A CN 113961836 A CN113961836 A CN 113961836A CN 202111376276 A CN202111376276 A CN 202111376276A CN 113961836 A CN113961836 A CN 113961836A
Authority
CN
China
Prior art keywords
page
target
resource locator
information
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.)
Pending
Application number
CN202111376276.6A
Other languages
Chinese (zh)
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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111376276.6A priority Critical patent/CN113961836A/en
Publication of CN113961836A publication Critical patent/CN113961836A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos

Abstract

The embodiment of the invention discloses a page jump method, a page jump device, electronic equipment and a storage medium. The method comprises the following steps: when a page jump request is received, acquiring a resource locator corresponding to the page jump request; if the target field of the resource locator comprises login token information, the target page corresponding to the page jump request is jumped to based on the resource locator, the problem that the login states of the H5 page embedded in the applet and the applet are not intercommunicated in the prior art is solved, the login state intercommunication of the H5 page embedded in the applet and the applet is realized, and the technical effect of improving the user experience is achieved.

Description

Page jump method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a computer processing technology, in particular to a page jump method, a page jump device, electronic equipment and a storage medium.
Background
With the development of the internet, various application platforms are successively launched by large internet companies, various small programs can be run in each platform, and H5 pages can be embedded in the small programs, so that the login states of the small programs and the H5 pages greatly affect the use experience of users.
At present, the login state of an H5 page is often not unified with the login state of an applet, after the applet logs in, if an H5 page is embedded in the applet, the applet jumps to an H5 page to log in again, and therefore login information needs to be input frequently, and user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a page jump method, a page jump device, electronic equipment and a storage medium, which are used for realizing the technical effect of login intercommunication between an applet and an H5 page embedded in the applet.
In a first aspect, an embodiment of the present invention provides a page jump method, where the method includes:
when a page jump request is received, acquiring a resource locator corresponding to the page jump request;
and if the target field of the resource locator comprises login token information, jumping to a target page corresponding to the page jump request based on the resource locator.
In a second aspect, an embodiment of the present invention further provides a page jump apparatus, where the apparatus includes:
the resource locator obtaining module is used for obtaining a resource locator corresponding to the page jump request when the page jump request is received;
and the target page skipping module is used for skipping to a target page corresponding to the page skipping request based on the resource locator if the target field of the resource locator comprises login token information.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the page jump method according to any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page jump method according to any one of the embodiments of the present invention.
The technical scheme of the embodiment of the invention solves the problem that the login states of H5 pages embedded in small programs and small programs in the prior art are not intercommunicated by acquiring the resource locator corresponding to the page jump request when the page jump request is received and jumping to the target page corresponding to the page jump request based on the resource locator if the target field of the resource locator comprises login token information, realizes that the login token information of the target program is spliced to the position of the resource locator corresponding to the page jump request when the page jump request is received, can jump to the target page based on the resource locator carrying the login token information, further realizes automatic login by utilizing the login token information of the target program, realizes the login state intercommunication of the H5 pages embedded in the small programs and the small programs, and simultaneously does not need the user to frequently input login information, the technical effect of improving the user experience is also achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart of a page jump method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a page jump method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a page jump apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a page jump method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where an applet and an embedded H5 page are intercommunicated and logged in, and the method may be executed by a page jump apparatus according to an embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and optionally, the method is implemented by an electronic device, and the electronic device may be a mobile terminal, a PC end, a server end, or the like. The device can be configured in a computing device, and the page jump method provided by the embodiment specifically includes the following steps:
s110, when a page jump request is received, a resource locator corresponding to the page jump request is obtained.
The page jump request may be understood as a request for jumping to a page, which may be an H5 page, generated when an operation for jumping to an embedded page is triggered. The resource locator is used to characterize the address information of the information resource on the network, and may be a locating address in a URL format, which may include a resource protocol, a host domain name storing the resource, a resource port, a resource path, and the like.
It should be noted that, when an operation of jumping the embedded H5 page is triggered, it may be considered that a jump request of the H5 page is received, for example, in a certain application program, when a user clicks a certain button in the program by using an input device, and further triggers an operation of jumping the embedded H5 page by the program, the program may actively perform the operation, that is, open the H5 page, and when the server intercepts the operation, the performed operation may be used as a jump request of the H5 page, that is, a page jump request; the server may also be considered to have received a jump request for the H5 page when the application performs the operation of embedding the H5 page. The network location address of the page corresponding to the page jump request can be obtained by using the interface, and the address can be used as a resource locator.
Specifically, when the application performs an operation of embedding a page, a jump request of the page may be received. The interface can be used to obtain the resource location address of the page corresponding to the page jump request, i.e. the resource locator.
It should be noted that, before the resource locator corresponding to the page jump request is obtained, the page jump request may be generated in advance, for example, it may be determined whether the application program includes data information edited in advance by the user, if so, the page jump request information corresponding to the page may be generated by sending the data information edited in advance and the resource locator corresponding to the page to the H5 page to be jumped, so that the H5 page may be entered according to the resource locator, and meanwhile, the data information edited in advance may be used as login information of the page, so as to implement fast login of the H5 page, and further may normally access the page.
Optionally, before the acquiring the resource locator corresponding to the page jump request when the page jump request is received, the method includes: when detecting and triggering the operation of jumping to a target page based on a target program, determining whether the target program comprises pre-edited user information; and if so, generating the page jump request based on the user information and the resource locator information to be spliced of the target page.
The target program may be understood as an applet run by a user terminal, and the user terminal may be a computer device or a handheld device, and may be implemented in various forms, for example, a smart phone, a personal computer, a tablet computer, a smart sound box, and the like. The applet can be an application that can be used without downloading or installation, and can be built in the user terminal or in an application program in the user terminal. The target page may be understood as an H5 page embedded in the target program, for example, when the target program is triggered to jump to the H5 page, any H5 page to jump to may be used as the target page. The user information may be information for characterizing the user identity, for example, a mobile phone number or an email. The resource locator information to be spliced can be understood as the locating address information corresponding to the target page, and the network locating address corresponding to the page can be used as the resource locator information to be spliced in the process of jumping to the target page.
It should be noted that the connection between the user terminal and the server may be wireless or wired. Optionally, the user terminal may establish a communication connection with the server in a communication manner such as WIFI, bluetooth, infrared, or the user terminal may also establish a communication connection with the server through a mobile network. The mobile network may be a 4G network or a 5G network.
It should be noted that when a certain button of the applet is clicked by using the input device, the applet may be triggered to actively execute an operation of opening the H5 page, the applet may serve as a target program, the server may intercept the operation executed by the target program by using the interface, and when the operation is intercepted, it may be considered that an operation of triggering a jump to the target page based on the target program is detected. The server may check whether user information corresponding to the target program is stored, and if so, it indicates that the target program includes pre-edited user information, and the user has already logged in the target program using the edited user information, and the target program may be in a logged-in state. The pre-edited user information corresponding to the target program and the network positioning address of the page to be skipped generate the skip request of the page to be skipped by utilizing the algorithm, and are sent to the page, namely the target page, so that the page skip request corresponding to the target page is correspondingly generated.
Specifically, a certain specific operation executed by the target program may be intercepted by the server, where the operation may be an operation of opening an H5 page, and whether user information corresponding to the target program is included is determined by using an algorithm, if yes, the user information is called by using an interface, and then the user information and the resource locator information to be spliced of the target page may be fused by using the algorithm to generate a jump instruction corresponding to the target page, that is, a page jump request is generated.
It should be noted that, when the target program logs in for the first time, the user information edited by the user may be sent to the server, the server may generate a temporary identity token for identifying the user identity according to the edited user information, and then after the target program logs in, the server may send the temporary identity token to the target program, and subsequently, the target program only needs to take the token before requesting data within a preset time period, and does not need to take the user information again, that is, the token may be used as a login identifier of the current login user, so that the embedded H5 page of the target program can be logged in based on the token without logging in using the user information.
Optionally, the generating the page jump request based on the user information and the resource locator information to be spliced of the target page includes: generating login token information according to a user account and a password in the user information; and splicing the login token information at the target position of the resource locator information to be spliced to generate the page jump request.
The user account can be understood as information for representing the unique identifier of the user, and the user account can be a landline number, a mobile phone number, an electronic mailbox, an identity card number and the like. The password can be understood as password information corresponding to a user account, the password can be fixed password information, and also can be real-time verification code information, for example, after a user inputs a mobile phone number, the user can click a verification code sending button, a short message containing the verification code can be sent to a mobile phone corresponding to the mobile phone number by using an interface, and the verification code can be used as the password. The login token information can be understood as a temporary identity token used for representing user identity identification in the network service, and it should be noted that after the target program successfully logs in by using the user information, a token corresponding to the user information can be obtained at the server, the target program only needs to bring the token to request data from the server within a preset time period, and does not need to bring user account numbers and passwords again, for example, in a certain shopping applet A, a user B needs to log in the applet to be normally used, at this time, the user B can input a mobile phone number and corresponding password information in a built-in input editing box of the applet, and then click a login button, can transmit input information to the server by using an interface, the server can generate an identifier login used for representing the login user B based on the input information of the user B, the identification may be as login token information. The target location may be understood as a specific location in the resource locator information, and may be a url parameter location.
It should be noted that, the target program may send the user account information and the password information of the user to the server as login information, and the server receives the information and may perform validity check processing on the information, and if the check is unsuccessful, it indicates that the user account information and the password information are not paired, or the input information is incorrect, and may re-input the user information; if the verification is successful, the target program can successfully log in, and then the server can also generate login token information corresponding to the user information and send the login token information to the target program. The received login token information can be spliced on the url parameter of the resource locator information to be spliced corresponding to the jump page, the resource locator information carrying the login token information can be generated to serve as the resource locator of the target page, and then the page jump request corresponding to the jump page corresponding to the resource locator information can be generated.
Specifically, a user account and a password in the user information can be sent to the server, the server verifies the information, if the verification is successful, login token information corresponding to the user information can be generated, the login token information can be spliced to the url parameter position of the resource locator information to be spliced, and then a page jump request corresponding to the resource locator information can be generated. Therefore, the embedded page of the target program can be logged in subsequently based on the login token information, and the login convenience is improved.
S120, if the target field of the resource locator comprises login token information, jumping to a target page corresponding to the page jumping request based on the resource locator.
The target field may be understood as field information in the resource locator information, and field information corresponding to a target position of the resource locator information may be used as the target field.
Specifically, whether the field information corresponding to the target position of the resource locator includes the login token information or not can be judged by using an algorithm, if so, the interface can be used for jumping to the target page corresponding to the page jumping request, and the target page can be entered.
It should be noted that, whether the field information corresponding to the target position of the resource locator includes the login token information or not may be determined, and the unified processing may be performed in the front page, that is, after the login token information is spliced to the target position of the resource locator information to be spliced, the front page may jump into, and the front page may determine whether the resource locator carries the login token information or not by using an algorithm.
Optionally, if the target field of the resource locator includes login token information, jumping to a target page corresponding to the page jump request based on the resource locator includes: jumping to a pre-verification page corresponding to the target page based on the resource locator, and acquiring field content of a target field in the resource locator based on the pre-verification page; and if the field content comprises the login token information, jumping to the target page based on the resource locator.
The pre-authentication page may be understood as a page for authenticating whether the target field of the resource locator includes the login token information. The field content can be understood as data information of the target field in the resource locator.
It should be noted that, before jumping to a target page corresponding to a page jump request based on a resource locator, a pre-authentication page of the target page corresponding to the locator needs to be docked by using an interface, and the resource locator can be checked in the pre-authentication page, for example, a field content of a target field in the resource locator can be obtained by using the interface, and then whether login token information is included in the field content can be checked by using a logic algorithm, if the field content includes the login token information, the target page can automatically log in by using the login token information at this time, which means that the target page already obtains user information based on the login token information, and performs invisible login, and accordingly, the user does not know that the target page has already logged in. Further, the target page can judge whether the target page needs to be logged in by using an algorithm, if not, the target page can be directly displayed to a user, and the target page does not need to be logged in; if yes, the target page can judge whether the target page logs in by using an algorithm, the target page already acquires login token information at the moment, and the target page can jump to the target page based on the resource locator if the target page logs in successfully.
Specifically, the method can skip to a pre-authentication page corresponding to a target page based on the resource locator, in the pre-authentication page, field content of a target field in the resource locator is obtained by using an interface, if the field content includes login token information, it can be shown that the applet is in a login state at this time, the applet skips to the target page by using the resource locator, at this time, the target page also obtains login token information carried by the resource locator, and the target page is in the login state.
It should be noted that, based on the resource locator, jumping to a pre-authentication page corresponding to the target page, in the pre-authentication page, using the interface to obtain field content of a target field in the resource locator, and checking whether the field content includes login token information, if the field content is empty, the field content does not include the login token information, and it may also indicate that the target program is in an unregistered state. Furthermore, a target page can be entered based on the resource locator, and then whether the target page needs to be logged in or not can be judged by utilizing an algorithm, if not, the target page can be directly entered, and the target page can be directly displayed to a user; if the target page needs to be logged in, the interface can be used for jumping to a login interface to which a target program corresponding to the target page belongs, so that a user can edit user information in an input edit box of the initial login interface, the user information stored in a main application program to which the target program belongs can be called in the initial login interface, the user information can be sent to a server, and the server can generate login token information corresponding to the user information, so that the target page can be logged in based on the login token information.
Optionally, the method further includes: jumping to a pre-verification page corresponding to the target page based on the resource locator, and jumping to an initial login interface to which a target program belongs when the field content of a target field in the resource locator is determined to be empty based on the pre-verification page; and acquiring a main program affiliated to the target program and user information corresponding to the main program on the initial login interface so as to generate login token information according to the user information.
The initial login interface can be understood as a login interface corresponding to the target program. The main program can be understood as an application program to which the target program belongs, and the target program can be a small program built in the main program.
It should be noted that, based on the resource locator, the method jumps to the pre-authentication page corresponding to the target page, in the pre-authentication page, the field content of the target field in the resource locator may be obtained by using the interface, and then whether the field content includes the login token information may be checked, if the field content is empty, the field content does not include the login token information, and it may also indicate that the target program is in an unregistered state, and then the target page may be entered, and whether the current target page needs to be logged in may be determined by using the algorithm. If not, the target page can be directly entered, and the target page can be directly displayed to the user, if so, the target page can judge whether the target page is in a login state by using an algorithm, at the moment, the field content does not contain login token information, the target page is not in stealth login, an instruction request for closing the current target page, jumping to the initial login interface to which the target program belongs, meanwhile, the address of the current target page can be transmitted to the initial login interface of the target program through url parameters, further, the initial login interface of the target program can be entered, the user information corresponding to the main program affiliated to the target program can be called by using the interface, the called user information may be used as login information of the target program, the login information may be transmitted to the server, and the server may generate login token information corresponding to the login information. So that the login token information can be spliced to the target position of the resource locator corresponding to the target page again subsequently, and the page jump request corresponding to the target page is generated. Furthermore, the method can skip to the pre-verification page again based on the resource locator carrying the login token information, the pre-verification page can obtain the field content of the target field in the resource locator again for judgment, the field content is not empty, the target page can use the login token information for automatic login, and the target page is in a login state.
Specifically, based on the resource locator, jumping to a pre-verification page corresponding to a target page, when the pre-verification page judges that the field content of a target field in the resource locator is empty by using an algorithm, jumping to an initial login interface to which a target program belongs by using an interface, further calling user information corresponding to a main program to which the target program belongs, taking the user information as login information of the target program, performing login operation on the target program, butting the target program to a server, and obtaining login token information corresponding to the user information at the server side so that a subsequent target page can be automatically logged in by using the login token information.
It should be noted that after the main program to which the target program belongs is acquired, and the user information corresponding to the main program is acquired, the login token information corresponding to the user information is acquired at the server side, and further, the login token information can be spliced to the target position of the resource locator corresponding to the target page, so that the resource locator can be updated, and the resource locator carrying the login token information is obtained.
Optionally, after the obtaining the main program to which the target program belongs and obtaining the user information corresponding to the main program, the method further includes: and generating the login token information based on the user information, and updating the resource locator based on the login token information.
Specifically, the target program may log in using user information corresponding to the main program as login information, and may send the user information to the server side using the interface, where the server performs validity verification on the user information, and if the verification is successful, the target program may log in, and at the same time, may also generate a login identifier, that is, login token information, for representing the login information within a preset time period. The login token information can be transmitted to the target program through the interface, the login token information can be spliced to the resource locator, the resource locator carrying the login token information is generated, then the previous verification page corresponding to the target page is jumped to based on the resource locator again, at the moment, the previous verification page judges that the login token information is carried in the field content of the target field in the resource locator, namely the field content is not empty, and therefore the target page can use the login token information to automatically log in.
In the technical scheme of the embodiment, when the page jump request is received, the resource locator corresponding to the page jump request is acquired, if the target field of the resource locator comprises the login token information, then the target page corresponding to the page jump request is jumped to based on the resource locator, the problem that the login states of the H5 page embedded by the applet and the applet are not intercommunicated in the prior art is solved, when the page jump request corresponding to the target page is generated, splicing the login token information of the target program to the position of the resource locator corresponding to the page jump request, so that the target page can be logged in by using the login token information of the target program, the login state intercommunication of the H5 page embedded by the applet and the applet is realized, meanwhile, the user does not need to input login information frequently, and the technical effect of improving the user experience is achieved.
Example two
As an optional embodiment of the foregoing embodiment, fig. 2 is a schematic flow chart of a page jump method according to a second embodiment of the present invention, and specifically, the following details may be referred to.
For example, as shown in fig. 2, the applet may trigger an operation of embedding into a target page, where the target page may be an H5 page embedded in the applet, and further may determine whether the applet has logged in, and if the applet has logged in, the applet has logged in token information, and may splice the logged in token information into resource locator information, that is, url parameter, and enter a unified pre-authentication page of the target page without directly entering the target page. If the applet is not logged in, the unified pre-verification page of the target page can be entered. In the preposed verification page, if the url parameter carries login token information, the login token information is used for automatic login to obtain user information, at the moment, the user has implicitly logged in the target page, the user has no perception, and then the user can enter the target page. If the url parameter does not carry the login token information, the target page can be entered. The target page judges whether the target page needs to log in and whether the target page logs in currently, and if the target page does not need to log in or logs in, the target page is directly displayed; and if the login is needed and the current login is not needed, jumping back to the login page of the small program, and transmitting the address of the current target page to the login page of the small program through url parameters. Furthermore, a small program login page can be entered, user information corresponding to a main program to which the small program belongs is called to log in, login token information is taken after login is successful, the small program is in a login state, then the unified preposed authentication page is returned, the embedded target page flow is entered again, and the login token information is carried at the moment. Furthermore, after the login token information is carried again and the H5 page flow is entered, the implicit automatic login is successful in the target page, and then the target page can be displayed to the user.
In the technical scheme of the embodiment, when the page jump request is received, the resource locator corresponding to the page jump request is acquired, if the target field of the resource locator comprises the login token information, then the target page corresponding to the page jump request is jumped to based on the resource locator, the problem that the login states of the H5 page embedded by the applet and the applet are not intercommunicated in the prior art is solved, when the page jump request corresponding to the target page is generated, splicing the login token information of the target program to the position of the resource locator corresponding to the page jump request, so that the target page can be logged in by using the login token information of the target program, the login state intercommunication of the H5 page embedded by the applet and the applet is realized, meanwhile, the user does not need to input login information frequently, and the technical effect of improving the user experience is achieved.
EXAMPLE III
Fig. 3 is a block diagram of a page jump apparatus according to a third embodiment of the present invention. The device includes: a resource locator obtaining module 310 and a target page jumping module 320.
The resource locator obtaining module 310 is configured to, when a page jump request is received, obtain a resource locator corresponding to the page jump request; a target page jump module 320, configured to jump to a target page corresponding to the page jump request based on the resource locator if the target field of the resource locator includes login token information.
In the technical scheme of the embodiment, when the page jump request is received, the resource locator corresponding to the page jump request is acquired, if the target field of the resource locator comprises the login token information, then the target page corresponding to the page jump request is jumped to based on the resource locator, the problem that the login states of the H5 page embedded by the applet and the applet are not intercommunicated in the prior art is solved, when the page jump request corresponding to the target page is generated, splicing the login token information of the target program to the position of the resource locator corresponding to the page jump request, so that the target page can be logged in by using the login token information of the target program, the login state intercommunication of the H5 page embedded by the applet and the applet is realized, meanwhile, the user does not need to input login information frequently, and the technical effect of improving the user experience is achieved.
On the basis of the foregoing apparatus, optionally, the resource locator obtaining module 310 includes: a user information determining unit and a page jump request generating unit.
And the user information determining unit is used for determining whether the target program comprises the pre-edited user information when the operation of jumping to the target page based on the target program is detected and triggered.
And the page jump request generating unit is used for generating the page jump request based on the user information and the resource locator information to be spliced of the target page if the user information and the resource locator information to be spliced of the target page exist.
On the basis of the foregoing apparatus, optionally, the page jump request generating unit includes: a login token information generation subunit and a page jump request generation subunit.
And the login token information generating subunit is used for generating login token information according to the user account and the password in the user information.
And the page jump request generating subunit is used for splicing the login token information at the target position of the resource locator information to be spliced to generate the page jump request.
On the basis of the foregoing apparatus, optionally, the target page jump module 320 includes: a field content acquisition unit and a target page jump unit.
And the field content acquisition unit is used for jumping to a pre-verification page corresponding to the target page based on the resource locator and acquiring the field content of the target field in the resource locator based on the pre-verification page.
And the target page jumping unit is used for jumping to the target page based on the resource locator if the field content comprises the login token information.
On the basis of the above device, optionally, the device further includes:
the initial login interface skipping module is used for skipping to a pre-verification page corresponding to the target page based on the resource locator, and skipping to an initial login interface to which a target program belongs when the field content of a target field in the resource locator is determined to be empty based on the pre-verification page;
and the login token information generating module is used for acquiring a main program affiliated to the target program on the initial login interface, acquiring user information corresponding to the main program and generating login token information according to the user information.
On the basis of the foregoing apparatus, optionally, the login token information generating module includes: and a resource locator updating unit.
And the resource locator updating unit is used for generating the login token information based on the user information and updating the resource locator based on the login token information.
The page jump device provided by the embodiment of the invention can execute the page jump method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of a device for calling a component according to a fourth embodiment of the present invention. FIG. 4 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing, for example, implementing a page jump method provided by an embodiment of the present invention, by running a program stored in the system memory 402.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a page jump method. The method comprises the following steps:
when a page jump request is received, acquiring a resource locator corresponding to the page jump request;
and if the target field of the resource locator comprises login token information, jumping to a target page corresponding to the page jump request based on the resource locator.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A page jump method is characterized by comprising the following steps:
when a page jump request is received, acquiring a resource locator corresponding to the page jump request;
and if the target field of the resource locator comprises login token information, jumping to a target page corresponding to the page jump request based on the resource locator.
2. The method of claim 1, wherein before the obtaining of the resource locator corresponding to the page jump request when the page jump request is received, the method comprises:
when detecting and triggering the operation of jumping to a target page based on a target program, determining whether the target program comprises pre-edited user information;
and if so, generating the page jump request based on the user information and the resource locator information to be spliced of the target page.
3. The method of claim 1, wherein the generating the page jump request based on the user information and resource locator information to be spliced of the target page comprises:
generating login token information according to a user account and a password in the user information;
and splicing the login token information at the target position of the resource locator information to be spliced to generate the page jump request.
4. The method of claim 1, wherein jumping to a target page corresponding to the page jump request based on the resource locator if login token information is included in a target field of the resource locator comprises:
jumping to a pre-verification page corresponding to the target page based on the resource locator, and acquiring field content of a target field in the resource locator based on the pre-verification page;
and if the field content comprises the login token information, jumping to the target page based on the resource locator.
5. The method of claim 1, further comprising:
jumping to a pre-verification page corresponding to the target page based on the resource locator, and jumping to an initial login interface to which a target program belongs when the field content of a target field in the resource locator is determined to be empty based on the pre-verification page;
and acquiring a main program affiliated to the target program and user information corresponding to the main program on the initial login interface so as to generate login token information according to the user information.
6. The method according to claim 1, after the obtaining the main program to which the target program belongs and obtaining the user information corresponding to the main program, further comprising:
and generating the login token information based on the user information, and updating the resource locator based on the login token information.
7. A page jump apparatus, comprising:
the resource locator obtaining module is used for obtaining a resource locator corresponding to the page jump request when the page jump request is received;
and the target page skipping module is used for skipping to a target page corresponding to the page skipping request based on the resource locator if the target field of the resource locator comprises login token information.
8. The apparatus of claim 7, further comprising:
the initial login interface skipping module is used for skipping to a pre-verification page corresponding to the target page based on the resource locator, and skipping to an initial login interface to which a target program belongs when the field content of a target field in the resource locator is determined to be empty based on the pre-verification page;
and the login token information generating module is used for acquiring a main program affiliated to the target program on the initial login interface, acquiring user information corresponding to the main program and generating login token information according to the user information.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the page jump method as recited in any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the page jump method according to any one of claims 1-6.
CN202111376276.6A 2021-11-19 2021-11-19 Page jump method and device, electronic equipment and storage medium Pending CN113961836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111376276.6A CN113961836A (en) 2021-11-19 2021-11-19 Page jump method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111376276.6A CN113961836A (en) 2021-11-19 2021-11-19 Page jump method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113961836A true CN113961836A (en) 2022-01-21

Family

ID=79471251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111376276.6A Pending CN113961836A (en) 2021-11-19 2021-11-19 Page jump method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113961836A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816637A (en) * 2022-04-27 2022-07-29 瀚云科技有限公司 Application display method, device and system embedded into applet
CN116127435A (en) * 2023-04-17 2023-05-16 深圳市活力天汇科技股份有限公司 Webpage login method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816637A (en) * 2022-04-27 2022-07-29 瀚云科技有限公司 Application display method, device and system embedded into applet
CN114816637B (en) * 2022-04-27 2024-03-01 瀚云科技有限公司 Application display method, device and system embedded in applet
CN116127435A (en) * 2023-04-17 2023-05-16 深圳市活力天汇科技股份有限公司 Webpage login method and device

Similar Documents

Publication Publication Date Title
CN110392054B (en) Login verification method, device, system, equipment and readable storage medium
CN107528858B (en) Login method, device and equipment based on webpage and storage medium
CN113961836A (en) Page jump method and device, electronic equipment and storage medium
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN111818035B (en) Permission verification method and device based on API gateway
CN110324416B (en) Download path tracking method, device, server, terminal and medium
US20180357404A1 (en) Information processing method and apparatus, and electronic device
JP6877343B2 (en) Handling unstructured messages
CN110826036A (en) User operation behavior safety identification method and device and electronic equipment
CN110570293A (en) method, device, server and storage medium for reimbursing collected invoices
CN112929835B (en) Message notification method, device, electronic terminal and storage medium
US10958726B2 (en) Method of synchronizing device list in a smart network system, apparatus, and computer storage medium thereof
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN110719590B (en) One-key login method, device, equipment and storage medium based on mobile phone number
CN104702650A (en) Method and device for acquiring application pages
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
CN112822023B (en) Communication information transmitting method, information access method, device and storage medium
CN113746837B (en) Information processing method and apparatus, electronic device, and computer readable medium
CN109543398B (en) Application program account migration method and device and electronic equipment
CN108920589B (en) Browsing hijacking identification method, device, server and storage medium
CN113965360A (en) Intelligent device cloud server access method, device, medium, device and system
CN108471635B (en) Method and apparatus for connecting wireless access points
CN111143650A (en) Method, device, medium and electronic equipment for acquiring page data
CN111800286A (en) Detection method and device of intranet assets and electronic equipment
US9942185B2 (en) Hyperlink validation

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