...
|
...
|
@@ -478,10 +478,12 @@ class Sun extends Api |
|
|
*/
|
|
|
public function TableList()
|
|
|
{
|
|
|
$Debug = 1628438400;
|
|
|
// $Debug = 1629734400;
|
|
|
$Params = $this->request->param();
|
|
|
$Date = input('date');
|
|
|
$Map['s.createtime'] = ['between', [strtotime($Date), strtotime($Date) + 86399]];
|
|
|
if (strtotime($Date) > 1629734400 || strtotime($Date) == 1629734400) {
|
|
|
if (strtotime($Date) > $Debug || strtotime($Date) == $Debug) {
|
|
|
$Info = Db::name('sun')
|
|
|
->alias('s')
|
|
|
->order('s.id desc')
|
...
|
...
|
@@ -529,7 +531,7 @@ class Sun extends Api |
|
|
}
|
|
|
}
|
|
|
/*时间*/
|
|
|
if (strtotime($Date) > 1629734400 || strtotime($Date) == 1629734400) {
|
|
|
if (strtotime($Date) > $Debug || strtotime($Date) == $Debug) {
|
|
|
foreach (Db::name('time')->field('title')->order('id desc')->select() as $k => $v) {
|
|
|
$Time[] = $v['title'];
|
|
|
}
|
...
|
...
|
@@ -547,7 +549,7 @@ class Sun extends Api |
|
|
$Tables = [];
|
|
|
$i = 0;
|
|
|
/*时刻增加*/
|
|
|
if(strtotime($Date)>1629734400||strtotime($Date)==1629734400)$Shijian=12;
|
|
|
if(strtotime($Date)>$Debug||strtotime($Date)==$Debug)$Shijian=12;
|
|
|
else $Shijian=11;
|
|
|
foreach ($Table as $k => $v) {
|
|
|
$Tables[$i][] = $v;
|
...
|
...
|
|