Commit 535282a7 authored by 李尚科's avatar 李尚科

fix

parent 6b28b502
Pipeline #17586 passed with stage
in 8 seconds
......@@ -24,9 +24,9 @@ class WechatController extends Controller {
// 授权参数
const oauth_params = {
login_type: '5', // 5代表微信授权登录 如果有QQ授权登录,再扩展
app_user_id: '',
app_user_id: ctx.cookies.get('app_user_id', { signed: false }),
code,
token: '',
token: ctx.cookies.get('token', { signed: false }),
app_id,
};
const result = await ctx.helper.send_request(oauth_url, oauth_params, { method: 'POST' });// 通过授权码code返回授权状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment