mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 12:02:27 +08:00
fix(grok): 避免刷新时无效清理重认证标记
This commit is contained in:
@@ -1201,7 +1201,7 @@ func (s *TokenRefreshService) postRefreshActions(ctx context.Context, account *A
|
||||
// Antigravity OAuth: 刷新成功后,检查是否已设置 privacy_mode,未设置则调用 setUserSettings
|
||||
s.ensureAntigravityPrivacy(ctx, account)
|
||||
// Grok: clear soft reauth flag after a successful credential refresh.
|
||||
if account != nil && account.Platform == PlatformGrok {
|
||||
if account != nil && account.Platform == PlatformGrok && accountGrokNeedsReauth(account) {
|
||||
clearGrokNeedsReauthExtra(ctx, s.accountRepo, account.ID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user