滑动续期、网络错误归类、API Key 激活乐观锁与生效提示

This commit is contained in:
2026-08-11 11:45:03 +08:00
parent 23b2820101
commit e63af49831
21 changed files with 679 additions and 15 deletions
+3
View File
@@ -190,6 +190,9 @@ func (s *OciConfigService) applyCredentialUpdate(cfg *model.OciConfig, in Update
return fmt.Errorf("encrypt private key: %w", err)
}
cfg.PrivateKeyEnc = enc
// 手工替换私钥同样进入 OCI 公钥传播窗口,记录激活时刻供前端提示
now := time.Now()
cfg.KeyActivatedAt = &now
}
if in.Passphrase == nil {
return nil