录单
This commit is contained in:
@@ -1933,7 +1933,7 @@ public class JDUtil {
|
|||||||
try {
|
try {
|
||||||
String fetchUrl = "http://192.168.8.6:5000/fetch_comments?product_id=" + product_id;
|
String fetchUrl = "http://192.168.8.6:5000/fetch_comments?product_id=" + product_id;
|
||||||
// 用hutool发起post请求
|
// 用hutool发起post请求
|
||||||
HttpResponse response = HttpRequest.post(fetchUrl).timeout(1000 * 60 * 10).execute();
|
HttpResponse response = HttpRequest.post(fetchUrl).timeout(1000 * 60).execute();
|
||||||
|
|
||||||
logger.info("fetchUrl: {}", fetchUrl);
|
logger.info("fetchUrl: {}", fetchUrl);
|
||||||
// code = 200 表示成功,-200 表示失败
|
// code = 200 表示成功,-200 表示失败
|
||||||
@@ -1954,7 +1954,7 @@ public class JDUtil {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("调用外部接口获取评论失败", e);
|
logger.error("调用外部接口获取评论失败", e);
|
||||||
wxUtil.sendTextMessage(fromWxid, "请求响应:响应超时。为您随机选取使用过的评论", 1, fromWxid, false);
|
wxUtil.sendTextMessage(fromWxid, "请求响应:响应超时(60s)。为您随机选取使用过的评论", 1, fromWxid, false);
|
||||||
commentToUse = usedComments.get(0);
|
commentToUse = usedComments.get(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user