|
|
@@ -141,7 +141,8 @@ public class EslEventListenerAi implements IEslEventListener {
|
|
141
|
141
|
// }
|
|
142
|
142
|
ps.put("sender", String.valueOf(System.currentTimeMillis()));
|
|
143
|
143
|
ps.put("message", text);
|
|
144
|
|
- String result = HttpHelper.post("http://222.213.23.249:5005/webhooks/rest/webhook", JSON.toJSONString(ps));
|
|
|
144
|
+ String url=SpringHelper.getRequiredProperty("common.rasa");
|
|
|
145
|
+ String result = HttpHelper.post(url, JSON.toJSONString(ps));
|
|
145
|
146
|
if (StringHelper.isNotEmpty(result)) {
|
|
146
|
147
|
List<Map> maps = JSON.parseArray(result, Map.class);
|
|
147
|
148
|
rt = maps.get(0).get("text").toString();
|