...
|
...
|
@@ -544,8 +544,6 @@ class PersonController extends RestBaseController |
|
|
public function updateInfo(){
|
|
|
if($this->request->isPost()){
|
|
|
$data = $this->request->post();
|
|
|
$this->success('修改成功',$data);
|
|
|
|
|
|
$userModel = new UserModel();
|
|
|
$info = $this->user;
|
|
|
if($info['is_update'] == 0 && !empty($data['user_login']) && isset($data['user_login'])){
|
...
|
...
|
@@ -559,6 +557,7 @@ class PersonController extends RestBaseController |
|
|
$images = explode(',',$data['images']);
|
|
|
$data['images'] = $this->getRelationUrl($images);
|
|
|
}
|
|
|
unset($data['project_id']);
|
|
|
$res = $userModel->where('id',$this->userId)->update($data);
|
|
|
if($res){
|
|
|
$this->success('修改成功');
|
...
|
...
|
|