Commit f88667db by 蒋勇

d

parent 20f593c2
...@@ -22,6 +22,7 @@ class ChannelService extends ServiceBase { ...@@ -22,6 +22,7 @@ class ChannelService extends ServiceBase {
if (!this.handlers[fileName][method]) { if (!this.handlers[fileName][method]) {
throw Error(`请在${fileName}文件中定义渠道流量的处理方法${method}`) throw Error(`请在${fileName}文件中定义渠道流量的处理方法${method}`)
} }
console.log(fileName,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
let rtn = await this.handlers[fileName][method](datajson, channelobj); let rtn = await this.handlers[fileName][method](datajson, channelobj);
return rtn; return rtn;
} }
......
...@@ -232,6 +232,7 @@ module.exports = function (app) { ...@@ -232,6 +232,7 @@ module.exports = function (app) {
} }
const appcode = req.headers && req.headers.appcode; const appcode = req.headers && req.headers.appcode;
let sourceHost = APPCODENUM[appcode] || "ali"; let sourceHost = APPCODENUM[appcode] || "ali";
console.log(">>>>>>>>>>>>>>>>>>>>.................",sourceHost)
if (sourceHost in channelCache) { if (sourceHost in channelCache) {
channel = channelCache[sourceHost]; channel = channelCache[sourceHost];
} else { } else {
...@@ -241,6 +242,7 @@ module.exports = function (app) { ...@@ -241,6 +242,7 @@ module.exports = function (app) {
if (!channel) { if (!channel) {
next() next()
} else { } else {
console.log(channel)
let rtn = await chnelapi.channelHandle(channel, req.path + "/" + req.body.actionType, req.body); let rtn = await chnelapi.channelHandle(channel, req.path + "/" + req.body.actionType, req.body);
System.execLogs( System.execLogs(
......
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