|
@@ -135,7 +135,7 @@ class CallbackLogController extends CatchController
|
|
|
|
|
|
$record = DB::table('callback_report_charge_record')
|
|
|
->where('id', $logId)
|
|
|
- ->select('report_param')
|
|
|
+ ->select('report_param', 'filter_type')
|
|
|
->first();
|
|
|
if(!$record || !$record->report_param) {
|
|
|
CommonBusinessException::throwError(Errors::CALLBACK_RECORD_NOT_EXISTS);
|
|
@@ -147,7 +147,12 @@ class CallbackLogController extends CatchController
|
|
|
}
|
|
|
|
|
|
$reportService = new TiktokEventReportService();
|
|
|
- $result = $reportService->reportCharge($requestInfo);
|
|
|
+ if('roi_report_all' == $record->filter_type) {
|
|
|
+ $result = $reportService->roiReportCharge($requestInfo);
|
|
|
+ } else {
|
|
|
+ $result = $reportService->reportCharge($requestInfo);
|
|
|
+ }
|
|
|
+
|
|
|
$reportSuccess = 0;
|
|
|
if($result['result']) {
|
|
|
$resultContent = \json_decode($result['content'], true);
|