|
|
@@ -13,17 +13,17 @@ class SportsSoccer extends BaseModel {
|
|
|
|
|
|
function getinfo($list = 10, $page, $where = '',$orwhere = '')
|
|
|
{
|
|
|
- $zqmatch = $this->where('status','<','2')->where('match_date','<=',date("Y-m-d",time()))->get();
|
|
|
- for($b=0;$b<count($zqmatch);$b++){
|
|
|
- if($zqmatch[$b]->match_date < date("Y-m-d",time()) && strtotime($zqmatch[$b]->match_time.' '.$zqmatch[$b]->match_time)+7200 < time()){
|
|
|
- \App\Models\SportsSoccer::where('id',$zqmatch[$b]->id)->update(['status'=>'2']);
|
|
|
- \App\Models\Stzqresultrecord::where('match_id',$zqmatch[$b]->match_id)->update(['status'=>'2']);
|
|
|
- }
|
|
|
- if($zqmatch[$b]->match_date == date("Y-m-d",time()) && strtotime($zqmatch[$b]->match_date.' '.$zqmatch[$b]->match_time)+7200 < time()){
|
|
|
- \App\Models\SportsSoccer::where('id',$zqmatch[$b]->id)->update(['status'=>'2']);
|
|
|
- \App\Models\Stzqresultrecord::where('match_id',$zqmatch[$b]->match_id)->update(['status'=>'2']);
|
|
|
- }
|
|
|
- }
|
|
|
+// $zqmatch = $this->where('status','<','2')->where('match_date','<=',date("Y-m-d",time()))->get();
|
|
|
+// for($b=0;$b<count($zqmatch);$b++){
|
|
|
+// if($zqmatch[$b]->match_date < date("Y-m-d",time()) && strtotime($zqmatch[$b]->match_time.' '.$zqmatch[$b]->match_time)+7200 < time()){
|
|
|
+// \App\Models\SportsSoccer::where('id',$zqmatch[$b]->id)->update(['status'=>'2']);
|
|
|
+// \App\Models\Stzqresultrecord::where('match_id',$zqmatch[$b]->match_id)->update(['status'=>'2']);
|
|
|
+// }
|
|
|
+// if($zqmatch[$b]->match_date == date("Y-m-d",time()) && strtotime($zqmatch[$b]->match_date.' '.$zqmatch[$b]->match_time)+7200 < time()){
|
|
|
+// \App\Models\SportsSoccer::where('id',$zqmatch[$b]->id)->update(['status'=>'2']);
|
|
|
+// \App\Models\Stzqresultrecord::where('match_id',$zqmatch[$b]->match_id)->update(['status'=>'2']);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
$where[] = array('st_zq_league.name_chinese','<>','');
|
|
|
|