Commit 6cd41835 by 刘泽奇

Merge branch 'igirl-channel-web' of gitlab.gongsibao.com:jiangyong/zhichan into igirl-channel-web

parents 66cb13e1 7588e6f1
...@@ -14,17 +14,17 @@ class tmqueryCtl extends CtlBase { ...@@ -14,17 +14,17 @@ class tmqueryCtl extends CtlBase {
}; };
} }
async doPost(pobj, obj, req) { async doPost(pobj, obj, req) {
if (["subTmOrder", "getTmOrderList", "getTmOrderInfo", "getTmApplyInfo", "getTmNclList", if (["subOtherOrder", "subTmOrder", "getTmOrderList", "getTmOrderInfo", "getTmApplyInfo", "getTmNclList",
"getNeedInfo", "tmConfirm", "updateTmInfo", "updateNclInfo", "getNeedInfo", "tmConfirm", "updateTmInfo", "updateNclInfo",
"updateContacts", "updateCustomerInfo"].indexOf(pobj.actionType) >= 0) { "updateContacts", "updateCustomerInfo"].indexOf(pobj.actionType) >= 0) {
if (!pobj.actionBody.channelUserId) { if (!pobj.actionBody.channelUserId) {
return system.getResult(null, "verify channelUserId is not empty"); return system.getResult(-99, "verify channelUserId is not empty");
} }
if (!req.session.userPinInfo) { if (!req.session.userPinInfo) {
return system.getResult(null, "user is not login"); return system.getResult(-99, "user is not login");
} }
if (req.session.userPinInfo.encryptChannelUserId != pobj.actionBody.channelUserId) { if (req.session.userPinInfo.encryptChannelUserId != pobj.actionBody.channelUserId) {
return system.getResult(null, "user login is error"); return system.getResult(-99, "user login is error");
} }
pobj.isDecryptUser = "yes"; pobj.isDecryptUser = "yes";
} }
......
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