惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - Yu

Illegal characters in path 依赖注入的 Singleton、Scoped、Transient vs2015 编译报错:The project references NuGet package(s) that are missing on this computer... discuz 迁移 uc_server 报错 The timeout period elapsed prior to completion of the operation or the server is not responding. xmlns 与 targetNamespace 的解释 Ubuntu64 apache2+lvs+Keepalived NPOI CellStyle 设置 mysql --initialize specified but the data directory has files in it select2 多选设置默认值 VS 2015 IDE 不支持 MS SQL 2000 生成 dbml Ajax 如何执行 Response.Redirect ng 发生 Error: ELOOP: too many symbolic links encountered... jquery call cross-domain webapi owin self-host HtmlAgilityPack 使用 微信 oauth2 两次回调 EF 热加载 Winform/Asp.net vs2015 使用 Eazfuscator.NET 3.3 The requested page cannot be accessed because the related configuration data for the page is invalid.
微信小程序笔记
Yu · 2018-03-22 · via 博客园 - Yu

1. 注册小程序帐号 https://mp.weixin.qq.com/wxopen/waregister?action=step1 , 成功后, 登录如下:

2. 申请合法域名: 阿里云购买域名, 并申请ICP备案(材料: 填写核验单,提交身份证正反面和幕布背景的申请人照), 域名申请人和ICP备案申请人必须同一个人.

3. 购买阿里云云虚拟主机(省钱), 购买成功后, 登录阿里云, 进入控制台如下:

4.申请免费SSL证书, https://freessl.org/, 输入域名,点击创建免费的SSL证书, 进入如下:

复制记录值, 进入阿里云控制台-域名-添加解析:www/*/@ 三个主机记录:

然后通过检测后,即可下载证书:

5. 在阿里云控制台, 开通CDN

复制CNAME, 重新进入域名解析界面, 删除之前添加的TXT解析, 添加CNAME解析:

进入CDN配置界面, 配置回源设置和HTTPS设置:

注意HTTPS设置的强制跳转的取值, 必须是默认值, 不能是HTTPS->HTTP, 否则wx.request 提交的数据到不了服务器.

最后进入微信小程序公众平台-设置-开发设置-服务器域名-request合法域名-配置成功.