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
Member

免确认授权已开启判定加 authorization_id 非空,与打款一致

免确认授权已开启判定加 authorization_id 非空,与打款一致
guke added 5 commits 2026-07-24 10:00:37 +08:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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>
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>
guke merged commit f7a7a49281 into main 2026-07-24 11:17:13 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WonderableAI/shaguabijia-app-server#168