wesmiler hace 3 años
padre
commit
1948865eeb
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      source/application/store/controller/User.php

+ 3 - 1
source/application/store/controller/User.php

@@ -44,7 +44,9 @@ class User extends Controller
         }
 
         // 编辑记录
-        if ($model->edit($this->postData('user'))) {
+        $post = $this->postData('user');
+        $post['user_id'] = $user_id;
+        if ($model->edit($post)) {
             return $this->renderSuccess('更新成功', url('user/index'));
         }
         return $this->renderError($model->getError() ?: '更新失败');