| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Http\Model;
- use Illuminate\Database\Eloquent\Model;
- /**
- * Class Account
- * @package App\Sports\Model
- * 足球 赛事关联
- */
- class StZqLocalMatch extends Model
- {
- protected $table = 'st_zq_local_match';
- public $timestamps = false;
- //获取三天内所有的赛事id
- public static function getMatchID($models){
- $match_data = $models['model_local_match']::select('match_id','others_match_id','source')
- ->where([['ctime','>',date('Y-m-d H:i:s' , strtotime("-3 day"))]])
- ->get()
- ->toArray();
- return $match_data;
- }
- }
|