Commit 3e4aac15 by 宋毅

tj

parent 4f945a3d
......@@ -18,13 +18,13 @@ class tmqueryCtl extends CtlBase {
"getNeedInfo", "tmConfirm", "updateTmInfo", "updateNclInfo",
"updateContacts", "updateCustomerInfo"].indexOf(pobj.actionType) >= 0) {
if (!pobj.actionBody.channelUserId) {
return system.getResult(-99, "verify channelUserId is not empty");
return system.getResultFail(-99, "verify channelUserId is not empty");
}
if (!req.session.userPinInfo) {
return system.getResult(-99, "user is not login");
return system.getResultFail(-99, "user is not login");
}
if (req.session.userPinInfo.encryptChannelUserId != pobj.actionBody.channelUserId) {
return system.getResult(-99, "user login is error");
return system.getResultFail(-99, "user login is error");
}
pobj.isDecryptUser = "yes";
}
......@@ -124,7 +124,8 @@ class tmqueryCtl extends CtlBase {
req.session.userPinInfo = {
encryptChannelUserId: result.data.channelUserId,
userpin: result.data.userpin,
userName: result.data.userName
userName: result.data.userName,
isAdmin: result.data.isAdmin || 0
};
}//login
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