Commit 7e74ab17 by 宋毅

tj

parent cf189b85
...@@ -12,11 +12,19 @@ class tmqueryCtl extends CtlBase { ...@@ -12,11 +12,19 @@ class tmqueryCtl extends CtlBase {
this.execClient = system.getObject("util.execClient"); this.execClient = system.getObject("util.execClient");
} }
async doPost(pobj, obj, req) { async doPost(pobj, obj, req) {
console.log(req.session.userPinInfo, "req.session.userPinInfo.......................######################################################"); if (["subTmOrder", "getTmOrderList", "getTmOrderInfo", "getTmApplyInfo", "getTmNclList",
"getNeedInfo", "tmConfirm", "updateTmInfo", "updateNclInfo",
console.log(req.body, "r.........pobj.............######################################################"); "updateContacts", "updateCustomerInfo"].indexOf(actionType) >= 0) {
if (!pobj.actionBody.channelUserId) {
console.log(req.query, "req.session.userPinId..........objobjobj.............######################################################"); return system.getResult(null, "verify channelUserId is not empty");
}
if (!req.session.userPinInfo) {
return system.getResult(null, "ueser is not login");
}
if (req.session.userPinInfo.encryptChannelUserId != pobj.actionBody.channelUserId) {
return system.getResult(null, "ueser login is error");
}
}
var rc = system.getObject("util.execClient"); var rc = system.getObject("util.execClient");
try { try {
......
...@@ -40,7 +40,7 @@ module.exports = function (app) { ...@@ -40,7 +40,7 @@ module.exports = function (app) {
if(settings.env=="dev"){ if(settings.env=="dev"){
app.use(session( app.use(session(
{ {
name:'userpin', name:'userPinInfo',
cookie: {maxAge: 3600000}, cookie: {maxAge: 3600000},
rolling:true, rolling:true,
resave: false, resave: false,
...@@ -53,7 +53,7 @@ module.exports = function (app) { ...@@ -53,7 +53,7 @@ module.exports = function (app) {
}else{ }else{
app.use(session( app.use(session(
{ {
name:'userpin', name:'userPinInfo',
cookie: {maxAge: 3600000}, cookie: {maxAge: 3600000},
rolling:true, rolling:true,
resave: false, resave: false,
......
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