正在显示
1 个修改的文件
包含
5 行增加
和
3 行删除
@@ -478,10 +478,12 @@ class Sun extends Api | @@ -478,10 +478,12 @@ class Sun extends Api | ||
478 | */ | 478 | */ |
479 | public function TableList() | 479 | public function TableList() |
480 | { | 480 | { |
481 | + $Debug = 1628438400; | ||
482 | +// $Debug = 1629734400; | ||
481 | $Params = $this->request->param(); | 483 | $Params = $this->request->param(); |
482 | $Date = input('date'); | 484 | $Date = input('date'); |
483 | $Map['s.createtime'] = ['between', [strtotime($Date), strtotime($Date) + 86399]]; | 485 | $Map['s.createtime'] = ['between', [strtotime($Date), strtotime($Date) + 86399]]; |
484 | - if (strtotime($Date) > 1629734400 || strtotime($Date) == 1629734400) { | 486 | + if (strtotime($Date) > $Debug || strtotime($Date) == $Debug) { |
485 | $Info = Db::name('sun') | 487 | $Info = Db::name('sun') |
486 | ->alias('s') | 488 | ->alias('s') |
487 | ->order('s.id desc') | 489 | ->order('s.id desc') |
@@ -529,7 +531,7 @@ class Sun extends Api | @@ -529,7 +531,7 @@ class Sun extends Api | ||
529 | } | 531 | } |
530 | } | 532 | } |
531 | /*时间*/ | 533 | /*时间*/ |
532 | - if (strtotime($Date) > 1629734400 || strtotime($Date) == 1629734400) { | 534 | + if (strtotime($Date) > $Debug || strtotime($Date) == $Debug) { |
533 | foreach (Db::name('time')->field('title')->order('id desc')->select() as $k => $v) { | 535 | foreach (Db::name('time')->field('title')->order('id desc')->select() as $k => $v) { |
534 | $Time[] = $v['title']; | 536 | $Time[] = $v['title']; |
535 | } | 537 | } |
@@ -547,7 +549,7 @@ class Sun extends Api | @@ -547,7 +549,7 @@ class Sun extends Api | ||
547 | $Tables = []; | 549 | $Tables = []; |
548 | $i = 0; | 550 | $i = 0; |
549 | /*时刻增加*/ | 551 | /*时刻增加*/ |
550 | - if(strtotime($Date)>1629734400||strtotime($Date)==1629734400)$Shijian=12; | 552 | + if(strtotime($Date)>$Debug||strtotime($Date)==$Debug)$Shijian=12; |
551 | else $Shijian=11; | 553 | else $Shijian=11; |
552 | foreach ($Table as $k => $v) { | 554 | foreach ($Table as $k => $v) { |
553 | $Tables[$i][] = $v; | 555 | $Tables[$i][] = $v; |
-
请 注册 或 登录 后发表评论