mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
refactor(kiro): 拆分 auth_region/api_region,统一 region 解析逻辑
KiroAuthConfig 新增 auth_region(token 刷新端点)和 api_region(q.{region} 服务端点)字段,
通过 effective_auth_region() / effective_api_region() 方法统一各处散落的 region 回退逻辑,
与 kiro.rs 的 region 语义对齐。
This commit is contained in:
@@ -337,7 +337,7 @@ async def _fetch_kiro_email(
|
||||
if parsed and parsed.get("email"):
|
||||
return parsed["email"]
|
||||
except Exception as e:
|
||||
logger.warning("[KIRO] 获取用户邮箱失败: {}", e)
|
||||
logger.warning("[KIRO] 获取用户邮箱失败: {} | {}", type(e).__name__, e, exc_info=True)
|
||||
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user