From 9bf59916a65ac1127db232a347bb4083df550a94 Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Mon, 11 Aug 2025 16:08:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/import/publish.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/service/import/publish.go b/pkg/service/import/publish.go index d54aab6..1535af9 100644 --- a/pkg/service/import/publish.go +++ b/pkg/service/import/publish.go @@ -124,9 +124,10 @@ func ImportPublish(c *gin.Context) { } //自媒体账号 accountList, err := service.CastProvider.MediaUserList(c, &apiCast.MediaUserListReq{ - ArtistUuid: strconv.FormatUint(list.UserList[0].Id, 10), + //ArtistUuid: strconv.FormatUint(list.UserList[0].Id, 10), + ArtistVal: artist.Name, }) - if err != nil || accountList == nil { + if err != nil || accountList == nil || len(accountList.Data) == 0 { failedRecords = append(failedRecords, FailedRecord{ Name: artist.Name, Msg: fmt.Sprintf("自媒体账号数量获取失败: %s,账号数量:%d", err.Error(), len(accountList.Data)),