Address jump method and device for application program, computer device and medium
By detecting application routing table updates and configuring address grouping, the discontinuity issue when the application jumps between addresses was resolved, enabling smooth page switching and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING BAIPING TECH CO LTD
- Filing Date
- 2021-07-16
- Publication Date
- 2026-06-12
AI Technical Summary
In existing technologies, applications struggle to achieve flexible and smooth page switching when navigating between addresses, impacting user experience.
By detecting updates to the application's routing table, configuring address groups, and determining whether the target address belongs to a grouped address when a jump instruction is received, the corresponding operation is performed to achieve timely application of address groups and smooth jumps.
This ensures that the application's routing table grouping function takes effect in a timely manner, guaranteeing continuous and smooth address hopping and improving the user experience.
Smart Images

Figure CN115700468B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and more specifically to address redirection methods and apparatus for application programs, computer devices, media, and program products. Background Technology
[0002] In recent years, with the development of mobile technology, more and more users are using various applications on mobile terminals (such as mobile phones, tablets, etc.), such as native applications, Flutter applications, web applications, and mini-programs.
[0003] When using an application, in response to user input or instructions generated by the application itself, the application navigates between addresses to switch pages or access different types of services. Therefore, it is necessary to implement flexible and smooth navigation between different addresses to improve the user experience.
[0004] The methods described in this section are not necessarily methods that had been previously conceived or adopted. Unless otherwise specified, no method described in this section should be assumed to be prior art simply because it is included in this section. Similarly, unless otherwise specified, the issues mentioned in this section should not be considered to be accepted in any prior art. Summary of the Invention
[0005] This disclosure provides a method and apparatus for address redirection in an application, a computer device, a computer-readable storage medium, and a computer program product.
[0006] According to one aspect of this disclosure, an address redirection method for an application is provided, comprising: in response to detecting that the application's routing table has been updated, configuring one or more address groups based on the application's routing table; in response to receiving a trigger instruction to redirect to a second address in a first page of the application corresponding to a first address, determining whether the second address belongs to a grouped address in one or more address groups; and in response to the second address belonging to a grouped address in one or more address groups, performing an operation corresponding to the address group to which the second address belongs.
[0007] According to another aspect of this disclosure, an address redirection device for an application is provided, comprising: a group configuration module configured to: configure one or more address groups based on the application's routing table in response to detecting that the application's routing table has been updated; a group determination module configured to: determine whether the second address belongs to a grouped address in one or more address groups in response to receiving a redirection instruction to a second address in a first page of the application corresponding to a first address; and a group redirection module configured to: perform an operation corresponding to the address group to which the second address belongs in response to the second address belonging to a grouped address in one or more address groups.
[0008] According to another aspect of this disclosure, a computer device is provided, comprising: a memory, a processor, and a computer program stored on the memory, wherein the processor is configured to execute the computer program to implement the steps of the method described above.
[0009] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method described above.
[0010] According to another aspect of this disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method described above.
[0011] According to one or more embodiments of this disclosure, the grouping function corresponding to the application's routing table takes effect in a timely manner, and address hopping is continuous and smooth, improving the user experience.
[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0013] The accompanying drawings exemplify embodiments and form part of the specification, serving together with the textual description to explain exemplary implementations of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0014] Figure 1 A schematic diagram of an exemplary system in which the various methods described herein may be implemented according to embodiments of the present disclosure is shown;
[0015] Figure 2 This is a flowchart illustrating an address redirection method for an application according to an embodiment of the present disclosure;
[0016] Figure 3 An embodiment according to this disclosure is shown in Figure 2 A flowchart illustrating an example process in the method of performing an operation corresponding to the address group to which the second address belongs in response to the second address belonging to one or more address groups;
[0017] Figure 4 This is a flowchart illustrating an address redirection method for an application according to an embodiment of the present disclosure;
[0018] Figure 5 An embodiment according to this disclosure is shown in Figure 4 The flowchart shows an example process in the method that detects whether the application's routing table needs to be updated in response to the application completing startup;
[0019] Figure 6 This is a structural block diagram illustrating an address redirection device for an application according to an embodiment of the present disclosure;
[0020] Figure 7 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0021] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0022] In this disclosure, unless otherwise stated, the use of terms such as "first," "second," etc., to describe various elements is not intended to limit the positional, temporal, or importance relationships of these elements; such terms are merely used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of that element, while in other cases, based on the context, they may refer to different instances.
[0023] The terminology used in the description of the various examples described in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context explicitly indicates otherwise, an element may be one or more unless the number of elements is specifically limited. Furthermore, the term "and / or" as used in this disclosure covers any one of the listed items and all possible combinations thereof.
[0024] When an application navigates between different addresses, different rules may need to be applied during the navigation (e.g., the page corresponding to an address in a certain group may only be accessible while logged in, or the time a user can access a page corresponding to a certain address may need to be controlled). To apply the appropriate rules during address navigation while providing a consistent and smooth user experience, this disclosure provides an address navigation method for an application, comprising: in response to detecting an update to the application's routing table, configuring one or more address groups based on the application's routing table; in response to receiving a trigger instruction to navigate to a second address on a first page of the application corresponding to a first address, determining whether the second address belongs to a grouped address within one or more address groups; and in response to the second address belonging to a grouped address within one or more address groups, performing the operation corresponding to the address group to which the second address belongs.
[0025] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0026] Figure 1 A schematic diagram of an exemplary system 100 in which the various methods and apparatus described herein can be implemented according to embodiments of this disclosure is shown. Reference Figure 1 The system 100 includes one or more terminal devices 101 and a server 120, which are connected via a network 110. In cases where the system 100 includes multiple terminal devices 101, the multiple terminal devices 101 can also be connected via the network 110.
[0027] Terminal device 101 can be any type of computer device and can be configured to execute one or more applications. Terminal devices can be, for example, portable handheld devices, general-purpose computers (such as personal computers and laptops), or wearable devices. Portable handheld devices can include cellular phones, smartphones, tablets, personal digital assistants (PDAs), etc. Wearable devices can include head-mounted displays, wrist displays, etc.
[0028] In embodiments of this disclosure, server 120 may be configured to provide routing tables or other resources to client devices 101, 102, 103, 104, 105 and / or 106.
[0029] In some embodiments, server 120 may also provide other services or software applications. These services may be provided as web-based services or cloud services.
[0030] exist Figure 1In the configuration shown, server 120 may include one or more units implementing methods executed by server 120. These units may include software units, hardware units, or combinations thereof executable by one or more processors. A user using terminal device 101 can interact with server 120 using a client application to utilize the services provided by these units. It should be understood that various different system configurations may be available depending on different application scenarios, and these configurations may be compatible with... Figure 1 The systems are 100 different. Figure 1 This is an example of a system used to implement the various methods described herein, and is not intended to be limiting.
[0031] Client devices 101, 102, 103, 104, 105, and / or 106 may run one or more services or software applications that enable the execution of the address redirection method according to embodiments of the present disclosure. Terminal devices may provide an interface that allows a user of the terminal device to interact with it. The terminal device may also output information to the user via this interface. Although Figure 1 Only six client devices are described, but those skilled in the art will understand that this disclosure can support any number of client devices.
[0032] Network 110 can be any type of network well known to those skilled in the art, and can use any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.) to support data communication. By way of example only, one or more networks 110 can be a local area network (LAN), an Ethernet-based network, a token ring network, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0033] Server 120 may include at least one or more general-purpose computers, special-purpose server computers, blade servers, mainframe computers, server clusters, or any combination thereof that meets application requirements. Server 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization. In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0034] The computing unit in server 120 can run one or more operating systems, including any of the aforementioned operating systems and any commercially available server operating system. Server 120 can also run any of a variety of additional server applications and / or middleware applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0035] In some implementations, server 120 may include one or more applications to analyze and merge data feeds and / or event updates received from one or more terminal devices 101. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of terminal device 101.
[0036] In some implementations, server 120 can be a server for a distributed system or a server integrated with blockchain. Server 120 can also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0037] System 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as product information and their corresponding QR codes. Databases 130 may be stored in different locations as needed. For example, a database used by server 120 may be stored locally on server 120, or it may be located remotely to server 120 and may communicate with server 120 via a network-based or dedicated connection for server 120 use. Databases 130 may be of different types. In some embodiments, the database used by server 120 may be, for example, a relational database. One or more of these databases may store, update, and retrieve data from the database in response to commands.
[0038] In some embodiments, one or more of the databases 130 may also be used by an application to store application data. The databases used by the application may be of different types, such as key-value stores, object stores, or regular stores supported by a file system.
[0039] Figure 1 The system 100 can be configured and operated in various ways to enable the application of the various methods and apparatus described in this disclosure.
[0040] Figure 2 This is a flowchart illustrating an address redirection method 200 for an application according to an embodiment of the present disclosure.
[0041] At step S201, in response to detecting that the application's routing table has been updated, one or more address packets are configured based on the application's routing table.
[0042] According to some embodiments, the routing table is stored on the client device where the application resides (e.g., ...). Figure 1 The files or tables in the client devices 101, 102, 103, 104, 105 or 106 shown, wherein the routing table stores the addresses corresponding to the application's pages or services and the parameters associated with these addresses (e.g., the packet information corresponding to these addresses).
[0043] In some embodiments, an initial routing table is configured for the application during installation; for example, this initial routing table may be located in the application's installation package. In other embodiments, a higher version of the routing table can be received from a server to enable dynamic updates to the application's routing table without requiring the user to reinstall or upgrade the entire application.
[0044] According to some embodiments, configuring one or more address groups based on an application's routing table includes: for each address in the application's routing table, in response to the application's routing table containing grouping information for that address, adding the address and its grouping information to a list of grouped addresses. According to some embodiments, the grouping information for the address indicates the group to which the address belongs; for example, the address may belong to a login-required group or a time-limited viewing group.
[0045] According to some embodiments, when an application's routing table is detected to have been updated, in addition to configuring one or more address groups, other configurations based on the updated routing table can be performed. For example, based on the updated routing table, the binding relationships between addresses and pages or services can be updated, thereby enabling adjustments to the application's pages or services without reinstalling or upgrading the entire application.
[0046] In step S203, in response to receiving a trigger instruction to jump to the second address in the first page of the application corresponding to the first address, it is determined whether the second address belongs to a grouped address in one or more address groups.
[0047] In some embodiments, user actions on the first page trigger a jump to a second address. For example, when a user has finished reading the currently displayed content in the application, clicking the "Next Page" button jumps to the next screen. In other embodiments, the application triggers the jump to a second address based on its own logic; for example, when a timer in the application indicates that the user has reached the maximum viewing time on the first page, a command to force exit the current page is triggered.
[0048] According to some embodiments, determining whether a second address belongs to a grouped address in one or more address groups includes: determining that the second address belongs to a grouped address in one or more address groups in response to the second address belonging to a grouped address list, and determining that the second address does not belong to a grouped address in one or more address groups in response to the second address not belonging to a grouped address list.
[0049] In step S205, in response to the fact that the second address belongs to a grouped address in one or more address groups, the operation corresponding to the address group to which the second address belongs is performed.
[0050] According to some embodiments, when the second address belongs to multiple address groups, the operations corresponding to each address group to which the second address belongs are executed sequentially. For example, when the second address belongs to both the login-required group and the time-limited viewing group, the operations corresponding to the login-required group and the time-limited viewing group are executed sequentially. According to other embodiments, when the second address belongs to only one address group, for example, when the second address belongs to the login-required group, the operations corresponding to the login-required group are executed sequentially.
[0051] The address redirection method for an application as described in the exemplary embodiments of this disclosure provides at least the following technical effects: since one or more address groups are configured when the application's routing table is updated, the group functions corresponding to the application's routing table take effect in a timely manner; and since the address groups have been pre-configured, there is no need to resolve the routing table in real time during address redirection, making address redirection continuous and smooth, and improving user experience.
[0052] According to some embodiments, in response to the second address belonging to a grouped address in one or more address groups, performing the operation corresponding to the address group to which the second address belongs includes: in response to the second address belonging to a grouped address in one or more address groups, performing the operation corresponding to the address group for each address group to which the second address belongs; and controlling the application to jump to the second address.
[0053] Figure 3 An embodiment according to this disclosure is shown in Figure 2The flowchart illustrates an example process in which, in response to the second address belonging to one or more address groups, the operation corresponding to the address group to which the second address belongs is performed (step S205).
[0054] At step S301, in response to the second address belonging to a grouped address in one or more address groups, the operation corresponding to that address group is performed for each address group to which the second address belongs.
[0055] According to some embodiments, for each address group to which the second address belongs, performing the operation corresponding to that address group includes: for each address group to which the second address belongs, performing the operation corresponding to that address group based on the priority of that address group. That is, performing the operations corresponding to each address group to which the second address belongs in sequence according to priority.
[0056] For example, when the second address belongs to both the login-required group and the login-limited group, and the login-required group has a higher priority than the login-required group, the operation corresponding to the login-required group is executed first, and then the operation corresponding to the login-limited group is executed.
[0057] According to some embodiments, for each address group to which the second address belongs, performing the operation corresponding to the address group includes: in response to the address group being a login group and the application being in an unlogged-in state, controlling the application to jump to the login page; and in response to the application switching to a logged-in state, ending the operation corresponding to the address group.
[0058] According to some embodiments, in response to a user entering login information on the login page, the login information is uploaded to the server for verification, and the verification result from the server is received. According to some embodiments, in response to the server's verification result being successful, the application is switched to a logged-in state; and in response to the server's verification result being unsuccessful, the application remains in a logged-out state.
[0059] According to other embodiments, for each address group to which the second address belongs, performing the operation corresponding to the address group includes: in response to the address group being a login required group and the application being logged in, ending the operation corresponding to the address group.
[0060] According to some embodiments, for each address group to which the second address belongs, performing the operation corresponding to the address group includes: starting the timer in response to the address group being a time-limited viewing group and the timer being in a state that has not yet been started.
[0061] In step S303, the control application jumps to the second address.
[0062] According to some embodiments, the type of the second address is determined, and a redirection operation is performed based on the type of the second address. According to some embodiments, in response to the second address corresponding to a service, the second address is dispatched to the corresponding service, and the service class object is obtained by using the service name using runtime features, and the corresponding logic is processed. According to other embodiments, in response to the second address corresponding to a page, page redirection is performed based on the technology stack to which the page implementation belongs.
[0063] According to some embodiments, during page navigation, a unified interface corresponding to various technology stacks (e.g., Native applications, Flutter applications, Web applications, mini-programs, third-party apps) can be used for page loading. After the page address is passed to the unified interface, the page is redirected to the specific implementation branch based on the technology stack to which it belongs. This ensures consistency in address navigation across different technology stacks and improves development efficiency.
[0064] According to some embodiments, after the application jumps to the second address, it sends the corresponding data back to the server.
[0065] According to some embodiments, the address redirection method for an application as described in this disclosure further includes: in response to the application completing startup, detecting whether the application's routing table needs to be updated.
[0066] Figure 4 This is a flowchart illustrating an address redirection method 400 for an application according to an embodiment of the present disclosure.
[0067] In step S401, in response to the application completing startup, it is detected whether the application's routing table needs to be updated.
[0068] According to some embodiments, when the application finishes starting, it is checked whether there is a routing table that has been received from the server but has not yet taken effect (e.g., has not been configured according to the received routing table), where, if it exists, the application's routing table needs to be updated.
[0069] At step S403, in response to detecting that the application's routing table has been updated, one or more address packets are configured based on the application's routing table. According to some embodiments, step S403 may, for example, be implemented with... Figure 2 The steps in step S201 are similar.
[0070] In step S405, in response to receiving a trigger instruction to jump to a second address in the first page of the application corresponding to the first address, it is determined whether the second address belongs to a grouped address in one or more address groups. According to some embodiments, step S405 may, for example, be implemented with... Figure 2The steps in step S203 are similar.
[0071] In step S407, in response to the second address belonging to a grouped address in one or more address groups, the operation corresponding to the address group to which the second address belongs is performed. According to some embodiments, step S407 may, for example, be implemented as... Figure 2 The steps are similar to S205.
[0072] According to some embodiments, in response to the application completing startup, detecting whether the application's routing table needs to be updated includes: in response to the application completing startup, obtaining the version information of the routing table stored by the server; in response to the version of the routing table stored by the server being higher than the version of the application's routing table, obtaining the routing table stored by the server to update the application's routing table.
[0073] Figure 5 An embodiment according to this disclosure is shown in Figure 4 The flowchart shows an example process in the method of detecting whether the application's routing table needs to be updated in response to the application completing startup (step S401).
[0074] In step S501, in response to the application completing startup, the version information of the routing table stored by the server is obtained (e.g., the version number of the routing table stored by the server).
[0075] According to some embodiments, in response to the application completing startup, a request is sent to the server for version information of the routing table stored by the server, and the version information of the routing table stored by the server is received.
[0076] According to some embodiments, the application launch is a cold start, that is, when the application is launched, there is no process of the application in the background, and the system will create a new process and assign it to the application.
[0077] In step S503, in response to the fact that the version of the routing table stored by the server is higher than the version of the application's routing table, the routing table stored by the server is retrieved to update the application's routing table.
[0078] According to some embodiments, the version information of the routing table stored on the server is compared with the version information of the routing table of the application to determine whether the version of the routing table stored on the server is higher than the version of the routing table of the application.
[0079] According to some embodiments, the application's routing table updated when the application completes its startup will take effect upon the next application startup, thus improving the user experience by reducing startup delays caused by excessively long startup times due to updating the routing table and related configurations. According to other embodiments, after updating the application's routing table, configuration based on the updated routing table is then performed, so that the updated routing table takes effect more instantly.
[0080] According to some embodiments, the address redirection method described in this disclosure further includes: controlling the application to redirect to the second address in response to the second address not belonging to a grouped address in one or more address groups. Therefore, in the address redirection method provided by the exemplary embodiments of this disclosure, since address groups have been pre-configured, address redirection will not affect addresses that do not require the execution of rules corresponding to the group, making address redirection continuous and smooth, and improving user experience.
[0081] According to some embodiments, the second address corresponds to the service or page to which the user is to be redirected.
[0082] According to some embodiments, the routing table includes address information written in object format. Therefore, in the address hopping method provided as in the exemplary embodiments of this disclosure, when compiling the routing table file, errors in the routing table are more easily detected by the compiler's syntax check compared to address information written in a conventional string format.
[0083] According to another aspect of this disclosure, an address redirection method apparatus for an application is also provided, comprising: a group configuration module configured to: configure one or more address groups based on the application's routing table in response to detecting that the application's routing table has been updated; a group determination module configured to: determine whether the second address belongs to a grouped address in one or more address groups in response to receiving a redirection instruction to a second address in a first page of the application corresponding to a first address; and a group redirection module configured to: perform an operation corresponding to the address group to which the second address belongs in response to the second address belonging to a grouped address in one or more address groups.
[0084] Figure 6 This is a structural block diagram illustrating an address redirection device 600 for an application according to an embodiment of the present disclosure.
[0085] like Figure 6As shown, the address redirection device 600 includes a packet configuration module 601, a packet determination module 602, and a packet redirection module 603. The packet configuration module 601 is configured to: in response to detecting an update to the application's routing table, configure one or more address packets based on the application's routing table; the packet determination module 602 is configured to: in response to receiving a redirection command to a second address in a first page of the application corresponding to a first address, determine whether the second address belongs to a grouped address within one or more address packets; and the packet redirection module 603 is configured to: in response to the second address belonging to a grouped address within one or more address packets, execute the operation corresponding to the address packet to which the second address belongs.
[0086] It should be understood that Figure 6 The various modules of the device 600 shown can be connected to the reference. Figure 2 The steps in method 200 described correspond to each other. Therefore, the operations, features, and advantages described above for method 200 also apply to device 600 and its included modules. For the sake of brevity, some operations, features, and advantages will not be repeated here.
[0087] While specific functions have been discussed above with reference to specific modules, it should be noted that the functions of the modules discussed herein can be divided into multiple modules, and / or at least some functions of multiple modules can be combined into a single module. The specific actions performed by the modules discussed herein include the specific module itself performing the action, or alternatively, the specific module calling or otherwise accessing another component or module that performs the action (or performs the action in conjunction with the specific module). Therefore, a specific module performing an action can include the specific module performing the action itself and / or another module that performs the action, called or otherwise accessed by the specific module.
[0088] It should also be understood that this article can describe various technologies in the general context of software and hardware components or program modules. The above regarding... Figure 6The various modules described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these modules can be implemented as computer program code / instructions configured to execute in one or more processors and stored in a computer-readable storage medium. Alternatively, these modules can be implemented as hardware logic / circuit. For example, in some embodiments, one or more of the packet configuration module 601, packet determination module 602, and packet jump module 603 can be implemented together in a System on Chip (SoC). The SoC may include an integrated circuit chip (which includes a processor (e.g., a Central Processing Unit (CPU), microcontroller, microprocessor, digital signal processor (DSP), etc.), memory, one or more communication interfaces, and / or one or more components of other circuitry) and may optionally execute received program code and / or include embedded firmware to perform functions.
[0089] According to another aspect of this disclosure, a computer device is also provided, comprising: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute a program to implement the steps of the above-described method.
[0090] According to another aspect of this disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to cause a computer to perform the steps of implementing the above-described method.
[0091] According to another aspect of this disclosure, a computer program product is also provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described method.
[0092] refer to Figure 7 The present invention describes a structural block diagram of an electronic device 700 that can serve as a server or client of the present disclosure, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0093] like Figure 7 As shown, the electronic device 700 may include at least one processor 701, working memory 702, input unit 704, display unit 705, speaker 706, storage unit 707, and communication unit 708, etc., which are capable of communicating with each other via system bus 703.
[0094] Processor 701 may be a single processing unit or multiple processing units, and all processing units may include single or multiple computing units or multiple cores. Processor 701 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operating instructions. Processor 701 may be configured to acquire and execute computer-readable instructions stored in working memory 702, storage unit 707, or other computer-readable media, such as program code of operating system 702a, program code of application program 702b, etc., in working memory 702.
[0095] Working memory 702 and storage cell 707 are examples of computer-readable storage media for storing instructions that can be executed by processor 701 to perform the various functions described above. Working memory 702 may include both volatile and non-volatile memory (e.g., RAM, ROM, etc.). Storage cell 707 may include hard disk drives, solid-state drives, removable media, including external and removable drives, memory cards, flash memory, floppy disks, optical disks (e.g., CDs, DVDs), storage arrays, network-attached storage, storage area networks, etc. Working memory 702 and storage cell 707 may be collectively referred to herein as memory or computer-readable storage media, and may be non-transitory media capable of storing computer-readable, processor-executable program instructions as computer program code that can be executed by processor 701 as a specific machine configured to perform the operations and functions described in the examples herein.
[0096] Input unit 706 can be any type of device capable of inputting information into electronic device 700. Input unit 706 can receive input numerical or character information and generate key signal inputs related to user settings and / or function control of electronic device, and can include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. Display unit 705 and speaker 706 are examples of any type of device capable of presenting information to user. Electronic device 700 can also include, but is not limited to, other types of devices capable of presenting information to user, such as video / audio output terminals, vibrators, and / or printers.
[0097] The communication unit 708 enables the electronic device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and / or chipsets, such as Bluetooth™ devices, 1302.11 devices, WiFi devices, WiMax devices, cellular communication devices and / or the like.
[0098] The application program 702b in working register 702 can be loaded to execute the various methods and processes described above, for example... Figure 2 Steps S201-S205 are described above. For example, in some embodiments, the address jump method for an application as described herein may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 707. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 700 via storage unit 707 and / or communication unit 708. When the computer program is loaded and executed by processor 701, one or more steps of the address jump method for an application described above may be performed. In some other embodiments, processor 701 may be configured to perform the address jump method for an application by any other suitable means (e.g., by means of firmware).
[0099] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0101] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0103] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0104] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.
[0105] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0106] While embodiments or examples of this disclosure have been described with reference to the accompanying drawings, it should be understood that the methods, systems, and devices described above are merely exemplary embodiments or examples, and the scope of the invention is not limited by these embodiments or examples, but only by the granted claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. Furthermore, the steps may be performed in a different order than that described in this disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, as the technology evolves, many elements described herein can be replaced by equivalents that appear after this disclosure.
Claims
1. A method for address redirection in an application, comprising: In response to detecting an update to the application's routing table, one or more address packets are configured based on the application's routing table, wherein configuring one or more address packets based on the application's routing table includes: For each address in the application's routing table, in response to the fact that the application's routing table contains the packet information for that address, the address and the packet information for that address are added to the list of grouped addresses, wherein the packet information for that address indicates the group corresponding to that address, and the group is a login-required group and a time-limited viewing group; In response to receiving a trigger instruction to jump to a second address in a first page of the application corresponding to a first address, determine whether the second address belongs to a grouped address in the one or more address groups; and In response to the second address belonging to a grouped address in one or more address groups, and the second address belonging to at least one address group in one or more address groups, an operation corresponding to the address group to which the second address belongs is performed, wherein performing the operation corresponding to the address group to which the second address belongs includes: For each address group to which the second address belongs, the operation corresponding to that address group is executed, wherein executing the operation corresponding to that address group for each address group to which the second address belongs includes: For each address group to which the second address belongs, the operations corresponding to each address group to which the second address belongs are executed sequentially according to the priority of the address group. In response to the address group being a login required group and the application being in an unlogged-in state, the application is redirected to the login page; In response to the application switching to a logged-in state, the operation corresponding to that address group is terminated; In response to the address group being a time-limited viewing group and the timer being in an unstarted state, the timer is started; In response to the completion of the operation corresponding to each address group, the application is controlled to jump to the second address; In response to the fact that the second address does not belong to a grouped address in the one or more address groups, the application is controlled to jump to the second address.
2. The address jump method according to claim 1, wherein, The step of determining whether the second address belongs to a grouped address in one or more address groups includes: In response to the fact that the second address belongs to the grouped address list, it is determined that the second address belongs to a grouped address in one or more address groups, and In response to the fact that the second address does not belong to the grouped address list, it is determined that the second address does not belong to the grouped address in the one or more address groups.
3. The address jump method according to claim 1, wherein, The step of performing the operation corresponding to each address group to which the second address belongs includes: In response to the address group being a login required group and the application being in the logged-in state, the operation corresponding to the address group is terminated.
4. The address jump method according to any one of claims 1-3, further comprising: In response to the application completing startup, it is determined whether the application's routing table needs to be updated.
5. The address jump method according to claim 4, wherein, The step of detecting whether the application's routing table needs to be updated in response to the application completing startup includes: In response to the application completing startup, obtain the version information of the routing table stored on the server; In response to a situation where the version of the routing table stored on the server is higher than the version of the routing table in the application, the routing table stored on the server is retrieved to update the routing table in the application.
6. The address jump method according to any one of claims 1-3, wherein, The second address corresponds to the service or page to which the user is to be redirected.
7. The address jump method according to any one of claims 1-3, wherein, The routing table includes address information written in object format.
8. An address redirection device for an application, comprising: The group configuration module is configured to: in response to detecting an update to the application's routing table, configure one or more address groups based on the application's routing table, wherein configuring one or more address groups based on the application's routing table includes: For each address in the application's routing table, in response to the fact that the application's routing table contains the packet information for that address, the address and the packet information for that address are added to the list of grouped addresses, wherein the packet information for that address indicates the group corresponding to that address, and the group is a login-required group and a time-limited viewing group; The grouping determination module is configured to: in response to receiving a trigger instruction to jump to a second address in a first page corresponding to a first address in the application, determine whether the second address belongs to a grouped address in one or more address groups; and The group redirection module is configured to: in response to the second address belonging to a grouped address in one or more address groups, and the second address belonging to at least one address group in one or more address groups, execute the operation corresponding to the address group to which the second address belongs, wherein executing the operation corresponding to the address group to which the second address belongs includes: For each address group to which the second address belongs, the operation corresponding to that address group is executed, wherein executing the operation corresponding to that address group for each address group to which the second address belongs includes: For each address group to which the second address belongs, the operations corresponding to each address group to which the second address belongs are executed sequentially according to the priority of the address group. In response to the address group being a login required group and the application being in an unlogged-in state, the application is redirected to the login page; In response to the application switching to a logged-in state, the operation corresponding to that address group is terminated; In response to the address group being a time-limited viewing group and the timer being in an unstarted state, the timer is started; In response to the completion of the operation corresponding to each address group, the application is controlled to jump to the second address; The group jump module is also configured to control the application to jump to the second address in response to the second address not belonging to a grouped address in the one or more address groups.
9. A computer device, comprising: Memory, processor, and computer program stored on said memory, The processor is configured to execute the computer program to implement the steps of the method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-7.
11. A computer program product comprising a computer program, wherein, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-7.