# Service provider for the development of Mini programs
# Additional Instructions for Pre-Checking Items Before Submitting Code for Review
- In addition to the name, introduction, category and avatar mentioned in the above picture, it is also necessary to check whether the user privacy protection guidelines have been configured.Guidelines on User Privacy Protection for Configuration of Mini ProgramsAnnouncement details can be viewed[Guidelines on Privacy Protection for Users of Supplementary Mini Programs and Plug-ins](https://developers.weixin.qq.com/community/develop/doc/0004603f1ecf301870fcb50ae56801? blockType = 1)
- In addition, if the Mini Program also involves applying for relevant privacy interfaces such as geographical location, it is also necessary to apply for permission to the relevant api and declare it in the code, and the details of the relevant announcements can be viewed separately.Mini Programs geo-dependent interface adjustment、New Location Interface and Related Process Adjustments
- Upload Codeas well asSubmit Code ReviewInterface considerations, you can view the corresponding interface documentation.
# 1. Instructions on the steps of developing an Mini Program
As shown in the figure above, when a third-party platform helps its authorized Mini Program to conduct code management, it is necessary to first develop and complete the Mini Program template, and then deploy the Mini Program template to its Mini Program account, the specific process is as follows:
Step 1: Bind the development Mini Program
(1) Developers of third-party platforms need to go to the WeChat Official Platform (mp.WeChat.qq.com) to apply for an ordinary Mini Program and improve the profile picture, nickname, introduction, service category and other information of the Mini Program.
(2) Enter the WeChat open platform and add the Mini Program to the details of the third-party platform asDeveloping Mini programs(Note that after binding to the development Mini Program, the Mini Program is uploaded in the development tool, and the code will be uploaded directly to the open platform, not to the public platform)
Step 2: Development and Uploading of Mini Program Templates
Log in using the developer WeChat ID of the mini program developerWeixin DevTools, developer tools in accordance with the normal Mini Program development process for code development and debugging. When development is complete, click Upload in Development Tools. Use for details:Third-party platform for the development of small
初始值 ID
The code uploaded from the developer tools will be stored in the draft box first, and each development Mini Program will keep only the latest upload record. Developers can add the code in the draft box to the Mini Program template library, and the templates in the Mini Program template library will not be overwritten. You can have up to 200 code templates, which you can get when you add ID(TemplateID)。
Mini Program template library is divided into ordinary template library and standard template library, the difference between the two can be viewedMini Program Template Library Management
Step 4: Call the interface to deploy code for your authorized Mini Program
Specific interface detailsUpload Code
Key Tips:
- After the Mini Program authorizes hosting, it can only use the server domain name and business domain name registered in the WeChat open platform of the third-party platform. Therefore, before the third-party platform helps its Mini Program release the code, it needs to set the server domain name and business domain name to the server domain name and business domain name of the Mini Program.
- Set the interface for detailsSet Server Domain NameandSetting Up Business Domain。
# II. Explanation on the Mode of Submitting Mini Program Code on Behalf of Development Mode
Note, bind the operation of the development Mini Program, please seeBinding development Mini Program
For more information on the development of Mini programs on behalf of the third party platform, seehttps://developers.weixin.qq.com/miniprogram/dev/devtools/ext.html
The above process is to submit the code to the draft box, then to the template library and then submit it to the Mini Program. If you want to implement direct code submission to the Mini Program, you can do this by using the directCommit Submit directly to the list to be reviewed. DirectCommit is a parameter in ext.json, see the detailsextAppid Development and debugging of
In addition to submitting code through developer tools, you can also submit code throughminiprogram-ciCommit code, directCommit also works with the CI tool
- Using a third-party development model, the focus needs to be on the use of ext.json files, details can be foundhttps://developers.weixin.qq.com/miniprogram/dev/devtools/ext.html
# III. Why choose a third-party platform for the development of Mini programs
As shown in the figure above, it seems that the development steps of third-party Mini Programs are more than ordinary mode development Mini Programs, so why is it recommended that service providers choose third-party platforms to develop Mini Programs on behalf of them?
# More efficient
- A Mini Program template can be submitted in bulk to thousands of small business programs
- When the Mini Program version needs to be updated, it can also be updated in batches
- The efficiency of development and management is improved, and the cost of development and management is indirectly reduced.
# More reliable
- When the merchant Mini Program will be authorized to develop the right to service providers, merchants login mp will not be able to version management, domain name configuration and other operationsTo a certain extent, to avoid the failure or instability of the Mini Program business due to the misuse of the business
# Faster.
- The platform side can gradually promote more scenes to be audited in accordance with the Mini Program template, and after the template is approved, and the business Mini Program meets the relevant conditions, it can accelerate the approval.
# Other frequently asked questions
- Third-party Mini Program audit rules, expedited operation guidelines, please checkThird Party Service Provider Referral Limit Mechanism Optimization Explanation