Commit b91d5a2c by Sxy

feat: add opath

parent c843cbda
...@@ -58,6 +58,14 @@ class CtlBase { ...@@ -58,6 +58,14 @@ class CtlBase {
bizpath: req.headers["xbizpath"], bizpath: req.headers["xbizpath"],
codename: req.headers["xcodename"], codename: req.headers["xcodename"],
codetitle: req.headers["xcodetitle"] ? decodeURI(req.headers["xcodetitle"]) : '', codetitle: req.headers["xcodetitle"] ? decodeURI(req.headers["xcodetitle"]) : '',
opath: req.headers['xopath'],
ptags: req.headers['xptags'],
}
//添加组织结构路径,如果是上级,取上级
if (req.xctx.ptags && req.xctx.ptags != "") {
pobj.opath = req.xctx.ptags
} else {
pobj.opath = req.xctx.opath
} }
if (!req.xctx.appkey) { if (!req.xctx.appkey) {
return [-200, "请求头缺少应用x-app-key"] return [-200, "请求头缺少应用x-app-key"]
...@@ -99,7 +107,7 @@ class CtlBase { ...@@ -99,7 +107,7 @@ class CtlBase {
} catch (e) { } catch (e) {
this.logClient.log(pobj, req, null, e.stack) this.logClient.log(pobj, req, null, e.stack)
console.log(e.stack, "出现异常,请联系管理员......."); console.log(e.stack, "出现异常,请联系管理员.......");
return system.getResultFail(-200, e.message?e.message:"出现异常,请联系管理员"); return system.getResultFail(-200, e.message ? e.message : "出现异常,请联系管理员");
} }
} }
} }
......
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