Commit c64dea51 by 蒋勇

d

parent 193de67d
...@@ -56,7 +56,7 @@ class CtlBase { ...@@ -56,7 +56,7 @@ class CtlBase {
// if(!req.xctx.companyid && !req.xctx.companykey){ // if(!req.xctx.companyid && !req.xctx.companykey){
// return [-200,"请求头缺少应用x-app-key"] // return [-200,"请求头缺少应用x-app-key"]
// } // }
if(!req.xctx.companyid && req.xctx.companykey){ if(!req.xctx.companyid && req.xctx.companykey && req.xctx.companykey!="null"){
let comptmp=await this.cacheManager["CompanyCache"].cache(req.xctx.companykey); let comptmp=await this.cacheManager["CompanyCache"].cache(req.xctx.companykey);
req.xctx.companyid=comptmp.id; req.xctx.companyid=comptmp.id;
} }
......
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