配置改错
This commit is contained in:
@@ -20,19 +20,19 @@ public class HxrAdminProperties {
|
||||
* 订单列表基础 URL(含分页等通用查询串);各业务在代码中覆盖查询参数,或使用独立 URL 配置。
|
||||
*/
|
||||
private String orderSelectUrl =
|
||||
"https://hxrdhoutai.hxrdsm.cn/app/admin/order/select?page=1&limit=90";
|
||||
"https://hxrdhoutai.hxrdsm.cn222/app/admin/order/select?page=1&limit=90";
|
||||
|
||||
/**
|
||||
* 未支付订单拉取 URL(含 {@code status=0} 等业务筛选),供 {@link LBAdminPullScheduler#pullOrdersForUnPay} 使用。
|
||||
*/
|
||||
private String orderSelectUnPayUrl =
|
||||
"https://hxrdhoutai.hxrdsm.cn/app/admin/order/select?page=1&limit=90&status=0";
|
||||
"https://hxrdhoutai.hxrdsm.cn222/app/admin/order/select?page=1&limit=90&status=0";
|
||||
|
||||
/**
|
||||
* 已支付订单拉取 URL(含 {@code status=1}),供 {@link LBAdminPullScheduler#pullOrdersForUnPay} 使用。
|
||||
*/
|
||||
private String orderSelectPaidUrl =
|
||||
"https://hxrdhoutai.hxrdsm.cn/app/admin/order/select?page=1&limit=90&status=1";
|
||||
"https://hxrdhoutai.hxrdsm.cn222/app/admin/order/select?page=1&limit=90&status=1";
|
||||
|
||||
/**
|
||||
* 定时将 hxrd 订单同步到 {@code lb_order_row} 时使用的租户 id;未配置时跳过订单状态同步。
|
||||
@@ -53,22 +53,22 @@ public class HxrAdminProperties {
|
||||
* 用户列表接口 URL(可含默认查询串);实际请求会覆盖 {@code mobile} 等参数。
|
||||
*/
|
||||
private String userSelectUrl =
|
||||
"https://hxrdhoutai.hxrdsm.cn/app/admin/user/select?page=1&limit=90";
|
||||
"https://hxrdhoutai.hxrdsm.cn222/app/admin/user/select?page=1&limit=90";
|
||||
|
||||
/**
|
||||
* 用户更新接口 URL。
|
||||
*/
|
||||
private String userUpdateUrl = "https://hxrdhoutai.hxrdsm.cn/app/admin/user/update";
|
||||
private String userUpdateUrl = "https://hxrdhoutai.hxrdsm.cn222/app/admin/user/update";
|
||||
|
||||
/**
|
||||
* 货品列表 API({@code /api/order/goods});实际请求会覆盖 {@code page}、{@code limit}。
|
||||
*/
|
||||
private String goodsApiUrl = "https://hxrdhoutai.hxrdsm.cn/api/order/goods?page=1&limit=20";
|
||||
private String goodsApiUrl = "https://hxrdhoutai.hxrdsm.cn222/api/order/goods?page=1&limit=20";
|
||||
|
||||
/**
|
||||
* 抢购 API({@code POST /api/order/buy})。
|
||||
*/
|
||||
private String buyApiUrl = "https://hxrdhoutai.hxrdsm.cn/api/order/buy";
|
||||
private String buyApiUrl = "https://hxrdhoutai.hxrdsm.cn222/api/order/buy";
|
||||
|
||||
/**
|
||||
* 货品列表 API 请求头 {@code token}。
|
||||
|
||||
@@ -155,7 +155,7 @@ public class HxrAdminOrderSelectService {
|
||||
}
|
||||
String refererHeader = referer;
|
||||
if (refererHeader == null || refererHeader.isBlank()) {
|
||||
refererHeader = "https://hxrdhoutai.hxrdsm.cn/app/admin/order/index";
|
||||
refererHeader = "https://hxrdhoutai.hxrdsm.cn222/app/admin/order/index";
|
||||
}
|
||||
|
||||
HttpClient client = HttpClient.newBuilder()
|
||||
|
||||
@@ -117,7 +117,7 @@ public class HxrAdminUserService {
|
||||
stripQuery(properties.getUserSelectUrl()),
|
||||
USER_SELECT_PAGE_SIZE,
|
||||
cookieHeader,
|
||||
"https://hxrdhoutai.hxrdsm.cn/app/admin/user/index");
|
||||
"https://hxrdhoutai.hxrdsm.cn222/app/admin/user/index");
|
||||
return fetchUserSelectPage(page, ctx);
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ public class HxrAdminUserService {
|
||||
.header("Accept-Language", "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6")
|
||||
.header("Cookie", cookieHeader)
|
||||
.header("Priority", "u=1, i")
|
||||
.header("Referer", "https://hxrdhoutai.hxrdsm.cn/app/admin/user/index")
|
||||
.header("Referer", "https://hxrdhoutai.hxrdsm.cn222/app/admin/user/index")
|
||||
.header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0")
|
||||
.GET()
|
||||
.build();
|
||||
@@ -294,7 +294,7 @@ public class HxrAdminUserService {
|
||||
.header("Accept", "application/json, text/javascript, */*; q=0.01")
|
||||
.header("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
|
||||
.header("Cookie", cookieHeader)
|
||||
.header("Referer", "https://hxrdhoutai.hxrdsm.cn/app/admin/user/index")
|
||||
.header("Referer", "https://hxrdhoutai.hxrdsm.cn222/app/admin/user/index")
|
||||
.header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0")
|
||||
.POST(HttpRequest.BodyPublishers.ofString(form, StandardCharsets.UTF_8))
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user