getUser(false); // 订单总数 $model = new OrderModel; return $this->renderSuccess([ 'userInfo' => $user, 'orderCount' => [ 'payment' => $model->getCount($user, 'payment'), 'received' => $model->getCount($user, 'received'), 'comment' => $model->getCount($user, 'comment'), ], 'setting' => [ 'points_name' => SettingModel::getPointsName(), ], 'menus' => (new UserModel)->getMenus() // 个人中心菜单列表 ]); } }