抽取统计打印方法
This commit is contained in:
@@ -266,9 +266,9 @@ public class JDUtil {
|
|||||||
processOrderResponse(response, admin);
|
processOrderResponse(response, admin);
|
||||||
}
|
}
|
||||||
} catch (RateLimitExceededException e) {
|
} catch (RateLimitExceededException e) {
|
||||||
logger.warn("[限流] {} 请求频率受限", admin.getAppKey().substring(18));
|
logger.warn("[限流] {} 请求频率受限", admin.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("{} 订单抓取异常: {}", admin.getAppKey().substring(18), e.getMessage());
|
logger.error("{} 订单抓取异常: {}", admin.getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -320,9 +320,9 @@ public class JDUtil {
|
|||||||
for (WXUtil.SuperAdmin admin : super_admins.values()) {
|
for (WXUtil.SuperAdmin admin : super_admins.values()) {
|
||||||
try {
|
try {
|
||||||
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
||||||
logger.info("账号{} 3090订单拉取完成,新增{}条", admin.getAppKey().substring(18), count);
|
logger.info("账号{} 3090订单拉取完成,新增{}条", admin.getName(), count);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("账号 {} 拉取异常: {}", admin.getAppKey().substring(18), e.getMessage());
|
logger.error("账号 {} 拉取异常: {}", admin.getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -344,9 +344,9 @@ public class JDUtil {
|
|||||||
for (WXUtil.SuperAdmin admin : super_admins.values()) {
|
for (WXUtil.SuperAdmin admin : super_admins.values()) {
|
||||||
try {
|
try {
|
||||||
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
||||||
logger.info("账号{} 1430订单拉取完成,新增{}条", admin.getAppKey().substring(18), count);
|
logger.info("账号{} 1430订单拉取完成,新增{}条", admin.getName(), count);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("账号 {} 拉取异常: {}", admin.getAppKey().substring(18), e.getMessage());
|
logger.error("账号 {} 拉取异常: {}", admin.getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -368,10 +368,10 @@ public class JDUtil {
|
|||||||
if (Util.isAnyEmpty(admin.getAppKey(), admin.getSecretKey())) return;
|
if (Util.isAnyEmpty(admin.getAppKey(), admin.getSecretKey())) return;
|
||||||
try {
|
try {
|
||||||
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
||||||
logger.info("账号{} 0714订单拉取完成,新增{}条", admin.getAppKey().substring(18), count);
|
logger.info("账号{} 0714订单拉取完成,新增{}条", admin.getName(), count);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("账号 {} 0714拉取异常: {}", admin.getAppKey().substring(18), e.getMessage());
|
logger.error("账号 {} 0714拉取异常: {}", admin.getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -393,11 +393,11 @@ public class JDUtil {
|
|||||||
try {
|
try {
|
||||||
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
int count = fetchOrders(strategy, admin.getAppKey(), admin.getSecretKey());
|
||||||
|
|
||||||
logger.info("账号{} 0007订单拉取完成,新增{}条", admin.getAppKey().substring(18), count);
|
logger.info("账号{} 0007订单拉取完成,新增{}条", admin.getName(), count);
|
||||||
} catch (RateLimitExceededException e) {
|
} catch (RateLimitExceededException e) {
|
||||||
logger.warn("[限流] {} 0007请求受限", admin.getAppKey().substring(18));
|
logger.warn("[限流] {} 0007请求受限", admin.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("账号{}0007拉取异常: {}", admin.getAppKey().substring(18), e.getMessage());
|
logger.error("账号{}0007拉取异常: {}", admin.getName(), e.getMessage());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user