fly 4 سال پیش
والد
کامیت
50ce288c02
1فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 17 0
      src/Services/LandingPage/LandingPageLinkService.php

+ 17 - 0
src/Services/LandingPage/LandingPageLinkService.php

@@ -11,6 +11,7 @@ use General\Models\OfficialAccount\OfficialAccount;
 use General\Models\Report\BaiDuAdAccount;
 use General\Models\Report\ReportUserBindRecord;
 use General\Models\Report\ReportUserChargeRecord;
+use General\Models\User\User;
 use General\Services\Report\BaseReport;
 use General\Services\Config\ConfigService;
 use General\Services\LandingPage\ChargeFeedBack\NormalChargeFeedBack;
@@ -307,6 +308,22 @@ class LandingPageLinkService
                     'content' => $result['result'] ? '手动回传' : $result['content'],
                 ]
             );
+            $service = new Report;
+            $user = User::find($report_user->uid);
+            if ($is_qapp) {
+                $service->report('api/report/add', [
+                    'source' => BaseConst::Platform,
+                    'adid' => $report_user->adid,
+                    'channel_id' => $user->distribution_channel_id,
+                    'send_order_id' => $user->send_order_id,
+                ]);
+            } else {
+                $service->report('api/report/add', [
+                    'source' => BaseConst::Platform,
+                    'adid' => $report_user->adid,
+                    'channel_id' => $user->distribution_channel_id,
+                ]);
+            }
         }
     }
 }