瀏覽代碼

调整早盘时间条件

彭俊 6 年之前
父節點
當前提交
b3f2ae31f2
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      Biz/Common/CommonFunction.php

+ 8 - 4
Biz/Common/CommonFunction.php

@@ -785,10 +785,12 @@ class CommonFunction {
                     ];
                     break;
                 case 'StMorningPlate'://早盘
+                    //获取当天结束时间戳
+                    $endTime = mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
                     $where = [
                         ['status', '<', '2'],
-                        ['is_morningplate', '=', 1],
-                        ['us_time','>',$this->qgmdate('Y-m-d H:i:s', '', -4)],
+                        // ['is_morningplate', '=', 1],
+                        ['us_time','>',$this->qgmdate('Y-m-d H:i:s', $endTime, -4)],
                         /*
                         ['match_date','>',date("Y-m-d",time())],
                         ['match_time','>',date("H:i:s", time())],
@@ -889,10 +891,12 @@ class CommonFunction {
                     ];
                     break;
                 case 'StMorningPlate'://早盘
+                    //获取当天结束的时间戳
+                    $endTime = mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
                     $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.'.is_morningplate','=',1],
+                        [$model_match.'.us_time','>',$this->qgmdate('Y-m-d H:i:s',$endTime , -4)],
                         /*
                         [$model_match.'.match_date','>',date("Y-m-d",time())],
                         [$model_match.'.match_time','>',date("H:i:s", time())],