1
This commit is contained in:
@@ -35,6 +35,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -146,6 +147,12 @@ public class JDUtil {
|
||||
|
||||
final WXUtil wxUtil;
|
||||
private final StringRedisTemplate redisTemplate;
|
||||
|
||||
@Value("${jarvis.server.comment.base-url:http://192.168.8.6:5000}")
|
||||
private String commentBaseUrl;
|
||||
|
||||
@Value("${jarvis.server.comment.fetch-path:/fetch_comments}")
|
||||
private String commentFetchPath;
|
||||
private final OrderRowRepository orderRowRepository;
|
||||
private final CommentRepository commentRepository;
|
||||
private final JDOrderRepository jdOrderRepository;
|
||||
@@ -2230,7 +2237,7 @@ public class JDUtil {
|
||||
*/
|
||||
if (!isTb) {
|
||||
try {
|
||||
String fetchUrl = "http://192.168.8.6:5000/fetch_comments?product_id=" + product_id;
|
||||
String fetchUrl = commentBaseUrl + commentFetchPath + "?product_id=" + product_id;
|
||||
HttpResponse response = HttpRequest.post(fetchUrl).timeout(1000 * 60).execute();
|
||||
|
||||
logger.info("fetchUrl: {}", fetchUrl);
|
||||
|
||||
Reference in New Issue
Block a user