数据:收窄账号列表与所有权消费方

This commit is contained in:
Christ committed 2026-08-14 11:39:37 +08:00
1 parent 5bb60cabcd
commit d54377d2ef
6 files changed
+27 -25

No files matched your search

+2 -2
View File
@@ -65,8 +65,8 @@ func (s *Server) adminDeleteUser(w http.ResponseWriter, r *http.Request) {
return
}
if s.Manager != nil {
if accounts, listErr := s.Store.Cookies.AllForUser(r.Context(), uid); listErr == nil {
for cookieID := range accounts {
if accountIDs, listErr := s.Store.Cookies.ListOwnedIDs(r.Context(), uid); listErr == nil { // accountIDs 是待停止的账号 ID。
for _, cookieID := range accountIDs {
s.Manager.Stop(cookieID)
}
}