docs: 移动蓝绿部署指南到 troubleshooting 目录
This commit is contained in:
@@ -167,7 +167,7 @@ class QrcodeService:
|
||||
"""拼接企微 OAuth2 授权 URL(供前端生成二维码)。
|
||||
|
||||
URL 格式:
|
||||
https://open.weixin.qq.com/connect/oauth2/authorize
|
||||
https://open.work.weixin.qq.com/connect/oauth2/authorize
|
||||
?appid={corp_id}
|
||||
&redirect_uri={callback}
|
||||
&response_type=code
|
||||
@@ -175,6 +175,9 @@ class QrcodeService:
|
||||
&state={ticket}
|
||||
#wechat_redirect
|
||||
|
||||
注意:必须使用 open.work.weixin.qq.com(企业微信开放平台),
|
||||
而不是 open.weixin.qq.com(微信开放平台)。
|
||||
|
||||
Args:
|
||||
ticket: 扫码登录票据
|
||||
|
||||
@@ -194,7 +197,8 @@ class QrcodeService:
|
||||
"state": ticket,
|
||||
}
|
||||
query = urlencode(params)
|
||||
return f"https://open.weixin.qq.com/connect/oauth2/authorize?{query}#wechat_redirect"
|
||||
# 企业微信 OAuth2 地址(注意是 open.work.weixin.qq.com,不是 open.weixin.qq.com)
|
||||
return f"https://open.work.weixin.qq.com/connect/oauth2/authorize?{query}#wechat_redirect"
|
||||
|
||||
def _get_scan_callback_url(self) -> str:
|
||||
"""获取 OAuth 回调地址。
|
||||
|
||||
Reference in New Issue
Block a user