getLoginOpenId($ticket); if (!$openId) { throw new BadRequestException('wechat_oa.invalid_login_ticket'); } return $openId; } }