彭俊 6 年 前
コミット
2e4d3ed0f9
1 ファイル変更12 行追加1 行削除
  1. 12 1
      app/Http/Model/StZqMatch.php

+ 12 - 1
app/Http/Model/StZqMatch.php

@@ -2,6 +2,10 @@
 namespace App\Http\Model;
 
 use Illuminate\Database\Eloquent\Model;
+use App\Http\Model\StLqMatch as LqMatchModel;
+use App\Http\Model\StWqMatch as WqMatchModel;
+use App\Http\Model\StBqMatch as BqMatchModel;
+
 
 
 /**
@@ -34,8 +38,15 @@ class StZqMatch extends Model
             ['status','=',0]
         ];
 
+        //更新数据
+        $up_data = ['status'=>6,'handle_mark'=>trans('handleMatch.re_match_auto')];
+
+
         //更新开赛时间为前一分钟  并且 未开始的赛事 为已取消
-        self::where($where)->update(['status'=>6,'handle_mark'=>trans('handleMatch.re_match_auto')]);
+        self::where($where)->update($up_data);
+        LqMatchModel::where($where)->update($up_data);
+        WqMatchModel::where($where)->update($up_data);
+        BqMatchModel::where($where)->update($up_data);
     }