明树Git Lab

Commit 92faa8fb authored by zfp1's avatar zfp1

update

parent 2658073d
......@@ -42,7 +42,7 @@ async function getUserInfo(req, res, next) {
openid=${openid}&
lang=zh_CN`.replace(/\s+/g, '')
)
console.log(userRes)
console.log(userRes.data)
// 第三步 存起来
await userModule.createUser(userRes.data);
res.sendData(userRes.data)
......
......@@ -5,6 +5,9 @@ const mongoose = require('mongoose');
//
module.exports = async (req, res, next) => {
req.reqId = new mongoose.Types.ObjectId();
// console.log("-----------------", req)
console.log(req.headers['content-type'])
// /* 1. 处理token */
// if (!checkPath(req.path)) {
// if (!(req.headers.authorization || req.headers.Authorization)) {
......@@ -43,7 +46,6 @@ module.exports = async (req, res, next) => {
});
console.log("-----------------")
next();
}
......
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