CN115221435A - Method, system, device and medium for processing sharing path of page in applet - Google Patents

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

Info

Publication number
CN115221435A
CN115221435A CN202210819026.3A CN202210819026A CN115221435A CN 115221435 A CN115221435 A CN 115221435A CN 202210819026 A CN202210819026 A CN 202210819026A CN 115221435 A CN115221435 A CN 115221435A
Authority
CN
China
Prior art keywords
path
data
page
target page
applet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210819026.3A
Other languages
Chinese (zh)
Inventor
张海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Suanya Information Technology Co ltd
Original Assignee
Shanghai Suanya Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Suanya Information Technology Co ltd filed Critical Shanghai Suanya Information Technology Co ltd
Priority to CN202210819026.3A priority Critical patent/CN115221435A/en
Publication of CN115221435A publication Critical patent/CN115221435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention discloses a sharing path processing method, a system, equipment and a medium for a page in an applet, wherein the sharing path processing method comprises the steps of selecting path prefix data from a plurality of first preset path configuration data in a remote path policy module by a local path policy module based on the applet when a target page sharing instruction of the applet is obtained; acquiring path identification data corresponding to a target page and using the path identification data as path suffix data; and splicing 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. Compared with the existing method that only path suffix data corresponding to the target page is used as the path of the target page, the method and the device realize the adjustment of the path when the target page is shared, improve the opening success rate of the target page and improve the access stability of the target page.

Description

Method, system, device and medium for processing sharing path of page in applet
Technical Field
The present invention relates to the field of program development technologies, and in particular, to a method, a system, a device, and a medium for processing a sharing path of a page in an applet.
Background
The applet is an application which can be used without downloading and installing, the dream that the application is 'reachable by a touch' is realized, the user can open the application by scanning or searching once, the concept of 'walking after use' is also embodied, the user does not need to care about whether to install too many applications, the application is ubiquitous, available at any time, and does not need to be installed and uninstalled.
The applet page path is a unique identifier of each page in the applet, is a concrete embodiment of a Uniform Resource Identifier (URI) in the applet application, and the page path configuration policy refers to a logic sequence for designing and implementing a jump topology relationship among a plurality of pages. In computer terminology, a URI is a string used to identify the name of an Internet resource, which allows a user to interact with any resource (including local and Internet) via a specific protocol. The URI is defined by a scheme that includes a deterministic syntax and associated protocols.
Taking the wechat applet as an example, the wechat applet is a small application program which is embedded in the wechat application and can be used without being downloaded and installed independently, and a user can scan a two-dimensional code and a wechat applet code in a specified format through a mobile phone camera or open a card (path) shared by other wechat users, so that the specified wechat applet application can be skipped and started.
When the wechat user uses the wechat applet, the wechat user can share (also called forward) the page of the wechat applet to other wechat users, and based on the user social relationship chain and the convenient sharing function, more access can be brought to the wechat applet. Under a standard method provided by a WeChat applet official platform, when a page of a specified WeChat applet is shared, the page path setting is usually fixed, and each page path corresponds to a unique path identifier (namely, a unique URI) of the page path and serves as a target page for opening the WeChat applet.
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 the method has the problems that the target page is not stably accessed and the success rate of opening the target page is low. When some abnormal condition occurs to the target page, the specified target page and even the small program cannot be normally opened, so that the user cannot normally browse the target page of the small program. In the prior art, only the path data of the target page can be repaired or modified, the repaired or modified data is packaged and uploaded to an operating platform of the small program for auditing, the page path is reissued after the auditing is passed, and the reissued page path is finally used by the operating platform of the small program to open the target page.
Disclosure of Invention
The invention provides a sharing path processing method, a system, equipment and a medium for pages in an applet, aiming at overcoming the defects that in the prior art, only a unique path identifier of a target page is used as a path design when the target page is shared, the target page access is not stable enough, and the success rate of opening the target page is low.
The invention solves the technical problems through the following technical scheme:
in a first aspect, a method for processing a shared path of a page in an applet is provided, where the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data;
the sharing path processing method comprises the following steps:
when a target page sharing instruction of the small program is acquired, selecting path prefix data from a plurality of first preset path configuration data in the far-end path policy module based on a local path policy module of the small program;
acquiring path identification data corresponding to the target page and using the path identification data as path suffix data;
and splicing 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.
Preferably, the step of processing the target page based on the page sharing path data specifically includes:
sending the page sharing path data to a platform system operated by the small program;
and after the platform system detects the path prefix data of the page sharing path data based on a preset detection standard, and after the detection is determined to be successful, the small program skips and displays the target page in the platform system based on the path suffix data of the page sharing path data.
Preferably, the shared path processing method further includes:
setting a character string set which corresponds to a page and is used for a prefix path identifier in the small program in advance;
after the step of obtaining the path identification data corresponding to the target page and using the path identification data as path suffix data, the method further comprises the following steps:
and when the target page sharing instruction of the applet is obtained, the path prefix data is selected from the character string set based on the local path strategy module of the applet.
Preferably, the shared path processing method further includes:
setting a character string set which corresponds to a page and is used for a prefix path identifier in the small program in advance;
and acquiring a plurality of first preset path configuration data obtained by adjusting the character string set after the character string set is read by the server.
Preferably, the shared path processing method further includes:
when a page fault instruction generated when a platform system running the small program detects that a preset abnormal condition occurs and the target page cannot be opened is received, the page fault instruction is sent to the server;
the page fault instruction comprises abnormal path prefix data corresponding to the target page;
receiving a plurality of second preset path configuration data obtained after the server eliminates the abnormal path prefix data in the plurality of first preset path configuration data based on the page fault instruction;
when a target page sharing instruction of the small program is obtained, selecting the path prefix data from a plurality of second preset path configuration data in the far-end path policy module based on a local path policy module of the small program.
Preferably, the shared path processing method further includes:
when the server detects that the flow of the target page is abnormal based on a preset flow monitoring standard, after the path prefix data corresponding to the target page is determined to be abnormal path prefix data, the small program acquires a plurality of second preset path configuration data obtained after the server rejects the abnormal path prefix data in a plurality of first preset path configuration data;
when a target page sharing instruction of the small program is obtained, selecting the path prefix data from a plurality of second preset path configuration data in the far-end path policy module based on a local path policy module of the small program.
Preferably, the preset abnormal condition includes at least one of a technical fault, a configuration disturbance and a page abnormality.
In a second aspect, a shared path processing system for a page in an applet is provided, where the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data;
the sharing path processing system includes:
a first prefix data obtaining module, configured to select, when a target page sharing instruction of the applet is obtained, path prefix data from a plurality of first preset path configuration data in the remote path policy module based on a local path policy module of the applet;
a suffix data acquisition module, configured to acquire path identification data corresponding to the target page and use the path identification data as path suffix data;
and the path data processing module is used for splicing the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page, and processing the target page based on the page sharing path data.
In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for processing a shared path of a page in an applet when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for processing a shared path of pages in an applet described in any one of the above.
The positive progress effects of the invention are as follows:
according to the sharing path processing method of the page in the small program, when a target page sharing instruction of the small program is obtained, a local path strategy module based on the small program selects path prefix data from a plurality of first preset path configuration data in a remote path strategy module; acquiring path identification data corresponding to a target page and taking the path identification data as path suffix data; and splicing 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. Compared with the existing method that only path suffix data corresponding to the target page is used as the path of the target page, the method and the device realize the adjustment of the path when the target page is shared, improve the opening success rate of the target page and improve the access stability of the target page.
Drawings
Fig. 1 is a first flowchart of a method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 2 is a second flowchart of the method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 3 is a third flow diagram of a method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 4 is a fourth flowchart illustrating a method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 5 is a fifth flowchart illustrating a method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 6 is a sixth flowchart illustrating a method for processing a sharing path of a page in an applet according to embodiment 1 of the present invention;
fig. 7 is a schematic structural diagram of a system for processing a sharing path of a page in an applet according to embodiment 2 of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to embodiment 3 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the invention thereto.
Example 1
The embodiment provides a method for processing a shared path of a page in an applet, wherein the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data; fig. 1 is a first flowchart of a method for processing a sharing path of a page in an applet according to this embodiment, where as shown in fig. 1, the method for processing a sharing path according to this embodiment includes:
step 101, when a target page sharing instruction of an applet is acquired, a local path policy module based on the applet selects path prefix data from a plurality of first preset path configuration data in a remote path policy module.
In this step, when the user starts the applet, the applet communicates with the server to obtain a plurality of first preset path configuration data from the remote path policy module of the server.
When a user needs to share a certain page (namely a target page) of the applet with other users, a page sharing instruction is triggered, and when the applet receives the sharing instruction of the target page, a local path policy module of the applet selects path prefix data from a plurality of first preset path configuration data in a remote path policy module.
And 102, acquiring path identification data corresponding to the target page and using the path identification data as path suffix data.
The target page is correspondingly provided with path identification data for the only directional jump to the target page, and after the target page is determined, the path identification data corresponding to the target page is also determined. The path identification data may also be referred to as unique path identifier data, corresponding to a unique URI.
And 103, splicing 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.
And splicing the path prefix data and the path suffix data based on a splicing tool by taking the path prefix data as a prefix and the path suffix data as a suffix to obtain page sharing path data corresponding to the target page, and processing the target page based on the page sharing path data.
The splicing of the path prefix data and the path suffix data can be completed by using the existing tools.
For example, when a user shares, splicing the path identification data (i.e., path suffix data) targetpath corresponding to a target page as a parameter into the path prefix data middiepath, where the finally shared path, i.e., page sharing path data, is middiepath = targetpath? Representing the parameters which need to be carried by the entering target page, wherein the parameters include the targetpath, namely the path identification data of the target page and the unique URI of the entering target page, and middepath analyzes and takes the URI in the targetpath to finally jump to the target page. For example, the targetpath corresponds to the target page B, the middlepath corresponds to the intermediate page a, the intermediate page serves as a connection bridge, and finally, the target page B is successfully jumped to, so that the target page B is displayed to the user.
In this embodiment, the page sharing path data corresponding to the target page is formed by splicing the path prefix data and the path suffix data, and one target page corresponds to one unique path suffix data, that is, the target page can be accurately jumped to the corresponding target page according to the path suffix data.
According to the method for processing the sharing path of the page in the applet, when a target page sharing instruction of the applet is obtained, a local path policy module based on the applet selects path prefix data from a plurality of first preset path configuration data in a remote path policy module; and splicing 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. Compared with the existing method that only the path suffix data corresponding to the target page is used as the path of the target page, the method and the device realize the adjustment of the path when the target page is shared, improve the opening success rate of the target page and improve the access stability of the target page.
In an optional embodiment, fig. 2 is a second schematic flow chart of the method for processing a sharing path of a page in an applet provided in this embodiment, and as shown in fig. 2, the step 103 specifically includes:
and step 1031, splicing the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page.
And step 1032, sending the page sharing path data to a platform system for running the small program.
Each type of small program of different platforms runs on a certain platform system corresponding to each type of small program, for example, a WeChat small program runs on a WeChat platform system.
And 1033, detecting the path prefix data of the page sharing path data based on a preset detection standard in the platform system, and after the detection is determined to be successful, skipping to display the target page in the platform system by the small program based on the path suffix data of the page sharing path data.
When a user shares a target page, a platform system operated by the applet detects path prefix data in page sharing path data corresponding to the target page to detect whether an intermediate page corresponding to the path prefix data meets the detection standard of the platform system, for example, whether the intermediate page is suspected of not meeting the related content of the platform system, and after the detection is successful, the applet skips and displays the target page in the platform system pair based on the path suffix data in the page sharing path data.
In the embodiment, the intermediate page corresponding to the path prefix data is used as a connection bridge to connect the target page, and then the target page is finally successfully jumped to through the path suffix data and displayed to the user.
According to the sharing path processing method for the page in the applet, the page sharing path data are sent to a platform system where the applet operates, the platform system detects path prefix data of the page sharing path data based on a preset detection standard, and after the detection is determined to be successful, the applet skips to display a target page in the platform system pair based on path suffix data of the page sharing path data; compared with the existing path only using the path suffix data corresponding to the target page as the target page, the method realizes the adjustment of the path when the target page is shared, improves the opening success rate of the target page, and improves the access stability of the target page.
In an optional embodiment, fig. 3 is a third flow diagram of a method for processing a sharing path of a page in an applet according to the embodiment; as shown in fig. 3, the method for processing a shared path further includes:
step 201, setting a character string set corresponding to the page and used for prefix path identification in the applet in advance.
In this step, a set of strings corresponding to pages (i.e. intermediate pages) and used for prefix path identification, which may also be referred to as a unique identifier, i.e. URI, is statically built in the applet in advance.
Step 102 further includes:
step 202, when a target page sharing instruction of the applet is obtained, path prefix data is selected from the character string set based on a local path strategy module of the applet.
The character string set is preset in the applet, so that the first preset path configuration data cannot be obtained in time when the applet fails to communicate with the server.
When a target page sharing instruction is obtained and the communication between the small program and the server fails, the local path strategy module of the small program selects path prefix data from the character string set, and at the moment, the data in the character string set is equivalent to first preset path configuration data. Further acquiring path identification data corresponding to the target page and taking the path identification data as path suffix data; and splicing 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.
In the sharing path processing method for a page in an applet according to the embodiment, a string set corresponding to the page and used for a prefix path identifier is set in the applet in advance, and when a target page sharing instruction of the applet is obtained, path prefix data is selected from the string set based on a local path policy module of the applet. When the communication between the small program and the server fails, the small program can still normally complete the sharing of the target page, the opening success rate of the target page is further improved, the adjustment of the path when the target page is shared is realized, and the access stability of the target page is improved.
In an optional embodiment, fig. 4 is a fourth flowchart illustrating a method for processing a sharing path of a page in an applet according to this embodiment; as shown in fig. 4, the sharing path processing method further includes:
step 301, a character string set used for prefix path identification and corresponding to the page is set in the small program in advance.
Step 302, obtaining a plurality of first preset path configuration data obtained by adjusting the character string set after the character string set is read by the server.
When a user starts the applet, the applet is communicated with a server, the server reads a character string set which corresponds to a page and is used for a prefix path identifier from the inside of the applet, and a plurality of first preset path configuration data obtained after the character string set is adjusted, when a target page sharing instruction of the applet is obtained, a local path strategy module based on the applet selects path prefix data from a plurality of first preset path configuration data in a far-end path strategy module, and then path identifier data corresponding to the target page are obtained and serve as path suffix data; and splicing 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 character string set C belongs to a complete set relative to the first preset path configuration data D, and the first preset path configuration data D may be subsets of the character string set or may be the same set; i.e. D is comprised in C, or D equals C. That is, the number of the preset intermediate page path data corresponding to the first preset path configuration data is less than or equal to the number of the preset intermediate page path data in the character string set.
The sharing path processing method for the page in the applet according to the embodiment is characterized in that a character string set corresponding to the page and used for a prefix path identifier is preset in the applet, a plurality of first preset path configuration data obtained by adjusting the character string set after the character string set is read by a server are obtained, and path prefix data are selected from the first preset path configuration data, so that communication between the applet and a server is achieved, the server adjusts the character string set in the applet conveniently to obtain the first preset path configuration data, and then the path prefix data are obtained.
In an optional embodiment, fig. 5 is a fifth flowchart illustrating a method for processing a sharing path of a page in an applet according to the embodiment; as shown in fig. 5, the method for processing a shared path further includes:
and 303, when receiving a page fault instruction generated when a platform system operated by the applet detects that a target page cannot be opened due to a preset abnormal condition, sending the page fault instruction to the server.
The page fault instruction comprises abnormal path prefix data corresponding to the target page.
In the process of forwarding the target page by the user, the platform system operated by the small program can detect the target page, and when the platform system detects that the target page cannot be opened due to the occurrence of a preset abnormal condition, a page fault instruction can be generated and sent to the server.
And 304, receiving a plurality of second preset path configuration data obtained after the server eliminates abnormal path prefix data in the plurality of preset first path configuration data based on the page fault instruction.
The page fault instruction comprises abnormal path prefix data corresponding to the target page, the server can remove the abnormal path prefix data in the first preset path configuration data after receiving the page fault instruction, and a plurality of second preset path configuration data are obtained, the number of preset intermediate page path data corresponding to the second preset path configuration data is smaller than that of the preset intermediate page path data corresponding to the first preset path configuration data, and therefore updating of the first preset path configuration data is achieved.
Step 305, when a target page sharing instruction of the applet is obtained, selecting path prefix data from a plurality of second preset path configuration data in the remote path policy module based on the local path policy module of the applet.
After the path prefix data are selected, path identification data corresponding to the target page are obtained and serve as path suffix data, 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.
The shared path processing method for pages in the applet of the embodiment realizes updating of a plurality of first preset path configuration data, ensures the stability of jumping to a target page by taking an intermediate page corresponding to the path prefix data as a connecting bridge, can select from the remaining intermediate pages when some intermediate pages are abnormal so as to update the path prefix data, improves the opening success rate of the target page, improves the access stability of the target page, realizes dynamic configuration of the path of the target page, and can immediately respond when the page of the applet is abnormal by dynamically adjusting the path of the target page, thereby improving the processing efficiency of the page abnormal condition, reducing the working strength of maintenance personnel, and reducing the operation loss of enterprises.
In an optional embodiment, fig. 6 is a sixth flowchart illustrating a method for processing a sharing path of a page in an applet according to the embodiment; as shown in fig. 6, the sharing path processing method further includes:
step 306, when the server detects that the traffic of the target page is abnormal based on the preset traffic monitoring standard, determining that the path prefix data corresponding to the target page is abnormal path prefix data, and after the applet acquires the abnormal path prefix data in the server eliminating the first preset path configuration data, acquiring a plurality of second preset path configuration data.
The server side autonomously monitors flow, if the fact that the flow of the target page does not accord with the preset flow monitoring standard is detected, the target page is judged to be an abnormal page, the path prefix data corresponding to the target page is judged to be abnormal path prefix data, the abnormal path prefix data in the first preset path configuration data are removed, the second preset path configuration data are obtained, and updating of the first preset path configuration data is achieved.
And 307, when a target page sharing instruction of the small program is obtained, selecting path prefix data from a plurality of second preset path configuration data in the remote path policy module by the local path policy module based on the small program.
When a target page sharing instruction of the small program is obtained, selecting path prefix data from a plurality of second preset path configuration data in a remote path policy module based on a local path policy module of the small program; acquiring path identification data corresponding to a target page and taking the path identification data as path suffix data; and splicing 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 data type of the first preset path configuration data may be a character string data, and similarly, the path prefix data is also a character string data type.
Selecting one character string data from the plurality of character string data as path prefix data of the target page, namely selecting one target intermediate page from the plurality of preset intermediate pages, and using the character string data corresponding to the target intermediate page as the path prefix data of the target page.
For example, the first preset path configuration data includes 10 intermediate pages A1 to a10 corresponding to 10 character string data, the target page is B, any one of the intermediate pages is selected from the intermediate pages A1 to a10 as the target intermediate page, for example, A2 is selected as the target intermediate page, and the character string data corresponding to A2 is used as the path prefix data in the page sharing path data corresponding to the target page B.
For example, taking a fixed setting manner as an example to select the path prefix data, when a user enters an applet page, the applet calls an API (Application Program Interface) to perform calculation, and calculates which specific intermediate page is used as a target intermediate page, so as to obtain the path prefix data corresponding to the target page. The application program interface is a set of definitions, programs and protocols, and realizes the intercommunication between computer software through an API interface, the API is a calling interface reserved by an operating system for the application program, and the application program enables the operating system to execute the command of the application program by calling the API of the operating system.
According to the sharing path processing method for the page in the applet, the server detects the flow of the target page based on a preset flow monitoring standard, after the path prefix data corresponding to the target page is determined to be abnormal path prefix data, the abnormal path prefix data in the first preset path configuration data are removed, the second preset path configuration data are obtained, the server automatically monitors the abnormal path prefix data, updating of the first preset path configuration data is achieved, the stability of jumping to the target page by taking an intermediate page corresponding to the path prefix data as a connecting bridge is guaranteed, when some intermediate pages are abnormal, the intermediate pages can be selected from the rest intermediate pages to update the path prefix data, the opening success rate of the target page is improved, the access stability of the target page is improved, the dynamic configuration of the path of the target page is achieved, and when the abnormal condition of the page of the applet occurs, the immediate response can be obtained by dynamically adjusting the path of the target page, the processing efficiency of the abnormal condition of the page is improved, the working strength of maintenance personnel is reduced, and the operation loss of enterprises is reduced.
Preset exception conditions include, but are not limited to, technical faults, configuration disturbances, and page exceptions.
Example 2
The embodiment provides a sharing path processing system for a page in an applet, wherein the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data; fig. 7 is a schematic structural diagram of a system for processing a sharing path of a page in an applet according to this embodiment; as shown in fig. 7, the sharing path processing system for a page in an applet of this embodiment includes a first prefix data obtaining module 1, configured to select, when a target page sharing instruction of the applet is obtained, path prefix data from a plurality of first preset path configuration data in a remote path policy module based on a local path policy module of the applet; a suffix data acquisition module 2, configured to acquire path identification data corresponding to the target page and use the path identification data as path suffix data; the path data processing module 3 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 process the target page based on the page sharing path data.
In an optional embodiment, the path data processing module 3 includes a path splicing unit 31, configured to splice the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page, and a path sending unit 32, configured to send the page sharing path data to a platform system where the applet operates; and the page skipping unit 33 is configured to detect, in the platform system, the path prefix data of the page sharing path data based on a preset detection standard, and after the detection is determined to be successful, the applet skips to display the target page in the platform system pair based on the path suffix data of the page sharing path data.
In an optional embodiment, the sharing path processing system for a page in an applet further includes a character string set setting module 4, configured to set, in advance, a character string set for a prefix path identifier, where the character string set corresponds to the page, in the applet; and the second prefix data acquisition module 5 is configured to select path prefix data from the character string set based on the local path policy module of the applet when the target page sharing instruction of the applet is acquired.
In an optional embodiment, the sharing path processing system for a page in an applet further includes a character string set setting module 4, configured to set, in advance, a character string set for a prefix path identifier, where the character string set corresponds to the page, in the applet; and the first preset data acquisition module 6 is configured to acquire a plurality of first preset path configuration data obtained by adjusting the character string set after the character string set is read by the server.
In an optional embodiment, the sharing path processing system for the page in the applet further includes a barrier instruction sending module 7, configured to send a page fault instruction to the server when receiving a page fault instruction generated when the platform system running the applet detects that a preset abnormal condition occurs and a target page cannot be opened; the page fault instruction comprises abnormal path prefix data corresponding to a target page; the second preset data acquisition module 8 is configured to receive a plurality of second preset path configuration data obtained after the server rejects abnormal path prefix data in the plurality of first preset path configuration data based on the page fault instruction; the first prefix data obtaining module 1 is further configured to, when a target page sharing instruction of the applet is obtained, select, by the applet-based local path policy module, path prefix data from a plurality of second preset path configuration data in the remote path policy module.
In an optional embodiment, the second preset data obtaining module 8 is further configured to detect, at the server, traffic of the target page based on a preset traffic monitoring standard, and after determining that the path prefix data corresponding to the target page is abnormal path prefix data, the applet obtains a plurality of second preset path configuration data obtained after the applet obtains the abnormal path prefix data in the plurality of first preset path configuration data, which is removed by the server; the first prefix data obtaining module 1 is further configured to, when a target page sharing instruction of the applet is obtained, select, by the applet-based local path policy module, path prefix data from a plurality of second preset path configuration data in the remote path policy module.
Preset exception conditions include, but are not limited to, technical faults, configuration disturbances, and page exceptions.
According to the sharing path processing system for the pages in the small program, through the cooperation of each system and unit, compared with the existing path which only uses path suffix data corresponding to a target page as 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; the dynamic configuration of the target page path is realized, and the dynamic adjustment of the target page path enables the page of the applet to be responded immediately when the page is abnormal, so that the processing efficiency of the page abnormal condition is improved, the working intensity of maintenance personnel is reduced, and the operation loss of an enterprise is reduced.
Example 3
Fig. 8 is a schematic structural diagram of an electronic device provided in this embodiment, where the electronic device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and when the processor executes the computer program, the method for processing a shared path of a page in an applet in embodiment 1 is implemented. The electronic device 80 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention. As shown in fig. 8, the electronic device 80 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 80 may include, but are not limited to: the at least one processor 81, the at least one memory 82, and a bus 83 connecting the various system components including the memory 82 and the processor 81.
The bus 83 includes a data bus, an address bus, and a control bus.
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.
Memory 82 may also include a program tool 825 (or utility tool) having a set (at least one) of program modules 824, such program modules 824 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 81 executes various functional applications and data processing, such as the sharing path processing method of pages in the applet in the above embodiment 1, by running the computer program stored in the memory 82.
The electronic device 80 may also communicate with one or more external devices 84. Such communication may be through input/output (I/O) interfaces 85. Also, the model-generating electronic device 80 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 86. As shown in fig. 8, the network adapter 86 communicates with the other modules of the electronic device 80 via the bus 83. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the 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, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for processing a shared path of a page in an applet in embodiment 1 is implemented.
More specific examples that may be employed by the readable storage medium include, but are not limited to: a 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 of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product runs on a terminal device, the program code is configured to enable the terminal device to execute the steps in the method for processing the shared path of the page in the applet in the foregoing embodiment 1.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be understood by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. A sharing path processing method of a page in an applet is characterized in that the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data;
the sharing path processing method comprises the following steps:
when a target page sharing instruction of the small program is acquired, selecting path prefix data from a plurality of first preset path configuration data in the far-end path policy module based on a local path policy module of the small program;
acquiring path identification data corresponding to the target page and using the path identification data as path suffix data;
and splicing 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.
2. The method for processing the sharing path according to claim 1, wherein the step of processing the target page based on the page sharing path data specifically includes:
sending the page sharing path data to a platform system operated by the small program;
and after the platform system detects the path prefix data of the page sharing path data based on a preset detection standard, and after the detection is determined to be successful, the small program skips and displays the target page in the platform system based on the path suffix data of the page sharing path data.
3. The method according to claim 1, wherein the method further comprises:
presetting a character string set which corresponds to a page and is used for a prefix path identifier in the small program;
after the step of obtaining the path identification data corresponding to the target page and using the path identification data as path suffix data, the method further comprises the following steps:
and when the target page sharing instruction of the applet is acquired, selecting the path prefix data from the character string set based on the local path policy module of the applet.
4. The method according to claim 1, wherein the method further comprises:
setting a character string set which corresponds to a page and is used for a prefix path identifier in the small program in advance;
and acquiring a plurality of first preset path configuration data obtained by adjusting the character string set after the character string set is read by the server.
5. The method according to claim 4, wherein the method further comprises:
when a page fault instruction generated when a platform system operated by the small program detects that a preset abnormal condition occurs and the target page cannot be opened is received, the page fault instruction is sent to the server;
the page fault instruction comprises abnormal path prefix data corresponding to the target page;
receiving a plurality of second preset path configuration data obtained after the server eliminates the abnormal path prefix data in the plurality of first preset path configuration data based on the page fault instruction;
when a target page sharing instruction of the small program is obtained, selecting the path prefix data from a plurality of second preset path configuration data in the far-end path policy module based on a local path policy module of the small program.
6. The method according to claim 4, wherein the method further comprises:
when the server detects that the flow of the target page is abnormal based on a preset flow monitoring standard, determining that the path prefix data corresponding to the target page is abnormal path prefix data, and acquiring a plurality of second preset path configuration data by the small program after the abnormal path prefix data in a plurality of first preset path configuration data are removed by the server;
when a target page sharing instruction of the small program is obtained, selecting the path prefix data from a plurality of second preset path configuration data in the far-end path policy module based on a local path policy module of the small program.
7. The method according to claim 5, wherein the predetermined abnormal condition includes at least one of a technical fault, a configuration disturbance and a page fault.
8. A sharing path processing system of a page in an applet is characterized in that the applet is in communication interaction with a server, and a remote path policy module of the server is configured with a plurality of first preset path configuration data;
the shared path processing system includes:
a first prefix data obtaining module, configured to select, when a target page sharing instruction of the applet is obtained, path prefix data from a plurality of first preset path configuration data in the remote path policy module based on a local path policy module of the applet;
a suffix data acquisition module, configured to acquire path identification data corresponding to the target page and use the path identification data as path suffix data;
and the path data processing module is used for splicing the path prefix data and the path suffix data to obtain page sharing path data corresponding to the target page, and processing the target page based on the page sharing path data.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for processing a shared path of pages in an applet according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing a method of processing a shared path of pages in an applet according to any one of claims 1 to 7.
CN202210819026.3A 2022-07-12 2022-07-12 Method, system, device and medium for processing sharing path of page in applet Pending CN115221435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210819026.3A CN115221435A (en) 2022-07-12 2022-07-12 Method, system, device and medium for processing sharing path of page in applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210819026.3A CN115221435A (en) 2022-07-12 2022-07-12 Method, system, device and medium for processing sharing path of page in applet

Publications (1)

Publication Number Publication Date
CN115221435A true CN115221435A (en) 2022-10-21

Family

ID=83611148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210819026.3A Pending CN115221435A (en) 2022-07-12 2022-07-12 Method, system, device and medium for processing sharing path of page in applet

Country Status (1)

Country Link
CN (1) CN115221435A (en)

Similar Documents

Publication Publication Date Title
CN112035317B (en) Micro-service link monitoring method, device, equipment and medium
US20050195390A1 (en) Method of testing open services gateway initiative service platform and test tool using the method
JP2005285118A (en) Remote software support agent system
US20170118309A1 (en) Host device for obtaining operating instructions for a barcode reader from a remote server
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
WO2019085290A1 (en) Test preparation method and apparatus, terminal device, and storage medium
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
US8924867B2 (en) Web interface for remote platform build
CN109144525A (en) A kind of software installation method and system of network self-adapting
CN113014669B (en) Proxy service method, system, server and storage medium based on RPA
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN115221435A (en) Method, system, device and medium for processing sharing path of page in applet
US20090083747A1 (en) Method for managing application programs by utilizing redundancy and load balance
CN114938396A (en) Routing method of service call request, method and device for creating service
CN114489704A (en) Version compiling and deploying method and device based on strategy
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN111240589A (en) Partition isolation-based system management method, device, equipment and storage medium
CN114363307B (en) Information processing method and system
CN111475783A (en) Data detection method, system and equipment
CN111897534B (en) Method, device, electronic equipment and storage medium for accessing SSLVPN
CN114826886B (en) Disaster recovery method and device for application software and electronic equipment
CN114553477B (en) Page jump method, device, equipment and storage medium
JP2004362029A (en) Control equipment setting system
CN115695168A (en) VPN networking method, device and equipment

Legal Events

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