|
@@ -357,7 +357,7 @@ public class AlgorithmService implements IAlgorithmService {
|
|
|
@Override
|
|
|
public String executeQa(QaBo qaBo) {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("user_id", qaBo.getUserId());
|
|
|
+ map.put("userId", qaBo.getUserId());
|
|
|
map.put("question", qaBo.getQuestion());
|
|
|
String result = HttpUtils.postJson(askUrl, map);
|
|
|
JSONObject jsonObject = JSONUtil.parseObj(result);
|
|
@@ -368,9 +368,9 @@ public class AlgorithmService implements IAlgorithmService {
|
|
|
throw new BusinessException(msg);
|
|
|
}
|
|
|
JSONObject answerJson = JSONUtil.parseObj(data);
|
|
|
- String ossId = answerJson.getStr("ossID");
|
|
|
- String userId = answerJson.getStr("user_id");
|
|
|
- String fileName = answerJson.getStr("file_name");
|
|
|
+ String ossId = answerJson.getStr("ossId");
|
|
|
+ String userId = answerJson.getStr("userId");
|
|
|
+ String fileName = answerJson.getStr("fileName");
|
|
|
String graph = answerJson.getStr("graph");
|
|
|
String answer = answerJson.getStr("answer");
|
|
|
QaHistoryBo qaHistoryBo = new QaHistoryBo();
|