(cache)
| 38 | return {} |
| 39 | |
| 40 | def write_token_cache(cache): |
| 41 | try: |
| 42 | TOKEN_CACHE_PATH.write_text(json.dumps(cache, ensure_ascii=False, indent=2), encoding="utf-8") |
| 43 | except Exception as e: |
| 44 | print(f"⚠️ 写入token缓存失败: {e}") |
| 45 | |
| 46 | def mask_token(token): |
| 47 | if not token: |
no test coverage detected