Showing
1 changed file
with
4 additions
and
0 deletions
@@ -109,8 +109,12 @@ module.exports = { | @@ -109,8 +109,12 @@ module.exports = { | ||
109 | id: data.shopsId | 109 | id: data.shopsId |
110 | }); | 110 | }); |
111 | }); | 111 | }); |
112 | + | ||
113 | + console.log("userInfo",userInfo); | ||
112 | req.session.user = userInfo; | 114 | req.session.user = userInfo; |
115 | + | ||
113 | if (cookie && cookie.length > 0) { | 116 | if (cookie && cookie.length > 0) { |
117 | + console.log("cookie",cookie[0]); | ||
114 | req.session.gray = cookie[0]; | 118 | req.session.gray = cookie[0]; |
115 | result = { code: 200, message: "登录成功" }; | 119 | result = { code: 200, message: "登录成功" }; |
116 | } | 120 | } |
-
Please register or login to post a comment