Commit a62d1dec by 王勇飞

gyq

parent 70f0e6aa
...@@ -41,7 +41,7 @@ class APIBase { ...@@ -41,7 +41,7 @@ class APIBase {
// 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' && req.xctx.companykey != 'undefined') {
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