|
@@ -94,12 +94,17 @@ class JuliangAccountReportChargeService
|
|
|
'filter_reason' => $this->result['info_str'] ?? '允许回传',
|
|
|
'report_success' => intval($this->result['report_success'] ?? false),
|
|
|
'report_result' => \json_encode($this->result['report_result'] ?? []),
|
|
|
+ 'report_param' => \json_encode($this->result['report_param'] ?? []),
|
|
|
'created_at' => $now,
|
|
|
'updated_at' => $now,
|
|
|
'advertiser_id' => $this->trackRecord->advertiser_id ?? '',
|
|
|
'adv_promotion_id' => $this->trackRecord->adv_promotion_id ?? '',
|
|
|
'config_rate' => $this->result['config_rate'],
|
|
|
'current_rate' => $this->result['current_rate'],
|
|
|
+ 'user_ranse_start_at' => $this->trackRecord->ranse_start_at ?? null,
|
|
|
+ 'order_price' => $this->order->price,
|
|
|
+ 'order_created_at' => $this->order->created_at,
|
|
|
+ 'user_ranse_ip' => $this->trackRecord->ranse_ip ?? '',
|
|
|
]);
|
|
|
} else {
|
|
|
DB::table('callback_report_charge_record')
|
|
@@ -113,11 +118,16 @@ class JuliangAccountReportChargeService
|
|
|
'filter_reason' => $this->result['info_str'] ?? '允许回传',
|
|
|
'report_success' => intval($this->result['report_success'] ?? false),
|
|
|
'report_result' => \json_encode($this->result['report_result'] ?? []),
|
|
|
+ 'report_param' => \json_encode($this->result['report_param'] ?? []),
|
|
|
'updated_at' => $now,
|
|
|
'advertiser_id' => $this->trackRecord->advertiser_id ?? '',
|
|
|
'adv_promotion_id' => $this->trackRecord->adv_promotion_id ?? '',
|
|
|
'config_rate' => $this->result['config_rate'],
|
|
|
'current_rate' => $this->result['current_rate'],
|
|
|
+ 'user_ranse_start_at' => $this->trackRecord->ranse_start_at ?? null,
|
|
|
+ 'order_price' => $this->order->price,
|
|
|
+ 'order_created_at' => $this->order->created_at,
|
|
|
+ 'user_ranse_ip' => $this->trackRecord->ranse_ip ?? '',
|
|
|
]);
|
|
|
}
|
|
|
|
|
@@ -327,6 +337,11 @@ class JuliangAccountReportChargeService
|
|
|
$this->result['need_report'] = false;
|
|
|
$this->result['info_type'] = 'no_track_info';
|
|
|
$this->result['info_str'] = '无匹配用户';
|
|
|
+ return;
|
|
|
}
|
|
|
+
|
|
|
+ $this->result['report_param'] = [
|
|
|
+ 'callback' => $this->trackRecord->callback,
|
|
|
+ ];
|
|
|
}
|
|
|
}
|