user = $this->getUser(); // 用户信息 } /** * 我的钱包信息 * @return array * @throws \app\common\exception\BaseException * @throws \think\exception\DbException */ public function index() { // 当前用户信息 $user = $this->getUser(); // 获取充值设置 $setting = SettingModel::getItem('recharge'); return $this->renderSuccess([ 'userInfo' => $user, 'setting' => [ 'is_entrance' => (bool)$setting['is_entrance'] ] ]); } }