fix(audit-20261019): T1-T9 审计修复、存储归属与审计日志列宽
- T1 资金/库存/报价/自采 P1(BIZ-1/2/3/4/10/13/14) - T2 主系统反向事件墓碑/改派/孤儿处理(BIZ-6/8/9) - T3 选分公司 ticket、trust proxy、角色权限收口(SEC-2/3/4) - T4 缺列/RLS/tenant 名单/FK/迁移执行器(DATA-1..8) - T5 401 登出/分页/映射口径/blob/ZIP 中文名(FE-1..4/BIZ-15) - T6 测试脚本目标守卫/config fail-fast/容器配置(OPS-2..8) - T7 前后端测试与 lint 门禁清零 - T8 应付卡片按关联订单日(口径 A) - T9 存储对象全链路归属校验、敏感列禁写、审计 target_id 超长修复
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* 小程序全流程 API 探针(生产/本地均可)
|
||||
* 用法: node server/scripts/test-miniprogram-flow.mjs
|
||||
* 环境: API_BASE 默认 https://www.xdjchuanhui.com/api
|
||||
* 小程序全流程 API 探针(**无默认目标**,必须显式指定)
|
||||
* 用法: API_BASE=http://127.0.0.1:3022/api node server/scripts/test-miniprogram-flow.mjs
|
||||
* 远程: API_BASE=https://... ALLOW_REMOTE=1(非 TTY 拒绝)
|
||||
*/
|
||||
const BASE = (process.env.API_BASE || 'https://www.xdjchuanhui.com/api').replace(/\/$/, '');
|
||||
import { createRequire } from 'module';
|
||||
const require = createRequire(import.meta.url);
|
||||
const { guardTestTarget } = require('./test-target-guard.js');
|
||||
|
||||
const explicitApiBase = String(process.env.API_BASE || '').trim();
|
||||
if (!explicitApiBase) {
|
||||
console.error('未设置 API_BASE:本机请用 http://127.0.0.1:3022/api;远程需同时设置 ALLOW_REMOTE=1');
|
||||
process.exit(1);
|
||||
}
|
||||
const BASE = guardTestTarget({ base: explicitApiBase, explicit: true, label: 'API_BASE' });
|
||||
|
||||
const PASSWORDS = [
|
||||
process.env.MP_TEST_PASSWORD,
|
||||
|
||||
Reference in New Issue
Block a user