|
|
@@ -723,9 +723,11 @@ class CommonFunction {
|
|
|
$where = [
|
|
|
['status','<','2'],
|
|
|
['is_rollball','=',1],
|
|
|
-// ['match_date','=',date("Y-m-d")],
|
|
|
-// ['match_time','>',date("H:i:s", time()-(90*60))],
|
|
|
-// ['match_time','<',date("H:i:s", time())]
|
|
|
+ /*
|
|
|
+ ['match_date','=',date("Y-m-d")],
|
|
|
+ ['match_time','>',date("H:i:s", time()-(90*60))],
|
|
|
+ ['match_time','<',date("H:i:s", time())]
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StSoon'://即将 今日两小时内开始
|
|
|
@@ -734,42 +736,47 @@ class CommonFunction {
|
|
|
['match_date','=',date("Y-m-d")],
|
|
|
['match_time','<',date("H:i:s", strtotime("+2 hour"))],
|
|
|
['match_time','>',date("H:i:s", time())]
|
|
|
-
|
|
|
-// ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StToday'://今日 今日未开始未结束
|
|
|
$where = [
|
|
|
-// ['is_today', '=', 1],
|
|
|
-
|
|
|
-// ['type', '=', '1'],
|
|
|
['status', '<', '2'],
|
|
|
['match_date','=',date("Y-m-d")],
|
|
|
['match_time','>',date("H:i:s", time())],
|
|
|
-// ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ ['is_today', '=', 1],
|
|
|
+ ['type', '=', '1'],
|
|
|
+ ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StMorningPlate'://早盘
|
|
|
$where = [
|
|
|
+ ['status', '<', '2'],
|
|
|
['is_morningplate', '=', 1],
|
|
|
['us_time','>',$this->qgmdate('Y-m-d H:i:s', '', -4)],
|
|
|
-// ['match_date','>',date("Y-m-d",time())],
|
|
|
-// ['match_time','>',date("H:i:s", time())],
|
|
|
-// ['type', '=', '2'],
|
|
|
- ['status', '<', '2'],
|
|
|
-// ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ ['match_date','>',date("Y-m-d",time())],
|
|
|
+ ['match_time','>',date("H:i:s", time())],
|
|
|
+ ['type', '=', '2'],
|
|
|
+ ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StStringScene'://串场
|
|
|
$where = [
|
|
|
+ ['status', '<', '2'],
|
|
|
['is_stringscene', '=', 1],
|
|
|
['us_time','>',$this->qgmdate('Y-m-d H:i:s', '', -4)],
|
|
|
-
|
|
|
-// ['match_date','>',date("Y-m-d",time())],
|
|
|
-// ['match_time','>',date("H:i:s", time())],
|
|
|
-// ['type', '=', '3'],
|
|
|
- ['status', '<', '2'],
|
|
|
-// ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ ['match_date','>',date("Y-m-d",time())],
|
|
|
+ ['match_time','>',date("H:i:s", time())],
|
|
|
+ ['type', '=', '3'],
|
|
|
+ ['utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StChampion'://冠军
|
|
|
@@ -786,11 +793,12 @@ class CommonFunction {
|
|
|
$where = [
|
|
|
[$model_match.'.is_rollball','=',1],
|
|
|
[$model_match.'.status','<','2'],
|
|
|
-// [$model_match.'.status','>','0'],
|
|
|
-
|
|
|
-// [$model_match.'.match_date','=',date("Y-m-d")],
|
|
|
-// [$model_match.'.match_time','>',date("H:i:s", time()-(90*60))],
|
|
|
-// [$model_match.'.match_time','<',date("H:i:s", time())]
|
|
|
+ /*
|
|
|
+ [$model_match.'.status','>','0'],
|
|
|
+ [$model_match.'.match_date','=',date("Y-m-d")],
|
|
|
+ [$model_match.'.match_time','>',date("H:i:s", time()-(90*60))],
|
|
|
+ [$model_match.'.match_time','<',date("H:i:s", time())]
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StSoon'://即将 今日两小时内开始
|
|
|
@@ -799,17 +807,21 @@ class CommonFunction {
|
|
|
[$model_match.'.match_date','=',date("Y-m-d")],
|
|
|
[$model_match.'.match_time','<',date("H:i:s", strtotime("+2 hour"))],
|
|
|
[$model_match.'.match_time','>',date("H:i:s", time())]
|
|
|
-// [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StToday'://今日 今日未开始未结束
|
|
|
$where = [
|
|
|
-// [$model_match.'.is_today','=',1],
|
|
|
-// [$model_match.'.type', '=', '1'],
|
|
|
- [$model_match.'.status', '<', '2'],
|
|
|
+ [$model_match.'.status', '<', '2'],
|
|
|
[$model_match.'.match_date','=',date("Y-m-d")],
|
|
|
[$model_match.'.match_time','>',date("H:i:s", time())],
|
|
|
-// [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ [$model_match.'.utime','>',date("Y-m-d").' 00:00:00'],
|
|
|
+ [$model_match.'.is_today','=',1],
|
|
|
+ [$model_match.'.type', '=', '1'],
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'all'://所有赛事
|
|
|
@@ -819,25 +831,28 @@ class CommonFunction {
|
|
|
break;
|
|
|
case 'StMorningPlate'://早盘
|
|
|
$where = [
|
|
|
+ [$model_match.'.status', '<', '2'],
|
|
|
[$model_match.'.is_morningplate','=',1],
|
|
|
[$model_match.'.us_time','>',$this->qgmdate('Y-m-d H:i:s', '', -4)],
|
|
|
-// [$model_match.'.match_date','>',date("Y-m-d",time())],
|
|
|
-// [$model_match.'.match_time','>',date("H:i:s", time())],
|
|
|
-// [$model_match.'.type', '=', '2'],
|
|
|
- [$model_match.'.status', '<', '2'],
|
|
|
-// [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ /*
|
|
|
+ [$model_match.'.match_date','>',date("Y-m-d",time())],
|
|
|
+ [$model_match.'.match_time','>',date("H:i:s", time())],
|
|
|
+ [$model_match.'.type', '=', '2'],
|
|
|
+ [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StStringScene'://串场 查询串场状态为1 开赛时间大于当前时间
|
|
|
$where = [
|
|
|
[$model_match.'.is_stringscene','=',1],
|
|
|
[$model_match.'.us_time','>',$this->qgmdate('Y-m-d H:i:s', '', -4)],
|
|
|
-
|
|
|
-// [$model_match.'.match_date','>',date("Y-m-d",time())],
|
|
|
-// [$model_match.'.match_time','>',date("H:i:s", time())],
|
|
|
-// [$model_match.'.type', '=', '3'],
|
|
|
- [$model_match.'.status', '<', '2'],
|
|
|
-// [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ [$model_match.'.status', '<', '2'],
|
|
|
+ /*
|
|
|
+ [$model_match.'.match_date','>',date("Y-m-d",time())],
|
|
|
+ [$model_match.'.match_time','>',date("H:i:s", time())],
|
|
|
+ [$model_match.'.type', '=', '3'],
|
|
|
+ [$model_match.'.utime','>',date("Y-m-d").' 00:00:00']
|
|
|
+ */
|
|
|
];
|
|
|
break;
|
|
|
case 'StChampion'://冠军
|