wesmiler 3 년 전
부모
커밋
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() ?: '更新失败');