feat(huya): 合并外部单协作 CK 权限

This commit is contained in:
yml2213
2026-11-08 14:06:31 +08:00
parent 7f7a8f6004
commit 5b42577b0b
7 changed files with 49 additions and 42 deletions
+2 -2
View File
@@ -2506,8 +2506,8 @@ def export_cks(
这是本模块唯一一个把凭据**往外送**的读接口,所以三条约束写死在这里:
1. **权限单独一个点**(``huya:collab:ck_export``,默认只给运营)—— 贴 CK 是「录入」,
导出是「把凭据带走」,两件事不该共用一个权限(口径同 ``huya:cookie:export``);
1. **单行复制与批量导出共用一个权限点** ``huya:collab:ck_export``,
默认给运营和客服;权限页的自定义权限仍可覆盖;
2. **逐行写审计**(``huya:collab:ck_export``):只记「谁在什么时候导出了哪一单」,
**绝不把 CK 本体写进审计/日志**(列表接口也照旧不返回 cookie);
3. **没 CK 的行显式跳过并回原因**,不静默丢;也不替用户猜 ——