diff --git a/src/main/java/com/mixi/common/tasks/MiTuExportScheduledTask.java b/src/main/java/com/mixi/common/tasks/MiTuExportScheduledTask.java index c8abd93..0239fdc 100644 --- a/src/main/java/com/mixi/common/tasks/MiTuExportScheduledTask.java +++ b/src/main/java/com/mixi/common/tasks/MiTuExportScheduledTask.java @@ -801,6 +801,7 @@ public class MiTuExportScheduledTask { for (WeeklyHeavyStock weeklyHeavyStock : weeklyHeavyStockList) { String currentPluCode = weeklyHeavyStock.getPLU_CODE(); if (!currentPluCode.equals(previousPluCode)) { + imagePath = getImagePath(currentPluCode); if (startRow < rowNum - 1) { mergeCells(sheet, startRow, rowNum - 1); if (imagePath != null && !imagePath.isEmpty()) { @@ -809,7 +810,6 @@ public class MiTuExportScheduledTask { } startRow = rowNum; previousPluCode = currentPluCode; - imagePath = getImagePath(currentPluCode); } Row row = sheet.createRow(rowNum); diff --git a/src/main/java/com/mixi/service/PythonService.java b/src/main/java/com/mixi/service/PythonService.java index eb461dd..fbac78c 100644 --- a/src/main/java/com/mixi/service/PythonService.java +++ b/src/main/java/com/mixi/service/PythonService.java @@ -594,7 +594,7 @@ public class PythonService { RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content)); Request request = new Request.Builder() // .url(accessPythonIp + ":9993/api/similar_matchsimilar_match") - .url("127.0.0.1:5001/chat") + .url("http://127.0.0.1:5001/chat") .method("POST", body) // .addHeader("Authorization", "Basic YWlkbGFiOjEyMw==") .addHeader("Content-Type", "application/json")