滑动续期、网络错误归类、API Key 激活乐观锁与生效提示
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user