ソースを参照

修改足球赛事的状态

lip 12 時間 前
コミット
f8fb1bc600
2 ファイル変更4 行追加20 行削除
  1. 3 17
      app/Console/Commands/Sport.php
  2. 1 3
      app/Console/Commands/SportOdds.php

+ 3 - 17
app/Console/Commands/Sport.php

@@ -33,7 +33,7 @@ class Sport extends Command
             'BT' => 1,
             'P' => 1,
             'SUSP' => 1,
-            'INT' => 1,
+            'INT' => 4,
             'FT' => 2,
             'AET' => 2,
             'PEN' => 2,
@@ -56,9 +56,7 @@ class Sport extends Command
         'Break Time' => 1,
         'Penalty In Progress' => 1,
         'Match Suspended' => 1,
-        'Match Interrupted' => 1,
-        'Match Finished' => 2,
-        'Match Finished' => 2,
+        'Match Interrupted' => 4,
         'Match Finished' => 2,
         'Match Postponed' => 3,
         'Match Cancelled' => 4,
@@ -67,18 +65,6 @@ class Sport extends Command
         'WalkOver' => 4,
         'In Progress' => 1,
     ];        
-    
-    protected $fixture_status = [
-        'First Half' => 1,
-        'First Half, Kick Off' => 1,
-        'Halftime' => 1,
-        'Second Half' => 1,
-        'Second Half, 2nd Half Started' => 1,
-        'Extra Time' => 1,
-        'Break Time' => 1,
-        'Penalty In Progress' => 1,
-    ];     
-   
 
     /**
      * 命令描述
@@ -215,7 +201,7 @@ class Sport extends Command
             $fixture_status = null;
             if (isset($item['fixture']['status']['long']) ) {
                 $long = $item['fixture']['status']['long'];
-                if (isset($this->fixture_status[$long])) {
+                if (isset($this->long_status[$long])) {
                     $fixture_status = json_encode($item['fixture']['status']);
                     $sport_data['fixture_status'] = $fixture_status;
                 } 

+ 1 - 3
app/Console/Commands/SportOdds.php

@@ -34,9 +34,7 @@ class SportOdds extends Command
         'Break Time' => 1,
         'Penalty In Progress' => 1,
         'Match Suspended' => 1,
-        'Match Interrupted' => 1,
-        'Match Finished' => 2,
-        'Match Finished' => 2,
+        'Match Interrupted' => 4,
         'Match Finished' => 2,
         'Match Postponed' => 3,
         'Match Cancelled' => 4,