|
@@ -1,9 +1,9 @@
|
|
const origin_data_controllers = require('../src/data_manager/Controllers/origin_data_controllers');
|
|
const origin_data_controllers = require('../src/data_manager/Controllers/origin_data_controllers');
|
|
|
|
+const helper = require('../src/helper');
|
|
const redis_help = require('../src/use_redis');
|
|
const redis_help = require('../src/use_redis');
|
|
let tsak_list = []
|
|
let tsak_list = []
|
|
let count_num = 0
|
|
let count_num = 0
|
|
async function processTask(){
|
|
async function processTask(){
|
|
-
|
|
|
|
try{
|
|
try{
|
|
let isNeedDelete = true
|
|
let isNeedDelete = true
|
|
if(tsak_list.length>0){
|
|
if(tsak_list.length>0){
|
|
@@ -117,7 +117,7 @@ function parsePromotion(promotion,source_list,platform_select){
|
|
params[obj.key] = obj.value
|
|
params[obj.key] = obj.value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- let channel = getChannel(params['start_page'],platform_select,params)
|
|
|
|
|
|
+ let channel = getChannel(params['start_page'],platform_select,promotion)
|
|
// console.log("source_list:",source_list,platform_select,channel)
|
|
// console.log("source_list:",source_list,platform_select,channel)
|
|
if(channel!=null){
|
|
if(channel!=null){
|
|
let item_info = {}
|
|
let item_info = {}
|
|
@@ -151,11 +151,11 @@ function parsePromotion(promotion,source_list,platform_select){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-function getChannel(start_page,platform_select,params){
|
|
|
|
|
|
+function getChannel(start_page,platform_select,promotion){
|
|
// console.log("start_page:",start_page)
|
|
// console.log("start_page:",start_page)
|
|
if(start_page=="pages/reader/index?bookId"){ //点众
|
|
if(start_page=="pages/reader/index?bookId"){ //点众
|
|
return "点众"
|
|
return "点众"
|
|
- }else if(start_page=="pages/reader/index?channel"){ //七猫
|
|
|
|
|
|
+ }else if(helper.checkChannel(promotion,'&channel=rd')){ //七猫
|
|
return "七猫"
|
|
return "七猫"
|
|
}else if(start_page=="pages/bookstore/index?aid"){
|
|
}else if(start_page=="pages/bookstore/index?aid"){
|
|
console.log("移除番茄")
|
|
console.log("移除番茄")
|