对接3方系统,开通新人特权
This commit is contained in:
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user