将 license 存储到数据库

This commit is contained in:
RockYang
2025-03-02 21:49:34 +08:00
parent f98dcee7d4
commit 6b0d4e81bf
6 changed files with 35 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ func (s *Service) Create(task types.SunoTask) (RespVo, error) {
var res RespVo
apiURL := fmt.Sprintf("%s/suno/submit/music", apiKey.ApiURL)
logger.Debugf("API URL: %s, request body: %+v", apiURL, reqBody)
logger.Debugf("API URL: %s, request body: %s", apiURL, utils.JsonEncode(reqBody))
r, err := req.C().R().
SetHeader("Authorization", "Bearer "+apiKey.Value).
SetBody(reqBody).