Commit c235faca by 陈思聪

fix: 兼容从请求体中取appcode

parent 643baf6d
......@@ -230,7 +230,12 @@ module.exports = function (app) {
pannong: "pannong",
ename: "ename"
}
const appcode = req.headers && req.headers.appcode;
let appcode = req.headers && req.headers.appcode;
if(appcode == null || appcode == undefined){
if(req.body.headData && req.body.headData.appcode){
appcode = req.body.headData.appcode;
}
}
let sourceHost = APPCODENUM[appcode] || "baidu";
console.log(">>>>>>>>>>>>>>>>>>>>.................",sourceHost)
console.log(">>>>>>>>>>>>>>>>>>>>.................",req.headers)
......
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