Ken 1 week ago
parent
commit
84f82e7da0
1 changed files with 1 additions and 4 deletions
  1. 1 4
      app/Http/Controllers/api/Issue.php

+ 1 - 4
app/Http/Controllers/api/Issue.php

@@ -27,10 +27,7 @@ class Issue extends BaseController
             ]);
             $date = request()->input('date', null);
             if (!$date) $date = date("Y-m-d");
-//            CaoHistory::
-
-
-            $list = [];
+            $list = CaoHistory::where('date', $date)->first();
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {