This commit is contained in:
彭桃 2023-01-30 17:33:14 +08:00
parent 260a4f3f51
commit 298aa92a7d

View File

@ -31,7 +31,8 @@ class User extends BaseController
public function index()
{
$user = Db::table('fa_user')->where('id',JWT_UID)->find();
$this->apiSuccess('', ['nickname' => $user['nickname'],'avatar'=>$user['avatar']]);
$user_msg = Db::table('fa_szxc_information_usermsg')->where('user_id',JWT_UID)->field('id,name,address_name')->find();
$this->apiSuccess('', ['nickname' => $user['nickname'],'avatar'=>$user['avatar'],'address_name'=>$user_msg['address_name']]);
}
/**