소스 검색

当然规格汇总

dong025 6 일 전
부모
커밋
5124db7094
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      app/api/controller/Worker.php

+ 1 - 5
app/api/controller/Worker.php

@@ -62,13 +62,9 @@ class Worker extends Base
         $endTime = date('Y-m-d H:i:s', $endTime);
         $time=$startTime.','.$endTime;
 
-        $time = $this->request->post('create_time/s',$time); //日期
-        $this->time=$time;
-        if (!empty($time)) {
-            $arr = explode(',', $time);
+        $arr = explode(',', $time);
             $where[] = ['sl.createtime', '>=', strtotime($arr[0])];
             $where[] = ['sl.createtime', '<=', strtotime($arr[1])];
-        }
 
         $pid = $this->userinfo['id'];
         $where[] = ['sl.user_id', '=', $pid];