Method, system, device and medium for processing sharing path of page in applet

By interacting with the server through the mini-program and utilizing the remote path strategy module to generate the concatenated path of the target page, the problem of unstable sharing of WeChat mini-program pages was solved, resulting in a higher success rate of opening and access stability, and reducing operational losses for enterprises.

CN115221435BActive Publication Date: 2026-01-23SHANGHAI GARLIC SPROUT INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210819026.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2026-01-23
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

In existing technologies, the access to the target page when sharing a WeChat mini-program page is not stable enough, and the success rate of opening is low, resulting in significant operational losses for enterprises.

Method used

By interacting with the server through the mini-program, the preset path configuration data in the remote path strategy module is used to concatenate path prefix and suffix data to generate a page sharing path, thereby achieving dynamic adjustment and improved stability.

Benefits of technology

It improved the success rate of opening target pages and access stability, reduced business operational losses, and improved response efficiency in abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115221435B_ABST
    Figure CN115221435B_ABST
Patent Text Reader

Abstract

The application discloses a kind of applet in the sharing path processing method, system, equipment and medium of page, the sharing path processing method includes when obtaining the target page sharing instruction of applet, based on the local path strategy module of applet from the first preset path configuration data in several remote path strategy modules Path prefix data is selected;Path identification data corresponding to target page is obtained and used as path suffix data;Path prefix data and path suffix data are spliced and handled, obtain the page sharing path data corresponding to target page, to process target page based on page sharing path data.Compared with the path suffix data corresponding to target page being used as the path of target page in prior art, the path adjustment when target page is shared is realized, the opening success rate of target page is improved, and the access stability of target page is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of program development, and particularly relates to a page sharing path processing method, system, device and medium in a small program. BACKGROUND

[0002] A small program is an application that can be used without downloading and installing, which realizes the dream of "reaching out to touch" the application, and opens the application by scanning or searching, which also embodies the concept of "walk away after use". Users do not need to worry about whether too many applications are installed, and the application will be everywhere and available at any time, but does not need to be installed and uninstalled.

[0003] A small program page path is a unique identifier of each page in a small program, which is a specific embodiment of URI (Uniform Resource Identifier, Uniform Resource Locator) in a small program application. The page path configuration strategy refers to the logical order of designing and implementing the jump topology relationship between multiple pages. In computer terminology, URI is a string used to identify the name of an Internet resource. This kind of identification allows users to interact with any (including local and Internet) resources through a specific protocol. URI is defined by a scheme that includes a syntax and related protocols.

[0004] Taking WeChat small program as an example, WeChat small program is a small application program embedded in WeChat application, which does not need to be downloaded and installed separately. Users can scan the two-dimensional code, WeChat small program code of a specified format by using a mobile phone camera, or open the card (path) shared by other WeChat users, so as to jump to start the specified WeChat small program application.

[0005] When using WeChat small program, WeChat users can share (also known as forward) the page of WeChat small program to other WeChat users. Based on the user social relationship chain and the convenient sharing function, WeChat small program can bring more access volume. According to the standard method provided by the official platform of WeChat small program, when sharing the page of a specified WeChat small program, the page path is usually fixed. Each page path corresponds to its own unique path identifier (i.e. unique URI), and serves as the target page of opening WeChat small program.

[0006] In the prior art, only the unique path identifier of the target page is used as the path design when the target page is shared, and this method has the problems of unstable access to the target page and low success rate of opening the target page. When some abnormal situation occurs in the target page, the specified target page and even the applet cannot be normally opened, so that the user cannot normally browse the target page of the applet. The prior art can only repair or modify the path data of the target page, and pack and upload the repaired or modified data to the running platform of the applet for auditing. After the auditing is passed, the page path is republished, and finally the republished page path is used in the running platform of the applet to open the target page. This processing method has the problems of low efficiency, long time span, great loss of operation of the enterprise, etc. SUMMARY

[0007] The technical problem to be solved by the present application is to overcome the defects in the prior art that only the unique path identifier of the target page is used as the path design when the target page is shared, and the design has the problems of unstable access to the target page and low success rate of opening the target page. The present application provides a sharing path processing method, system, device and medium for a page in an applet.

[0008] The present application solves the above technical problems by the following technical solutions:

[0009] In a first aspect, a sharing path processing method for a page in an applet is provided. The applet communicates with a server, and a remote path strategy module of the server is configured with a plurality of first preset path configuration data.

[0010] The sharing path processing method comprises:

[0011] When a target page sharing instruction of the applet is obtained, path prefix data is selected from the plurality of first preset path configuration data in the remote path strategy module based on a local path strategy module of the applet.

[0012] Path identification data corresponding to the target page is obtained and used as path suffix data.

[0013] The path prefix data and the path suffix data are spliced to obtain page sharing path data corresponding to the target page, and the target page is processed based on the page sharing path data.

[0014] Preferably, the step of processing the target page based on the page sharing path data specifically comprises:

[0015] The page sharing path data is sent to a platform system where the applet runs.

[0016] When the platform system detects the path prefix data of the page sharing path data based on preset detection criteria, the applet displays the target page in the platform system based on the path suffix data of the page sharing path data.

[0017] Preferably, the sharing path processing method further comprises:

[0018] A set of strings for prefix path identification corresponding to pages is set in advance in the applet.

[0019] The step of obtaining the path identification data corresponding to the target page as path suffix data further comprises:

[0020] When the target page sharing instruction of the applet is obtained, the path prefix data is selected from the set of strings based on the local path strategy module of the applet.

[0021] Preferably, the sharing path processing method further comprises:

[0022] A set of strings for prefix path identification corresponding to pages is set in advance in the applet.

[0023] A plurality of first preset path configuration data obtained after the server adjusts the set of strings after reading the set of strings is obtained.

[0024] Preferably, the sharing path processing method further comprises:

[0025] When the page failure instruction generated when the platform system in which the applet runs detects that a preset abnormal condition occurs and the target page cannot be opened, the page failure instruction is sent to the server.

[0026] The page failure instruction contains abnormal path prefix data corresponding to the target page.

[0027] After the server obtains a plurality of second preset path configuration data by excluding the abnormal path prefix data in a plurality of first preset path configuration data based on the page failure instruction, the second preset path configuration data is obtained.

[0028] When the target page sharing instruction of the applet is obtained, the path prefix data is selected from a plurality of second preset path configuration data in the remote path strategy module based on the local path strategy module of the applet.

[0029] Preferably, the sharing path processing method further comprises:

[0030] When the server detects traffic anomaly of the target page based on preset traffic monitoring standards, the applet obtains second preset path configuration data obtained after the server removes the abnormal path prefix data in the first preset path configuration data.

[0031] When the target page sharing instruction of the applet is acquired, the path prefix data is selected from the second preset path configuration data in the remote path strategy module based on the local path strategy module of the applet.

[0032] Preferably, the preset abnormal condition includes at least one of technical failure, configuration interference and page anomaly.

[0033] In a second aspect, a sharing path processing system for a page in an applet is provided, the applet communicates with a server, and the remote path strategy module of the server is configured with first preset path configuration data.

[0034] The sharing path processing system comprises:

[0035] A first prefix data acquisition module is configured to select path prefix data from the first preset path configuration data in the remote path strategy module based on the local path strategy module of the applet when the target page sharing instruction of the applet is acquired.

[0036] A suffix data acquisition module is configured to acquire path identification data corresponding to the target page as path suffix data.

[0037] A path data processing module is configured to splice the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page, and to process the target page based on the page sharing path data.

[0038] In a third aspect, an electronic device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the sharing path processing method for a page in an applet.

[0039] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executable on the processor to implement the sharing path processing method for a page in an applet.

[0040] The positive progress effect of the present application is that:

[0041] The sharing path processing method of the page in the small program provided by the present application, when the target page sharing instruction of the small program is acquired, the path prefix data is selected from the first preset path configuration data in the remote path strategy module based on the local path strategy module of the small program; the path identifier data corresponding to the target page is acquired and used as the path suffix data; the path prefix data and the path suffix data are spliced to obtain the page sharing path data corresponding to the target page, so as to process the target page based on the page sharing path data. Compared with the existing path suffix data corresponding to the target page as the path of the target page, the path adjustment during the sharing of the target page is realized, the opening success rate of the target page is improved, and the access stability of the target page is improved. BRIEF DESCRIPTION OF DRAWINGS

[0042] Figure 1 The first flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0043] Figure 2 The second flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0044] Figure 3 The third flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0045] Figure 4 The fourth flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0046] Figure 5 The fifth flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0047] Figure 6 The sixth flowchart of the sharing path processing method of the page in the small program provided by the present application embodiment 1 is provided.

[0048] Figure 7 The structure diagram of the sharing path processing system of the page in the small program provided by the present application embodiment 2 is provided.

[0049] Figure 8 The structure diagram of the electronic device provided by the present application embodiment 3 is provided. DETAILED DESCRIPTION

[0050] The present application will be further described by way of examples, but the present application is not limited in the scope of the examples.

[0051] Embodiment 1

[0052] This embodiment provides a method for handling the sharing path of a page in a mini-program. The mini-program communicates and interacts with the server, and the server's remote path strategy module is configured with several first preset path configuration data. Figure 1 This is a first flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment, as shown below. Figure 1 As shown, the sharing path processing method in this embodiment includes:

[0053] Step 101: When the target page sharing instruction of the mini program is obtained, the local path strategy module of the mini program selects the path prefix data from several first preset path configuration data in the remote path strategy module.

[0054] In this step, when the user launches the mini-program, the mini-program will communicate with the server to obtain some first preset path configuration data from the server's remote path strategy module.

[0055] When a user needs to share a page of the mini-program (i.e. the target page) with other users, a page sharing instruction will be triggered. When the mini-program receives the sharing instruction for the target page, the mini-program's local path strategy module selects path prefix data from several first preset path configuration data in the remote path strategy module.

[0056] Step 102: Obtain the path identifier data corresponding to the target page and use it as the path suffix data.

[0057] The target page has corresponding path identifier data, used to uniquely redirect to that page. Once the target page is determined, the path identifier data corresponding to it is also determined. Path identifier data can also be called unique path identifier data, corresponding to a unique URI.

[0058] Step 103: Concatenate the path prefix data and path suffix data to obtain the page sharing path data corresponding to the target page, and process the target page based on the page sharing path data.

[0059] Using path prefix data as the prefix and path suffix data as the suffix, the path prefix data and path suffix data are concatenated using a concatenation tool to obtain the page sharing path data corresponding to the target page. Then, the target page is processed based on the page sharing path data.

[0060] Existing tools can be used to concatenate path prefix and path suffix data.

[0061] For example, when a user shares, the target page's path identifier data (i.e., path suffix data) `targetpath` is appended as a parameter to the path prefix data `middlepath`. The final shared path, i.e., the page sharing path data, is `middlepath?path = targetpath`, where `?` represents the parameters required to access the target page. This parameter includes `targetpath`, the path identifier data of the target page, which is also the unique URI for accessing the target page. `middlepath` parses and retrieves the URI from `targetpath` to ultimately redirect to the target page. For example, if `targetpath` corresponds to target page B and `middlepath` corresponds to intermediate page A, using the intermediate page as a bridge, the user is successfully redirected to target page B to view target page B.

[0062] In this embodiment, the page sharing path data corresponding to the target page is composed of path prefix data and path suffix data. Each target page corresponds to a unique path suffix data, meaning that the corresponding target page can be accurately jumped to based on the path suffix data.

[0063] This embodiment of the method for handling page sharing paths in a mini-program involves selecting path prefix data from several first preset path configuration data in a remote path strategy module based on the mini-program's local path strategy module when a share command for the target page is received. The path prefix data and path suffix data are then concatenated to obtain page sharing path data corresponding to the target page. This method then processes the target page based on the page sharing path data. Compared to existing methods that only use the path suffix data corresponding to the target page as the target page's path, this method adjusts the path when sharing the target page, improving the success rate of opening the target page and enhancing the stability of accessing the target page.

[0064] In an alternative implementation, Figure 2 This is a second flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment, as shown below. Figure 2 As shown, step 103 specifically includes:

[0065] Step 1031: Concatenate the path prefix data and path suffix data to obtain the page sharing path data corresponding to the target page.

[0066] Step 1032: Send the page sharing path data to the platform system on which the mini program runs.

[0067] Each type of mini-program runs on its own corresponding platform system. For example, WeChat mini-programs run on the WeChat platform system.

[0068] Step 1033: The platform system detects the path prefix data of the page sharing path data based on the preset detection standards. After confirming that the detection is successful, the mini program jumps to and displays the target page in the platform system based on the path suffix data of the page sharing path data.

[0069] When a user shares a target page, the platform system running the mini-program will check the path prefix data in the page sharing path data corresponding to the target page to detect whether the intermediate page corresponding to the path prefix data meets the platform system's detection standards. For example, whether it is suspected of containing content that does not comply with the platform system. After the detection is successful, the mini-program internally jumps to and displays the target page in the platform system based on the path suffix data in the page sharing path data.

[0070] In this embodiment, the intermediate page corresponding to the path prefix data is used as a connecting bridge to connect to the target page, and then the target page is successfully redirected to the user through the path suffix data and displayed to the user.

[0071] This embodiment of the method for handling page sharing paths in a mini-program involves sending page sharing path data to the platform system on which the mini-program runs. The platform system then detects the path prefix data of the page sharing path data based on preset detection standards. Upon successful detection, the mini-program uses the path suffix data of the page sharing path data to redirect and display the target page within the platform system. Using the intermediate page corresponding to the path prefix data as a connecting bridge, the user is ultimately redirected to the target page via the path suffix data in the page sharing path data, and the target page is then displayed to the user. Compared to existing methods that only use the path suffix data corresponding to the target page as the target page path, this method adjusts the path when sharing the target page, improving the success rate of opening the target page and enhancing the stability of accessing the target page.

[0072] In an alternative implementation, Figure 3 This is a third flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment; for example... Figure 3 As shown, the shared path processing method also includes:

[0073] Step 201: Pre-set a set of strings for prefix path identification corresponding to the page within the mini program.

[0074] In this step, a set of strings corresponding to the page (i.e., the intermediate page) for prefix path identification is statically built into the mini program in advance. The prefix path identification can also be called a unique identifier, i.e., URI.

[0075] The process following step 102 above also includes:

[0076] Step 202: When the target page sharing instruction of the mini program is obtained, the local path strategy module of the mini program selects the path prefix data from the string set.

[0077] Setting a string set in advance within the mini-program is to prevent the mini-program from failing to obtain the first preset path configuration data in a timely manner when communication with the server fails.

[0078] When a share command for the target page is received, but communication between the mini-program and the server fails, the mini-program's local path strategy module selects path prefix data from a string set. At this point, the data in the string set is equivalent to the first preset path configuration data. Then, it obtains the path identifier data corresponding to the target page and uses it as the path suffix data. The path prefix data and path suffix data are concatenated to obtain the page sharing path data corresponding to the target page, and the target page is then processed based on this page sharing path data.

[0079] This implementation of the method for handling page sharing paths in a mini-program involves pre-setting a set of strings corresponding to the page's prefix path identifier within the mini-program. When a sharing instruction for the target page is received from the mini-program, the path prefix data is selected from the string set based on the mini-program's local path strategy module. This ensures that even if communication between the mini-program and the server fails, the mini-program can still successfully share the target page, further improving the success rate of opening the target page. It also allows for adjustment of the path during target page sharing, enhancing the stability of accessing the target page.

[0080] In an alternative implementation, Figure 4 This is a fourth flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment; as shown below. Figure 4 As shown, the shared path processing method also includes:

[0081] Step 301: Set up a set of strings for prefix path identification corresponding to the page in advance within the mini program.

[0082] Step 302: Obtain several first preset path configuration data after the server reads and adjusts the string set.

[0083] When a user launches a mini-program, the mini-program communicates with the server. The server reads a set of strings used for prefix path identification corresponding to the page from within the mini-program, and adjusts the string set to obtain several first preset path configuration data. When a share command for the target page of the mini-program is received, the local path strategy module of the mini-program selects path prefix data from several first preset path configuration data in the remote path strategy module, and then obtains the path identification data corresponding to the target page as the path suffix data. The path prefix data and path suffix data are concatenated to obtain the page sharing path data corresponding to the target page, and the target page is processed based on the page sharing path data.

[0084] In this context, the string set C is the entire set relative to the several first preset path configuration data D. The several first preset path configuration data can be a subset of the string set or the same set; that is, D is contained in C, or D is equal to C. In other words, the number of preset intermediate page path data corresponding to the several first preset path configuration data is less than or equal to the number of preset intermediate page path data in the string set.

[0085] This embodiment of the method for handling the sharing path of a page in a mini-program pre-sets a string set corresponding to the page for prefix path identification within the mini-program. It then obtains several first preset path configuration data obtained by the server after reading and adjusting the string set. Path prefix data is selected from these first preset path configuration data, enabling communication between the mini-program and the server. This facilitates the server's adjustment of the string set within the mini-program to obtain the first preset path configuration data, and subsequently, the path prefix data. This improves the flexibility and selectivity of path prefix data selection, increases the success rate of opening the target page, enables path adjustment when sharing the target page, and enhances the stability of accessing the target page.

[0086] In an alternative implementation, Figure 5 This is a fifth flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment; as shown below. Figure 5 As shown, the shared path processing method also includes:

[0087] Step 303: When the platform system running the mini-program detects a preset abnormal situation that causes the target page to be unable to open and generates a page failure instruction, the page failure instruction is sent to the server.

[0088] The page fault instruction includes abnormal path prefix data corresponding to the target page.

[0089] During the process of a user forwarding a target page, the platform system running the mini-program will detect the target page. When the platform system detects a preset abnormal situation that causes the target page to be unable to open, it will generate a page failure command and send the page failure command to the server.

[0090] Step 304: Receive several second preset path configuration data after the server removes abnormal path prefix data from several preset first path configuration data based on page fault instructions.

[0091] Since the page failure command contains abnormal path prefix data corresponding to the target page, when the server receives the page failure command, it will remove the abnormal path prefix data from the first preset path configuration data and obtain several second preset path configuration data. The number of preset intermediate page path data corresponding to the several second preset path configuration data is less than the number of preset intermediate page path data corresponding to the first preset path configuration data, thus realizing the update of the several first preset path configuration data.

[0092] Step 305: When the target page sharing instruction of the mini program is obtained, the local path strategy module of the mini program selects the path prefix data from several second preset path configuration data in the remote path strategy module.

[0093] After selecting the path prefix data, obtain the path identifier data corresponding to the target page and use it as the path suffix data. Concatenate the path prefix data and the path suffix data to obtain the page sharing path data corresponding to the target page, and then process the target page based on the page sharing path data.

[0094] The method for handling page sharing paths in the mini-program in this embodiment updates several first preset path configuration data, ensuring the stability of jumping to the target page using intermediate pages corresponding to the path prefix data as connecting bridges. When some intermediate pages are abnormal, the remaining intermediate pages can be selected to update the path prefix data, improving the success rate of opening the target page and the stability of accessing the target page. It also realizes dynamic configuration of the target page path. By dynamically adjusting the target page path, the mini-program can respond immediately when page abnormalities occur, improving the efficiency of handling page abnormalities, reducing the workload of maintenance personnel, and reducing the operational losses of enterprises.

[0095] In an alternative implementation, Figure 6 This is a sixth flowchart illustrating the method for handling the sharing path of a page in a mini-program provided in this embodiment; as shown below. Figure 6 As shown, the shared path processing method also includes:

[0096] Step 306: When the server detects abnormal traffic on the target page based on the preset traffic monitoring standard, it determines that the path prefix data corresponding to the target page is abnormal path prefix data. The mini-program then obtains several sets of second preset path configuration data obtained by removing the abnormal path prefix data from the first preset path configuration data.

[0097] The server autonomously monitors traffic. If it detects that the traffic of the target page does not meet the preset traffic monitoring standards, it determines that the target page is an abnormal page. This leads to the determination that the path prefix data corresponding to the target page is abnormal path prefix data. Subsequently, the abnormal path prefix data in several first preset path configuration data is removed, resulting in several second preset path configuration data, which realizes the update of several first preset path configuration data.

[0098] Step 307: When the target page sharing instruction of the mini program is obtained, the local path strategy module of the mini program selects the path prefix data from several second preset path configuration data in the remote path strategy module.

[0099] When a sharing instruction for the target page of a mini-program is received, the local path strategy module of the mini-program selects path prefix data from several second preset path configuration data in the remote path strategy module; obtains the path identifier data corresponding to the target page and uses it as path suffix data; concatenates the path prefix data and path suffix data to obtain the page sharing path data corresponding to the target page, and processes the target page based on the page sharing path data.

[0100] The data type of the first preset path configuration data can be string data, and similarly, the path prefix data is also a string data type.

[0101] Select one string from multiple strings as the path prefix data for the target page. That is, select one target intermediate page from multiple preset intermediate pages and use the string data corresponding to the target intermediate page as the path prefix data for the target page.

[0102] For example, the first preset path configuration data includes 10 intermediate pages A1-A10, corresponding to 10 string data. The target page is B. Any intermediate page from A1-A10 is selected as the target intermediate page. For example, A2 is selected as the target intermediate page. The string data corresponding to A2 is used as the path prefix data in the page sharing path data corresponding to the target page B.

[0103] For example, taking a fixed setting method for selecting path prefix data, when a user enters a mini-program page, the mini-program calls the API (Application Program Interface) to calculate which specific intermediate page to use as the target intermediate page, thus obtaining the path prefix data corresponding to the target page. An application programming interface is a collection of definitions, programs, and protocols that enables communication between computer software. An API is a calling interface provided by the operating system for applications; applications call the operating system's API to cause the operating system to execute commands for the application.

[0104] This implementation of the method for handling page sharing paths in a mini-program involves the server detecting traffic to the target page based on preset traffic monitoring standards. After determining that the path prefix data corresponding to the target page is abnormal, abnormal path prefix data is removed from several first preset path configuration data sets, resulting in several second preset path configuration data sets. This automatically enables the server to monitor abnormal path prefix data and update several first preset path configuration data sets, ensuring the stability of redirecting to the target page using intermediate pages corresponding to the path prefix data as connecting bridges. If some intermediate pages are abnormal, the remaining intermediate pages can be selected to update the path prefix data, improving the success rate of opening the target page and enhancing the stability of accessing the target page. This method also enables dynamic configuration of the target page path. By dynamically adjusting the target page path, the mini-program can respond immediately to page anomalies, improving the efficiency of handling page anomalies, reducing the workload of maintenance personnel, and minimizing operational losses for the enterprise.

[0105] Preset exceptions include, but are not limited to, technical malfunctions, configuration interference, and page errors.

[0106] Example 2

[0107] This embodiment provides a sharing path processing system for pages in a mini-program. The mini-program communicates and interacts with the server. The server's remote path strategy module is configured with several first preset path configuration data. Figure 7 This is a schematic diagram of the structure of the page sharing path processing system in the mini-program provided in this embodiment; as shown... Figure 7As shown, the page sharing path processing system in this embodiment includes a first prefix data acquisition module 1, which is used to select path prefix data from several first preset path configuration data in the remote path strategy module based on the local path strategy module of the mini program when a target page sharing instruction of the mini program is obtained; a suffix data acquisition module 2, which is used to obtain the path identifier data corresponding to the target page and use it as the path suffix data; and a path data processing module 3, which is used to concatenate the path prefix data and the path suffix data to obtain the page sharing path data corresponding to the target page, so as to process the target page based on the page sharing path data.

[0108] In an optional implementation, the path data processing module 3 includes a path splicing unit 31, used to splice path prefix data and path suffix data to obtain page sharing path data corresponding to the target page; a path sending unit 32, used to send the page sharing path data to the platform system on which the mini-program runs; and a page jump unit 33, used to detect the path prefix data of the page sharing path data in the platform system based on a preset detection standard. After the detection is successful, the mini-program jumps to display the target page in the platform system based on the path suffix data of the page sharing path data.

[0109] In an optional implementation, the page sharing path processing system in the mini program further includes a string set setting module 4, which is used to pre-set a string set corresponding to the page for prefix path identification within the mini program; and a second prefix data acquisition module 5, which is used to select path prefix data from the string set based on the mini program's local path strategy module when a sharing instruction for the target page of the mini program is obtained.

[0110] In an optional implementation, the page sharing path processing system in the mini-program further includes a string set setting module 4, which is used to pre-set a string set corresponding to the page for prefix path identification within the mini-program; and a first preset data acquisition module 6, which is used to acquire several first preset path configuration data obtained by the server after reading the string set and adjusting the string set.

[0111] In an optional implementation, the page sharing path processing system in the mini-program further includes an error instruction sending module 7, which sends a page error instruction to the server when the platform system running the mini-program detects a preset abnormal situation that causes the target page to be inaccessible. The page error instruction contains abnormal path prefix data corresponding to the target page. The second preset data acquisition module 8 is used to receive a number of second preset path configuration data obtained by the server after removing the abnormal path prefix data from a number of first preset path configuration data based on the page error instruction. The first prefix data acquisition module 1 is also used to select path prefix data from a number of second preset path configuration data in the remote path strategy module based on the mini-program's local path strategy module when the target page sharing instruction of the mini-program is obtained.

[0112] In an optional implementation, the second preset data acquisition module 8 is further configured to detect the traffic of the target page based on the preset traffic monitoring standard on the server, and after determining that the path prefix data corresponding to the target page is abnormal path prefix data, the mini-program obtains several second preset path configuration data after the server removes the abnormal path prefix data from several first preset path configuration data; the first prefix data acquisition module 1 is further configured to select path prefix data from several second preset path configuration data in the remote path strategy module based on the mini-program's local path strategy module when the mini-program's target page sharing instruction is obtained.

[0113] Preset exceptions include, but are not limited to, technical malfunctions, configuration interference, and page errors.

[0114] The mini-program page sharing path processing system in this embodiment, through the cooperation of various systems and units, compared with the existing system which only uses the path suffix data corresponding to the target page as the target page path, realizes the adjustment of the path when sharing the target page, improves the success rate of opening the target page, and improves the stability of accessing the target page; it realizes the dynamic configuration of the target page path, and by dynamically adjusting the target page path, the mini-program can respond immediately when page abnormalities occur, improves the efficiency of handling page abnormalities, reduces the workload of maintenance personnel, and reduces the operational losses of enterprises.

[0115] Example 3

[0116] This embodiment provides an electronic device. Figure 8 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, it implements the method for handling the sharing path of a page in the applet in the above embodiment 1. Figure 8The electronic device 80 shown is merely an example and should not be construed as limiting the functionality or scope of the embodiments of the present invention. Figure 8 As shown, the electronic device 80 can be manifested as a general-purpose computing device, such as a server device. The components of the electronic device 80 may include, but are not limited to: at least one processor 81, at least one memory 82, and a bus 83 connecting different system components (including memory 82 and processor 81).

[0117] Bus 83 includes a data bus, an address bus, and a control bus.

[0118] The memory 82 may include volatile memory, such as random access memory (RAM) 821 and / or cache memory 822, and may further include read-only memory (ROM) 823.

[0119] The memory 82 may also include a program tool 825 (or utility) having a set (at least one) program module 824, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0120] The processor 81 executes various functional applications and data processing by running computer programs stored in the memory 82, such as the method for processing the sharing path of a page in the applet in Embodiment 1 above.

[0121] Electronic device 80 can also communicate with one or more external devices 84. This communication can be performed via input / output (I / O) interface 85. Furthermore, the model-generated electronic device 80 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 86. Figure 8 As shown, network adapter 86 communicates with other modules of electronic device 80 via bus 83. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with electronic device 80, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems.

[0122] It should be noted that although several units / modules or sub-units / modules of the electronic device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.

[0123] Example 4

[0124] This embodiment provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the method for handling the sharing path of a page in a mini-program as described in Embodiment 1 above.

[0125] The readable storage medium may be more specifically adopted, including but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device, or any suitable combination thereof.

[0126] In a possible implementation, the present invention can also be implemented as a program product, which includes program code. When the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps in the method for handling the sharing path of a page in the mini-program described in Embodiment 1 above.

[0127] The program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, as a standalone software package, partially on the user device and partially on a remote device, or entirely on a remote device.

[0128] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but all such changes and modifications fall within the scope of protection of the present invention.

Claims

1. A method for handling the sharing path of a page in a mini-program, characterized in that, The mini-program communicates and interacts with the server, and the server's remote path strategy module is configured with several first preset path configuration data. The sharing path processing method includes: When a target page sharing instruction is received from the mini program, the local path strategy module of the mini program selects path prefix data from several first preset path configuration data in the remote path strategy module. Obtain the path identifier data corresponding to the target page and use it as the path suffix data; The path prefix data and the path suffix data are concatenated to obtain the page sharing path data corresponding to the target page, so as to process the target page based on the page sharing path data; The sharing path processing method further includes: A set of strings for prefix path identification corresponding to the page is pre-set within the mini-program; After the step of obtaining the path identifier data corresponding to the target page and using it as the path suffix data, the method further includes: When the target page sharing instruction of the mini program is obtained, and the mini program fails to communicate with the server, the path prefix data is selected from the string set based on the local path strategy module of the mini program.

2. The method for processing shared paths according to claim 1, characterized in that, The step of processing the target page based on the page sharing path data specifically includes: The page sharing path data is sent to the platform system on which the mini-program runs; The platform system detects the path prefix data of the page sharing path data based on preset detection standards. After confirming successful detection, the mini-program jumps to display the target page in the platform system based on the path suffix data of the page sharing path data.

3. The method for processing shared paths according to claim 1, characterized in that, The sharing path processing method further includes: A set of strings for prefix path identification corresponding to the page is pre-set within the mini-program; Obtain several sets of first preset path configuration data obtained by the server after reading the string set and adjusting the string set.

4. The sharing path processing method according to claim 3, characterized in that, The sharing path processing method further includes: When the platform system running the mini-program detects a preset abnormal situation that causes the target page to be inaccessible and generates a page failure instruction, the page failure instruction is sent to the server. The page fault instruction includes abnormal path prefix data corresponding to the target page; After receiving the abnormal path prefix data from the first preset path configuration data obtained by the server based on the page failure instruction, several second preset path configuration data are obtained. When a target page sharing instruction is received from the mini-program, the path prefix data is selected from several second preset path configuration data in the remote path strategy module based on the mini-program's local path strategy module.

5. The sharing path processing method according to claim 3, characterized in that, The sharing path processing method further includes: When the server detects abnormal traffic on the target page based on a preset traffic monitoring standard, and determines that the path prefix data corresponding to the target page is abnormal path prefix data, the mini-program obtains several second preset path configuration data after the server removes the abnormal path prefix data from several first preset path configuration data. When a target page sharing instruction is received from the mini-program, the path prefix data is selected from several second preset path configuration data in the remote path strategy module based on the mini-program's local path strategy module.

6. The method for processing shared paths according to claim 4, characterized in that, The preset abnormal conditions include at least one of technical failures, configuration interference, and page abnormalities.

7. A sharing path processing system for pages in a mini-program, characterized in that, The mini-program communicates and interacts with the server, and the server's remote path strategy module is configured with several first preset path configuration data. The shared path processing system includes: The first prefix data acquisition module is used to select path prefix data from a plurality of first preset path configuration data in the remote path strategy module based on the local path strategy module of the mini program when the target page sharing instruction of the mini program is obtained. The suffix data acquisition module is used to acquire the path identifier data corresponding to the target page and use it as the path suffix data. The path data processing module is used to concatenate the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page, so as to process the target page based on the page sharing path data; The shared path processing system also includes: The string set setting module is used to pre-set the string set corresponding to the page for prefix path identification within the mini program; The second prefix data acquisition module is used to select the path prefix data from the string set based on the local path strategy module of the mini program when the target page sharing instruction of the mini program is obtained and the mini program fails to communicate with the server.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes a computer program, it implements the method for handling the sharing path of a page in a mini-program as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method for handling the sharing path of a page in a mini-program as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Analysis method and device of abnormal data

    CN105653625A

  • Page display method, system and device, equipment and storage medium

    CN112612977A

  • Page jumping method, device, system and equipment and storage medium

    CN113641940A