33 Commits

Author SHA1 Message Date
huangzd1997 13fd426133 chore(slim): 删用户端未引用的 logo.jpg 冗余副本(CN-02)+ backend-java/tmp 补 gitignore(BD-8) 2026-11-03 02:43:08 +08:00
huangzd1997 87869ba0f9 chore(phase-1): .gitignore 补 16 条产物忽略(审计 §4.1(b) 的"只堵未来的口子"半)
新增 node_modules/、.vite/ 与 **/.vite/、playwright-report/、blob-report/、test-results/、
surefire-reports/、failsafe-reports/、*.class、*.tsbuildinfo、*.pyd、*.dll、*.log.*、
.DS_Store、Thumbs.db、desktop.ini。此前只有 *$py.class 挡 Python 的 class,Java 编译产物没人管;
*.log 又匹配不到 aiimage-backend.log.2026-10-11.0 这类轮转名。

实测零副作用:改前改后 git ls-files -i -c --exclude-standard 均 0、?? 噪声 0、
git status --ignored 顶层条目 14 不变;check-ignore 对六条代表路径逐条正向自证命中新规则。
⚠ 报告另建议把遗留的 lib//parts//var/ 收窄为 /build/、/dist/ 式根锚定前缀——本轮不做:
盘上实测 53 个 lib、87 个 dist、19 个 bin 目录,收窄会把今天被挡住的产物一次性放成 ?? 噪声,
与本格"零行为变更"定性冲突,且这些规则今天的实害为 0,留作单列拍板项(理由已写进 .gitignore 注释)。
2026-10-18 13:27:30 +08:00
huangzd1997 8396a32475 瘦身 P0-6: 补仓根日志与压缩包的忽略规则
历史里 5 支 ≥5MB 日志与 5 支 app/update/* 都是从"仓根没有 *.log、没有 *.zip"这个口子进来的:
实测追加前 `git check-ignore 2026_10_15.log` 不命中、`app/update/x.zip` 不命中,追加后两条都命中,
反向对照 pom.xml 仍不被忽略。只加规则、不改任何文件内容;行尾按该文件主导的 CRLF 逐字节追加。
2026-10-15 13:35:24 +08:00
huangzd1997 520044c8a4 feat(取证): 开机自报这份 jar 出自哪笔 commit
制品名自始没 bump 过(aiimage-backend-0.0.1-SNAPSHOT.jar),pom 也没有 git-commit-id,
所以出问题时光看线上机器答不出"在跑的是哪版代码"——10-07 那次是靠"哪个类只有那笔才有"人工认的。

不用 git-commit-id 插件:现网出包是 mvn -o 离线,新插件当场解析失败,等于给发布通道加一根
只有联网才通的管子。改成打包前由 scripts/_git_stamp.py 生成 src/main/resources/git.properties
(已加进 .gitignore,入库就成孤儿构建产物,target/classes 里那个孤儿 V148 就是这么来的),
开机念 [build-info];念不到时打 [build-info-missing] 而不是静默当干净构建。

拒绝的职责不在这里:一个元数据文件读不到不该把在跑实例打死,那是发布闸门的事。
2026-10-08 17:36:32 +08:00
huangzd1997 53897a9252 chore(仓库瘦身): 给 120MB 转储加回流忽略钉
上一笔把 aiimage.sql 移出库之后,src/main/resources/db/ 这个目录本身没有忽略规则,
谁再 Navicat 导出一份同名文件放回原处,git add 就照收 —— 仓库会重新变回 120MB 胖。
pom 的 exclude 只保住了 jar,保住不了仓库;这条忽略钉管的是仓库侧出口。
2026-10-07 10:53:50 +08:00
huangzd1997 3bc9d2b3d0 chore(仓库瘦身): tmp/ 忽略规则收窄为根级 /tmp/,避免子项目同名目录被静默吞掉 2026-10-07 10:51:27 +08:00
huangzd1997 f3d44e545b chore(仓库瘦身): 120MB 生产库转储出库,根级 tmp/ 收进 gitignore
aiimage.sql(126,704,967 B,含 biz_shop_key 等真实数据行)不再由仓库跟踪,
物理移到 gitignored 的 backend-java/data/,字节零丢失。
jar 侧零影响:pom 的 exclude 早已生效,现网两台 jar 内该文件 grep=0;
exclude 留作反向钉——谁再把转储放回 resources/db/ 也进不了包。
同时补 /tmp/(出包 worktree 与验证日志的落点,此前是仓库唯一的 ?? 项)。
2026-10-07 10:50:38 +08:00
huangzd1997 49c3fc1491 docs(仓库): 规划文档改为入库,落盘品牌库/去重库每公司一套二期方案
`.gitignore` 原先把 docs/plans/ 与 backend-java/docs/plans/ 记成「本地不入库」,
代价有两头:干净 worktree 出包时这些文件根本不存在(门禁要读它们的用例先假红),
跨会话的实施计划也没有留存通道。改为入库,本批把 34 个 md 落进仓库。
2026-10-04 13:51:16 +08:00
huangzd1997 c059dee0c8 feat(密钥): 用户 API 密钥服务端化——V115 按账号绑定存储 + 后台密钥管理页 + 桌面端全站拦截与配置引导
- 新增 usersecret 模块:外观专利/货源查询密钥从本地 localStorage 迁移至 biz_user_api_secret(AES 加密、按 uid 绑定)
- 后台「密钥管理」页:脱敏展示、立即检测、清空;每日 04:30 分布式锁定时巡检
- 桌面端:密钥设置面板走服务端、未配齐引导 /setup-secrets、代理余量展示
- 删除专利汇令牌全链路与密钥保留时长选择器
2026-09-13 10:03:59 +08:00
huangzd1997 289c5dabbc task-276(验收反馈): 分页组件全站统一(jumper+按钮高亮样式)+MenusPage补分页+最低价筛选同排+视频筛选加固+移除侧边栏收起按钮+gitignore战役脚本规则 2026-09-06 02:16:47 +08:00
huangzd1997 ffbeb52b09 feat(admin): 店铺数据重复检查撞款抽屉样式优化与导入测试按钮
- 撞款详情抽屉:上架时间默认降序(晚到早)、去掉列头(按时间升序)小括号、加宽至 760px、
  去掉全屏遮罩(底层仍可点击)、抽屉贴到「撞款详情」区块位置而非浏览器顶部
- 修复抽屉 fixed 定位失效:.tab-panel.active 入场动画带 transform 会成为包含块,
  打开时把 drawer mask 挂到 body 下恢复视口定位
- 新增导入(新增-测试)/ 导入(删除-测试)按钮与上传弹窗,对应后端端点
  /api/admin/shop-data-crawl/duplicate-check-import(ADD=按店名替换基线记录、DELETE=移除该店记录)
- 新增 ShopDataDuplicateCheckImportService 导入服务(复用 WorkbookParser/Aggregator,与扫描共用 Redis 锁)
- 新增 3 个单测:导入替换重聚合、删除移除、无基线报错
- _preview_mock.py 加入 .gitignore(本地预览工具不入库)
2026-09-04 12:25:31 +08:00
huangzd1997 4c63fd4326 task-120: 大页数据性能回归 + 恢复 similarasin 测试入库
性能回归(SimilarAsinTaskServicePerf500Test,8/8 绿):
- test_perf_light_200 原以墙钟毫秒比较 light 与 batch(assertTrue
  lightMs < batchMs)。两条路径都跑纯内存 stub,耗时在十几毫秒量级,
  JIT/GC/线程调度抖动远大于真实差值,本机实测 light 14ms / batch 13ms
  直接翻红。改为确定性口径:light 结果明细查询数 == 0(batch ≥ 1)、
  light 总查询数 < batch 总查询数、batch 条目携带任务明细对象而 light
  只有白名单字段;墙钟仅保留单侧上界 1s(N+1 退化会放大到秒级从而失败)。
  连续 3 次独立运行稳定通过。
- 类注释同步移除“已知 flaky,隔离重跑即接受”的说明。

恢复测试入库:
- b148dc5(task-116) 把 similarasin 测试目录整体从 git 删除,并加了
  .gitignore 规则 *.broken/,磁盘上目录改名 similarasin.broken。
  但包声明仍是 com.nanri.aiimage.modules.similarasin.*,javac 照常编译,
  这 40 个测试文件一直在参与构建、并且是 mvn test 的门禁的一部分——
  等于脱离版本控制却仍在 gate 构建。
- 目录改回 similarasin/(现在与包声明一致),移除 *.broken/ 忽略规则,
  40 个测试文件重新入库。mvn test-compile 退出码 0。
2026-09-01 13:45:34 +08:00
huangzd1997 b148dc57eb task-116: 后台管理新增/导入表单弹窗化 + 分组管理独立菜单与UI优化 + 轻量进度端点
- 后台管理页(admin)所有面板的新增/导入表单改为弹窗操作,原有字段 ID 全部保留、提交逻辑不变;导入删除入口不再触发二次确认拦截
- 分组管理升级为独立菜单(V102 + schema initializer),移除 5 个面板内的管理分组按钮;分组列表改为蓝白主题、增加权限分组横幅
- Python 侧 group-manage 权限守卫(_ensure_backend_menu_access 补充 group-manage)
- 引入 V101(biz_task_file_job 复合索引)+ 新增 TaskProgressLight/TaskFileJob 轻量端点与进度聚合作
- 前端 progress-light / page-separated-loads / dispatch-guard 共享模块及单元测试
2026-09-01 12:54:13 +08:00
huangzd1997 f0d12771fb chore: 移除误入库的本地规划/进度文件 (docs/plans, check_progress.py, progress.json),gitignore 兜底 2026-08-31 00:37:31 +08:00
huangzd1997 766a1efe32 chore: 移除误入库的本地规划文档 docs/plans,加入 gitignore 2026-08-31 00:21:02 +08:00
super cbee1d4e23 提交货源图片和相似ASIN优化 2026-05-24 21:59:21 +08:00
super 175144f729 更新这个货源 2026-05-22 09:41:31 +08:00
koko 93b85ff194 chore: serve bundled assets from app directory 2026-05-02 02:12:14 +08:00
koko 37fe66ce27 Fix patrol delete condition handling 2026-05-01 22:36:37 +08:00
koko 0cbcb865fd Stop tracking generated Python bytecode
Generated __pycache__ files were already ignored in some paths but remained tracked in the repository, which caused merge noise and binary conflicts. This removes the tracked bytecode from the index and adds an explicit recursive ignore rule so future Python runs do not reintroduce them.

Constraint: Existing repository history already tracked pycache files across app, backend, and source_code

Rejected: Delete local pycache directories from disk | only repository tracking needed to be removed

Confidence: high

Scope-risk: narrow

Directive: Do not force-add __pycache__ or *.pyc files unless there is a documented runtime packaging reason

Tested: git ls-files shows no remaining paths containing __pycache__/

Not-tested: Application runtime; change only affects tracked generated artifacts and ignore rules
2026-04-28 20:57:53 +08:00
koko 1739c175bf Merge master into dev/koko after patrol delete fixes
The merge keeps dev/koko patrol-delete asset fallback behavior while accepting the latest master feature work. Conflicts were limited to ignore rules, local environment/config artifacts, tracked pycache binaries, and the Flask main blueprint.

Constraint: master and dev/koko both edited app/blueprints/main.py around brand and asset serving

Rejected: Drop dev/koko asset fallback logic | patrol delete and rebuilt Vite assets still need hashed asset resolution across app/new_web_source locations

Confidence: medium

Scope-risk: broad

Directive: app/.env remains a tracked local-config file in this repository; do not print or normalize secrets during conflict handling

Tested: uv run python -m py_compile blueprints\\main.py amazon\\base.py amazon\\main.py

Tested: uv run --group dev pytest tests\\test_amazon_base.py tests\\test_patrol_delete.py

Not-tested: Full backend-java/frontend-vue test suites
2026-04-28 20:55:27 +08:00
super 7e1974a688 后端架构更新 2026-04-27 09:18:10 +08:00
koko 8fd6cbb436 feat: update amazon driver 2026-04-25 17:59:12 +08:00
koko 19626983bb feat: update driver BaseClass 2026-04-25 17:14:23 +08:00
koko 369ed87ed2 Document repo structure and ignore local OMX state
Add a root README that explains the active runtime layers and onboarding path, and keep local OMX session state out of version control so developer tooling does not interfere with pulls.

Constraint: Local OMX state is developer-specific and should not block branch sync or appear in shared history
Rejected: Keep onboarding notes untracked | easy to lose and hard to share with the team
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep the README aligned with the active app/backend-java/frontend-vue execution path; revisit if the runtime architecture changes
Tested: git diff review; git status after staging
Not-tested: lint, typecheck, unit/integration tests not run (docs and ignore rules only)
2026-04-22 07:16:04 +00:00
super 0ce6034496 处理后台管理系统、修复BUG、处理权限 2026-04-22 01:09:28 +08:00
super eeeed6d7b1 暂存 2026-03-30 20:54:05 +08:00
super 0aad7b3faf 提交过滤 2026-03-27 21:58:43 +08:00
super ea212c8931 提交品牌删除更新 2026-03-26 17:39:20 +08:00
super 8106a8ab7e 更新后端新增内容 2026-03-26 16:42:25 +08:00
super 7f9a6bd9cb 环境搭建配置 2026-03-21 10:00:16 +08:00
super 92d3fc965b 完成新需求 2026-03-20 14:26:34 +08:00
super 1e63ab291b 重构项目,方便开发 2026-03-19 13:15:47 +08:00