CN109492181B - Page jump method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN109492181B
CN109492181B CN201811223313.8A CN201811223313A CN109492181B CN 109492181 B CN109492181 B CN 109492181B CN 201811223313 A CN201811223313 A CN 201811223313A CN 109492181 B CN109492181 B CN 109492181B
Authority
CN
China
Prior art keywords
page
unified
jump
page jump
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811223313.8A
Other languages
Chinese (zh)
Other versions
CN109492181A (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201811223313.8A priority Critical patent/CN109492181B/en
Publication of CN109492181A publication Critical patent/CN109492181A/en
Application granted granted Critical
Publication of CN109492181B publication Critical patent/CN109492181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to big data and provides a page jumping method, a page jumping device, computer equipment and a storage medium. The method comprises the following steps: monitoring a page jump event of a first application; when the current page jump event is monitored, acquiring a target unified page jump protocol corresponding to the current page jump event; analyzing a target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters; acquiring a corresponding target page jump method according to the target page jump parameters; and executing the page jump according to the target page jump method. The page jumping method, the device, the computer equipment and the storage medium can provide a unified protocol for jumping any page in the application, and improve the convenience of page jumping.

Description

Page jump method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a page skip method, a page skip device, a computer device, and a storage medium.
Background
With the development of computer technology, more and more users open web pages in application programs to browse information, and with the increase of business, the number of pages is increased, and mutual jump between different pages is needed.
Traditional intra-application page hopping and inter-application page hopping need to negotiate and agree on parameters in advance for each page, the implementation of hopping is complex, and the hopping range is limited.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, a computer device and a storage medium for page skip to solve the above-mentioned technical problems, which can provide a unified protocol for skip of any page in an application, and improve convenience of page skip.
A method of page jumping, the method comprising:
Monitoring a page jump event of a first application;
when the current page jump event is monitored, acquiring a target unified page jump protocol corresponding to the current page jump event;
analyzing the target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters;
acquiring a corresponding target page jump method according to the target page jump parameter;
and executing page jumping according to the target page jumping method.
In one embodiment, the method further comprises:
when the first application is started, acquiring a unified page jump protocol identifier corresponding to the first application;
Acquiring a corresponding first unified page jump protocol set from a server according to the first unified page jump protocol identifier, wherein the first unified page jump protocol set comprises first unified page jump protocols corresponding to each first page jump event;
And storing the first unified page jump protocol set locally.
In one embodiment, the method further comprises:
When a first page of the first application is loaded, a second unified page jump protocol identification corresponding to the first page is acquired;
Acquiring a corresponding second unified page jump protocol set from a server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event;
and storing the second unified page jump protocol set locally.
In one embodiment, the method further comprises:
searching each target page in the first application, and generating a target page jump function corresponding to each target page;
acquiring a unified protocol analysis function, and storing a target page skip function and the unified protocol analysis function corresponding to each target page in a unified skip class;
The step of obtaining the corresponding target page jump method according to the target page jump parameter, and the step of executing the page jump according to the target page jump method comprises the following steps:
Analyzing the target unified page jump protocol according to the unified protocol analysis function in the unified jump class;
And executing the page jump through the target page jump function when the target page jump function corresponding to the target page jump parameter exists in the unified jump class.
In one embodiment, the method further comprises:
Acquiring a page jump update request;
acquiring a target update jump page according to the page jump update request;
When the page jump updating request is a modification request or a deletion request, acquiring a corresponding page jump function to be updated from the unified jump class according to the target update jump page;
Executing corresponding updating operation on the page jump function to be updated according to the page jump updating request;
And when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into the unified jump class.
In one embodiment, the method further comprises:
Acquiring a start byte and a stop byte of a target page parameter from the target unified page skip protocol by searching a preset character string;
Acquiring characters between the initial byte and the termination byte to obtain the target page parameters;
acquiring a first page transfer parameter from the target unified page skip protocol according to the termination byte;
And reading a plurality of other page transfer parameters after the first page transfer parameters from the unified page jump protocol according to the page transfer parameter connector.
In one embodiment, the method further comprises:
the first application receives starting instructions initiated by other applications;
entering a starting page according to the starting instruction, and acquiring starting parameters in the starting instruction;
When the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol, calling the unified jump class according to the starting page jump parameters, and entering the unified jump class;
and acquiring a corresponding current target page jump function from the unified jump class according to the starting page jump parameter, and executing corresponding page jump according to the current target page jump function.
A page jumping apparatus, the apparatus comprising:
The event monitoring module is used for monitoring a page jump event of the first application;
the protocol acquisition module is used for acquiring a target unified page jump protocol corresponding to the current page jump event when the current page jump event is monitored;
The protocol analysis module is used for analyzing the target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters;
the method acquisition module is used for acquiring a corresponding target page jump method according to the target page jump parameter;
and the page jumping module is used for executing page jumping according to the target page jumping method.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when the program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
According to the page jump method, the device, the computer equipment and the storage medium, through monitoring the page jump event of the first application, when the current page jump event is monitored, the unified page jump protocol corresponding to the current page jump event is acquired, then the page jump parameter is acquired through analyzing the unified page jump protocol, the page jump parameter comprises the target page parameter, finally the corresponding target page jump method is acquired according to the page jump parameter, the page jump is executed according to the target page jump method, the unified protocol can be provided for the jump of any page in the application, and the convenience of the page jump is improved.
Drawings
FIG. 1 is an application environment diagram of a page jump method in one embodiment;
FIG. 2 is a method flow diagram of a page jump method in one embodiment;
FIG. 3 is a flow diagram of a method for first unified page jump protocol set storage in a page jump method in one embodiment;
FIG. 4 is a method flow diagram of a page jump method in another embodiment;
FIG. 5 is a flow chart of a method of inter-application skip steps in a page skip method in one embodiment;
FIG. 6 is a flow chart of a method for performing a page skip step in a page skip method in one embodiment;
FIG. 7 is a schematic diagram of a page jumping apparatus according to an embodiment;
FIG. 8 is a schematic diagram of the internal structure of a computer device in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The page jump method provided in the embodiment of the present invention may be applied to an application environment as shown in fig. 1, where the server 102 and the terminal 104 are connected through a network, and the number of the terminals 104 may be multiple. When the terminal 104 monitors the current page jump event, a target unified page jump protocol corresponding to the current page jump event is acquired, the terminal 104 then analyzes the target unified page jump protocol to acquire target page jump parameters, the target page jump parameters comprise the target page parameters, the terminal 104 acquires a corresponding target page jump method according to the target page jump parameters, finally the terminal 104 executes page jump according to the target page jump method, the target page jump method is a specific method for realizing target page jump, a corresponding target page resource acquisition request can be generated, and the target page resource acquisition request is sent to the server 102, so that target page resources are acquired, the target page resources comprise display files corresponding to target pages, and accordingly the target page resources can be jumped and displayed. If the target page resource corresponding to the target page resource acquisition request is local, the target page resource can be acquired from the local, and the target page can be quickly jumped and displayed. When the page jump parameter comprises a target page transfer parameter, the target page transfer parameter is transferred to a target page jump method, and the target page jump method executes page jump according to the target page transfer parameter.
The following embodiment will be described by taking the example that the page jump method is applied to the terminal 104 in fig. 1 as an example, but it should be noted that the method is not limited to being applied to the terminal in practical application.
As shown in fig. 2, a flowchart of a page jump method in one embodiment specifically includes the following steps:
step 202, listening for a page jump event of a first application.
The first application is various application programs, also called APP, and can run in Android, IOS or other systems of the same type. The page jump event is an event requiring page jump, and can be triggered to jump to a page jump event of a first page or a page jump event of a target page by opening a first page when starting an application. The manner of monitoring the page jump event of the first application may be customized, in an embodiment, a unified classjump class may be provided, the classjump class is a unified jump class, and monitoring is performed on a click method in the application program by implementing the class classjump, where the click method means that when an element is clicked, a corresponding operation is performed, that is, when a button is clicked, the monitoring is performed, and whether the page jump event of the first application, that is, whether the page jump event occurs in the monitoring application program, is performed. In one embodiment, the first application's page jump event is listened to by a system self-contained listening method.
And 204, when the current page jump event is monitored, acquiring a target unified page jump protocol corresponding to the current page jump event.
Specifically, when the current page jump event is monitored, the onclick method may be required to be executed, that is, when the current page jump event is monitored. The unified page jump protocol is a page jump protocol written by unified preset rules, is a universal parameter transmission protocol, and can be applied to systems such as IOS, android and the like, so that a jump mode is not needed to be realized among all pages in the application, and even if a version is released, the jump among the pages can be realized conveniently. For example, the current page includes three virtual keys, the three virtual keys correspond to 3 page jump events, each page jump event corresponds to a unified page jump protocol, if the three virtual keys can jump to an a page, a B page and a C page respectively, then the target pages in the unified page jump protocol corresponding to the three virtual keys are the a page, the B page and the C page respectively. The target unified page jump protocol corresponding to each virtual key can be found through the association relation between the page jump event and the unified page jump protocol.
In step 206, the target unified page jump protocol is analyzed to obtain target page jump parameters, wherein the target page jump parameters include target page parameters.
The protocol format of the target unified page jump protocol can be customized according to the requirement, so that a corresponding analysis method is determined according to the customized rule, and the target unified page jump protocol is analyzed through the analysis method to obtain the target page jump parameter. The target page parameter may be a target page identification, a target page address, etc. When the transfer parameter is needed for jumping the page, the page jump parameter also comprises the page transfer parameter.
Step 208, obtaining a corresponding target page jump method according to the target page jump parameter.
Specifically, a corresponding target page jump method can be obtained according to the target page jump parameter, the target page jump method is a specific method for realizing target page jump, the target page jump method can generate a corresponding target page resource obtaining request, the target page resource obtaining request is a request for obtaining target page resources, the target page resource obtaining request is sent to a server, so that target page resources are obtained, the target page resources comprise display files corresponding to the target page, and therefore the target page resources can be jumped and displayed by analyzing the target page resources.
Step 210, executing the page jump according to the target page jump method.
Specifically, when the target page resource corresponding to the target page resource obtaining request is local, the target page resource can be obtained from the local, and the target page can be quickly jumped to and displayed. When the page jump parameter comprises a target page transfer parameter, the target page transfer parameter is transferred to the target page jump method, so the target page jump method can also execute the page jump according to the target page transfer parameter.
In this embodiment, the terminal monitors a page jump event of the first application, when monitoring a current page jump event, acquires a target unified page jump protocol corresponding to the current page jump event, and then analyzes the target unified page jump protocol to acquire a target page jump parameter, wherein the target page jump parameter includes the target page parameter, acquires a corresponding target page jump method according to the target page jump parameter, and then executes the page jump according to the target page jump method. The method has the advantages that the skip among different pages is realized through the unified page skip protocol, page parameters are written into the unified page skip protocol through the unified format, so that the page parameters can be obtained through analysis only by the unified analysis rule, the skip mode among all pages in the application is not needed to be realized in advance, the unified protocol can be provided for skip of any page in the application, and the convenience of page skip is improved.
In one embodiment, as shown in FIG. 3, step 202 is preceded by the further step of:
Step 302, when a first application is started, a first unified page skip protocol identifier corresponding to the first application is obtained.
The first unified page jump protocol identifier is used for uniquely identifying a unified page jump protocol set, the unified page jump protocol set comprises at least one unified page jump protocol, the first unified page jump protocol identifier corresponding to the first application can be one or more, different first unified page jump protocol identifiers can be determined for application program users according to different interests of each user, if the user A has a car, the user A can determine the first unified page jump protocol identifier as each page jump event corresponding to a vehicle management service, and since one vehicle management page possibly comprises a plurality of page jump events, the first unified page jump protocol set comprises the unified page jump protocol corresponding to each page jump event. Further, the corresponding first unified page jump protocol identifier can be determined for the application according to the use frequency of each page in the application, if the friend making service is the service with the highest page access frequency, the page jump protocol identifier of the page jump corresponding to the friend making service is determined to be the first target service identifier, the specific determination algorithm of the first unified page jump protocol identifier corresponding to each application can be customized according to the user requirement, and when the first application is started, the first unified page jump protocol identifier corresponding to the first application is obtained.
Step 304, obtaining a corresponding first unified page jump protocol set from the server according to the first unified page jump protocol identifier, where the first unified page jump protocol set includes unified page jump protocols corresponding to each first page jump event.
The first unified page jump protocol set is a set of a plurality of first unified page jump protocols, and each first unified page jump protocol corresponds to each first page jump event.
Step 306, the first unified page jump protocol set is stored locally.
The first unified page jump protocol set is stored locally, and can be quickly fetched from the local when the first unified page jump protocol is obtained according to the first page jump event, so that the page jump time is shortened.
In this embodiment, when the first application is started, by acquiring the first unified page jump protocol identifier corresponding to the first application and then according to the first unified page jump protocol set corresponding to the first unified page jump protocol identifier, the first unified page jump protocol set includes unified page jump protocols corresponding to each first page jump event, and then the first unified page jump protocol set is locally stored, so that when the page is jumped, a target unified page jump protocol corresponding to the current page jump time can be acquired quickly, and convenience of page jump is improved.
In one embodiment, the method further comprises: when a first page of a first application is loaded, the terminal acquires a second unified page jump protocol identifier corresponding to the first page, and acquires a corresponding second unified page jump protocol set from the server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event, and the second unified page jump protocol set is stored locally.
The first page is a certain page in the first application, one or more second unified page jump protocol identifiers can be used, a corresponding second unified page jump protocol set can be obtained from the server through the second unified page jump protocol identifiers, and the second unified page jump protocol set determines a target jump page corresponding to the first page, namely, the first page can jump to other pages. And finally, storing the acquired second unified page jump protocol set locally, wherein the purpose is to quickly acquire the corresponding second unified page jump protocol when the second page needs to be jumped later. And obtaining one or more corresponding second unified skip protocols through the one or more second unified skip protocol identifiers, wherein the second unified skip protocol sets are the second unified page skip protocol sets.
In this embodiment, when a first page of a first application is loaded, a second unified page jump protocol identifier corresponding to the first page is obtained, then a second unified page jump protocol set including a plurality of second unified page jump protocols is obtained from a server according to the second unified page jump protocol identifier, and finally the second unified page jump protocol set is stored locally, so that the second unified page jump protocol is stored when a certain page is loaded, and page jump can be conveniently and rapidly realized.
The storage of each unified page jump protocol can be carried out when one application is started or the storage of the unified page jump protocol corresponding to a certain page in the application is carried out when the page is opened, so that the storage of the unified page jump protocol is carried out in a hierarchical mode.
In one embodiment, before listening for the page jump event of the first application, further comprising: the terminal searches each target page in the first application, generates a target page skip function corresponding to each target page, acquires a unified protocol analysis function, and stores the target page skip function and the unified protocol analysis function corresponding to each target page in a unified skip class. In one embodiment, steps 208 and 210 further comprise: and analyzing the unified page jump protocol according to the unified protocol analysis function in the unified jump class, and executing the page jump through the target page jump function when the target page jump function corresponding to the target page jump parameter exists in the unified jump class.
And each target page in the first application, namely the skip page corresponding to each page skip event, generates a target page skip function corresponding to each target page by searching each target page, wherein the target page skip function is used for executing the skip of the target page. The unified protocol analysis function is used for analyzing the unified protocol, storing the target page jump function and the unified protocol analysis function in a unified jump class, analyzing the target unified page jump protocol through the unified protocol analysis function to obtain target page jump parameters when the target unified page jump protocol corresponding to the page jump event is obtained, and executing the page jump operation by the terminal when the target page jump function corresponding to the target page jump parameters exists in the unified jump class. Further, the application program can provide a byte code insertion code, wherein the byte code is a binary file comprising an execution program and consisting of a sequence of op code/data pairs, and the byte code file can be uniformly scanned during compiling, so that all activity/fragment/webview pages in the application are recorded. The activity/fragment/webview pages are different types of target pages. For these types of target pages, target page hopping functions corresponding to each page may be generated and placed in a unified hopping class, which may be classJump classes.
In this embodiment, each target page in the first application is searched before a page skip event is monitored, a target page skip function corresponding to each target page is generated, then a unified protocol analysis function is obtained, the target page skip function and the unified protocol analysis function corresponding to each target page are stored in a unified skip class, then the unified page skip protocol is analyzed according to the unified protocol analysis function in the unified skip class, and whether the target page skip function corresponding to the target page skip parameter exists in the unified skip class is judged, if so, page skip is executed through the target page skip function, so that seamless skip among all pages in the application program is realized.
In one embodiment, as shown in fig. 4, step 202 is preceded by the further step of:
step 402, a page jump update request is obtained.
The page jump update request is a jump request of a page waiting for update, and can be used for updating jump logic among pages after the release of an application program version, and the starting codes corresponding to the target update jump page, namely the target page jump function, can be dynamically adjusted or deleted through classJump types, namely the dynamic upgrading of unified jump types, so that seamless jump among all pages in the application program is realized.
Step 404, obtaining the target update jump page according to the page jump update request.
Step 406, when the page jump update request is a modification request or a deletion request, obtaining a corresponding page jump function to be updated from the unified jump class according to the target update jump page.
When the page jump updating request is a modification request or a deletion request, acquiring a page jump function to be updated from the unified jump class according to the target update jump page, wherein the page jump function to be updated is used for executing page jump operation.
Step 408, executing the corresponding updating operation for the page skip function to be updated according to the page skip updating request.
When the received page jump update request is a modification request, the page jump function to be updated is modified correspondingly, and when the received page jump update request is a deletion request, the page jump function to be updated is deleted correspondingly.
Step 410, when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into the unified jump class.
When the page jump update request is generated, the generation request means that a new page jump function needs to be generated, at the moment, an updated page jump function corresponding to the target updated jump page is generated in response to the page jump update generation request, and the generated updated page jump function is a jump function which is not stored in the unified jump class in advance, so that the updated page jump function is stored in the unified jump class in the step.
In this embodiment, a terminal obtains a skip update request of a page, then obtains a target update skip page according to the page skip update request, obtains a corresponding page skip function to be updated from a unified skip class according to the target update skip page when the page skip update request is a modification request or a deletion request, then executes a corresponding update operation on the page skip function to be updated according to the page skip update request, generates an update page skip function corresponding to the target update skip page when the page skip update request is a generation request, and finally stores the update page skip function into the unified skip class, thereby realizing dynamic upgrade of the unified skip class after release of an application version, realizing dynamic adjustment or deletion of a startup code of the page, and realizing convenient skip among all pages in the application.
In one embodiment, the parsing target unified page jump protocol obtains page jump parameters, including: acquiring a start byte and a stop byte of a target page parameter from a unified page jump protocol by searching a preset character string, acquiring characters between the start byte and the stop byte to obtain the target page parameter, acquiring a first page transfer parameter from the unified page jump protocol according to the stop byte, and reading a plurality of other page transfer parameters after the first page transfer parameter is read from the unified page jump protocol according to a page transfer parameter connector.
The method comprises the steps that a preset character string is a character string preset by a terminal, a start byte and a stop byte of a target page parameter are obtained according to the preset character string, the start byte and the stop byte are used for obtaining the target page parameter, the stop byte is also used for obtaining a first page transfer parameter, and a first page transfer parameter connector is a connector for connecting a plurality of page transfer parameters. When a transfer parameter is required to jump to a page, the page jump parameter may include a page transfer parameter. For example, the format of the unified page jump protocol may be: jumpUrl:// PAGEAPARA M1=x1 & param2=x2, wherein the predetermined string is jumpUrl:///, the target page parameter start byte is//, and the target page end byte is? Parameter connector is transferred for page. If the page pageA has a required page transfer parameter, the required page pageA marks the page transfer parameter "@ paramA, and when the" unified skip class generates the target page skip function of the page pageA, the variable is increased to be the input parameter value.
In this embodiment, the start byte and the stop byte of the target page parameter are obtained from the unified page skip protocol by searching the preset character string, then the target page parameter is obtained by obtaining the characters between the start byte and the stop byte, then the first page transfer parameter is obtained from the unified page skip protocol according to the stop byte, and a plurality of other page transfer parameters after the first page transfer parameter is read from the unified page skip protocol according to the page transfer parameter connector, so that an application program can be started according to different system specifications through the page transfer parameter, a unified protocol can be provided for skip of any page in the application, and convenience of page skip is improved.
In one embodiment, as shown in fig. 5, the method may further include:
In step 502, a first application receives a start instruction initiated by another application.
The first application can receive starting instructions initiated by other applications, the other applications can be various types of application programs, and the starting instructions are page jump starting instructions.
Step 504, entering a starting page according to the starting instruction, and acquiring starting parameters in the starting instruction.
The process of entering the starting page can be completed by the system, after the starting page is opened, the starting parameters in the starting instruction are obtained, and the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol.
Step 506, when the starting parameters include the starting page skip parameters corresponding to the target unified page skip protocol, calling the unified skip class according to the starting page skip parameters, and entering the unified skip class.
The application program can be started through other application programs carrying the starting page skip parameters according to the specifications of the system to which the terminal belongs, such as IOS and Android specifications, and classJump types, namely unified skip types, are called in the starting page of the application program, so that the purpose of skipping from the external application program to any page of the application is achieved. The application program pulls up other application programs, and the startup page parameters are transmitted through the Intent, which is used for solving the communication among various components of the application in the system. The process is completed by the system, the application program is pulled up, and the starting page is opened.
Step 508, obtaining the corresponding current target page skip function from the unified skip class according to the starting page skip parameter, and executing the corresponding page skip according to the current target page skip function.
And storing the current target page jump function corresponding to the starting page jump parameter in the unified jump class, and jumping the page according to the target page jump function in the unified jump class. For example, after the starting page is opened, judging according to the input starting page skip parameter at the starting page, if the starting page skip parameter has a string of jumpurl:// then invoking classjump class, entering classjump for analysis, and skipping to the corresponding page.
In this embodiment, a first application receives a start instruction initiated by another application, then enters a start page according to the start instruction, acquires a start parameter in the start instruction, calls a unified skip class according to the start page skip parameter when the start parameter includes a start page skip parameter corresponding to a target unified page skip protocol, enters the unified skip class, finally acquires a corresponding current target page skip function from the unified skip class according to the start page skip parameter, executes a corresponding page skip according to the current target page skip function, and skips from an external application to an arbitrary page of the application.
In one embodiment, as shown in FIG. 6, performing a page jump includes the steps of:
Step 602, a new target page targetB page, namely a jump protocol: jump,// targetBparam =x & param2=y.
Specifically, targetB pages are target jump pages, and the jump protocol is a target unified page jump protocol. Wherein the predetermined character string is jump:///, the target page parameter start byte is//, and the target page end byte is? And the page transfer parameter connector and the param1 and the param2 are page transfer parameters. Page targetB has the required page transfer parameters, then param1 and param2 are required.
Step 604, classjump class parses the jump protocol, and the protocol identification is fixed (optional): jump://, parameter target page (optional): targetB, parameters (optional): param1=x, a number of parameter connectors: and &.
Wherein, classjump is unified skip class, classjump is used for resolving unified page skip protocol.
In step 606, the target page is searched in the classjump class, the search succeeds in step 610, and the search fails in step 608.
The classjump class stores a target page skip function and a unified protocol analysis function corresponding to each target page, and searches the target page in classjump class, if the target page is successfully searched, the corresponding target page skip method is obtained according to the target page skip parameters.
In step 608, the open targetB fails.
At step 610, classjump goes to the open method of designation targetB.
The method for opening the target page comprises the steps of designating targetB an opening method, namely acquiring a corresponding target page jump method according to a target page jump parameter, wherein the target page jump method is a specific method for realizing target page jump, the target page jump method can generate a corresponding target page resource acquisition request, the target page resource acquisition request is a request for acquiring target page resources, the target page resource acquisition request is sent to a server, so that target page resources are acquired, a presentation file corresponding to the target page is included in the target page resources, and therefore the target page resources can be jumped and displayed by analyzing the target page resources.
Step 612, open targetB. Opening targetB is to execute page jump, and targetB is to target page.
In this embodiment, by acquiring a new target page targetB pages, i.e. the jump protocol: jump:// targetBparam 1=x & param2=y, and then using classjump class parsing jump protocol, the protocol identification is fixed (optional): jump://, parameter target page (optional): targetB, parameters (optional): param1=x, a number of parameter connectors: and then searching the target page from the classjump types, wherein the successful searching executes the page skip, thereby realizing the skip among the pages rapidly.
FIG. 7 is a schematic diagram of a page skip apparatus in an embodiment, the apparatus including:
The event monitoring module 702 is configured to monitor a page skip event of the first application.
And the protocol acquisition module 704 is configured to acquire a target unified page jump protocol corresponding to the current page jump event when the current page jump event is monitored.
The protocol parsing module 706 is configured to parse the target unified page skip protocol to obtain target page skip parameters, where the target page skip parameters include target page parameters.
The method acquiring module 708 is configured to acquire a corresponding target page jump method according to the target page jump parameter.
The page skip module 710 is configured to perform page skip according to the target page skip method.
In one embodiment, the first unified page jump protocol set saving module may specifically include: when a first application is started, acquiring a unified page jump protocol identifier corresponding to the first application; acquiring a corresponding first unified page jump protocol set from the server according to the first unified page jump protocol identification, wherein the first unified page jump protocol set comprises first unified page jump protocols corresponding to each first page jump event; the first unified page jump protocol set is stored locally.
In one embodiment, the second unified page jump protocol set saving module may specifically include: when a first page of a first application is loaded, a second unified page jump protocol identification corresponding to the first page is acquired; acquiring a corresponding second unified page jump protocol set from the server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event; and storing the second unified page jump protocol set locally.
In one embodiment, the executing the page skip module by the target page skip function may specifically include: searching each target page in the first application, and generating a target page jump function corresponding to each target page; acquiring a unified protocol analysis function, and storing a target page skip function and the unified protocol analysis function corresponding to each target page in a unified skip class; acquiring a corresponding target page jump method according to the target page jump parameter, and executing the page jump according to the target page jump method comprises the following steps: analyzing a target unified page jump protocol according to a unified protocol analysis function in the unified jump class; when the target page jump function corresponding to the target page jump parameter exists in the unified jump class, executing the page jump through the target page jump function.
In one embodiment, the updating the page skip function storing module may specifically include:
Acquiring a page jump update request; acquiring a target update jump page according to the page jump update request; when the page jump updating request is a modification request or a deletion request, acquiring a corresponding page jump function to be updated from the unified jump class according to the target update jump page; executing corresponding updating operation on the page skip function to be updated according to the page skip updating request; when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into a unified jump class.
In one embodiment, the page transfer parameter reading module may specifically include: acquiring a start byte and a termination byte of a target page parameter from a target unified page skip protocol by searching a preset character string; acquiring characters between a start byte and a stop byte to obtain a target page parameter; acquiring a first page transfer parameter from a target unified page skip protocol according to the termination byte; and reading a plurality of other page transfer parameters after the first page transfer parameters from the unified page jump protocol according to the page transfer parameter connector.
In one embodiment, executing the corresponding page skip module according to the target page skip function may specifically include: the method comprises the steps that a first application receives starting instructions initiated by other applications; entering a starting page according to a starting instruction, and acquiring starting parameters in the starting instruction; when the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol, calling a unified jump class according to the starting page jump parameters, and entering the unified jump class; and acquiring a corresponding current target page jump function from the unified jump class according to the starting page jump parameter, and executing corresponding page jump according to the current target page jump function.
For specific limitations of the page jumping apparatus, reference may be made to the above limitation of the page jumping method, and no further description is given herein. The various modules in the page jumping apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules. The processor may be a Central Processing Unit (CPU), microprocessor, single-chip microcomputer, etc. The page jumping apparatus described above may be implemented in the form of a computer program.
In one embodiment, a computer device is provided, which may be a server or a terminal. When the computer device is a terminal, its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a page jump method. It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor when executing the program performs the steps of: monitoring a page jump event of a first application; when the current page jump event is monitored, acquiring a target unified page jump protocol corresponding to the current page jump event; analyzing a target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters; acquiring a corresponding target page jump method according to the target page jump parameters; and executing the page jump according to the target page jump method.
In one embodiment, the following steps may also be implemented when the processor executes the program: when a first application is started, acquiring a unified page jump protocol identifier corresponding to the first application; acquiring a corresponding first unified page jump protocol set from the server according to the first unified page jump protocol identification, wherein the first unified page jump protocol set comprises first unified page jump protocols corresponding to each first page jump event; the first unified page jump protocol set is stored locally.
In one embodiment, the following steps may also be implemented when the processor executes the program: when a first page of a first application is loaded, a second unified page jump protocol identification corresponding to the first page is acquired; acquiring a corresponding second unified page jump protocol set from the server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event; and storing the second unified page jump protocol set locally.
In one embodiment, the following steps may also be implemented when the processor executes the program: searching each target page in the first application, and generating a target page jump function corresponding to each target page; acquiring a unified protocol analysis function, and storing a target page skip function and the unified protocol analysis function corresponding to each target page in a unified skip class; analyzing a target unified page jump protocol according to a unified protocol analysis function in the unified jump class; when the target page jump function corresponding to the target page jump parameter exists in the unified jump class, executing the page jump through the target page jump function.
In one embodiment, the following steps may also be implemented when the processor executes the program: acquiring a page jump update request; acquiring a target update jump page according to the page jump update request; when the page jump updating request is a modification request or a deletion request, acquiring a corresponding page jump function to be updated from the unified jump class according to the target update jump page; executing corresponding updating operation on the page skip function to be updated according to the page skip updating request; when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into a unified jump class.
In one embodiment, the following steps may also be implemented when the processor executes the program: acquiring a start byte and a termination byte of a target page parameter from a unified page skip protocol by searching a preset character string; acquiring characters between a start byte and a stop byte to obtain a target page parameter; acquiring a first page transfer parameter from a unified page skip protocol according to the termination byte; and reading a plurality of other page transfer parameters after the first page transfer parameters from the unified page jump protocol according to the page transfer parameter connector.
In one embodiment, the following steps may also be implemented when the processor executes the program: the method comprises the steps that a first application receives starting instructions initiated by other applications; entering a starting page according to a starting instruction, and acquiring starting parameters in the starting instruction; when the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol, calling a unified jump class according to the starting page jump parameters, and entering the unified jump class; and acquiring a corresponding current target page jump function from the unified jump class according to the starting page jump parameter, and executing corresponding page jump according to the current target page jump function.
The above definition of the computer device may be referred to as the specific definition of the page jump method, which is not described herein.
With continued reference to fig. 8, there is also provided a computer-readable storage medium having stored thereon a computer program, such as the non-volatile storage medium shown in fig. 8, wherein the program when executed by a processor performs the steps of: monitoring a page jump event of a first application; when the current page jump event is monitored, acquiring a target unified page jump protocol corresponding to the current page jump event; analyzing a target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters; acquiring a corresponding target page jump method according to the target page jump parameters; and executing the page jump according to the target page jump method.
In one embodiment, the program when executed by the processor may further implement the steps of: when a first application is started, acquiring a unified page jump protocol identifier corresponding to the first application; acquiring a corresponding first unified page jump protocol set from the server according to the first unified page jump protocol identification, wherein the first unified page jump protocol set comprises first unified page jump protocols corresponding to each first page jump event; the first unified page jump protocol set is stored locally.
In one embodiment, the program when executed by the processor may further implement the steps of: when a first page of a first application is loaded, a second unified page jump protocol identification corresponding to the first page is acquired; acquiring a corresponding second unified page jump protocol set from the server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event; and storing the second unified page jump protocol set locally.
In one embodiment, the program when executed by the processor may further implement the steps of: searching each target page in the first application, and generating a target page jump function corresponding to each target page; acquiring a unified protocol analysis function, and storing a target page skip function and the unified protocol analysis function corresponding to each target page in a unified skip class; analyzing a target unified page jump protocol according to a unified protocol analysis function in the unified jump class; when the target page jump function corresponding to the target page jump parameter exists in the unified jump class, executing the page jump through the target page jump function.
In one embodiment, the program when executed by the processor may further implement the steps of: acquiring a page jump update request; acquiring a target update jump page according to the page jump update request; when the page jump updating request is a modification request or a deletion request, acquiring a corresponding page jump function to be updated from the unified jump class according to the target update jump page; executing corresponding updating operation on the page skip function to be updated according to the page skip updating request; when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into a unified jump class.
In one embodiment, the program when executed by the processor may further implement the steps of: acquiring a start byte and a termination byte of a target page parameter from a unified page skip protocol by searching a preset character string; acquiring characters between a start byte and a stop byte to obtain a target page parameter; acquiring a first page transfer parameter from a unified page skip protocol according to the termination byte; and reading a plurality of other page transfer parameters after the first page transfer parameters from the unified page jump protocol according to the page transfer parameter connector.
In one embodiment, the program when executed by the processor may further implement the steps of: the method comprises the steps that a first application receives starting instructions initiated by other applications; entering a starting page according to a starting instruction, and acquiring starting parameters in the starting instruction; when the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol, calling a unified jump class according to the starting page jump parameters, and entering the unified jump class; and acquiring a corresponding current target page jump function from the unified jump class according to the starting page jump parameter, and executing corresponding page jump according to the current target page jump function.
The above definition of the computer readable storage medium may refer to the specific definition of the page jump method in the above, and will not be repeated here.
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. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), or the like.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described 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 illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A method of page jumping, the method comprising:
When a first application is started, a first unified page jump protocol identifier corresponding to the first application is obtained, a corresponding first unified page jump protocol set is obtained from a server according to the first unified page jump protocol identifier, the first unified page jump protocol set comprises first unified page jump protocols corresponding to all first page jump events, and the first unified page jump protocol set is stored locally;
When a first page of the first application is loaded, a second unified page jump protocol identifier corresponding to the first page is obtained, a corresponding second unified page jump protocol set is obtained from a server according to the second unified page jump protocol identifier, the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event, and the second unified page jump protocol set is stored locally;
searching each target page in the first application, generating a target page jump function corresponding to each target page, acquiring a unified protocol analysis function, and storing the target page jump function and the unified protocol analysis function corresponding to each target page in a unified jump class;
Monitoring a page jump event of the first application;
When a current page jump event is monitored, locally acquiring a target unified page jump protocol corresponding to the current page jump event; the target unified page jump protocol is a page jump protocol written by unified preset rules;
Analyzing the target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters and page transfer parameters, and the method comprises the following steps: acquiring a start byte and a stop byte of a target page parameter from the target unified page jump protocol by searching a preset character string, acquiring characters between the start byte and the stop byte to acquire the target page parameter, acquiring a first page transfer parameter from the target unified page jump protocol according to the stop byte, and reading a plurality of other page transfer parameters after the first page transfer parameter is read from the target unified page jump protocol according to a page transfer parameter connector;
Analyzing the target unified page jump protocol according to the unified protocol analysis function in the unified jump class, and executing page jump according to the target page jump function if the target page jump parameter in the unified jump class is the target page jump function corresponding to the target page jump parameter.
2. The method of claim 1, wherein the protocol format of the target unified page jump protocol comprises custom settings based on demand.
3. The method of claim 1, wherein the listening for page jump events of the first application comprises: monitoring the page jump event of the first application in a self-contained monitoring mode of the system; or monitoring the page jump event of the first application in a self-defined monitoring mode.
4. The method of claim 1, wherein the first unified page jump protocol identification comprises a plurality.
5. The method according to claim 1, wherein the method further comprises:
Acquiring a page jump update request;
acquiring a target update jump page according to the page jump update request;
When the page jump updating request is a modification request or a deletion request, acquiring a corresponding page jump function to be updated from the unified jump class according to the target update jump page;
Executing corresponding updating operation on the page jump function to be updated according to the page jump updating request;
And when the page jump update request is generated as a request, generating an update page jump function corresponding to the target update jump page, and storing the update page jump function into the unified jump class.
6. The method of claim 1, wherein the second unified page jump protocol identification comprises a plurality.
7. The method according to claim 1, wherein the method further comprises:
the first application receives starting instructions initiated by other applications;
entering a starting page according to the starting instruction, and acquiring starting parameters in the starting instruction;
When the starting parameters comprise starting page jump parameters corresponding to the target unified page jump protocol, calling the unified jump class according to the starting page jump parameters, and entering the unified jump class;
and acquiring a corresponding current target page jump function from the unified jump class according to the starting page jump parameter, and executing corresponding page jump according to the current target page jump function.
8. A page jumping apparatus, the apparatus comprising:
The first unified page jump protocol set storage module is used for acquiring a first unified page jump protocol identifier corresponding to a first application when the first application is started, acquiring a corresponding first unified page jump protocol set from a server according to the first unified page jump protocol identifier, wherein the first unified page jump protocol set comprises first unified page jump protocols corresponding to each first page jump event, and storing the first unified page jump protocol set locally;
The second unified page jump protocol set storage module is used for acquiring a second unified page jump protocol identifier corresponding to the first page when the first page of the first application is loaded, acquiring a corresponding second unified page jump protocol set from a server according to the second unified page jump protocol identifier, wherein the second unified page jump protocol set comprises unified page jump protocols corresponding to each second page jump event, and storing the second unified page jump protocol set locally;
The event monitoring module is used for monitoring the page jump event of the first application;
The protocol acquisition module is used for locally acquiring a target unified page jump protocol corresponding to the current page jump event when the current page jump event is monitored; the target unified page jump protocol is a page jump protocol written by unified preset rules;
The protocol analysis module is used for analyzing the target unified page jump protocol to obtain target page jump parameters, wherein the target page jump parameters comprise target page parameters and page transfer parameters, and the protocol analysis module comprises the following steps: acquiring a start byte and a stop byte of a target page parameter from the target unified page jump protocol by searching a preset character string, acquiring characters between the start byte and the stop byte to acquire the target page parameter, acquiring a first page transfer parameter from the target unified page jump protocol according to the stop byte, and reading a plurality of other page transfer parameters after the first page transfer parameter is read from the target unified page jump protocol according to a page transfer parameter connector;
The page jump module is used for searching each target page in the first application, generating a target page jump function corresponding to each target page, acquiring a unified protocol analysis function, and storing the target page jump function corresponding to each target page and the unified protocol analysis function in a unified jump class; and analyzing the target unified page jump protocol according to a unified protocol analysis function in the unified jump class, and executing page jump according to the target page jump function if the target page jump function corresponding to the target page jump parameter exists in the unified jump class.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN201811223313.8A 2018-10-19 Page jump method, device, computer equipment and storage medium Active CN109492181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811223313.8A CN109492181B (en) 2018-10-19 Page jump method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811223313.8A CN109492181B (en) 2018-10-19 Page jump method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109492181A CN109492181A (en) 2019-03-19
CN109492181B true CN109492181B (en) 2024-06-28

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153768A (en) * 2016-12-05 2018-06-12 腾讯科技(深圳)有限公司 Method for page jump, data processing method, device and page jump control system

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN108228444B (en) Test method and device
CN107645546B (en) File monitoring method based on android system, intelligent device and storage medium
CN106055375B (en) Application program installation method and device
CN107402792B (en) Integration method, device, equipment and storage medium of application software installation package
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
US11934287B2 (en) Method, electronic device and computer program product for processing data
CN112363845A (en) Data synchronization method of system integration middling station and integration middling station system
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN112667426A (en) Log analysis method and device
CN110727429A (en) Front-end page generation method, device and equipment
CN113849199B (en) Method and device for cross-system installation of application, electronic equipment and storage medium
CN112688811B (en) Wireless local area network management method, device, equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules
CN112559124A (en) Model management system and target operation instruction processing method and device
CN109492181B (en) Page jump method, device, computer equipment and storage medium
CN111641554A (en) Message processing method and device and computer readable storage medium
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN115859280A (en) Memory horse detection method, device, equipment and storage medium
KR102506155B1 (en) Electronic device, application executing system and control methods thereof
CN110309000B (en) Application update prompting method and terminal equipment
CN114610446A (en) Method, device and system for automatically injecting probe
CN114968456A (en) Method and device for controlling terminal
CN112714148A (en) Interface configuration method, device, equipment and medium

Legal Events

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