diff --git a/src/main/java/cn/van/business/util/JDUtils.java b/src/main/java/cn/van/business/util/JDUtils.java index 6e37b6c..cff65f2 100644 --- a/src/main/java/cn/van/business/util/JDUtils.java +++ b/src/main/java/cn/van/business/util/JDUtils.java @@ -809,24 +809,39 @@ public class JDUtils { } case "刷新3090": { + String appKey = superAdmin.getAppKey(); + String secretKey = superAdmin.getSecretKey(); + if (Util.isAnyEmpty(appKey,secretKey)){ + return; + } long start = System.currentTimeMillis(); - int count = fetchHistoricalOrders3090Do(); + int count = fetchHistoricalOrders3090Do(appKey,secretKey); long time = System.currentTimeMillis() - start; content.append("订单行:").append(count).append(",耗时: ").append(time).append("ms, ").append((time) / 1000).append(" s\r"); break; } case "刷新1430": { + String appKey = superAdmin.getAppKey(); + String secretKey = superAdmin.getSecretKey(); + if (Util.isAnyEmpty(appKey,secretKey)){ + return; + } long start = System.currentTimeMillis(); - int count = fetchHistoricalOrders1430Do(); + int count = fetchHistoricalOrders1430Do(appKey,secretKey); long time = System.currentTimeMillis() - start; content.append("订单行:").append(count).append(",耗时: ").append(time).append("ms, ").append((time) / 1000).append(" s\r"); break; } case "刷新0714": { + String appKey = superAdmin.getAppKey(); + String secretKey = superAdmin.getSecretKey(); + if (Util.isAnyEmpty(appKey,secretKey)){ + return; + } long start = System.currentTimeMillis(); - int count = fetchHistoricalOrders0714Do(); + int count = fetchHistoricalOrders0714Do(appKey,secretKey); long time = System.currentTimeMillis() - start; content.append("订单行:").append(count).append(",耗时: ").append(time).append("ms, ").append((time) / 1000).append(" s\r"); break;