明树Git Lab

Commit 1fbe0bc3 authored by zfp1's avatar zfp1

update

parent 92faa8fb
...@@ -33,7 +33,7 @@ async function getUserInfo(req, res, next) { ...@@ -33,7 +33,7 @@ async function getUserInfo(req, res, next) {
code=${code}& code=${code}&
grant_type=authorization_code`.replace(/\s+/g, '') grant_type=authorization_code`.replace(/\s+/g, '')
) )
console.log(tokenRes)
// 第二步:获取用户信息 // 第二步:获取用户信息
const { access_token, openid } = tokenRes.data const { access_token, openid } = tokenRes.data
const userRes = await axios.get( const userRes = await axios.get(
......
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