chuweiqiang пре 1 година
родитељ
комит
c21a1f79d1
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 1 1
      .idea/workspace.xml
  2. 2 0
      application/api/controller/Task.php

+ 1 - 1
.idea/workspace.xml

@@ -568,7 +568,7 @@
       <workItem from="1710548895690" duration="25657000" />
       <workItem from="1710722050864" duration="8908000" />
       <workItem from="1710808231575" duration="7017000" />
-      <workItem from="1710817453185" duration="6544000" />
+      <workItem from="1710817453185" duration="7371000" />
     </task>
     <servers />
   </component>

+ 2 - 0
application/api/controller/Task.php

@@ -564,6 +564,7 @@ class Task extends Base
         //top_search hot_num
 
         $start_time = date('Y-m-d 00:00:00');
+        $start_time1 = date('Y-m-d 00:00:00',strtotime('-1 days'));
 //        $end_time = date('Y-m-d 23:59:59',strtotime('-7 days'));
 //        return $start_time.'---'.$end_time;
 
@@ -601,6 +602,7 @@ class Task extends Base
         $where = [];
         if($clean_days > 1){
             $where[] = ['release_time','< time',$start_time];
+            $where[] = ['release_time','< time',$start_time1];
         }
 
 // 使用示例