配置迁移到数据库表里

This commit is contained in:
2026-05-30 23:32:39 +08:00
parent 8aa1a619b9
commit d9f7ea3d12
5 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package com.rj.dto.hxr;
/**
* 调用 hxrd 后台订单 API 所需的运行时配置(由 {@code lb_third_integration_config} 解析而来)。
*/
public record HxrAdminOrderApiContext(
String orderSelectBaseUrl,
int pageLimit,
String cookieHeader,
String referer) {
}

View File

@@ -0,0 +1,11 @@
package com.rj.dto.hxr;
/**
* 调用 hxrd 后台用户 API 所需的运行时配置(由 {@code lb_third_integration_config} 解析而来)。
*/
public record HxrAdminUserApiContext(
String userSelectBaseUrl,
int pageLimit,
String cookieHeader,
String referer) {
}

View File

@@ -0,0 +1,12 @@
-- =============================================================================
-- 升级脚本lb_third_integration_config 凭证列由密文 VARBINARY 改为明文 VARCHAR
-- 注意:原加密数据无法自动还原,执行后需重新录入凭证
-- =============================================================================
SET NAMES utf8mb4;
ALTER TABLE `lb_third_integration_config`
CHANGE COLUMN `cookie_cipher` `cookie` VARCHAR(1024) DEFAULT NULL COMMENT '完整 Cookie 明文(优先使用)',
CHANGE COLUMN `phpsid_cipher` `phpsid` VARCHAR(512) DEFAULT NULL COMMENT 'PHPSID 值明文',
CHANGE COLUMN `goods_api_token_cipher` `goods_api_token` VARCHAR(512) DEFAULT NULL COMMENT '货品/抢购 token 明文',
CHANGE COLUMN `goods_api_app_str_cipher` `goods_api_app_str` VARCHAR(512) DEFAULT NULL COMMENT '签名密钥 appStr 明文';