彭俊 6 vuotta sitten
vanhempi
commit
afd3a5277f
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7 3
      Application/Sports/Controller/MatchListWeb.php

+ 7 - 3
Application/Sports/Controller/MatchListWeb.php

@@ -160,7 +160,7 @@ class MatchListWeb extends Controller{
     }
 
     /*
-     * 获取赛事数据
+     * 获取赛事数据1
      */
     public function getMatchData($type,$game_code,$p_code='',$time='',$lg_ids=[],$search=''){
         //$p_code 获取具体玩法下的赛事数据
@@ -173,9 +173,13 @@ class MatchListWeb extends Controller{
         if($p_code){
             //时间条件
             if(!empty($time)){
-                if($time == 'all'){
+                if($time == 'all'){//全部七天
                     $timeWhere[] = ['match_date','<',date("Y-m-d",strtotime("+1weeks",strtotime(date('Y-m-d',time()))))];
-                }else{
+                } 
+                else if($time == 'other'){//七天后 所有
+                    $timeWhere[] = ['match_date','>',date("Y-m-d",strtotime("+1weeks",strtotime(date('Y-m-d',time()))))];
+                }
+                else{//根据 传入 日期
                     $timeWhere[] = ['match_date',$time];
                 }
             }