拉取买家订单列表

This commit is contained in:
2026-06-06 07:32:52 +08:00
parent 1a44a5befb
commit 1477ec943b
13 changed files with 714 additions and 2 deletions

View File

@@ -165,6 +165,27 @@ public final class LbThirdIntegrationConfigUtil {
return limit;
}
public static String resolveBuyerOrderListBaseUrl(LbThirdIntegrationConfig config) {
String base = trimTrailingSlash(requireText(config.getAdminBaseUrl(), "adminBaseUrl"));
String path = config.getBuyerOrderListPath();
if (!StringUtils.hasText(path)) {
path = LbThirdIntegrationConstants.DEFAULT_BUYER_ORDER_LIST_PATH;
}
path = path.trim();
if (!path.startsWith("/")) {
path = "/" + path;
}
return base + path;
}
public static int resolveBuyerOrderListLimit(LbThirdIntegrationConfig config) {
Integer limit = config.getBuyerOrderListLimit();
if (limit == null || limit < 1) {
return LbThirdIntegrationConstants.DEFAULT_BUYER_ORDER_LIST_LIMIT;
}
return limit;
}
/**
* 组装 Cookie 请求头:优先完整 cookie否则 {@code PHPSID=} + phpsid。
*/