Compare commits
2 Commits
dba9b08561
...
41d2f8b84b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41d2f8b84b | ||
|
|
58c0d5884c |
@@ -1661,7 +1661,7 @@ public class JDUtil {
|
||||
String value = entry.getValue();
|
||||
productTypeStr.append(k).append(":").append(value).append("\n");
|
||||
}
|
||||
wxUtil.sendTextMessage(fromWxid, "请选择要生成的评论类型:" + productTypeStr, 1, fromWxid, false);
|
||||
wxUtil.sendTextMessage(fromWxid, "请选择要生成的评论类型:\n " + productTypeStr, 1, fromWxid, false);
|
||||
logger.info("进入生成评论流程 - 用户: {}", fromWxid);
|
||||
|
||||
} catch (Exception e) {
|
||||
@@ -1711,7 +1711,7 @@ public class JDUtil {
|
||||
if (productTypeMap.containsKey(message)) {
|
||||
generateComment(fromWxid, message);
|
||||
} else {
|
||||
wxUtil.sendTextMessage(fromWxid, "无效的选择,请回复 1 或 2", 1, fromWxid, false);
|
||||
wxUtil.sendTextMessage(fromWxid, "无效的选择", 1, fromWxid, false);
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
@@ -1754,7 +1754,7 @@ public class JDUtil {
|
||||
} else {
|
||||
// 没有本地评论,调用外部接口抓取
|
||||
try {
|
||||
String fetchUrl = "http://192.168.8.169:5000/fetch_comments?product_id=" + product_id;
|
||||
String fetchUrl = "http://192.168.8.6:5000/fetch_comments?product_id=" + product_id;
|
||||
// 用hutool发起post请求
|
||||
HttpResponse response = HttpRequest.post(fetchUrl).execute();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user