vali %!s(int64=6) %!d(string=hai) anos
pai
achega
8d81a24179
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Http/Model/StZqResult.php

+ 4 - 0
app/Http/Model/StZqResult.php

@@ -518,6 +518,10 @@ class StZqResult extends Model
         $warn_json = self::where(['match_id' => $match_id])->SELECT('warn_more')->first()->warn_more;
         //转数组
         $warn_arr = json_decode($warn_json,true);
+        //删除初始 危险球 数据
+        foreach($warn_arr as $k=>$v){
+            if($v['rtype'] == 0) unset($warn_arr[$k]);
+        }
 
         if($match_id > 0 and !empty($warn_data)){
             $data = [];