fix: 去除渠道

This commit is contained in:
mario-b
2025-02-22 23:38:07 +08:00
parent 63be3f5f56
commit 5c8a237e27
2 changed files with 17 additions and 3 deletions

View File

@@ -624,7 +624,7 @@ type CallBackVideoResult struct {
func (s *Service) QueryKeLingTask(taskId string, channel string, action string) (VideoCallbackData, error) {
var apiKey model.ApiKey
err := s.db.Session(&gorm.Session{}).Where("type", "keling").
Where("api_url", channel).
//Where("api_url", channel).
Where("enabled", true).
Order("last_used_at DESC").First(&apiKey).Error
if err != nil {