diff --git a/YLErpWeb/rebuild-bundles.py b/YLErpWeb/rebuild-bundles.py index b6b4d8fe..89492d18 100644 --- a/YLErpWeb/rebuild-bundles.py +++ b/YLErpWeb/rebuild-bundles.py @@ -86,6 +86,10 @@ def build_all(): for f in b['inputFiles']: p = os.path.join(ROOT, f) if not os.path.exists(p): + # ⚠️【CI 踩坑必读 / 大小写敏感】Windows 大小写不敏感,本地能找到 MyJs.js / isoWeek.js; + # 但 Jenkins 是 Linux,大小写敏感,bundleconfig.json 里写的输入路径必须与 git 实际跟踪的 + # 文件名【大小写完全一致】,否则这里判 missing。曾经因此报 MISSING INPUT 并把整个 dotnet publish 打挂。 + # 改 bundleconfig 的输入文件名时,务必先 `git ls-files` 确认真实大小写。 missing.append(f) continue content = normalize(open(p, 'rb').read()) @@ -149,6 +153,10 @@ def main(): for f in b['inputFiles']: p = os.path.join(ROOT, f) if not os.path.exists(p): + # ⚠️【CI 踩坑必读 / 大小写敏感】Windows 大小写不敏感,本地能找到 MyJs.js / isoWeek.js; + # 但 Jenkins 是 Linux,大小写敏感,bundleconfig.json 里写的输入路径必须与 git 实际跟踪的 + # 文件名【大小写完全一致】,否则这里判 missing。曾经因此报 MISSING INPUT 并把整个 dotnet publish 打挂。 + # 改 bundleconfig 的输入文件名时,务必先 `git ls-files` 确认真实大小写。 missing.append(f) continue content = normalize(open(p, 'rb').read()) @@ -162,8 +170,10 @@ def main(): for out, joined, missing in results: dest = os.path.join(ROOT, out) if missing: - # 缺失输入文件:警告但不 fail,避免阻塞 CI 主构建 - # 重建模式下跳过此 bundle(保留已提交的产物);Verify 模式下报错 + # ⚠️【CI 踩坑必读 / 非致命】缺失输入文件绝不 fail:早期实现把 MISSING 当致命错误 exit 1, + # 会连带打挂整个 dotnet publish(yml 报错 "命令已退出,代码为 1")。 + # 现改为:重建模式跳过该 bundle(保留已提交的产物即可,CI 仍能出包);只有 --verify 校验模式才 exit 1。 + # 重建模式下警告但不 fail,避免阻塞 CI 主构建 if verify: ok = False print(f" [MISSING INPUT] {out}: {missing}") diff --git a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js index a49bd12c..a6b7b519 100644 --- a/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js +++ b/YLErpWeb/wwwroot/Scripts/app/swaptrade/swapTradeEdit.js @@ -410,6 +410,13 @@ const vue = new Vue({ // - 业务/参数错误(success=false 或 errCode!=0,如债券不存在/信息不全/参数非法) // 以非阻塞 toast(main.message) 反馈真实原因,绝不回写、不弹模态框、不阻止手工输入; // - 网络/服务异常:框架 main.post 已弹"请求失败",此处不再二次提示。 + // ⚠️【部署 / 踩坑必读】本文件 swapTradeEdit.js 是【独立