fix(withdraw): 免确认授权已开启判定加 authorization_id 非空,与打款一致 #168

Merged
guke merged 5 commits from feat/withdrawal-auth-gate into main 2026-07-24 11:17:13 +08:00

5 Commits

Author SHA1 Message Date
guke ceef642854 fix(scripts): seed 脚本补 username 并新增反馈 mock 脚本
User.username 现为 NOT NULL+unique,原 seed 脚本未设 username 会 IntegrityError,补 _gen_unique_username(仿真实注册生成)。顺带 zip(strict=True)、timezone.utc→datetime.UTC(与代码库统一)。新增 seed_mock_feedback.py:造待审核/已采纳/未采纳三态用户反馈 + 可加载纯色 PNG 截图,供后台反馈工单页联调。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-24 09:55:47 +08:00
guke 1ec376880a fix(logging): Windows 日志轮转改用 copytruncate 避免 WinError 32 卡死
stdlib RotatingFileHandler 靠 rename 活动文件轮转;Windows 上只要有第二个句柄(admin 第二进程、残留 --reload worker、IDE 索引、杀软)开着它,rename 就 WinError 32、轮转永久卡死。SafeRotatingFileHandler 在 Windows 改走 copytruncate(拷备份→自有句柄就地清空,不 rename 活动文件),POSIX 保持 stdlib 原子轮转不变。含 test_logging_rotation.py:monkeypatch os.name=nt,任意 CI 覆盖该分支。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-24 09:55:39 +08:00
guke f29b28769e Merge branch 'main' of https://gitea.shaguabijia.com/WonderableAI/shaguabijia-app-server into feat/withdrawal-auth-gate 2026-07-24 09:49:44 +08:00
guke d872755bb8 test(withdraw): 测试健壮性 polish(openid 取自 User + 补 status_code 断言) 2026-07-23 18:28:51 +08:00
guke 07cf806805 fix(withdraw): 免确认授权已开启判定加 authorization_id 非空,与打款一致
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-23 16:48:55 +08:00