feat: Implement ChatGPT account registration flow and establish core backend API infrastructure with logging utilities.

This commit is contained in:
2026-02-03 03:22:43 +08:00
parent b014226074
commit cf25845a0b
8 changed files with 36 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ func HandleCleanErrorAccounts(w http.ResponseWriter, r *http.Request) {
return
}
logger.Info("开始清理错误账号...", "", "s2a")
logger.Status("清理错误账号...", "", "s2a")
// Step 1: 获取所有错误账号
errorAccounts, err := fetchAllErrorAccounts()
@@ -68,7 +68,7 @@ func HandleCleanErrorAccounts(w http.ResponseWriter, r *http.Request) {
return
}
logger.Info(fmt.Sprintf("找到 %d 个错误账号,开始删除...", len(errorAccounts)), "", "s2a")
logger.Status(fmt.Sprintf("找到 %d 个错误账号,删除...", len(errorAccounts)), "", "s2a")
// Step 2: 逐条删除
success := 0