|
|
@@ -13,7 +13,7 @@ class SportsTennis extends BaseModel {
|
|
|
|
|
|
function getinfo($list = 10, $page, $where = '',$orwhere = '')
|
|
|
{
|
|
|
- $wqmatch = $this->where('status','<','2')->get();
|
|
|
+ $wqmatch = $this->where('status','<','2')->where('match_date','<=',date("Y-m-d",time()))->get();
|
|
|
for($b=0;$b<count($wqmatch);$b++){
|
|
|
if($wqmatch[$b]->match_date < date("Y-m-d",time()) && strtotime($wqmatch[$b]->match_time.' '.$wqmatch[$b]->match_time)+10800 < time()){
|
|
|
\App\Models\SportsTennis::where('match_id',$wqmatch[$b]->match_id)->update(['status'=>'2']);
|