Commit a29b2e1e by 宋毅

tj

parent 3a1abf16
...@@ -45,12 +45,15 @@ module.exports = function (app) { ...@@ -45,12 +45,15 @@ module.exports = function (app) {
if (lst.indexOf(req.body.actionType) >= 0) { if (lst.indexOf(req.body.actionType) >= 0) {
var userpin = req.headers["userpin"] || ""; var userpin = req.headers["userpin"] || "";
if (!userpin) { if (!userpin) {
result.status = system.noLogin;
result.msg = "req headers userpin can not be empty"; result.msg = "req headers userpin can not be empty";
res.end(JSON.stringify(result)); res.end(JSON.stringify(result));
return; return;
} else { } else {
var result = await cacheManager["AppUserPinByChannelUserId"].getCache(userpin, system.exTime); var result = await cacheManager["AppUserPinByChannelUserId"].getCache(userpin, system.exTime);
if (result.status != 0) { if (result.status != 0) {
result.status = system.noLogin;
result.msg = "user login is invalidation";
res.end(JSON.stringify(result)); res.end(JSON.stringify(result));
return result; return result;
} }
......
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