Commit f88667db by 蒋勇

d

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