Browse Source

修改添加

liaofei 2 năm trước cách đây
mục cha
commit
2c3055b6fd

+ 2 - 1
crmeb/app/adminapi/controller/v1/setting/SystemRoute.php

@@ -97,7 +97,7 @@ class SystemRoute extends AuthController
      */
      */
     public function save($id = 0)
     public function save($id = 0)
     {
     {
-        $data = $this->request->getMore([
+        $data = $this->request->postMore([
             ['cate_id', 0],
             ['cate_id', 0],
             ['name', ''],
             ['name', ''],
             ['path', ''],
             ['path', ''],
@@ -126,6 +126,7 @@ class SystemRoute extends AuthController
         if ($id) {
         if ($id) {
             $this->services->update($id, $data);
             $this->services->update($id, $data);
         } else {
         } else {
+            $data['add_time'] = date('Y-m-d H:i:s');
             $this->services->save($data);
             $this->services->save($data);
         }
         }