Page jumping method and device, equipment and storage medium

By analyzing the target URI to obtain page categories and business parameters, creating intent objects and implementing page jumps, the problems of complexity and high development costs of page jumps in the existing technology are solved, and the flexibility and accuracy of page jumps are improved. .

CN118939890APending Publication Date: 2024-11-12PING AN INT FINANCIAL LEASING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410867523.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, page jumps require in advance negotiation and agreement parameters for each page, resulting in complex implementation of page jumps and high development costs, and it is impossible to simply pass information on page types, specific pages and business parameters through field information.

Method used

By obtaining the target unified resource identifier (URI), parsing out the category information and business parameter information of the target page, creating a target intent object, and redirecting from the current page to the target page in response to starting the object.

Benefits of technology

It simplifies the implementation process of page jump, reduces development costs, improves the flexibility and accuracy of page jump, and improves the user's operation experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939890A_ABST
    Figure CN118939890A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a page jumping method and device, equipment and a storage medium. The method comprises the following steps: in response to a received page jump instruction, obtaining a message text comprising a target uniform resource identifier; analyzing the target uniform resource identifier to obtain category information and business parameter information of a target page; creating a target intention object of the target page according to the category information and the business parameter information; and in response to starting the target intention object, skipping to the target page from the current page. The embodiment of the invention aims to simplify the implementation process of page skipping and reduce the development cost of page skipping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page jump method, a page jump device, a computer device, and a computer-readable storage medium. Background Art

[0002] With the development of computer technology, more and more users open web pages in applications to browse information. With the increase of business, the number of pages increases day by day, and it is necessary to jump between different pages.

[0003] In the related art, page jumps need to be negotiated and agreed upon in advance for each page. It is impossible to use simple field information to transmit the information required for page jumps, such as page type, specific page, and business parameters, making page jumps complex to implement and high in development costs. Summary of the invention

[0004] The present application provides a page jump method, a page jump device, a computer device and a computer-readable storage medium, aiming to simplify the implementation process of page jump and reduce the development cost of page jump.

[0005] To achieve the above purpose, the present application provides a page jump method, comprising:

[0006] In response to receiving the page jump instruction, obtaining a message text including a target uniform resource identifier;

[0007] Parsing the target uniform resource identifier to obtain category information and business parameter information of the target page;

[0008] Creating a target intent object of the target page according to the category information and the business parameter information;

[0009] In response to launching the target intent object, jumping from the current page to the target page.

[0010] To achieve the above purpose, the present application also provides a page jump device, including:

[0011] An acquisition module, the acquisition module being used for acquiring a message text including a target uniform resource identifier in response to receiving a page jump instruction;

[0012] A parsing module, the parsing module is used to parse the target uniform resource identifier to obtain category information and business parameter information of the target page;

[0013] An intention object creation module, the intention object creation module is used to create a target intention object of the target page according to the category information and business parameter information;

[0014] A page jump module, wherein the page jump module is used to jump from the current page to the target page in response to starting the target intent object.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the steps of any one of the page jump methods provided in the embodiments of the present application when executing the computer program.

[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the steps of any one of the page jump methods provided in the embodiments of the present application.

[0017] The embodiments of the present application disclose a page jump method, a page jump device, a computer device, and a computer-readable storage medium. Specifically, in response to receiving a page jump instruction, a message text including a target uniform resource identifier can be obtained; the target uniform resource identifier can be parsed to obtain the category information and business parameter information of the target page; a target intent object of the target page is created according to the category information and business parameter information; in response to starting the target intent object, the target page is jumped from the current page. The present application parses the target uniform resource identifier to extract the category information and business parameter information of the target page, so that the page jump operation has higher flexibility and adaptability. At the same time, on the basis of ensuring that the target intent object has been correctly created, the page jump operation is performed to ensure the accuracy and effectiveness of the jump, thereby improving the user operation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 This is a schematic diagram of a scenario of a page jump method provided in an embodiment of the present application;

[0020] Figure 2 It is a flow chart of a page jump method provided in an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of a process of jumping to a target page provided by an embodiment of the present application;

[0022] Figure 4is a schematic block diagram of a page jump device provided in an embodiment of the present application;

[0023] Figure 5 It is a schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions. In addition, although the functional modules are divided in the device schematic, in some cases, the module division can be different from that in the device schematic.

[0026] The term "and / or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0027] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0028] like Figure 1 As shown, the page jump method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The application environment includes a terminal device 110 and a server 120, wherein the terminal device 110 can communicate with the server 120 through a network. Specifically, the server 120 can respond to receiving a page jump instruction, obtain a message text including a target uniform resource identifier; parse the target uniform resource identifier to obtain the category information and business parameter information of the target page; create a target intent object of the target page according to the category information and business parameter information; and respond to starting the target intent object and jump from the current page to the target page. Among them, the server 120 can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal device 110 can be a smart phone, a tablet computer, a laptop, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application is not limited here.

[0029] See also Figure 2 , Figure 2 is a flow chart of a page jump method provided by an embodiment of the present application. Figure 2 As shown, the page jump method includes steps S11 to S14.

[0030] In step S11, in response to receiving a page jump instruction, a message text including a target uniform resource identifier is acquired.

[0031] Step S12: Parse the target uniform resource identifier to obtain category information and business parameter information of the target page.

[0032] When a page jump instruction is received (for example, triggered by a user clicking a link or button), the message text related to the instruction is obtained, which includes the target uniform resource identifier (URI) to extract the target uniform resource identifier that needs to be resolved in preparation for the subsequent page jump operation.

[0033] Furthermore, the acquired target uniform resource identifier may be parsed to extract category information of the target page (eg, the category information includes a native page or a web page) and business parameter information (eg, specific parameters that need to be passed when the page jumps).

[0034] The above method can accurately extract the type and parameter information of the target page, making the page jump more flexible and accurate. At the same time, since all the information required for the page jump operation is provided, the correctness and effectiveness of the page jump are ensured.

[0035] Optionally, the target uniform resource identifier is parsed to obtain category information and business parameter information of the target page, including: determining whether the target uniform resource identifier can be parsed; in response to determining that the target uniform resource identifier can be parsed, parsing the target uniform resource identifier to obtain category information and business parameter information of the target page.

[0036] On the basis of the above embodiment, determining whether the target uniform resource identifier can be parsed includes: obtaining the head character of the target uniform resource identifier, and determining whether the head character conforms to the head character specified in the negotiation; if the head character conforms to the head character specified in the negotiation, determining that the target uniform resource identifier can be parsed; if the head character does not conform to the head character specified in the negotiation, determining that the target uniform resource identifier cannot be parsed.

[0037] Before parsing the target uniform resource identifier, it can be determined whether the target uniform resource identifier can be parsed. After determining that the target uniform resource identifier can be parsed, the target uniform resource identifier can be parsed to obtain the category information and business parameter information of the target page. Further, the judgment is based on obtaining the header characters of the target uniform resource identifier and checking whether the header characters conform to the format specified in the pre-negotiation. If the header characters conform to the predetermined format, it is determined that the uniform resource identifier can be parsed, and then the parsing operation continues; otherwise, it is determined that the uniform resource identifier cannot be parsed, and an error may be returned or other processing may be performed.

[0038] The above method can improve the robustness of the page jump operation, ensure that only the target uniform resource identifier with correct format and parsable is processed, and reduce parsing errors and invalid operations.

[0039] Step S13: Create a target intent object of the target page according to the category information and business parameter information.

[0040] Optionally, the target intent object includes a target implicit object or a target explicit object, and the target intent object of the target page is created according to the category information and business parameter information, including: judging whether the target page specifies a target component according to the business parameter information; when it is determined that the target page does not specify a target component, creating a target implicit object of the target page; when it is determined that the target page specifies a target component, creating a target explicit object of the target page.

[0041] Optionally, the target intent object includes at least one of the following: operation information, data information, and object information; wherein the operation information includes a startup page operation, the data information includes category information and business parameter information of the target page; and the object information includes the target page.

[0042] According to the parsed category information and business parameter information of the target page, a target intent object can be created to describe the specific intent of the page jump. The target intent object can be a target implicit object or a target explicit object. The target implicit object is used to represent the object created when the target page does not specify a specific component, and is used to start related operations; the target explicit object is used to represent the object created when the target page specifies a specific component, and is used to start the specified component.

[0043] The target intent object includes at least one of the following attributes: operation information, which is used to describe the operation of the launch page, such as opening a new page or starting an application; data information, which is used to contain the category information and business parameter information of the target page and is used to pass necessary data when the page jumps; object information, which is used to directly point to the reference or description of the target page.

[0044] Through the above methods, the flexibility of page jumps can be improved, suitable intent objects can be created according to different situations, and the accuracy and effectiveness of page jumps can be ensured through clear operations, data and object information.

[0045] Step S14: In response to starting the target intent object, jump from the current page to the target page.

[0046] Optionally, in response to launching the target intent object, before jumping from the current page to the target page, it includes: sending a launch request to the target application corresponding to the target page, and receiving a request result feedback from the target application based on the launch request; when the request result indicates that the target intent object is allowed to be launched, launching the target intent object.

[0047] Before starting the target intent object, the system can send a start request to the target application corresponding to the target page to ask whether the target intent object is allowed to be started. If the feedback result received from the target application is that the target intent object is allowed to be started, the target intent object is started.

[0048] The above method uses the startup request mechanism to ensure that the target intent object will be started only when the target application allows it, thereby enhancing the security and reliability of page jumps.

[0049] The page jump method disclosed in the embodiment of the present application can obtain a message text including a target uniform resource identifier in response to receiving a page jump instruction; parse the target uniform resource identifier to obtain the category information and business parameter information of the target page; create a target intent object of the target page according to the category information and business parameter information; and jump from the current page to the target page in response to starting the target intent object. The present application parses the target uniform resource identifier to extract the category information and business parameter information of the target page, making the page jump operation more flexible and adaptable. At the same time, on the basis of ensuring that the target intent object has been correctly created, the page jump operation is performed to ensure the accuracy and effectiveness of the jump, thereby improving the user operation experience.

[0050] See also Figure 3 , Figure 3 is a flow chart of jumping to a target page provided by an embodiment of the present application. Figure 3 As shown, jumping from the current page to the target page can be achieved through steps S141 to S142.

[0051] Step S141: determining a jump mode of the target page according to the category information of the target page.

[0052] Step S142: In response to starting the target intent object, jump from the current page to the target page by jumping.

[0053] The category information of the target page describes the type of the target page, including at least one of the following: native page, web page, page within a specific application, etc. Furthermore, the corresponding jump method can be determined according to the category information of the target page. For example: If the category information indicates that the target page is a native page, the in-application navigation method is used to jump. If the category information indicates that the target page is a web page, the jump is performed through the built-in WebView component. If the category information indicates that the target page is a page of another application, the jump is performed by launching the Intent of the external application.

[0054] Furthermore, in response to starting the target intent object, jumping from the current page to the target page can be achieved through the jump method determined above.

[0055] In the embodiment of the present application, corresponding jump modes can be selected according to different types of target pages to enhance the flexibility and adaptability of page jumps.

[0056] See also Figure 4 , Figure 4 1 is a schematic block diagram of a page jump device provided in an embodiment of the present application. The page jump device can be configured in a server to execute the aforementioned page jump method.

[0057] like Figure 4 As shown, the page jump device 200 includes: an acquisition module 201, a parsing module 202, an intention object creation module 203 and a page jump module 204.

[0058] The acquisition module 201 is used for acquiring a message text including a target uniform resource identifier in response to receiving a page jump instruction;

[0059] The parsing module 202 is used to parse the target uniform resource identifier to obtain category information and business parameter information of the target page;

[0060] An intention object creation module 203, used to create a target intention object of the target page according to the category information and business parameter information;

[0061] The page jump module 204 is used to jump from the current page to the target page in response to starting the target intent object.

[0062] The parsing module 202 is further used to determine whether the target uniform resource identifier can be parsed; in response to determining that the target uniform resource identifier can be parsed, the target uniform resource identifier is parsed to obtain category information and business parameter information of the target page.

[0063] The parsing module 202 is also used to obtain the head character of the target uniform resource identifier and determine whether the head character conforms to the head character specified in the negotiation; if the head character conforms to the head character specified in the negotiation, it is determined that the target uniform resource identifier can be parsed; if the head character does not conform to the head character specified in the negotiation, it is determined that the target uniform resource identifier cannot be parsed.

[0064] The intention object creation module 203 is also used to determine whether the target page specifies the target component based on the business parameter information; when it is determined that the target page does not specify the target component, create the target implicit object of the target page; when it is determined that the target page specifies the target component, create the target explicit object of the target page.

[0065] The page jump module 204 is also used to send a start request to the target application corresponding to the target page, and receive a request result fed back by the target application based on the start request; when the request result indicates that the target intent object is allowed to be started, the target intent object is started.

[0066] The page jump module 204 is further used to determine the jump mode of the target page according to the category information of the target page; in response to starting the target intention object, jump from the current page to the target page through the jump mode.

[0067] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0068] The method and apparatus of the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices.

[0069] Exemplarily, the above method and apparatus may be implemented in the form of a computer program. The computer program may be implemented in the form of a computer program. Figure 5 Runs on the computer device shown.

[0070] See also Figure 5 , Figure 5 1 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0071] like Figure 5 As shown, the computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a volatile storage medium, a non-volatile storage medium and an internal memory.

[0072] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any page jump method.

[0073] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0074] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any page jump method.

[0075] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that the structure of the computer device is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0076] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0077] Among them, in some embodiments, the processor obtains a message text including a target uniform resource identifier in response to receiving a page jump instruction; parses the target uniform resource identifier to obtain category information and business parameter information of the target page; creates a target intent object of the target page based on the category information and business parameter information; and jumps from the current page to the target page in response to starting the target intent object.

[0078] In some implementations, the processor is further configured to determine whether the target uniform resource identifier can be resolved; in response to determining that the target uniform resource identifier can be resolved, the target uniform resource identifier is resolved to obtain category information and business parameter information of the target page.

[0079] In some embodiments, the processor is further used to obtain the head character of the target uniform resource identifier and determine whether the head character conforms to the head character specified in the negotiation; if the head character conforms to the head character specified in the negotiation, it is determined that the target uniform resource identifier can be parsed; if the head character does not conform to the head character specified in the negotiation, it is determined that the target uniform resource identifier cannot be parsed.

[0080] In some embodiments, the processor is also used to determine whether the target page specifies a target component based on the business parameter information; when it is determined that the target page does not specify the target component, create a target implicit object of the target page; when it is determined that the target page specifies the target component, create a target explicit object of the target page.

[0081] In some embodiments, the processor is also used to send a launch request to the target application corresponding to the target page, and receive a request result fed back by the target application based on the launch request; when the request result indicates that the target intent object is allowed to be launched, the target intent object is launched.

[0082] In some embodiments, the processor is further used to determine a jump method of the target page according to category information of the target page; in response to starting the target intent object, jump from the current page to the target page through the jump method.

[0083] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed, any one of the page jump methods provided in the embodiments of the present application is implemented.

[0084] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0085] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like.

[0086] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A page jump method, characterized in that: include: In response to receiving the page jump instruction, obtaining a message text including a target uniform resource identifier; Parsing the target uniform resource identifier to obtain category information and business parameter information of the target page; Creating a target intent object of the target page according to the category information and the business parameter information; In response to launching the target intent object, jumping from the current page to the target page.

2. The method according to claim 1, characterized in that The target uniform resource identifier is parsed to obtain category information and business parameter information of the target page, including: Determining whether the target uniform resource identifier can be resolved; In response to determining that the target uniform resource identifier can be resolved, the target uniform resource identifier is resolved to obtain category information and business parameter information of the target page.

3. The method according to claim 2, characterized in that The determining whether the target uniform resource identifier can be resolved includes: Obtaining the head character of the target uniform resource identifier, and determining whether the head character conforms to the head character specified in the negotiation; If the header characters conform to the header characters specified in the negotiation, determining that the target uniform resource identifier can be resolved; If the header characters do not conform to the header characters specified in the negotiation, it is determined that the target uniform resource identifier cannot be resolved.

4. The method according to claim 1, characterized in that: The target intent object includes a target implicit object or a target explicit object, and the step of creating the target intent object of the target page according to the category information and the business parameter information includes: Determining whether the target page specifies a target component according to the business parameter information; When it is determined that the target page does not specify the target component, creating a target implicit object of the target page; When it is determined that the target page specifies the target component, a target explicit object of the target page is created.

5. The method according to claim 1, characterized in that The target intent object includes at least one of the following: operation information, data information, and object information; wherein the operation information includes a startup page operation, the data information includes category information and business parameter information of the target page; and the object information includes the target page.

6. The method according to claim 1, characterized in that In response to starting the target intent object, before jumping from the current page to the target page, the method includes: Sending a start request to a target application corresponding to the target page, and receiving a request result fed back by the target application based on the start request; If the request result indicates that the target intent object is allowed to be started, start the target intent object.

7. The method according to claim 1, characterized in that In response to starting the target intent object, jumping from the current page to the target page includes: Determining a jump mode of the target page according to the category information of the target page; In response to starting the target intent object, jumping from the current page to the target page through the jumping method.

8. A page jump device, characterized in that: The page jump device comprises: An acquisition module, the acquisition module being used for acquiring a message text including a target uniform resource identifier in response to receiving a page jump instruction; A parsing module, the parsing module is used to parse the target uniform resource identifier to obtain category information and business parameter information of the target page; An intention object creation module, the intention object creation module is used to create a target intention object of the target page according to the category information and business parameter information; A page jump module, wherein the page jump module is used to jump from the current page to the target page in response to starting the target intent object.

9. A computer device, characterized in that: include: A memory and a processor; wherein the memory is connected to the processor and is used to store a program; the processor is used to implement the steps of the page jump method as described in any one of claims 1 to 7 by running the program stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of the page jump method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Page jump method and device for application program

    CN105354034A

  • Page jumping method, storage medium and electronic device

    CN114924816A

  • Page jumping method and device, storage medium and electronic device

    CN115982493A

  • Page jumping method and device based on routing, electronic equipment and storage medium

    CN116233217A

  • Application program jumping method and device suitable for multiple scenes, equipment and medium

    CN117742865A