对接3方系统,开通新人特权

This commit is contained in:
2026-05-16 15:40:04 +08:00
parent d66daf375c
commit 3e753ba8b2
5 changed files with 191 additions and 21 deletions

View File

@@ -53,7 +53,7 @@ public class HxrAdminOrderSelectService {
}
private Optional<HxrOrderSelectResponse> fetchOrderSelectInternal(String requestUri) throws Exception {
String cookieHeader = resolveCookieHeader();
String cookieHeader = properties.resolveCookieHeader();
if (cookieHeader == null || cookieHeader.isBlank()) {
log.warn("hxr.admin 未配置 cookie 或 phpsid跳过拉取");
return Optional.empty();
@@ -119,26 +119,6 @@ public class HxrAdminOrderSelectService {
}
}
private String resolveCookieHeader() {
String c = firstNonBlank(properties.getCookie());
if (c != null) {
return c;
}
String id = firstNonBlank(properties.getPhpsid());
if (id != null) {
return "PHPSID=" + id;
}
return "";
}
private static String firstNonBlank(String s) {
if (s == null) {
return null;
}
String t = s.trim();
return t.isEmpty() ? null : t;
}
private static String abbreviate(String s, int maxLen) {
if (s == null) {
return "";