Small program authorization method and device applied to various platforms

Through a unified method and device, the service provider provides a cross -platform mini -program authorization solution, solves the high cost and low flexibility of each platform to independently build an authorized algorithm in each platform, and realizes the flexibility of multi -platform authorization. Sexual and automation verification.

CN119377977APending Publication Date: 2025-01-28ZHEJIANG YINGNENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411315541.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, each mini-program platform independently builds a set of authorization algorithms, which is too expensive to maintain for service providers and lacks flexibility, especially when it is necessary to connect to multiple mini-program application platforms.

Method used

By creating at least three types of platforms, and obtaining its authorization links, authorization and information acquisition based on the authorization link, create platform authority set data models, detect relevant information, establish mini -program data models and token data models, differentiation Processing and historical visitor data processing, complete authorization and custom configuration.

Benefits of technology

The mini -program authorization of different platforms has been realized, the code logic of the mainstream procedures is reused to meet the authorization process of each platform, providing a set of mini -program authorization services with flexibility and automation verification, and reducing development and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377977A_ABST
    Figure CN119377977A_ABST
Patent Text Reader

Abstract

The invention discloses an applet authorization method and device applied to various platforms. The method comprises the following steps: acquiring authorization links of applets of at least three types of platforms; authorization is carried out according to the authorization link, and related information of the applet is obtained; creating a platform permission set data model according to the authorized authorization link and detecting related information; establishing an applet data model and an applet token data model according to a detection result; performing differentiation processing on the at least three types of platforms according to the applet data model and the applet token data model, and establishing a platform visitor data model by processing historical applet visitor data; authorization is completed on the platform visitor data model, and custom configuration is carried out on the at least three types of platforms through the page decoration management page. According to the invention, applet authorization of different platforms can be completed, multiplexing of code logic is realized, the authorization process of each platform is satisfied, and a set of applet authorization service with flexibility and automatic verification is used.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology applications, and in particular to a method and device for mini-program authorization applied to various platforms. Background Art

[0002] Mini programs are a form of application that can be used without downloading and installing, and are widely used on various mobile Internet platforms. The mini program platform provides gradually improved development tools to help developers develop more efficiently. Mini programs can also rely on the ecology of large platforms, and many integrated ecosystems under the platform can be reused. For example, WeChat mini programs can use WeChat friends to share, Douyin can use live broadcasts and publish videos, and Alipay can use payment functions. Compared with the original app model, the development of mini programs is relatively simple, usually using technologies such as HTML5 and JavaScript, with a short development cycle and low cost, and users do not need to download and install, which greatly improves the user experience. With its convenience, low cost and high efficiency, mini programs have become an important application form for enterprises and developers, and are widely used in various fields such as e-commerce, social networking, services, and games.

[0003] Currently, the three major platforms on the market, WeChat, Alipay, and Douyin, provide a relatively mature mini-program ecosystem. With the platform's support for mini-program-related policies and the improvement of the platform's various functional infrastructure, mini-programs can provide a user experience close to that of native applications. Major companies will gradually begin to enter the mini-program application market, so that they can provide users with both native applications and mini-program application services at the same time. On the mini-program side, they can not only receive relevant policy support, but also quickly obtain the platform's user traffic, and increase the exposure and usage rate of the application. However, many companies do not have any development foundation, but need a set of mature mini-program applications to perform functions such as customer information collection, payment and marketing, and customer order payment. Therefore, the role of the service provider is gradually improved. After the company creates a mini-program based on its qualifications, it authorizes the mini-program to the service provider, and the service provider will develop the mini-program.

[0004] Therefore, service providers will face two problems: First, if service providers provide mini program templates, the mini programs of all their customers will be similar, which obviously cannot meet customer requirements. Therefore, how to give customers enough freedom to play on the basis of providing mini program templates is a problem to be solved at this stage. Second, with the development of mini program applications, major platforms will gradually provide mini program ecosystems. Compared with WeChat and Alipay, Douyin was officially opened in 2021 and provided relevant APIs for open platforms.

[0005] However, the relevant technology independently builds a set of authorization algorithms for each mini-program platform, which makes the development and maintenance costs of the code too high for service providers, and lacks flexibility, which becomes weak when it is necessary to connect to multiple mini-program application platforms.

[0006] In view of the problem that each mini program platform in the existing technology independently builds a set of authorization algorithms, the cost of developing and maintaining the code is too high for service providers, and the flexibility is insufficient, no effective solution has been proposed so far. Summary of the invention

[0007] In order to solve the above technical problems, the embodiments of the present invention hope to provide a method and device for mini-program authorization applied to various platforms, so as to at least solve the problem that each mini-program platform in the prior art independently constructs a set of authorization algorithms, resulting in excessive development code maintenance costs and insufficient flexibility for service providers.

[0008] The technical solution of the present invention is achieved in this way:

[0009] An embodiment of the present invention provides a method for authorizing mini-programs applied to various platforms, including: creating mini-programs for at least three types of platforms, and obtaining authorization links for mini-programs for at least three types of platforms; authorizing based on the authorization link and obtaining relevant information of the mini-program; creating a platform permission set data model based on the authorized authorization link, and testing relevant information; establishing a mini-program data model and a mini-program token data model based on the test results; performing differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establishing a platform visitor data model by processing historical mini-program visitor data; completing authorization for the platform visitor data model, and customizing at least three types of platforms through the page decoration management page.

[0010] Optionally, creating mini-programs for at least three types of platforms includes: applying for template mini-programs for at least three types of platforms belonging to the service provider according to the platform mini-program development process; establishing a data model based on the template mini-program when the application for the template mini-program for at least three types of platforms is successful; and guiding merchants to create mini-programs for the corresponding platforms through the data model according to the implementation process.

[0011] Further, optionally, the platform mini program development process includes: determining the development mode of the mini program of at least three types of platforms; if the development mode is template to be developed, using the developer account of the template mini program to log in to the developer tool to write and submit code, adding the latest beta version code of the template mini program to the template library, submitting the code of the template library to the merchant mini program based on the API, modifying the basic information of the merchant mini program based on the API, obtaining the beta version QR code of the merchant mini program based on the API for debugging, obtaining the debugging result, submitting the code of the merchant mini program through the API for review based on the debugging result, and releasing the merchant mini program online after the review is passed; if the development mode is customized development, configuring the application identifier of the merchant mini program through the ext.json file in the developer tool project, performing customized code development or debugging based on the application identifier, configuring directCommit through the ext.json file, submitting the code to the merchant mini program through the developer tool, submitting the code of the template library to the merchant mini program based on the API, modifying the basic information of the merchant mini program based on the API, obtaining the beta version QR code of the merchant mini program based on the API for debugging, obtaining the debugging result, submitting the code of the merchant mini program through the API for review based on the debugging result, and releasing the merchant mini program online after the review is passed.

[0012] Optionally, obtaining the authorization link of the mini-program of at least three types of platforms includes: sending a request for obtaining the authorization link to at least three types of platforms; and receiving the authorization link returned by the at least three types of platforms based on the authorization link request.

[0013] Further, optionally, authorizing and obtaining relevant information of the mini program based on the authorization link includes: obtaining relevant information of the mini program based on the authorization link, wherein the relevant information includes at least: the application identification of the mini program, the status of the mini program under the business management entity, the status of the mini program, and the integrity of the authorization authority.

[0014] Optionally, the detection of relevant information includes: determining whether the application identifier of the mini program in the relevant information exists; if the judgment result is yes, determining the integrity of the authorization authority; if the judgment result is no, determining the status of the mini program under the business management entity; if the mini program is in the business management entity, determining the status of the mini program.

[0015] Optionally, establishing a platform visitor data model by processing historical mini-program visitor data includes: when the historical mini-program visitor data under the same application identifier has not yet ended, waiting for it to end before processing; wherein, determining whether the historical mini-program visitor data is greater than 0, and if the judgment result is yes, batch processing the historical mini-program visitor data; if the judgment result is no, exiting the process and prompting that the authorization is successful.

[0016] An embodiment of the present invention provides a device for authorizing mini-programs applied to various platforms, including: a creation module, used to create mini-programs for at least three types of platforms, and obtain authorization links for mini-programs for at least three types of platforms; an acquisition module, used to authorize based on the authorization link and obtain relevant information of the mini-program; a detection module, used to create a platform permission set data model based on the authorized authorization link, and detect relevant information; a first establishment module, used to establish a mini-program data model and a mini-program token data model based on the detection result; a second establishment module, used to perform differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establish a platform visitor data model by processing historical mini-program visitor data; a configuration module, used to complete the authorization of the platform visitor data model, and customize the configuration of at least three types of platforms through the page decoration management page.

[0017] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for authorizing small programs applied to various platforms as described above is implemented.

[0018] An embodiment of the present invention provides a computer system, the computer system comprising: a processor and a memory, the processor being configured to execute the above-mentioned method for authorizing small programs applied to various platforms.

[0019] The embodiments of the present invention provide a method and device for authorizing mini-programs for various platforms, by creating mini-programs for at least three types of platforms and obtaining authorization links for mini-programs for at least three types of platforms; authorizing based on the authorization link and obtaining relevant information of the mini-program; creating a platform permission set data model based on the authorized authorization link, and detecting relevant information; establishing a mini-program data model and a mini-program token data model based on the detection results; performing differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establishing a platform visitor data model by processing historical mini-program visitor data; completing authorization on the platform visitor data model, and customizing at least three types of platforms through the page decoration management page, thereby completing mini-program authorization for different platforms, realizing code logic reuse for the main process, satisfying the authorization process of each platform, and using a set of mini-program authorization services with flexibility and automatic verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1A flowchart of a method for authorizing small programs on various platforms provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of the process of developing a platform mini program in a method for authorizing mini programs for various platforms provided in an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of a screenshot of a mini-program-related SOP in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of a template applet data model in a method for authorizing applet on various platforms provided in an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of creating a mini-program data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention;

[0026] Figure 6 A flowchart of the authorization algorithm logic in a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of establishing a platform permission set data model in a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention;

[0028] Figure 8 A schematic diagram of a mini-program data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention;

[0029] Fig. 9 A schematic diagram of a mini-program token data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention;

[0030] Fig.10 A schematic diagram of a platform visitor data model in a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention;

[0031] Fig.11 A schematic diagram of a page decoration management page in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention;

[0032] Fig.12 A schematic diagram of a custom configuration in a method for authorizing mini-programs applied to various platforms provided by an embodiment of the present invention;

[0033] Fig.13A schematic diagram is shown in a method for authorizing mini-programs applied to various platforms provided in an embodiment of the present invention;

[0034] Fig.14 A schematic diagram of a device for authorizing small programs applied to various platforms provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] It should be noted that the terms "first", "second" and the like in the specification, claims and drawings of the present invention are used to distinguish different objects rather than to limit a specific order.

[0037] It should also be noted that the following embodiments of the present invention may be executed separately, or in combination with each other, and the embodiments of the present invention do not impose any specific limitations on this.

[0038] The embodiment of the present invention provides a method for authorizing small programs applied to various platforms. Figure 1 A flowchart of a method for authorizing small programs on various platforms provided by an embodiment of the present invention; Figure 1 As shown, the method for mini-program authorization applied to various platforms provided in the embodiment of the present application includes:

[0039] Step S100, creating mini-programs for at least three types of platforms, and obtaining authorized links for the mini-programs for at least three types of platforms;

[0040] Optionally, creating mini-programs for at least three types of platforms in step S100 includes: applying for template mini-programs for at least three types of platforms belonging to the service provider according to the platform mini-program development process; when the application for the template mini-programs for at least three types of platforms is successful, establishing a data model based on the template mini-programs; and guiding merchants to create mini-programs for corresponding platforms through the data model according to the implementation process.

[0041] Further, optionally, the platform mini program development process includes: determining the development mode of the mini program of at least three types of platforms; if the development mode is template to be developed, using the developer account of the template mini program to log in to the developer tool to write and submit code, adding the latest beta version code of the template mini program to the template library, submitting the code of the template library to the merchant mini program based on the API, modifying the basic information of the merchant mini program based on the API, obtaining the beta version QR code of the merchant mini program based on the API for debugging, obtaining the debugging result, submitting the code of the merchant mini program through the API for review based on the debugging result, and releasing the merchant mini program online after the review is passed; if the development mode is customized development, configuring the application identifier of the merchant mini program through the ext.json file in the developer tool project, performing customized code development or debugging based on the application identifier, configuring directCommit through the ext.json file, submitting the code to the merchant mini program through the developer tool, submitting the code of the template library to the merchant mini program based on the API, modifying the basic information of the merchant mini program based on the API, obtaining the beta version QR code of the merchant mini program based on the API for debugging, obtaining the debugging result, submitting the code of the merchant mini program through the API for review based on the debugging result, and releasing the merchant mini program online after the review is passed.

[0042] Specifically, in the embodiment of the present application, according to the platform applet generation development flow chart (such as Figure 2 As shown, Figure 2 A flowchart of a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention) is provided. It is necessary to first apply for a template mini-program belonging to a service provider, and then take a screenshot after applying on the platform side (such as Figure 3 As shown, Figure 3 A schematic diagram of a screenshot of a mini-program related SOP in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention), and a data model is established according to the template mini-program (such as Figure 4 As shown, Figure 4 A schematic diagram of a template applet data model in a method for authorizing applet on various platforms provided by an embodiment of the present invention); guiding the customer to create an applet for the corresponding platform according to the implementation process (such as Figure 5 As shown, Figure 5 A schematic diagram of creating a mini-program data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention).

[0043] Optionally, obtaining the authorization link of the mini-program of at least three types of platforms in step S100 includes: sending a request for obtaining the authorization link to at least three types of platforms; and receiving the authorization link returned by the at least three types of platforms based on the authorization link request.

[0044] Specifically, obtain the authorization link (link) and request the authorization link interface. The input parameter requirements are shown in Table 1:

[0045] Table 1

[0046]

[0047] Get the authorization link (link) from the corresponding parameters and jump directly to the page of the authorization link.

[0048] After the merchant confirms the authorization, the open platform server will:

[0049] The callback address passed in the jump link before the request returns the authorization code.

[0050] Notify the background configuration of the [Authorization Event Receiving URL] to send the mini program authorization information. For details, see Mini Program Authorization Notification.

[0051] Request to obtain the authorization applet interface to call the credential interface. The input parameter requirements are shown in Table 2:

[0052] Table 2

[0053]

[0054] Step S102, authorize according to the authorization link and obtain relevant information of the mini program;

[0055] Optionally, authorizing and obtaining relevant information of the mini program based on the authorization link in step S102 includes: obtaining relevant information of the mini program based on the authorization link, wherein the relevant information includes at least: the application identification of the mini program, the status of the mini program under the business management entity, the status of the mini program, and the integrity of the authorization authority.

[0056] Specifically, create a mini program for the corresponding platform in the background, obtain the authorization link through the platform interface, and then jump to guide the administrator to scan the code to authorize the mini program;

[0057] Enter the authorization algorithm (logic flow such as Figure 6 As shown, Figure 6 A flowchart of the authorization algorithm logic in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention is provided, and mini-program and token-related information is obtained according to the authorization interface.

[0058] Step S104, creating a platform permission set data model based on the authorized authorization link, and testing the relevant information;

[0059] Optionally, the detection of relevant information in step S104 includes: determining whether the application identifier of the mini program in the relevant information exists; if the judgment result is yes, determining the integrity of the authorization authority; if the judgment result is no, determining the status of the mini program under the business management entity; if the mini program is in the business management entity, determining the status of the mini program.

[0060] Specifically, Figure 7 As shown, Figure 7 A schematic diagram of establishing a platform permission set data model in a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention. The mini-program related information determination in the embodiment of the present application is specifically as follows:

[0061] 1. Determine whether the appid exists: Based on the received mini program authorization information, determine the "AppId" field in the decrypted "Encrypt" to determine whether this "Appid" exists;

[0062] If it exists: go to 4.1 to verify the integrity of the authorization permissions;

[0063] If it does not exist: go to step 2 to determine whether it is under the current business management entity;

[0064] 2. Determine whether it is under the current business management entity: Determine whether this mini program is under this business management entity.

[0065] If yes: Go to 3.1 to check if the mini program status is deleted;

[0066] If not: Go to 3.2 to determine if the mini program status is deleted;

[0067] 3.1 Determine if the Mini Program status is deleted:

[0068] Determine whether the "Status" of this [Mini Program] is "Deleted";

[0069] If "Deleted": Go to 4.2 to verify the integrity of the authorization permissions;

[0070] If "Not Deleted": Go to 4.4 to verify the integrity of the authorization permissions;

[0071] 3.2 Determine if the Mini Program status is deleted:

[0072] Determine whether the "Status" of this [Mini Program] is "Deleted"

[0073] If "Deleted": Go to 4.3 to verify the integrity of the authorization permissions;

[0074] If “not deleted”: exit the transaction, return authorization failure, and prompt “has been bound to other business management entities, please delete first”.

[0075] 4.1 Verify the integrity of authorization permissions:

[0076] Determine whether the "authorize_permission" in the returned parameter is complete compared with the [Mini Program Platform Permission Set].

[0077] If complete, enter the instantiated object;

[0078] Among them, the instantiated objects include:

[0079] After the mini program is authorized successfully, the information obtained is used to instantiate the mini program, as shown in Table 3.

[0080]

[0081]

[0082] The instantiation of [Mini Program Token] is shown in Table 4. Table 4

[0083]

[0084]

[0085] If it is incomplete, the transaction ends and a prompt appears: "The authorization item is incomplete and the new addition failed."

[0086] 4.2 Verify the integrity of authorization permissions

[0087] Determine whether the "authorize_permission" in the returned parameter is complete compared with the [Mini Program Platform Permission Set].

[0088] If complete, enter the update field;

[0089] Among them, the update fields are specifically shown in Table 5:

[0090] Update the relevant fields of this [Mini Program];

[0091] Table 5

[0092] name Changing requirements state normal Authorization Status Authorized Permission Set List Development looking at storage

[0093] Update [Mini Program Token] and get Table 6:

[0094] Table 6

[0095]

[0096] Update the available license for the mini program under the corresponding business management.

[0097] If it is incomplete, it will prompt: "It has been bound to other entities in the business management, please delete it first." Go to 4.4 to verify the integrity of the authorization rights;

[0098] 4.3 Verify the integrity of authorization permissions

[0099] Determine whether the "authorize_permission" in the returned parameter is complete compared with the [Mini Program Platform Permission Set].

[0100] If complete, enter the update field;

[0101] Specifically, update the fields as follows:

[0102] Update the relevant fields of this [Mini Program] (including the license update of the original business management and new business management mini programs) as shown in Table 7.

[0103] Table 7

[0104] name Changing requirements Business management entity ID Update to the latest business management entity state normal Authorization Status Authorized Permission Set List Development looking at storage

[0105] Update [Mini Program Token] to get Table 8,

[0106] Table 8

[0107]

[0108]

[0109] If it is incomplete, the transaction ends and a prompt appears: "The authorization item is incomplete and the new addition failed."

[0110] 4.4 Verify the integrity of authorization permissions

[0111] Determine whether the "authorize_permission" in the returned parameter is complete compared with the [Mini Program Platform Permission Set].

[0112] Incomplete: Set the "Authorization Status" of the original [Mini Program] to "Incomplete Authorization Items", set the "Status" to "Normal", the DCU under the Mini Program will not be invalidated, the "Permission Set List" will be updated, and the transaction will end.

[0113] Complete, and originally complete: the transaction is over.

[0114] Complete, and was originally incomplete, "Status" is "Normal": set the original "Authorization Status" of the [Mini Program] to "Authorized", update the "Permission Set List"; update the relevant fields of the [Mini Program Token]; the transaction ends.

[0115] Complete, and was originally incomplete, and the "Status" is "Business Suspended": set the "Authorization Status" of the original [Mini Program] to "Authorized", set the "Status" to "Normal", update the "Permission Set List"; update the relevant fields of the [Mini Program Token].

[0116] Step S106, establishing a mini program data model and a mini program token data model according to the detection result;

[0117] Specifically, Figure 8 As shown, Figure 8 A schematic diagram of a mini-program data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention; Fig. 9 As shown, Fig. 9 A schematic diagram of a mini-program token data model in a method for mini-program authorization applied to various platforms provided in an embodiment of the present invention.

[0118] Step S108, performing differentiated processing on at least three types of platforms according to the mini program data model and the mini program token data model, and establishing a platform visitor data model by processing historical mini program visitor data;

[0119] Among them, in order to carry out differentiated processing for different platforms, WeChat needs to update the open platform data according to the binding status of the open platform.

[0120] Optionally, in step S108, establishing a platform visitor data model by processing historical mini-program visitor data includes: when the historical mini-program visitor data under the same application identifier has not yet ended, waiting for it to end before processing; wherein, judging whether the historical mini-program visitor data is greater than 0, and if the judgment result is yes, batch processing the historical mini-program visitor data; if the judgment result is no, exiting the process and prompting that the authorization is successful.

[0121] Specifically, if the historical data processing under the same appid has not yet been completed, wait until it is completed before processing;

[0122] Determine whether the number of historical visitors to the mini program is > 0; if so: proceed to the next step; if not: exit the transaction and return to "Authorization successful"; perform historical DCU batch processing: batch change the DCU status of all DCUs of a certain mini program appid from "invalid" to "normal".

[0123] In the embodiment of the present application, the platform visitor data model is as follows Fig.10 As shown, Fig.10 A schematic diagram of a platform visitor data model in a method for authorizing mini-programs on various platforms provided in an embodiment of the present invention.

[0124] Step S110, complete the authorization of the platform visitor data model, and customize at least three types of platforms through the page decoration management page.

[0125] Specifically, after completing the authorization, enter the background page decoration management page (such as Fig.11 As shown, Fig.11 A schematic diagram of a page decoration management page in a method for mini-program authorization applied to various platforms provided by an embodiment of the present invention), and a customized configuration is performed for the mini-program display on three terminals (such as Fig.12 As shown, Fig.12 A schematic diagram of a method for authorizing a small program on various platforms provided by an embodiment of the present invention, wherein the small program is displayed on the C-end (client) (e.g. Fig.13 As shown, Fig.13 A schematic diagram is shown in a method for authorizing mini-programs applied to various platforms provided in an embodiment of the present invention).

[0126] An embodiment of the present invention provides a method for authorizing mini-programs applied to various platforms, by creating mini-programs for at least three types of platforms and obtaining authorization links for mini-programs for at least three types of platforms; authorizing based on the authorization link and obtaining relevant information of the mini-program; creating a platform permission set data model based on the authorized authorization link, and detecting relevant information; establishing a mini-program data model and a mini-program token data model based on the detection results; performing differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establishing a platform visitor data model by processing historical mini-program visitor data; completing authorization on the platform visitor data model, and customizing at least three types of platforms through the page decoration management page, thereby completing mini-program authorization for different platforms, realizing code logic reuse for the main process, satisfying the authorization process of each platform, and using a set of mini-program authorization services with flexibility and automated verification.

[0127] The embodiment of the present invention provides a device for authorizing small programs applied to various platforms. Fig.14 A schematic diagram of a device for authorizing small programs on various platforms provided by an embodiment of the present invention is shown in FIG. Fig.14As shown, the device for mini-program authorization applied to various platforms provided in the embodiment of the present application includes: a creation module 1400, which is used to create mini-programs for at least three types of platforms and obtain authorization links for mini-programs for at least three types of platforms; an acquisition module 1402, which is used to authorize and obtain relevant information of the mini-program based on the authorization link; a detection module 1404, which is used to create a platform permission set data model based on the authorized authorization link, and detect relevant information; a first establishment module 1406, which is used to establish a mini-program data model and a mini-program token data model based on the detection results; a second establishment module 1408, which is used to perform differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establish a platform visitor data model by processing historical mini-program visitor data; a configuration module 1410, which is used to complete the authorization of the platform visitor data model, and customize the configuration of at least three types of platforms through the page decoration management page.

[0128] An embodiment of the present invention provides a device for authorizing mini-programs for various platforms, by creating mini-programs for at least three types of platforms and obtaining authorization links for mini-programs for at least three types of platforms; performing authorization based on the authorization link and obtaining relevant information of the mini-program; creating a platform permission set data model based on the authorized authorization link, and detecting relevant information; establishing a mini-program data model and a mini-program token data model based on the detection results; performing differentiated processing on at least three types of platforms based on the mini-program data model and the mini-program token data model, and establishing a platform visitor data model by processing historical mini-program visitor data; completing authorization on the platform visitor data model, and customizing at least three types of platforms through the page decoration management page, thereby completing mini-program authorization for different platforms, realizing code logic reuse for the main process, satisfying the authorization process of each platform, and using a set of mini-program authorization services with flexibility and automated verification.

[0129] An embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the method for authorizing small programs applied to various platforms as described above is implemented.

[0130] An embodiment of the present invention provides a computer system, the computer system comprising: a processor and a memory, the processor being configured to execute the above-mentioned method for authorizing small programs applied to various platforms.

[0131] The above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention.

Claims

1. A method for mini-program authorization applied to various platforms, characterized in that: include: Create mini-programs for at least three types of platforms, and obtain authorized links for the mini-programs for the at least three types of platforms; Authorize according to the authorization link and obtain relevant information of the Mini Program; Creating a platform permission set data model based on the authorized authorization link and testing the relevant information; Establishing the mini program data model and mini program token data model based on the detection results; Performing differentiated processing on the at least three types of platforms according to the mini program data model and the mini program token data model, and establishing a platform visitor data model by processing historical mini program visitor data; The platform visitor data model is authorized, and the at least three types of platforms are customized through the page decoration management page.

2. The method for mini-program authorization applied to various platforms according to claim 1 is characterized in that: The mini-programs for creating at least three types of platforms include: Apply for template mini-programs for at least three types of platforms belonging to the service provider in accordance with the platform mini-program development process; In the case where the at least three types of platforms successfully apply for the template applet, establishing a data model based on the template applet; According to the implementation process, the data model is used to guide merchants to create mini programs for corresponding platforms.

3. The method for mini-program authorization applied to various platforms according to claim 2 is characterized in that: The platform mini program development process includes: Determine the development model of the mini-programs for the at least three types of platforms; If the development mode is template to be developed, the developer account of the template applet is used to log in to the developer tool to write and submit the code, the latest test version code of the template applet is added to the template library, the code of the template library is submitted to the merchant applet based on the API, the basic information of the merchant applet is modified based on the API, the test version QR code of the merchant applet is obtained based on the API for debugging, and the debugging result is obtained. According to the debugging result, the code of the merchant applet is submitted through the API for review, and the merchant applet is released online after passing the review; If the development mode is customized development, configure the application identifier of the merchant mini program through the ext.json file in the developer tool project, perform customized code development or debugging based on the application identifier, configure directCommit through the ext.json file, submit the code to the merchant mini program through the developer tool, submit the code of the template library to the merchant mini program based on the API, modify the basic information of the merchant mini program based on the API, obtain the test version QR code of the merchant mini program based on the API for debugging, obtain the debugging result, submit the code of the merchant mini program through the API for review based on the debugging result, and release the merchant mini program online after passing the review.

4. The method for mini-program authorization applied to various platforms according to claim 1 or 2, characterized in that: The obtaining of the authorization link of the mini-programs of the at least three types of platforms includes: Sending a request to obtain an authorization link to the at least three types of platforms; Receive the authorization link returned by the at least three types of platforms according to the authorization link request.

5. The method for mini-program authorization applied to various platforms according to claim 4 is characterized in that: The authorization according to the authorization link and obtaining the relevant information of the mini program includes: The relevant information of the mini program is obtained according to the authorization link, wherein the relevant information includes at least: the application identification of the mini program, the status of the mini program under the business management entity, the status of the mini program and the integrity of the authorization authority.

6. The method for mini-program authorization applied to various platforms according to claim 5, characterized in that: The detecting of the relevant information comprises: Determine whether the application identifier of the mini program in the relevant information exists; If the result of the judgment is yes, the integrity of the authorization authority is judged; If the result of the judgment is negative, determining the status of the Mini Program under the business management entity; If the mini program is in the business management entity, the status of the mini program is determined.

7. The method for mini-program authorization applied to various platforms according to claim 1, characterized in that: The process of establishing a platform visitor data model by processing historical mini-program visitor data includes: When the historical mini-program visitor data under the same application identifier has not yet ended, wait until it ends before processing; wherein, determine whether the historical mini-program visitor data is greater than 0, and if the judgment result is yes, batch process the historical mini-program visitor data; if the judgment result is no, exit the process and prompt that the authorization is successful.

8. A device for authorizing small programs on various platforms, characterized in that: include: A creation module, used to create mini-programs for at least three types of platforms and obtain authorized links for the mini-programs for the at least three types of platforms; An acquisition module, used to perform authorization according to the authorization link and obtain relevant information of the mini program; A detection module, used to create a platform permission set data model according to the authorized authorization link and detect the relevant information; A first establishment module is used to establish a mini program data model and a mini program token data model according to the detection results; A second establishment module is used to perform differentiated processing on the at least three types of platforms according to the mini program data model and the mini program token data model, and establish a platform visitor data model by processing historical mini program visitor data; The configuration module is used to complete the authorization of the platform visitor data model and customize the at least three types of platforms through the page decoration management page.

9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the method for authorizing small programs applied to various platforms as described in any one of claims 1 to 7 is implemented.

10. A computer system, characterized in that: The computer system includes: a processor and a memory, and the processor is configured to execute the method for authorizing small programs applied to various platforms as described in any one of claims 1 to 7.