Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengdonglp/wechat-test-server
https://github.com/fengdonglp/wechat-test-server
Last synced: about 18 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/fengdonglp/wechat-test-server
- Owner: fengdonglp
- Created: 2020-05-27T01:48:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T22:18:57.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T02:41:20.367Z (over 1 year ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 微信公众号JS-SDK接口测试服务
### 1. 微信公众账号测试号申请
[https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Requesting_an_API_Test_Account.html](https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Requesting_an_API_Test_Account.html)
### 2. 更改配置信息
修改配置文件:`${root}/conf/weixin.json`
``` json
{
"APP_ID": "公众号appID",
"APP_SECRET": "公众号appsecret",
"request_url": "获取jssdk配置的动态接口地址"
}
```### 3. 安全域名配置
![](./sources/domain.png)
### 4. 服务配置
由于微信安全域名的限制,需保证前端项目与本服务放置在同一域名的服务下。