|
@@ -58,8 +58,8 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
|
|
|
is_platform_postback:true,
|
|
|
postback_rule_id: call_back_template_id, //# 回传规则 value
|
|
|
// first_panel_id:recharge_template_id, //首充模板id
|
|
|
- repeated_panel_id:f_recharge_template_id,
|
|
|
- recharge_panel_id:recharge_template_id
|
|
|
+ // repeated_panel_id:f_recharge_template_id,
|
|
|
+ // recharge_panel_id:1
|
|
|
// repeated_panel_id:f_recharge_template_id, //# 复充模板id
|
|
|
}
|
|
|
|
|
@@ -98,10 +98,10 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
|
|
|
console.log("finalUrl:",finalUrl)
|
|
|
|
|
|
let response = await client.post(finalUrl,postData)
|
|
|
- if(response.code!=0){
|
|
|
+ if(response.data.code!=0){
|
|
|
throw response
|
|
|
}
|
|
|
- let n_data = response.data
|
|
|
+ let n_data = response.data.data
|
|
|
console.log("n_data:",n_data)
|
|
|
let promotion_id = n_data.id
|
|
|
let promotion_info = n_data.link
|
|
@@ -111,7 +111,7 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
|
|
|
data.start_page = start_page
|
|
|
data.start_param = start_param
|
|
|
data.promotion_id = promotion_id
|
|
|
- // call_back(data,null)
|
|
|
+ call_back(data,null)
|
|
|
} catch (error) {
|
|
|
call_back(data,error)
|
|
|
console.error('请求错误:', error);
|