Method and device for accessing applet link, storage medium and control device

By obtaining user identification parameters from the server's relay page and determining the validity period of the WeChat short link, the problem of single-user access and time limit restrictions on WeChat short links is solved, enabling multiple people to access the mini-program link for an extended period of time.

CN116628367BActive Publication Date: 2026-06-23QINGDAO HAIER TECH +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER TECH
Filing Date
2023-05-29
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

WeChat short links are only valid for a maximum of 30 days and can only be accessed by one user, which cannot meet the needs of multiple users.

Method used

The server obtains user identification parameters from the transit page, determines the validity period of the WeChat short link, and retrieves or generates the corresponding WeChat short link in the database, allowing multiple users to access it and setting the server short link to be permanently valid.

Benefits of technology

It breaks through the single-user access limit of WeChat short links, enabling long-term links of more than 30 days and supporting multiple users to access the mini program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116628367B_ABST
    Figure CN116628367B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of smart home, and particularly provides a method and device for accessing a mini program link, a storage medium and a control device, aiming to solve the problem that the effective period of a WeChat short link is at most 30 days and can only be accessed by one user. To this end, the method for accessing the mini program link comprises: in response to an operation instruction of a user on a server short link, a terminal initiates an access request to the server, and the server redirects the short link to a transfer page; obtaining a user identification parameter on the transfer page; obtaining a WeChat short link corresponding to the user identification parameter in a database; judging whether it is within the effective period; if yes, jumping the transfer page to the WeChat short link; if not, obtaining a WeChat short link within the effective period corresponding to the user identification parameter in the database, jumping the transfer page to the WeChat short link within the effective period, and entering a mini program page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart home / intelligent home technology, specifically providing a method and apparatus, storage medium and control device for accessing mini-program links. Background Technology

[0002] Currently, there are more and more ways to access mini programs. For example, users can access mini programs by clicking on links in SMS messages, emails, or applications (Apps).

[0003] However, WeChat's short links have many limitations. These short links, such as URLScheme links or URLLink links, have several restrictions. One limitation is that a WeChat short link is only valid for a maximum of 30 days. After 30 days, the short link expires, and a new short link needs to be generated to continue accessing the mini-program. Another limitation is that a WeChat short link can only be accessed by one user. Once a user accesses a unique short link, only that user can access and open the corresponding mini-program again; other users cannot open the mini-program again using the same short link. In short, although WeChat's links can be sent to any number of users, once one user uses the link, other recipients cannot use it; it is mutually exclusive for multiple users.

[0004] Accordingly, there is a need in this field for a new solution to access mini-program links to address the aforementioned issues. Summary of the Invention

[0005] To overcome the above-mentioned defects, the present invention is proposed to provide a method, apparatus, storage medium, and control device for accessing WeChat mini-program links, which solves or at least partially solves the technical problem that the validity period of WeChat short links is only thirty days and can only be accessed by one user.

[0006] In a first aspect, the present invention provides a method for accessing a mini-program link, the method comprising:

[0007] In response to a user's command to access a short link to the server, the terminal sends an access request to the server, which then redirects the short link to a relay page.

[0008] The server obtains the user identification parameter from the relay page, where each user corresponds to a unique user identification parameter;

[0009] Retrieve the WeChat short link corresponding to the user identifier parameter stored in the database;

[0010] Determine if a WeChat short link is within its validity period;

[0011] If so, the transit page will redirect to the WeChat short link corresponding to the user identifier parameter within the validity period to enter the mini program page;

[0012] If not, retrieve the WeChat short link within the validity period corresponding to the user identifier parameter from the database, and redirect the transit page to the WeChat short link within the validity period corresponding to the user identifier parameter to enter the mini program page.

[0013] In one technical solution of the above-mentioned method for accessing mini-program links, before the terminal initiates an access request to the server in response to the user's operation instruction for the short link on the server, and before the server redirects the short link to the transit page, the method further includes:

[0014] Obtain the page path and preset parameter values ​​of the mini-program;

[0015] Based on the page path of the mini-program and the preset parameter values, obtain the corresponding server long link from the mini-program server;

[0016] Convert long links on the server to short links according to the conversion rules for converting long links to short links.

[0017] In one technical solution of the above method for accessing mini-program links, after converting the server long link to the server short link according to the conversion rules for converting long links to short links, the method further includes:

[0018] The short link to the server is sent to users who want to access the mini-program via SMS or text message.

[0019] In one technical solution of the above-mentioned method for accessing mini-program links, the method further includes:

[0020] If the database does not store the WeChat short link corresponding to the user identifier parameter, the WeChat interface is called to generate a new WeChat short link for the user identifier parameter, and the user identifier parameter and its corresponding newly generated WeChat short link are stored in the database.

[0021] In one technical solution of the above-mentioned method for accessing mini-program links, the method further includes:

[0022] Set the validity period of the WeChat short link corresponding to the user identifier parameter. After the validity period expires, automatically generate a WeChat short link for the next validity period and store it in the database.

[0023] In one technical solution of the above-mentioned method for accessing mini-program links, the validity period is set to 30 days.

[0024] In one technical solution of the above-mentioned method for accessing mini-program links, the server obtains user identification parameters on the transit page, including:

[0025] Obtain the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters;

[0026] User identification parameters are generated based on the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters.

[0027] In a second aspect, the present invention provides an apparatus for accessing a mini-program link, the apparatus comprising:

[0028] The request initiation module is configured to respond to a user's operation command for the server's short link, initiating an access request from the terminal to the server, and the server redirecting the short link to a relay page;

[0029] The first acquisition module is configured for the server to obtain user identification parameters from the relay page, where each user corresponds to a unique user identification parameter;

[0030] The second acquisition module is configured to acquire the WeChat short link corresponding to the user identifier parameter stored in the database;

[0031] The judgment module is configured to determine whether the WeChat short link is within its validity period.

[0032] The first processing module is configured to redirect the transit page to the WeChat short link corresponding to the user identifier parameter within the validity period when it is determined that the WeChat short link is within the validity period, so as to enter the mini program page;

[0033] The second processing module is configured to, when it is determined that the WeChat short link is not within its validity period, retrieve the WeChat short link within its validity period corresponding to the user identifier parameter from the database, and redirect the transit page to the WeChat short link within its validity period corresponding to the user identifier parameter to enter the mini program page.

[0034] In a third aspect, the present invention provides a control device comprising a processor and a storage device, the storage device being adapted to store a plurality of program codes, the program codes being adapted to be loaded and run by the processor to perform the method described in any of the above-described methods for accessing applet links.

[0035] In a fourth aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, the program codes being adapted to be loaded and run by a processor to perform the method described in any of the above-described methods for accessing applet links.

[0036] The present invention comprises one or more of the following technical solutions:

[0037] Beneficial effects:

[0038] In implementing the technical solution of this invention, a method for accessing mini-program links is proposed. This method involves a terminal initiating an access request to a server in response to a user's operation command for a short link on a server. The server redirects the short link to a transit page. On the transit page, the server obtains user identification parameters; it retrieves the WeChat short link corresponding to the user identification parameters stored in a database; it determines whether the WeChat short link is within its validity period; if so, the transit page redirects to the WeChat short link corresponding to the valid user identification parameters to enter the mini-program page; if not, it retrieves the valid WeChat short link corresponding to the user identification parameters from the database and redirects the transit page to the valid WeChat short link to enter the mini-program page. This invention provides a method for accessing mini-program links by setting permanently valid server short links that allow multiple users to access them and sending them to users who want to access the mini-program link. When a user clicks the server short link, the short link is redirected to a transit page, and a valid WeChat short link is matched to each user who clicks the server short link according to specific rules. Through this method, this invention can support long-term links exceeding 30 days and overcomes the limitation that each link can only be used by one user. Attached Figure Description

[0039] The disclosure of this invention will become more readily understood with reference to the accompanying drawings. It will be readily understood by those skilled in the art that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this invention. Furthermore, similar numbers in the drawings are used to denote similar components, wherein:

[0040] Figure 1 This is a flowchart illustrating the main steps of a method for accessing a mini-program link according to an embodiment of the present invention;

[0041] Figure 2 This is a schematic diagram of the main structure of a device for accessing mini-program links according to an embodiment of the present invention;

[0042] Figure 3 This is a schematic diagram of the main structure of a control device according to an embodiment of the present invention. Detailed Implementation

[0043] Some embodiments of the present invention will now be described with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.

[0044] In the description of this invention, "module" and "processor" can include hardware, software, or a combination of both. A module can include hardware circuitry, various suitable sensors, communication ports, memory, and may also include software components, such as program code, or a combination of software and hardware. A processor can be a central processing unit, microprocessor, image processor, digital signal processor, or any other suitable processor. The processor has data and / or signal processing capabilities. The processor can be implemented in software, in hardware, or a combination of both. Non-transitory computer-readable storage media includes any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The terms "at least one A or B" or "at least one of A and B" have a similar meaning to "A and / or B" and can include only A, only B, or A and B. The singular terms "a" or "this" can also include plural forms.

[0045] See appendix Figure 1 , Figure 1 This is a schematic flowchart illustrating the main steps of a method for accessing a mini-program link according to an embodiment of the present invention. Figure 1 As shown, the method for accessing mini-program links in this embodiment of the invention mainly includes the following steps S101-S106.

[0046] Step S101: In response to the user's operation command for the short link on the server, the terminal sends an access request to the server, and the server redirects the short link to the relay page;

[0047] Step S102: The server obtains the user identifier parameter from the relay page, where each user corresponds to a unique user identifier parameter;

[0048] Step S103: Obtain the WeChat short link corresponding to the user identifier parameter stored in the database;

[0049] Step S104: Determine if the WeChat short link is within its validity period;

[0050] Step S105: If yes, redirect the transfer page to the WeChat short link corresponding to the user identifier parameter within the validity period to enter the mini program page;

[0051] Step S106: If not, retrieve the WeChat short link within the validity period corresponding to the user identifier parameter from the database, and redirect the transit page to the WeChat short link within the validity period corresponding to the user identifier parameter to enter the mini program page.

[0052] Based on steps S101-S106, the method for accessing mini-program links provided by the present invention sends a server short link that is set to be permanently valid and allows multiple users to access the mini-program link to the user who wants to access the mini-program link. When the user clicks the server short link, the short link is redirected to a transit page, and a WeChat short link within the validity period is matched for each user who clicks the server short link according to specific rules. In this way, the present invention can support long-term links of more than 30 days and can break through the limitation that each link can only be used by one user.

[0053] The following provides a further explanation of steps S101-S106.

[0054] In one embodiment of the present invention, before step S101, the method further includes:

[0055] Obtain the page path and preset parameter values ​​of the mini-program;

[0056] Based on the page path of the mini-program and the preset parameter values, obtain the corresponding server long link from the mini-program server;

[0057] Convert long links on the server to short links according to the conversion rules for converting long links to short links.

[0058] In one implementation, the page path of the mini-program can be understood as the path corresponding to the mini-program page, for example, the mini-program page path could be pages / index / index; the preset parameter values ​​are parameters used to reflect the functions of the mini-program page, for example, the preset parameter values ​​could be parameters corresponding to the functions displayed on the mini-program page, etc. First, the page path and preset parameter values ​​of the mini-program are obtained from the server management backend; then, based on the page path and preset parameter values ​​of the mini-program, the corresponding server long link is obtained from the mini-program server; then, according to the conversion rules for converting long links to short links, the server long link is converted into a server short link. It should be noted that the conversion rules for converting long links to short links are already very mature in existing technologies and will not be elaborated here.

[0059] In one embodiment of the present invention, after converting the server long link to the server short link according to the conversion rule for converting long links to short links, the method further includes:

[0060] The short link to the server is sent to users who want to access the mini-program via SMS or text message.

[0061] In this embodiment of the invention, a short server link is sent to users who want to access the mini-program via SMS or text message. The short server link is set to be permanently valid and allowed to be accessed by multiple users in the management backend. This implementation can effectively solve the problem that the validity period of WeChat short links is only 30 days and can only be accessed by one user. The mini-program link used for user access is first converted into a short server link and displayed in SMS, email, webpage or other places.

[0062] Step S101: In response to the user's operation command for the short link on the server, the terminal sends an access request to the server, and the server redirects the short link to the relay page.

[0063] In this embodiment, a short link is a long URL that has been shortened through program calculations and other methods, converted into a short URL string. Clicking the short link achieves the same effect as the original long URL, that is, replacing the original lengthy URL with a shorter one. This shortens the length displayed in SMS messages, emails, web pages, or other places, making the short links displayed in SMS messages, emails, web pages, or other places both aesthetically pleasing and convenient.

[0064] In this embodiment, the server short link management backend can set the validity period of the server short link and the number of user accesses. In this embodiment, the validity period of the server short link is set to be permanent, and the number of user accesses for the server short link is set to allow multiple users to access it.

[0065] In one implementation, a short server link is displayed on the terminal, for example, in a text message on a mobile phone. When a user clicks the short server link in the text message, in response to the user's click command, the mobile phone sends an access request to the server. At this time, the server redirects the short link to a transit page. This invention encapsulates the transit page and adapts it to scenarios where users access the mini-program link via text message, email, webpage, or other means by setting specific logic.

[0066] Step S102: The server obtains the user identification parameter from the relay page, where each user corresponds to a unique user identification parameter.

[0067] In one embodiment of the present invention, the server obtains user identification parameters on the relay page, including:

[0068] Obtain the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters;

[0069] User identification parameters are generated based on the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters.

[0070] In a specific example, the server can obtain information such as the user's current mobile phone model and version number, the name and version number of the currently opened browser, the computer system, and the current timestamp parameters through code logic on the transit page. It can obtain as much information as possible and generate user identification parameters based on the information obtained, so that each user corresponds to a unique user identification parameter.

[0071] In one implementation, for each user who clicks the server's short link, after the server redirects the short link to a redirect page, the server retrieves a user identification parameter from the redirect page. Each user identification parameter is unique, allowing the server to distinguish between different users accessing the mini-program link and thus adapt different WeChat short links for different users. Specifically, the WeChat short link may be, for example, a URLScheme link or a URLLink link.

[0072] In one embodiment, between step S101 and step S102, the method further includes:

[0073] After obtaining the user identification parameter on the transit page, the server encapsulates the user identification parameter. During encapsulation, the server interface is called to encrypt the obtained user identification parameter using MD5. Based on the MD5 encrypted value, the server retrieves the WeChat short link corresponding to the user identification parameter from the database.

[0074] Step S103: Obtain the WeChat short link corresponding to the user identifier parameter stored in the database.

[0075] In this embodiment, the database stores WeChat short links corresponding to different user identifier parameters under the short link on the server. It should be noted that if this is the user's first time clicking the short link on the server, the database may not yet store the WeChat short link corresponding to that user's user identifier parameter. In this case, the database may not yet store the WeChat short link corresponding to a certain user identifier parameter. In this situation, the WeChat interface can be called to generate a new WeChat short link for the user identifier parameter, and the user identifier parameter and its corresponding newly generated WeChat short link can be stored in the database. When the database stores the WeChat short link corresponding to the user identifier parameter, proceed to steps S104-S106.

[0076] Step S104: Determine whether the WeChat short link is within its validity period.

[0077] It should be noted that, starting from April 11, 2022, the rules for the WeChat short link interface will be adjusted as follows: (1) Each WeChat short link will be valid for a maximum of 30 days, and permanently valid links will no longer be supported, nor will there be a distinction between short-term and long-term valid links; (2) After a link is generated, once a user accesses each independent link, only that user can access and open the corresponding mini-program again. Other users cannot open the mini-program again through the same link. Therefore, after obtaining the WeChat short link corresponding to the user identifier parameter, it is also necessary to determine whether the WeChat short link is within the validity period. If it is, proceed to step S105; if not, proceed to step S106.

[0078] In one embodiment of the present invention, the method further includes:

[0079] Set the validity period of the WeChat short link corresponding to the user identifier parameter. After the validity period expires, automatically generate a WeChat short link for the next validity period and store it in the database.

[0080] In one embodiment of the present invention, the validity period is set to 30 days.

[0081] In one implementation, the WeChat short link needs to be updated once every validity period. The updated WeChat short link is different from the previous WeChat short link, and all WeChat short links corresponding to the user identifier are stored in the database.

[0082] Step S105: If yes, redirect the transfer page to the WeChat short link corresponding to the user identifier parameter within the validity period to enter the mini program page.

[0083] Step S106: If not, retrieve the WeChat short link within the validity period corresponding to the user identifier parameter from the database, and redirect the transit page to the WeChat short link within the validity period corresponding to the user identifier parameter to enter the mini program page.

[0084] In one implementation, after obtaining the WeChat short link within the validity period corresponding to the user identification parameter, the transit page is redirected to the WeChat short link within the validity period corresponding to the user identification parameter. At this time, the short link presented in SMS, email, web page or other places is transformed into a WeChat short link presented on WeChat. The user clicks the "Enter Mini Program" button to launch the mini program and enter the mini program page.

[0085] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effects of the present invention, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders, and these variations are all within the scope of protection of the present invention.

[0086] Furthermore, the present invention also provides a device for accessing mini-program links.

[0087] See appendix Figure 2 , Figure 2 This is a main structural block diagram of a device for accessing a mini-program link according to an embodiment of the present invention. Figure 2 As shown, the device for accessing a mini-program link in this embodiment of the invention mainly includes a request initiation module 11, a first acquisition module 12, a second acquisition module 13, a judgment module 14, a first processing module 15, and a second processing module 16. In some embodiments, one or more of the request initiation module 11, the first acquisition module 12, the second acquisition module 13, the judgment module 14, the first processing module 15, and the second processing module 16 can be combined into a single module. In some embodiments, the request initiation module 11 can be configured to, in response to a user's operation instruction on a server short link, initiate an access request to the server, and the server redirects the short link to a transit page. The first acquisition module 12 can be configured to, on the transit page, obtain user identification parameters from the server, wherein each user corresponds to a unique user identification parameter. The second acquisition module 13 can be configured to, obtain the WeChat short link corresponding to the user identification parameter stored in the database. The judgment module 14 can be configured to, determine whether the WeChat short link is within its validity period. The first processing module 15 can be configured to, when it is determined that the WeChat short link is within its validity period, redirect the transit page to the WeChat short link corresponding to the user identification parameter within its validity period to enter the mini-program page. The second processing module 16 can be configured to, when it is determined that the WeChat short link is not within its validity period, retrieve the valid WeChat short link corresponding to the user identifier parameter from the database, and redirect the transit page to the valid WeChat short link corresponding to the user identifier parameter to enter the mini-program page. In one embodiment, a description of the specific implementation function can be found in steps S101-S106.

[0088] The aforementioned device for accessing the mini-program link is used to perform Figure 1 The embodiments of the methods for accessing mini-program links shown are similar in technical principle, the technical problems they solve, and the technical effects they produce. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process and related descriptions of the device for accessing mini-program links can be found in the embodiments of the methods for accessing mini-program links, and will not be repeated here.

[0089] Those skilled in the art will understand that all or part of the processes in the method of the above embodiment of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium can include any entity or device capable of carrying the computer program code, a medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0090] Furthermore, the present invention also provides a control device. In one embodiment of the control device according to the present invention, such as Figure 3 As shown, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the method of accessing applet links in the above-described method embodiments. The processor can be configured to execute the program in the storage device, which includes, but is not limited to, a program for executing the method of accessing applet links in the above-described method embodiments. For ease of explanation, only the parts related to the embodiments of the present invention are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of the present invention. This control device can be a control device device comprising various electronic devices.

[0091] Furthermore, the present invention also provides a computer-readable storage medium. In one embodiment of the computer-readable storage medium according to the present invention, the computer-readable storage medium can be configured to store a program for performing the method of accessing applet links in the above-described method embodiments. This program can be loaded and run by a processor to implement the above-described method of accessing applet links. For ease of explanation, only the parts related to the embodiments of the present invention are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of the present invention. The computer-readable storage medium can be a storage device comprising various electronic devices. Optionally, in the embodiments of the present invention, the computer-readable storage medium is a non-transitory computer-readable storage medium.

[0092] Furthermore, it should be understood that since the various modules are only provided to illustrate the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the processor's software, hardware, or a combination of software and hardware. Therefore, the number of modules shown in the figures is merely illustrative.

[0093] This method is widely used in whole-house intelligent digital control application scenarios such as Smart Home, smart home appliances ecosystem, and IntelligenceHouse ecosystem. The aforementioned network can include, but is not limited to, at least one of the following: wired network and wireless network. The aforementioned wired network can include, but is not limited to, at least one of the following: wide area network (WAN), metropolitan area network (MAN), and local area network (LAN). The aforementioned wireless network can include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity) and Bluetooth. The terminal device is not limited to PCs, mobile phones, tablets, smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom fixtures, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, and smart door locks, etc.

[0094] Those skilled in the art will understand that the various modules in the device can be adaptively split or combined. Such splitting or combining of specific modules will not cause the technical solution to deviate from the principles of the present invention; therefore, the technical solutions after splitting or combining will fall within the protection scope of the present invention.

[0095] The technical solution of the present invention has been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will all fall within the scope of protection of the present invention.

Claims

1. A method for accessing a WeChat Mini Program link, characterized in that, include: In response to a user's command to access a short link to the server, the terminal sends an access request to the server, which then redirects the short link to a relay page. The server obtains the user identification parameter from the relay page, where each user corresponds to a unique user identification parameter; Retrieve the WeChat short link corresponding to the user identifier parameter stored in the database, wherein the WeChat short link is generated by calling the WeChat interface; Determine if a WeChat short link is within its validity period; If so, the transit page will redirect to the WeChat short link corresponding to the user identifier parameter within the validity period to enter the mini program page; If not, retrieve the WeChat short link within the validity period corresponding to the user identifier parameter from the database, and redirect the transit page to the WeChat short link within the validity period corresponding to the user identifier parameter to enter the mini program page; The method further includes: Set the validity period of the WeChat short link corresponding to the user identifier parameter. After the validity period expires, automatically generate a WeChat short link for the next validity period and store it in the database.

2. The method for accessing a mini-program link according to claim 1, characterized in that, Before the terminal sends an access request to the server in response to the user's instruction to use the short link on the server, and before the server redirects the short link to the relay page, the process further includes: Obtain the page path and preset parameter values ​​of the mini-program; Based on the page path of the mini-program and the preset parameter values, obtain the corresponding server long link from the mini-program server; Convert long links on the server to short links according to the conversion rules for converting long links to short links.

3. The method for accessing a mini-program link according to claim 2, characterized in that, After converting long links to short links according to the conversion rules for converting long links to short links, the process also includes: The short link to the server is sent to users who want to access the mini-program via SMS or text message.

4. The method for accessing a mini-program link according to claim 1, characterized in that, Also includes: If the database does not store the WeChat short link corresponding to the user identifier parameter, the WeChat interface is called to generate a new WeChat short link for the user identifier parameter, and the user identifier parameter and its corresponding newly generated WeChat short link are stored in the database.

5. The method for accessing a mini-program link according to claim 3, characterized in that, The validity period is set to 30 days.

6. The method for accessing a mini-program link according to claim 3, characterized in that, The server obtains user identification parameters from the relay page, including: Obtain the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters; User identification parameters are generated based on the user's current terminal device model and version number, the name and version number of the currently opened browser, terminal system information, and current timestamp parameters.

7. A device for accessing a mini-program link, characterized in that, include: The request initiation module is configured to respond to a user's operation command for the server's short link, initiating an access request from the terminal to the server, and the server redirecting the short link to a relay page; The first acquisition module is configured for the server to obtain user identification parameters from the relay page, where each user corresponds to a unique user identification parameter; The second acquisition module is configured to acquire the WeChat short link corresponding to the user identifier parameter stored in the database, wherein the WeChat short link is generated by calling the WeChat interface; The judgment module is configured to determine whether the WeChat short link is within its validity period. The first processing module is configured to redirect the transit page to the WeChat short link corresponding to the user identifier parameter within the validity period when it is determined that the WeChat short link is within the validity period, so as to enter the mini program page; The second processing module is configured to, when it is determined that the WeChat short link is not within the validity period, retrieve the WeChat short link within the validity period corresponding to the user identification parameter from the database, and redirect the transit page to the WeChat short link within the validity period corresponding to the user identification parameter to enter the mini program page; The device is also used for: Set the validity period of the WeChat short link corresponding to the user identifier parameter. After the validity period expires, automatically generate a WeChat short link for the next validity period and store it in the database.

8. A control device, comprising a processor and a storage device, said storage device being adapted to store a plurality of program codes, characterized in that, The program code is adapted to be loaded and run by the processor to perform the method of accessing the applet link as described in any one of claims 1 to 6.

9. A computer-readable storage medium storing a plurality of program codes, characterized in that, The program code is adapted to be loaded and run by a processor to perform the method of accessing the applet link as described in any one of claims 1 to 6.