|
|
@@ -420,7 +420,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
if (intent.getMode() !=null && intent.getMode().equals(MessageConstants.MODE_FREE_CHAT )) { |
|
|
|
String answer = qajson.getJSONObject("data").getJSONArray("result").getJSONObject(0).getString("answer"); |
|
|
|
String type = qajson.getJSONObject("data").getJSONArray("result").getJSONObject(0).getString("model_type"); |
|
|
|
String accurate = qajson.getJSONObject("data").getJSONArray("result").getJSONObject(0).getString("accurate"); |
|
|
|
String accurate = qajson.getJSONObject("data").getString("accurate"); |
|
|
|
if (accurate.equals("1")) { |
|
|
|
// 如果type == 0, 直接将问题/答案存入缓存 |
|
|
|
if (type.equals("0")) { |
|
|
|