StZqLocalMatch.php 611 B

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