Commit 7e74ab17 by 宋毅

tj

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