StZqLocalMatch.php 637 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * Class StZqLocalMatch
  6. * @package App\Http\Model
  7. * 足球 赛事 中间表
  8. */
  9. class StZqLocalMatch extends Model
  10. {
  11. protected $table = 'st_zq_local_match';
  12. public $timestamps = false;
  13. /*
  14. * 获取一段时间内所有赛事
  15. */
  16. public static function getMatchID($models){
  17. $match_data = $models['model_local_match']::select('match_id','others_match_id','source')
  18. ->where([['ctime','>',date('Y-m-d H:i:s' , strtotime("-3 day"))]])
  19. ->get()
  20. ->toArray();
  21. return $match_data;
  22. }
  23. }