Commit d5d373fc by 宋毅

tj

parent ef9c0486
...@@ -348,7 +348,7 @@ class OpPlatformUtils { ...@@ -348,7 +348,7 @@ class OpPlatformUtils {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin); var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
var userInfoResult = await this.redisClient.get(userpinKey); var userInfoResult = await this.redisClient.get(userpinKey);
if (!userInfoResult) { if (!userInfoResult) {
return system.getResultSuccess(system.noLogin, "user no login"); return system.getResultFail(system.noLogin, "user no login");
} }
return JSON.parse(userInfoResult); return JSON.parse(userInfoResult);
} }
...@@ -360,7 +360,7 @@ class OpPlatformUtils { ...@@ -360,7 +360,7 @@ class OpPlatformUtils {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin); var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
var userInfoResult = await this.redisClient.get(userpinKey); var userInfoResult = await this.redisClient.get(userpinKey);
if (!userInfoResult) { if (!userInfoResult) {
return system.getResultSuccess(null, "ok!"); return system.getResultSuccess(null, "ok!");
} }
var userResult = JSON.parse(userInfoResult); var userResult = JSON.parse(userInfoResult);
if (userResult.status == 0) { if (userResult.status == 0) {
......
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