|
@@ -265,7 +265,7 @@ class User extends Api
|
|
|
$newone = input('avatar', '', 'trim,strip_tags,htmlspecialchars');
|
|
|
}
|
|
|
if($field == 'photo_images'){
|
|
|
- $newone = input('avatar', '', 'trim,strip_tags,htmlspecialchars');
|
|
|
+ $newone = input('photo_images', '', 'trim,strip_tags,htmlspecialchars');
|
|
|
}
|
|
|
|
|
|
$data[$field] = $newone;
|
|
@@ -287,7 +287,6 @@ class User extends Api
|
|
|
if(empty($data)){
|
|
|
$this->error('没有任何改变');
|
|
|
}
|
|
|
-
|
|
|
Db::name('user')->where('id',$this->auth->id)->update($data);
|
|
|
$this->success();
|
|
|
}
|