feat: 移除 Client 真实采购手工授权 (#114)

This commit is contained in:
chengma
2026-08-10 18:37:35 +08:00
parent 8188153b08
commit 10bb892e6c
29 changed files with 124 additions and 702 deletions
+1 -5
View File
@@ -220,11 +220,7 @@ func ListPurchaseClientOptions(db *sql.DB, actor *model.User, threshold time.Dur
return nil, err
}
result := &PurchaseClientOptions{Rows: clients}
for _, client := range clients {
if client.PurchaseMode == string(model.TaskExecutionLive) {
result.SelectableCount++
}
}
result.SelectableCount = len(clients)
return result, nil
}