明树Git Lab

Commit 2658073d authored by zfp1's avatar zfp1

update

parent 92cd4999
......@@ -22,9 +22,8 @@ async function genAuthUrl(req, res, next) {
async function getUserInfo(req, res, next) {
try {
const { code } = req.query || req.body;
console.log(req.query)
console.log(req.body)
const { code } = req.body;
console.log("req.body:::", req.body)
// 第一步:用code换取access_token
const tokenRes = 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