docs: update wg-basic/wecaht

This commit is contained in:
Administrator 2021-09-30 02:29:50 +00:00 committed by John Smith
parent c1684aa4cd
commit cadac48a2c

View File

@ -2,7 +2,7 @@
title: 5.微信模块 title: 5.微信模块
description: 微信模块功能 description: 微信模块功能
published: true published: true
date: 2021-09-17T02:46:50.943Z date: 2021-09-30T02:29:48.277Z
tags: wg-basic, wecaht tags: wg-basic, wecaht
editor: markdown editor: markdown
dateCreated: 2021-08-26T08:21:24.080Z dateCreated: 2021-08-26T08:21:24.080Z
@ -51,8 +51,9 @@ open-platform:
mini-app: mini-app:
# 激活状态 # 激活状态
active: true active: true
api-url: https://api.weixin.qq.com
# 认证地址,固定 # 认证地址,固定
authorizeUrl: https://api.weixin.qq.com/sns/jscode2session authorizeUrl: ${open-platform.wechat.mini-app.api-url}/sns/jscode2session
# 认证方式,固定 # 认证方式,固定
grantType: authorization_code grantType: authorization_code
# 小程序的appKey # 小程序的appKey
@ -63,18 +64,19 @@ open-platform:
official-account: official-account:
# 激活状态 # 激活状态
activate: false activate: false
api-url: https://api.weixin.qq.com
# 公众号认证 # 公众号认证
authorize: authorize:
authorize-url: https://open.weixin.qq.com/connect/oauth2/authorize authorize-url: https://open.weixin.qq.com/connect/oauth2/authorize
access-token-url: https://api.weixin.qq.com/sns/oauth2/access_token access-token-url: ${open-platform.wechat.official-account.api-url}/sns/oauth2/access_token
access-token-refresh-url: https://api.weixin.qq.com/sns/oauth2/refresh_token access-token-refresh-url: ${open-platform.wechat.official-account.api-url}/sns/oauth2/refresh_token
userinfo-url: https://api.weixin.qq.com/sns/userinfo userinfo-url: ${open-platform.wechat.official-account.api-url}/sns/userinfo
response-type: code response-type: code
scope: snsapi_userinfo scope: snsapi_userinfo
state: wechatRedirectUrl state: wechatRedirectUrl
grant-type: authorization_code grant-type: authorization_code
# token地址 # token地址
access-token-url: https://api.weixin.qq.com/cgi-bin/token access-token-url: ${open-platform.wechat.official-account.api-url}/cgi-bin/token
# 公众号appid # 公众号appid
app-id: 123123123123123 app-id: 123123123123123
# 公众号secret # 公众号secret