|
@@ -522,10 +522,11 @@ class User extends Api
|
|
|
|
|
|
$isset = Db::name('user_qiye')->where('uid',$user['id'])->find();
|
|
$isset = Db::name('user_qiye')->where('uid',$user['id'])->find();
|
|
|
|
|
|
- $data['avatar_image'] = config('site.httpurl').'/assets/img/qrcode.png';
|
|
|
|
|
|
+ if(!isset($data['avatar_image']) || empty($data['avatar_image'])) $data['avatar_image'] = config('site.httpurl').'/assets/img/qrcode.png';
|
|
|
|
|
|
if ($isset) {
|
|
if ($isset) {
|
|
- return $this->error('您的审核已经提交过了');
|
|
|
|
|
|
+ Db::name('user_qiye')->where('id',$isset['$id'])->update($data);
|
|
|
|
+ return $this->error('操作成功');
|
|
}
|
|
}
|
|
$data['uid'] = $user['id'];
|
|
$data['uid'] = $user['id'];
|
|
|
|
|