|
|
@@ -18,7 +18,7 @@ class StBqResult extends Model
|
|
|
public static function BQresult($model){
|
|
|
//获取赛事表15天内所有非 未开始赛事
|
|
|
$matchData = $model['model_match']::select('id','home_team','guest_team','lg_id','status','tag','match_time')
|
|
|
- ->where([['status','>',0],['match_date','>',date('Y-m-d', strtotime("-15 day"))]])
|
|
|
+ ->where([['ctime','>',date('Y-m-d H:m:i', strtotime("-7 day"))]])
|
|
|
->get()
|
|
|
->toarray();
|
|
|
|
|
|
@@ -26,7 +26,7 @@ class StBqResult extends Model
|
|
|
if(empty($matchData)) return Response::success();
|
|
|
//获取赛事结果表 所有当月
|
|
|
$matchData_r = $model['model_result']::select('match_id')
|
|
|
- ->where([['status','>',0],['update_time','>',date('Y-m-d', strtotime("-15 day"))]])
|
|
|
+ ->where([['ctime','>',date('Y-m-d H:m:i', strtotime("-7 day"))]])
|
|
|
->get()
|
|
|
->toarray();
|
|
|
|