Commit 307551ac authored by gaozhaochen's avatar gaozhaochen

optimize: 优化问答机器人返回结果

parent 59b38906
...@@ -39,7 +39,7 @@ public class WoaUtil { ...@@ -39,7 +39,7 @@ public class WoaUtil {
/** /**
* 获取用户信息请求地址 * 获取用户信息请求地址
*/ */
private final static String WOA_XSZY_USER_INFO_API_URL = WOA_XSZY_URL + WOA_XSZY_GATEWAY_URL; private final static String WOA_XSZY_USER_INFO_API_URL = WOA_XSZY_PROXY_PASS_URL + WOA_XSZY_GATEWAY_URL;
/** /**
* 接口授权信息 * 接口授权信息
......
...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
public class UserFeignController { public class UserFeignController {
@Autowired @Autowired
private SysUserBaseService sysUserBaseService; private SysUserBaseService sysUserBaseService;
@Value("${default.sso.user:admin}") @Value("${default.sso.user:systemadmin}")
private String defaultSSOUser; private String defaultSSOUser;
/** /**
* F_xh 根据用户名获取用户登录信息 * F_xh 根据用户名获取用户登录信息
......
...@@ -3,6 +3,7 @@ package cn.sh.stc.sict.theme.hpgp.controller.mobile; ...@@ -3,6 +3,7 @@ package cn.sh.stc.sict.theme.hpgp.controller.mobile;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.sh.stc.sict.cloud.common.core.util.R; import cn.sh.stc.sict.cloud.common.core.util.R;
import cn.sh.stc.sict.cloud.common.log.annotation.SysLog; import cn.sh.stc.sict.cloud.common.log.annotation.SysLog;
import cn.sh.stc.sict.cloud.common.security.util.SecurityUtils; import cn.sh.stc.sict.cloud.common.security.util.SecurityUtils;
...@@ -115,13 +116,13 @@ public class HpGpIntelligentQAController { ...@@ -115,13 +116,13 @@ public class HpGpIntelligentQAController {
// 162 为黄浦高血压专病导医机器人 // 162 为黄浦高血压专病导医机器人
// 51 黄浦高血压全科导诊机器人 // 51 黄浦高血压全科导诊机器人
String body = HttpRequest.post(qaUrl) HttpResponse response = HttpRequest.post(qaUrl)
.body(req, "application/json") .body(req, "application/json")
.execute() .execute();
.body(); String body = response.body();
log.error("接口请求 req = {}", req); log.error("接口请求 req = {}", req);
log.error("接口返回 body = {}", body); log.error("接口返回 body = {}", body);
if (StrUtil.isBlank(body) || !body.contains(QA_RESULT_FLAG)) { if (response.getStatus() != 200 || StrUtil.isBlank(body)) {
return new R(); return new R();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment