feat: Implement Codex proxy configuration page with CRUD and testing capabilities, supported by new backend API and services for error handling, team processing, mail, and ChatGPT registration.
This commit is contained in:
@@ -79,9 +79,7 @@ func checkAndCleanErrors() {
|
||||
return
|
||||
}
|
||||
|
||||
// 执行清理
|
||||
logger.Status("定期清理错误账号中...", "", "cleaner")
|
||||
|
||||
// 获取错误账号列表
|
||||
errorAccounts, err := fetchAllErrorAccounts()
|
||||
if err != nil {
|
||||
logger.Error(fmt.Sprintf("获取错误账号列表失败: %v", err), "", "cleaner")
|
||||
@@ -89,10 +87,14 @@ func checkAndCleanErrors() {
|
||||
}
|
||||
|
||||
if len(errorAccounts) == 0 {
|
||||
logger.Info("无错误账号需要清理", "", "cleaner")
|
||||
lastCleanTime = time.Now()
|
||||
return
|
||||
}
|
||||
|
||||
// 执行清理
|
||||
logger.Status(fmt.Sprintf("定期清理错误账号中: 共 %d 个", len(errorAccounts)), "", "cleaner")
|
||||
|
||||
success := 0
|
||||
failed := 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user