Page jumping method and device, storage medium and computer equipment
Judging and determining the page jump through the preset cache routing configuration table solves the problem of rewriting the code after the APP is updated, improves the efficiency and accuracy of page jump, and simplifies the page jump process.
Patent Information
- Application Number
- CN202410729015.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the page jump code needs to be rewritten after the APP is updated, which results in low efficiency and prone to writing errors, affecting the accuracy of page jump.
Through the preset cache routing configuration table, determine whether there is a redirect page based on the target routing address, and determine the target page in the preset cache routing configuration table to avoid manual coding and improve jump efficiency and accuracy.
It achieves high efficiency and accuracy of page jump, avoids the need to rewrite the code when the APP is updated, and simplifies the page jump process.
Smart Images

Figure CN118535269A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a page jump method, device, storage medium and computer equipment. Background Art
[0002] With the continuous development of APP (Application), an APP will contain login page, H5 page, mini program page, home page, etc. As the number of pages in the application continues to increase, the jump between pages will become more complicated. Based on this, the smooth and fast jump between the pages in the application becomes particularly important.
[0003] At present, page jumps are usually achieved by manually writing codes. However, APPs are constantly updated, and this page jump method requires rewriting the page jump code every time the APP is updated, resulting in low efficiency of page jumps. At the same time, due to the negligence of technicians, errors in code writing may occur, resulting in low accuracy of page jumps. Summary of the invention
[0004] The present invention provides a page jump method, device, storage medium and computer equipment, which are mainly capable of improving page jump efficiency and jump accuracy.
[0005] According to a first aspect of the present invention, there is provided a page jump method, comprising:
[0006] Responding to a page jump request, wherein the page jump request carries a target routing address;
[0007] Based on the target routing address and a preset cache routing configuration table, determining whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address;
[0008] If the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and the page is jumped to.
[0009] Preferably, before responding to the page jump request, the method further includes:
[0010] Responding to a start request of an application to which the target page belongs, wherein the start request carries an application identifier corresponding to the application;
[0011] Based on the application identifier, obtaining a preset server routing configuration table and a preset cache routing configuration table corresponding to the application program;
[0012] Based on the preset server routing configuration table, determining whether the preset cache routing configuration table needs to be updated;
[0013] If the preset cache routing configuration table needs to be updated, the updated content is obtained from the preset server routing configuration table, and the preset cache routing configuration table is updated according to the updated content.
[0014] Preferably, the preset server routing configuration table records each routing address and its corresponding standard page identifier and standard redirection routing address, the preset cache routing configuration table records each routing address and its corresponding cache page identifier and cache redirection routing address, and the step of determining whether the preset cache routing configuration table needs to be updated based on the preset server routing configuration table includes:
[0015] Calculate a first hash value of a standard redirection routing address corresponding to each routing address in the preset server routing configuration table, and calculate a second hash value corresponding to a cache redirection routing address corresponding to a corresponding routing address in the preset cache routing configuration table;
[0016] Determining whether the first hash value is equal to the second hash value, and determining whether the standard page identifier is the same as the cache page identifier;
[0017] If the first hash value is equal to the second hash value, and the standard page identifier is the same as the cache page identifier, then updating the preset cache routing configuration table is prohibited;
[0018] If the first hash value is not equal to the second hash value, replacing the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table with the standard redirection routing address corresponding to the corresponding routing address in the preset server routing configuration table;
[0019] If the standard page identifier is different from the cache page identifier, the cache page identifier corresponding to the corresponding routing address in the preset cache routing configuration table is replaced with the standard page identifier corresponding to the corresponding routing address in the preset server routing configuration table.
[0020] Preferably, judging whether there is a redirection page based on the target routing address and a preset cache routing configuration table includes:
[0021] Determine a first routing address matching the target routing address in the preset cache routing configuration table;
[0022] Determining whether the preset cache routing configuration table records a redirection routing address corresponding to the first routing address;
[0023] If the redirection routing address is recorded in the preset cache routing configuration table, it is determined that the redirection page exists.
[0024] Preferably, after determining whether there is a redirection page based on the target routing address and the preset cache routing configuration table, the method further includes:
[0025] If the redirection page exists, determining a display time period corresponding to the redirection page;
[0026] Determine whether the current time is within the display time period;
[0027] If the current time is within the display time period, jump to the redirection page.
[0028] Preferably, after determining whether the current time is within the display time period, the method further includes:
[0029] If the current time is not within the display time period, jump to the target page.
[0030] Preferably, determining the target page corresponding to the target routing address in the preset cache routing configuration table includes:
[0031] The target routing address and each routing address recorded in the preset cache routing configuration table are segmented respectively in units of preset character length to obtain at least one first segmented string corresponding to the target routing address and at least one second segmented string corresponding to each routing address;
[0032] Matching the first segmented character string with the second segmented character string respectively to obtain a matching result;
[0033] A second routing address corresponding to the second segmented character string having completely the same matching characters in the matching result is determined, and a page corresponding to the second routing address is determined as the target page.
[0034] According to a second aspect of the present invention, there is provided a page jump device, comprising:
[0035] A jump request unit, used to respond to a page jump request, wherein the page jump request carries a target routing address;
[0036] A determination unit, configured to determine whether a redirection page exists based on the target routing address and a preset cache routing configuration table, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address;
[0037] The page jump unit is used to determine the target page corresponding to the target routing address in the preset cache routing configuration table if the redirection page does not exist, and jump to the target page.
[0038] According to a third aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above page jump method is implemented.
[0039] According to a fourth aspect of the present invention, there is provided a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above page jump method when executing the program.
[0040] According to a page jump method, device, storage medium and computer equipment provided by the present invention, compared with the current method of realizing page jumps by manually writing page jump codes, the present invention responds to a page jump request, wherein the page jump request carries a target routing address; and based on the target routing address and the preset cache routing configuration table, it is determined whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; finally, if the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and jumps to the target page. Thus, by pre-configuring the preset cache routing configuration table, when a page jump request is received, the target page corresponding to the target routing address in the jump request is determined according to the preset cache routing configuration table, and jumps to the target page, which can avoid the situation where the code is written incorrectly due to manual coding, thereby improving the accuracy of page jumps. At the same time, when the APP is updated, it is only necessary to change the preset cache routing configuration table to avoid the process of rewriting the page jump code, so that the present invention improves the efficiency of page jumps. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0042] Figure 1 A flow chart of a page jump method provided by an embodiment of the present invention is shown;
[0043] Figure 2 Another flow chart of a page jump method provided by an embodiment of the present invention is shown;
[0044] Figure 3 A schematic diagram of the structure of a page jump device provided by an embodiment of the present invention is shown;
[0045] Figure 4 A schematic diagram showing the structure of another page jump device provided by an embodiment of the present invention is shown;
[0046] Figure 5 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0047] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0048] At present, the manual writing of page jump codes results in low efficiency of page jumps. At the same time, due to the negligence of technicians, errors in writing page jump codes may occur, resulting in low accuracy of page jumps.
[0049] In order to solve the above problems, an embodiment of the present invention provides a page jump method, such as Figure 1 As shown, the method includes:
[0050] 101. Respond to a page jump request, wherein the page jump request carries a target routing address.
[0051] The target routing address is a jump link corresponding to the page to be jumped to, such as a URL (Uniform Resource Locator) link, and jumping between pages can be performed based on the target routing address.
[0052] For the embodiment of the present invention, when a page jump request is received, the target routing address carried in the page jump request is parsed, and according to the target routing address, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and the page is jumped to. Thus, the page jump is performed through the preset cache routing configuration table, which can avoid manual writing of page jump code, thereby improving the page jump efficiency.
[0053] 102. Based on the target routing address and the preset cache routing configuration table, determine whether there is a redirection page.
[0054] The preset cache routing configuration table records each routing address, the page identifier corresponding to each routing address, and the redirection routing address corresponding to each routing address. The redirection page is a temporarily added jump page, which can be an advertisement page.
[0055] For the embodiment of the present invention, after receiving the page jump request, at the same time, the preset cache routing configuration table is obtained, the target routing address carried in the page jump request is parsed, and then the routing address that is the same as the target routing address is found in the preset cache routing configuration table, and it is determined whether there is a corresponding redirection routing address for the routing address. If there is a corresponding redirection address, it will first jump to the redirection page corresponding to the redirection address. For example, if the login logo is clicked on the login page, the page jump request is triggered, and the page jump request carries the target routing address. Then, the routing address that is the same as the target routing address is found in the preset cache routing configuration table, and the routing address has a corresponding preferential collection redirection routing address, then it will first jump to the preferential collection redirection page. When the user has collected the preferential treatment in the preferential collection redirection page, or the user has closed the preferential collection redirection page, it will then jump to the target page corresponding to the target routing address. By judging whether there is a redirection page, it is possible to meet the jump requirements of multiple pages and increase the user experience.
[0056] 103. If the redirect page does not exist, determine the target page corresponding to the target routing address in the preset cache routing configuration table, and jump to the target page.
[0057] For the embodiment of the present invention, after determining whether there is a redirection page corresponding to the target routing address, if there is no redirection page, then directly jump to the target page according to the target routing address. For example, if you click on login in the login page, a page jump request is triggered, and there is no redirection page for the routing address carried in the request, then the target page identifier corresponding to the target routing address is determined in the preset cache routing configuration table, and directly jump to the target page corresponding to the target page identifier. In this way, jumping between pages is performed by using the preset cache routing configuration table, which can avoid the problem of manually writing page configuration code, resulting in the need to rewrite the code after the APP is updated, so that the embodiment of the present invention improves the page jump efficiency.
[0058] According to a page jump method provided by the present invention, compared with the current method of realizing the jump between pages by manually writing page jump codes, the present invention responds to a page jump request, wherein the page jump request carries a target routing address; and based on the target routing address and the preset cache routing configuration table, it is determined whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; finally, if the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and jumps to the target page. Thus, by pre-configuring the preset cache routing configuration table, when a page jump request is received, the target page corresponding to the target routing address in the jump request is determined according to the preset cache routing configuration table, and jumps to the target page, which can avoid the situation where the code is written incorrectly due to manual coding, thereby improving the accuracy of page jumps. At the same time, when the APP is updated, it is only necessary to change the preset cache routing configuration table to avoid the process of rewriting the page jump code, so that the present invention improves the efficiency of page jumps.
[0059] Further, in order to better illustrate the above process of jumping to a page, as a refinement and extension of the above embodiment, the embodiment of the present invention provides another method for jumping to a page, such as Figure 2 As shown, the method includes:
[0060] 201. Respond to a start request of an application to which a target page belongs, wherein the start request carries an application identifier corresponding to the application.
[0061] 202. Based on the application identifier, obtain a preset server routing configuration table and a preset cache routing configuration table corresponding to the application program.
[0062] 203. Based on the preset server routing configuration table, determine whether the preset cache routing configuration table needs to be updated.
[0063] 204. If the preset cache routing configuration table needs to be updated, the updated content is obtained from the preset server routing configuration table, and the preset cache routing configuration table is updated according to the updated content.
[0064] The application may specifically be WeChat, QQ, financial APP, etc. The application identifier may be an icon identifier or a character identifier. As long as the application identifier can uniquely identify the application, the embodiment of the present invention does not specifically limit the form of the application identifier.
[0065] For the embodiment of the present invention, in order to jump between pages, it is first necessary to configure a preset cache routing configuration table. In the embodiment of the present invention, when a certain APP is released, a preset server routing configuration table corresponding to the APP will be stored in the remote server. At the same time, in order to improve the efficiency of obtaining the configuration table and prevent the jump failure caused by network abnormalities, a preset cache routing configuration table corresponding to the APP will be stored in the local cache. When the page jumps, the preset cache routing configuration table will be directly obtained from the local cache database for page jump. Whenever the APP is updated, the preset server routing configuration table will be updated. In order to ensure the accuracy of the preset cache routing configuration table stored in the local cache database, when the APP is started, the preset server routing configuration table will be obtained from the server, and the preset cache routing configuration table will be obtained from the local cache database, and the various information recorded in the preset server routing configuration table will be compared with the various information recorded in the preset cache routing configuration table to determine whether the information in the two tables is consistent. If not, the corresponding information in the preset cache routing configuration table will be updated based on the information recorded in the preset server routing configuration table. , thereby obtaining an updated preset cache routing configuration table, and the specific method for updating the information in the preset cache routing configuration table is: calculating the first hash value of the standard redirection routing address corresponding to each routing address in the preset server routing configuration table, and calculating the second hash value corresponding to the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table; judging whether the first hash value is equal to the second hash value, and judging whether the standard page identifier is the same as the cache page identifier; if the first hash value is equal to the second hash value, and the standard page identifier is the same as the cache page identifier, then prohibiting the updating of the preset cache routing configuration table; if the first hash value is not equal to the second hash value, then replacing the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table with the standard redirection routing address corresponding to the corresponding routing address in the preset server routing configuration table; if the standard page identifier is different from the cache page identifier, then replacing the cache page identifier corresponding to the corresponding routing address in the preset cache routing configuration table with the standard page identifier corresponding to the corresponding routing address in the preset server routing configuration table.
[0066] The preset server routing configuration table records various routing addresses and their corresponding standard page identifiers and standard redirection routing addresses, and the preset cache routing configuration table records various routing addresses and their corresponding cache page identifiers and cache redirection routing addresses.
[0067] Specifically, through the Hash value verification method, the information in the preset cache routing configuration table and the information in the preset server routing configuration table are stored in the JSON format. For example, when the APP is started, it will request the remote JSON configuration through the interface, and use the preset Hash (hash value) algorithm to calculate the first hash value corresponding to each piece of information recorded in the preset server routing configuration table, and calculate the second hash value corresponding to each piece of information recorded in the preset cache routing configuration table, that is, the information of any length in the configuration table is converted into an output of a fixed length through the Hash algorithm, and then determine whether the hash value corresponding to any information in the preset cache routing configuration table is consistent with the hash value corresponding to the corresponding information in the preset server configuration table. If they are inconsistent, the inconsistent information in the preset cache routing configuration table is replaced with the information in the preset server routing configuration table. If they are consistent, it is determined that the information recorded in the preset cache routing configuration table is the latest information, and there is no need to update the preset cache routing configuration table. For example, if the page identifier 1 corresponding to the routing address 1 in the preset server configuration table is different from the page identifier 2 corresponding to the routing address 1 in the preset cache routing configuration table, then the page identifier 2 in the preset cache routing configuration table is replaced with the page identifier 1; if the redirect routing address 1 corresponding to the routing address 1 in the preset server configuration table is different from the redirect routing address 2 corresponding to the routing address 1 in the preset cache routing configuration table, then the redirect routing address 2 in the preset cache routing configuration table is replaced with the redirect routing address 1.
[0068] 205. Respond to the page jump request, wherein the page jump request carries a target routing address.
[0069] Specifically, after determining the latest preset cache routing configuration table, when the user clicks the page jump icon in the APP, the page jump request is triggered. In order to perform the page jump, the target routing address carried in the page jump request will be parsed first, and then the target page corresponding to the target routing address will be determined in the preset cache routing configuration table, and then the target page will be jumped.
[0070] 206. Based on the target routing address and the updated preset cache routing configuration table, determine whether there is a redirection page, wherein the updated preset cache routing configuration table records each routing address and its corresponding redirection routing address.
[0071] For the embodiment of the present invention, after obtaining the target routing address and the preset cache routing configuration table, before jumping to the target page, it is first necessary to determine whether there is a redirection page. Based on this, step 206 specifically includes: determining a first routing address that matches the target routing address in the preset cache routing configuration table; determining whether a redirection routing address corresponding to the first routing address is recorded in the preset cache routing configuration table; if the redirection routing address is recorded in the preset cache routing configuration table, determining that the redirection page exists.
[0072] Among them, the redirect page refers to redirecting the target routing address to another routing address, and the redirect page is a temporary page. For example, if there is a financial management module in the APP, the user wants to jump to the financial management page, but recently a red envelope collection activity is temporarily held. When the user enters the financial management, he needs to jump to this new page to receive a red envelope, and then return to the regular financial management page after receiving it. When the activity ends, the redirect page becomes invalid. At this time, the page for receiving the red envelope is the redirect page. The preset cache routing configuration table records each routing address, the page identifier corresponding to each routing address, and the redirect routing address corresponding to each routing address. After obtaining the target routing address, the first routing address with the same preset target routing address is found in the preset cache routing configuration table, and then it is determined whether the first routing address has its corresponding redirect routing address. If there is a redirect routing address, it is determined that there is a redirect page. Further, after determining that there is a redirect page, it is also necessary to determine whether to display the redirect page. Based on this, the method includes: if the redirect page exists, determine the display time period corresponding to the redirect page; determine whether the current time is within the display time period; if the current time is within the display time period, jump to the redirect page.
[0073] Among them, the current time refers to the current time of the server. Specifically, the display time period corresponding to the redirection page is also recorded in the preset cache routing configuration table. According to the display time period corresponding to the redirection page recorded in the preset cache routing configuration table, it is determined whether to display the redirection page. For example, if the display time period is February 15, 2022-May 15, 2022, and the current time is February 15, 2023, it is determined that the current time of the server is not within the display time period, then the display of the redirection page is prohibited, and the target page corresponding to the target routing address is directly determined according to the target routing address carried in the page jump request, and then jump to the target page. If the current time of the server is within the display time period of the redirection page, the redirection page is displayed first. When the user closes the redirection page, or the display time of the redirection page is reached, the target page corresponding to the target routing address is displayed again.
[0074] 207. If the redirection page does not exist, determine the target page corresponding to the target routing address in the updated preset cache routing configuration table, and jump to the target page.
[0075] For the embodiment of the present invention, if the redirection page corresponding to the target routing address is not found in the preset cache routing configuration table, it is necessary to determine the target page corresponding to the target routing address in the preset cache routing configuration table. Based on this, step 207 specifically includes: using a preset character length as a unit, segmenting the target routing address and each routing address recorded in the preset cache routing configuration table, respectively, to obtain at least one first segmentation string corresponding to the target routing address and at least one second segmentation string corresponding to each routing address; matching the first segmentation string with the second segmentation string, respectively, to obtain a matching result; determining the second routing address corresponding to the second segmentation string with exactly the same matching characters in the matching result, and determining the page corresponding to the second routing address as the target page.
[0076] Specifically, the target routing address is segmented and processed in units of preset character length to obtain at least one first segmented string corresponding to the target routing address. At the same time, each routing address recorded in the preset cache routing configuration table is segmented and processed to obtain at least one second segmented string corresponding to each routing address. Then, the same characters in the first segmented string and each second segmented string are determined, and a target second segmented string that is completely identical to the first segmented string characters is determined in each second segmented string. Finally, the routing address corresponding to the target second segmented string is determined as the second routing address matching the target routing address. For example, the target routing address is 113.233.128.21, and the routing addresses recorded in the preset cache routing configuration table include 113.356.112.21, 113.233.128.21, and 123.115.003.50. The target routing address is segmented and processed to obtain a first segmented string of 1 / 1 / 3 / . / 2 / 3 / 3 / . / 1 / 2 / 8 / . / 2 / 1, at the same time, each routing address recorded in the preset cache routing configuration table is split and processed respectively, and 1 / 1 / 3 / . / 3 / 5 / 6 / . / 1 / 1 / 2 / . / 2 / 1, 1 / 1 / 3 / . / 2 / 3 / 3 / . / 1 / 2 / 8 / . / 2 / 1, 1 / 2 / 3 / . / 1 / 1 / 5 / . / 0 / 0 / 3 / . / 5 / 0 are obtained respectively, and the first split string is matched with the second split string respectively, and the first split string is obtained as 1 / 1 / 3 / . / 2 / 3 / 3 / . / 1 / 2 / 8 / . / 2 / 1 are exactly the same as the characters matched in the second segmentation string 1 / 1 / 3 / . / 2 / 3 / 3 / . / 1 / 2 / 8 / . / 2 / 1, so the 1 / 1 / 3 / . / 2 / 3 / 3 / . / 1 / 2 / 8 / . / 2 / 1 is determined as the second routing address, and then the page corresponding to the second routing address is determined in the preset cache routing configuration table, and the page is determined as the target page corresponding to the target routing address, and then jumps to the target page.
[0077] According to another page jump method provided by the present invention, compared with the current method of realizing the jump between pages by manually writing page jump codes, the present invention responds to a page jump request, wherein the page jump request carries a target routing address; and based on the target routing address and the preset cache routing configuration table, it is determined whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; finally, if the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and jumps to the target page. Thus, by pre-configuring the preset cache routing configuration table, when a page jump request is received, the target page corresponding to the target routing address in the jump request is determined according to the preset cache routing configuration table, and jumps to the target page, which can avoid the situation where the code is written incorrectly due to manual coding, thereby improving the accuracy of page jumps. At the same time, when the APP is updated, it is only necessary to change the preset cache routing configuration table to avoid the process of rewriting the page jump code, so that the present invention improves the efficiency of page jumps.
[0078] Further, as Figure 1 The specific implementation of the present invention provides a page jump device, such as Figure 3 As shown, the device includes: a jump request unit 31, a judgment unit 32 and a page jump unit 33.
[0079] The jump request unit 31 may be used to respond to a page jump request, wherein the page jump request carries a target routing address.
[0080] The determination unit 32 may be configured to determine whether there is a redirection page based on the target routing address and a preset cache routing configuration table, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address.
[0081] The page jump unit 33 may be configured to determine a target page corresponding to the target routing address in the preset cache routing configuration table and jump to the target page if the redirection page does not exist.
[0082] In a specific application scenario, in order to update the preset cache routing configuration table, such as Figure 4 As shown, the device further includes: a start request unit 34 , an acquisition unit 35 and an update unit 36 .
[0083] The start request unit 34 may be configured to respond to a start request of the application to which the target page belongs, wherein the start request carries an application identifier corresponding to the application.
[0084] The acquisition unit 35 may be configured to acquire a preset server routing configuration table and a preset cache routing configuration table corresponding to the application program based on the application identifier.
[0085] The determining unit 32 may also be configured to determine whether the preset cache routing configuration table needs to be updated based on the preset server routing configuration table.
[0086] The updating unit 36 may be configured to obtain update content from the preset server routing configuration table if the preset cache routing configuration table needs to be updated, and update the preset cache routing configuration table according to the update content.
[0087] In a specific application scenario, in order to determine whether the preset cache routing configuration table needs to be updated, the determination unit 32 includes a calculation module 321 , a determination module 322 , an update prohibition module 323 and a replacement module 324 .
[0088] The calculation module 321 can be used to calculate the first hash value of the standard redirection routing address corresponding to each routing address in the preset server routing configuration table, and calculate the second hash value corresponding to the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table.
[0089] The determination module 322 may be used to determine whether the first hash value is equal to the second hash value, and to determine whether the standard page identifier is the same as the cache page identifier.
[0090] The update prohibition module 323 may be configured to prohibit updating of the preset cache routing configuration table if the first hash value is equal to the second hash value and the standard page identifier is the same as the cache page identifier.
[0091] The replacement module 324 can be used to replace the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table with the standard redirection routing address corresponding to the corresponding routing address in the preset server routing configuration table if the first hash value is not equal to the second hash value.
[0092] The replacement module 324 can also be used to replace the cache page identifier corresponding to the corresponding routing address in the preset cache routing configuration table with the standard page identifier corresponding to the corresponding routing address in the preset server routing configuration table if the standard page identifier is different from the cache page identifier.
[0093] In a specific application scenario, in order to determine whether there is a redirection page, the determination unit 32 includes a first determination module 325 .
[0094] The first determination module 325 may be configured to determine a first routing address matching the target routing address in the preset cache routing configuration table.
[0095] The determination module 322 may also be used to determine whether the preset cache routing configuration table records a redirection routing address corresponding to the first routing address.
[0096] The first determination module 325 may be specifically configured to determine the existence of the redirection page if the redirection routing address is recorded in the preset cache routing configuration table.
[0097] In a specific application scenario, in order to jump to the redirection page, the device further includes: a determination unit 37.
[0098] The determining unit 37 may be configured to determine a display time period corresponding to the redirected page if the redirected page exists.
[0099] The judging unit 32 may also be used to judge whether the current time is within the display time period.
[0100] The page jump unit 33 may also be configured to jump to the redirect page if the current time is within the display time period.
[0101] In a specific application scenario, if there is no redirect page, in order to jump to the target page, the page jump unit 33 can also be used to jump to the target page if the current time is not within the display time period.
[0102] In a specific application scenario, in order to determine the target page corresponding to the target routing address in the preset cache routing configuration table, the page jump unit 33 includes a segmentation module 331 , a matching module 332 and a second determination module 333 .
[0103] The segmentation module 331 can be used to segment the target routing address and each routing address recorded in the preset cache routing configuration table respectively in units of preset character length to obtain at least one first segmentation string corresponding to the target routing address and at least one second segmentation string corresponding to each routing address.
[0104] The matching module 332 may be configured to match the first segmented character string with the second segmented character string respectively to obtain a matching result.
[0105] The second determination module 333 may be used to determine a second routing address corresponding to a second segmented character string having completely the same matching characters in the matching result, and determine a page corresponding to the second routing address as the target page.
[0106] It should be noted that for other corresponding descriptions of the functional modules involved in the page jump device provided in the embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.
[0107] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented: responding to a page jump request, wherein the page jump request carries a target routing address; based on the target routing address and a preset cache routing configuration table, determining whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; if the redirection page does not exist, determining the target page corresponding to the target routing address in the preset cache routing configuration table, and jumping to the target page.
[0108] Based on the above Figure 1 The method shown and Figure 3 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 5 As shown, the computer device includes: a processor 41, a memory 42, and a computer program stored in the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43, and the processor 41 implements the following steps when executing the program: responding to a page jump request, wherein the page jump request carries a target routing address; based on the target routing address and a preset cache routing configuration table, determining whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; if the redirection page does not exist, determining the target page corresponding to the target routing address in the preset cache routing configuration table, and jumping to the target page.
[0109] Through the technical solution of the present invention, compared with the method of realizing the jump between pages by manually writing page jump code, the present invention responds to the page jump request, wherein the page jump request carries the target routing address; and based on the target routing address and the preset cache routing configuration table, it is judged whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; finally, if the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and jumps to the target page. Thus, by pre-configuring the preset cache routing configuration table, when a page jump request is received, the target page corresponding to the target routing address in the jump request is determined according to the preset cache routing configuration table, and jumps to the target page, which can avoid the situation where the code is written incorrectly due to manual coding, thereby improving the accuracy of page jump. At the same time, when the APP is updated, it is only necessary to change the preset cache routing configuration table to avoid the process of rewriting the page jump code, so that the present invention improves the page jump efficiency.
[0110] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0111] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A page jump method, characterized in that: include: Responding to a page jump request, wherein the page jump request carries a target routing address; Based on the target routing address and a preset cache routing configuration table, determining whether there is a redirection page, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; If the redirection page does not exist, the target page corresponding to the target routing address is determined in the preset cache routing configuration table, and the page is jumped to.
2. The method according to claim 1, characterized in that Before responding to the page jump request, the method further includes: Responding to a start request of an application to which the target page belongs, wherein the start request carries an application identifier corresponding to the application; Based on the application identifier, obtaining a preset server routing configuration table and a preset cache routing configuration table corresponding to the application program; Based on the preset server routing configuration table, determining whether the preset cache routing configuration table needs to be updated; If the preset cache routing configuration table needs to be updated, the updated content is obtained from the preset server routing configuration table, and the preset cache routing configuration table is updated according to the updated content.
3. The method according to claim 2, characterized in that The preset server routing configuration table records each routing address and its corresponding standard page identifier and standard redirection routing address, and the preset cache routing configuration table records each routing address and its corresponding cache page identifier and cache redirection routing address. The determining whether the preset cache routing configuration table needs to be updated based on the preset server routing configuration table includes: Calculate a first hash value of a standard redirection routing address corresponding to each routing address in the preset server routing configuration table, and calculate a second hash value corresponding to a cache redirection routing address corresponding to a corresponding routing address in the preset cache routing configuration table; Determining whether the first hash value is equal to the second hash value, and determining whether the standard page identifier is the same as the cache page identifier; If the first hash value is equal to the second hash value, and the standard page identifier is the same as the cache page identifier, then updating the preset cache routing configuration table is prohibited; If the first hash value is not equal to the second hash value, replacing the cache redirection routing address corresponding to the corresponding routing address in the preset cache routing configuration table with the standard redirection routing address corresponding to the corresponding routing address in the preset server routing configuration table; If the standard page identifier is different from the cache page identifier, the cache page identifier corresponding to the corresponding routing address in the preset cache routing configuration table is replaced with the standard page identifier corresponding to the corresponding routing address in the preset server routing configuration table.
4. The method according to claim 1, characterized in that: The determining whether there is a redirection page based on the target routing address and the preset cache routing configuration table includes: Determine a first routing address matching the target routing address in the preset cache routing configuration table; Determining whether the preset cache routing configuration table records a redirection routing address corresponding to the first routing address; If the redirection routing address is recorded in the preset cache routing configuration table, it is determined that the redirection page exists.
5. The method according to claim 1, characterized in that After determining whether there is a redirection page based on the target routing address and the preset cache routing configuration table, the method further includes: If the redirection page exists, determining a display time period corresponding to the redirection page; Determine whether the current time is within the display time period; If the current time is within the display time period, jump to the redirection page.
6. The method according to claim 5, characterized in that After determining whether the current time is within the display time period, the method further includes: If the current time is not within the display time period, jump to the target page.
7. The method according to claim 1, characterized in that Determining the target page corresponding to the target routing address in the preset cache routing configuration table includes: The target routing address and each routing address recorded in the preset cache routing configuration table are segmented respectively in units of preset character length to obtain at least one first segmented string corresponding to the target routing address and at least one second segmented string corresponding to each routing address; Matching the first segmented character string with the second segmented character string respectively to obtain a matching result; A second routing address corresponding to the second segmented character string having completely the same matching characters in the matching result is determined, and a page corresponding to the second routing address is determined as the target page.
8. A page jump device, characterized in that: include: A jump request unit, used to respond to a page jump request, wherein the page jump request carries a target routing address; A determination unit, configured to determine whether a redirection page exists based on the target routing address and a preset cache routing configuration table, wherein the preset cache routing configuration table records each routing address and its corresponding redirection routing address; The page jump unit is used to determine the target page corresponding to the target routing address in the preset cache routing configuration table if the redirection page does not exist, and jump to the target page.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
