diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 98002781..276ba648 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -372,6 +372,7 @@ class Auth extends BaseController ]; Db::name('nk_user')->insert($datas); } else { + Db::name('user')->where('uid',$user['uid'])->update(['nickname'=>$msg['name']]); Db::name('nk_user')->where('id', $nk_user['id'])->update(['user_id' => $user['uid'], 'group_id' => $users['group_id']]); } } else { @@ -381,7 +382,7 @@ class Auth extends BaseController 'group_id' => 1, 'username' => 'wx' . $time, 'nickname' => '微信用户' . $time, - 'avatar' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230104/32a639be4ee32349705e947fbbd1e114.png', + 'avatar' => 'https://lihai001.oss-cn-chengdu.aliyuncs.com/uploads/20230111/58c84995456bc63b2660d9526f7062fc.png', 'level' => 1, 'prevtime' => $time, 'jointime' => $time, @@ -418,7 +419,7 @@ class Auth extends BaseController $user['group_ids'] = 1; if ($find && $find['n_user_id']!=0){ $user['group_ids'] = $find['group_id']; - $msg=Db::connect('nongke')->table('fa_szxc_information_usermsg')->where('user_id',$find['n_user_id'])->cache(true)->find(); + $msg=Db::connect('nongke')->table('fa_szxc_information_usermsg')->where('user_id',$find['n_user_id'])->find(); if ($msg){ $user['no_update']=0; $ddd['phone'] = $data['phone'];