Ken 1 周之前
父節點
當前提交
b76056dbeb
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Http/Controllers/api/Issue.php

+ 5 - 0
app/Http/Controllers/api/Issue.php

@@ -72,6 +72,11 @@ class Issue extends BaseController
             $list = Prediction::forPage($page, $limit)
                 ->orderByDesc('issue_no')
                 ->get();
+            foreach ($list as &$item) {
+                $item['day'] = date("m-d H:i", strtotime($item['updated_at']));
+            }
+
+
         } catch (ValidationException $e) {
             return $this->error($e->validator->errors()->first());
         } catch (Exception $e) {