|
@@ -36,9 +36,12 @@ CMD.runTask = async function(data,main_info,PlatformInfo,call_back){
|
|
|
// console.log("recharge:",recharge)
|
|
|
let tg_link_config = JSON.parse(main_info.tg_link_config)
|
|
|
let chongzhi_id = tg_link_config['chongzhi_id']
|
|
|
+ let huichuan_id = tg_link_config['huichuan_id']
|
|
|
let chongzhi_list = JSON.parse(PlatformInfo.chongzhi)
|
|
|
+ let huichuan_list = JSON.parse(PlatformInfo.huichuan)
|
|
|
let chongzhi_name = null
|
|
|
let recharge_template_id = ""
|
|
|
+ let ad_callback_config_id = ""
|
|
|
for (let index = 0; index < chongzhi_list.length; index++) {
|
|
|
const cz_obj = chongzhi_list[index];
|
|
|
if(cz_obj.id==chongzhi_id){
|
|
@@ -47,6 +50,14 @@ CMD.runTask = async function(data,main_info,PlatformInfo,call_back){
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ for (let index = 0; index < huichuan_list.length; index++) {
|
|
|
+ const hc_obj = huichuan_list[index];
|
|
|
+ if(hc_obj.id==huichuan_id){
|
|
|
+ ad_callback_config_id = hc_obj.value
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
// if(recharge.code==200&&chongzhi_name!=null){
|
|
|
// for (let index = 0; index < recharge.data.length; index++) {
|
|
|
// const recharge_item = recharge.data[index];
|
|
@@ -59,7 +70,7 @@ CMD.runTask = async function(data,main_info,PlatformInfo,call_back){
|
|
|
try {
|
|
|
let create_fanqie_book_link = require('../src/api/fq/create_fanqie_book_link')
|
|
|
let remark = data.product_name.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '')
|
|
|
- await create_fanqie_book_link.send(data.product_id,1,remark,1,recharge_template_id,(start_page,start_param, info)=>{
|
|
|
+ await create_fanqie_book_link.send(data.product_id,1,remark,1,recharge_template_id,ad_callback_config_id,(start_page,start_param, info)=>{
|
|
|
if(start_page==null||start_param==null){
|
|
|
data.start_page = start_page
|
|
|
data.start_param = start_param
|