request->input('code', ''); if (empty($code)) { throw new BusinessException(AuthErrorCode::CODE_EMPTY_ERROR); } return $this->service->codeToOpenID($code); } }