Quellcode durchsuchen

删除测试条件

liuzejian vor 1 Jahr
Ursprung
Commit
7bb23f3d00

+ 6 - 1
app/Service/Callback/JLEventReportChargeService.php

@@ -233,7 +233,6 @@ class JLEventReportChargeService
                     $this->configLog->min_money, $this->configLog->max_money);
                 return;
             } elseif (3 == $this->configLog->callback_type) {
-                // ToDo,检测传几卡几
                 $sm = explode(':', $this->configLog->callback_param);
                 $this->chuanNkaM($this->configLog, $sm[0], $sm[1]);
                 if($this->configLog->flag) {
@@ -249,6 +248,12 @@ class JLEventReportChargeService
         }
     }
 
+    /**
+     * 判断当前是回传还是不回传
+     * @param $obj
+     * @param $s 传几
+     * @param $m 卡几
+     */
     private function chuanNkaM($obj, $s, $m)
     {
         if($obj->flag) {

+ 0 - 8
app/Service/Callback/Tiktok/TiktokEventReportService.php

@@ -132,14 +132,6 @@ class TiktokEventReportService
      */
     public function report(string $url, array $query_params)
     {
-
-        return [
-            'result' => rand(1, 5) > 3 ? true : false,
-            'content' => \json_encode(['code' => 0]),
-            'query_params' => $query_params,
-        ];
-
-
         $result = false;
         $content = '';
         try {

+ 1 - 1
tests/Jobs/Callback/ReportChargeTest.php

@@ -113,7 +113,7 @@ class ReportChargeTest extends \Tests\TestCase
         DB::table('orders')->where('id', '>=', 10001)->delete();
         DB::table('orders')->insert($orders);
         DB::table('callback_report_ranse_record')->delete();
-        DB::table('callback_report_charge_record')->delete();
+//        DB::table('callback_report_charge_record')->delete();
         DB::table('callback_report_ranse_record')->insert($ranses);
     }
 }