cl
7 天以前 e2c664502249d6eb2bc9c8879dac6f4086a2ab87
云仓地址配置
1个文件已添加
3个文件已修改
33 ■■■■■ 已修改文件
rsf-open-api/src/main/java/com/vincent/rsf/openApi/config/ApiSecurityConfig.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
rsf-server/src/main/resources/application-dev.yml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rsf-server/src/main/resources/application-prod.yml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
version/db/sys_http_audit_cloud_wms_192_168_10_108_8180.sql 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
rsf-open-api/src/main/java/com/vincent/rsf/openApi/config/ApiSecurityConfig.java
@@ -20,7 +20,7 @@
    public FilterRegistrationBean<AppIdAuthenticationFilter> apiAuthenticationFilter() {
        FilterRegistrationBean<AppIdAuthenticationFilter> registrationBean = new FilterRegistrationBean<>();
        registrationBean.setFilter(appIdAuthenticationFilter);
        registrationBean.addUrlPatterns("/api/*"/*, "/erp/*", "/cloudwms/*"*/, "/mes/*", "/agv/*");
        registrationBean.addUrlPatterns("/api/*"/*, "/erp/*"*/, "/cloudwms/*", "/mes/*", "/agv/*");
        registrationBean.setName("apiAuthenticationFilter");
        registrationBean.setOrder(1);
        return registrationBean;
rsf-server/src/main/resources/application-dev.yml
@@ -104,7 +104,8 @@
    #接品链接前缀
    pre-path: ""
    # Feign 调用云仓时的根地址。本机模拟:http://127.0.0.1:8086/rsf-server(CloudWmsMockController:/dapilc/.../cusInventoryCompletionReport 等)
    base-url: http://127.0.0.1:8086/rsf-server
    # base-url: http://127.0.0.1:8086/rsf-server
    base-url: http://192.168.10.108:8180
    # 鼎捷 DAP ilcwmsplus 完成反馈(9.1/9.2 组包用)
    dap:
      org-no: ""
rsf-server/src/main/resources/application-prod.yml
@@ -99,7 +99,8 @@
    #接品链接前缀
    pre-path: ""
    # Feign 调用云仓时的根地址。本机模拟:http://127.0.0.1:8086/rsf-server(CloudWmsMockController:/dapilc/.../cusInventoryCompletionReport 等)
    base-url: http://127.0.0.1:8086/rsf-server
    # base-url: http://127.0.0.1:8086/rsf-server
    base-url: http://192.168.10.108:8180
    # 鼎捷 DAP ilcwmsplus 完成反馈(9.1/9.2 组包用)
    dap:
      org-no: ""
version/db/sys_http_audit_cloud_wms_192_168_10_108_8180.sql
New file
@@ -0,0 +1,25 @@
-- 云仓地址变更:192.168.10.108:8180
-- 1) 新增 HTTP 审计规则,确保云仓出站请求写入 sys_http_audit_log
-- 2) 记录一次地址变更信息到 HTTP 记录表
SET NAMES utf8mb4;
INSERT INTO `sys_http_audit_rule`
(`rule_type`, `match_mode`, `pattern`, `direction`, `request_max_chars`, `response_max_chars`, `enabled`, `record_all`, `sort_order`, `remark`, `create_time`, `update_time`, `deleted`)
SELECT
    'URI', 'CONTAINS', '192.168.10.108:8180', 'OUT', NULL, NULL, 1, 1, 210, '云仓出站地址审计', NOW(), NOW(), 0
WHERE NOT EXISTS (
    SELECT 1
    FROM `sys_http_audit_rule`
    WHERE `rule_type` = 'URI'
      AND `match_mode` = 'CONTAINS'
      AND `pattern` = '192.168.10.108:8180'
      AND `direction` = 'OUT'
      AND (`deleted` = 0 OR `deleted` IS NULL)
);
INSERT INTO `sys_http_audit_log`
(`service_name`, `scope_type`, `uri`, `io_direction`, `method`, `function_desc`, `request_body`, `response_body`, `http_status`, `ok_flag`, `spend_ms`, `client_ip`, `error_message`, `create_time`, `deleted`)
VALUES
('rsf-server', 'INTERNAL', 'http://192.168.10.108:8180', 'OUT', 'CONFIG', '云仓地址配置变更记录', '{"platform.erp.base-url":"http://192.168.10.108:8180"}', '{"msg":"cloud wms url updated"}', 200, 1, 0, '127.0.0.1', NULL, NOW(), 0);