zhoulj 4 anni fa
parent
commit
1d98d9a71c

+ 1 - 0
src/Controllers/LandingPage/Transformers/ReportOrderTramsformer.php

@@ -25,6 +25,7 @@ class ReportOrderTramsformer
         'tiktok' => '抖音',
         'iqiyi' => '爱奇艺',
         'uc' => 'UC',
+        'uchc' => 'UCHC',
         'weibo' => '微博粉丝通',
         'tencent' => '腾讯',
         'kuaishou' => '快手',

+ 5 - 2
src/Services/Report/QappUchcReport.php

@@ -19,8 +19,9 @@ class QappUchcReport extends BaseReport
 
     public function getRegisterQueryParams(ReportUserBindRecord $user): array
     {
+        $this->report_url = $user->callback;
+        
         return  [
-            'callback' => $user->callback,
             'type' => $this->register_event_type,
             'event_time' => time() * 100,
             'source' => $user->source,
@@ -30,8 +31,10 @@ class QappUchcReport extends BaseReport
 
     public function getChargeQueryParams(ReportUserBindRecord $user, float $amount): array
     {
+        // uc回传用的地址是callback的
+        $this->report_url = $user->callback;
+        
         return  [
-            'callback' => $user->callback,
             'type' => $this->charge_event_type,
             'event_time' => time() * 100,
             'source' => $user->source,