作者 景龙
1 个管道 的构建 通过 耗费 0 秒

销毁project_id

... ... @@ -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('修改成功');
... ...