wesmiler 3 лет назад
Родитель
Сommit
1948865eeb
1 измененных файлов с 3 добавлено и 1 удалено
  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() ?: '更新失败');