From 2e15c23aeb3d04ba26f37f339d7e76d68e2b7a2a Mon Sep 17 00:00:00 2001 From: daiyb <570956418@qq.com> Date: Wed, 17 Dec 2025 14:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=B2=A1=E6=9C=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/cast/media.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkg/service/cast/media.go b/pkg/service/cast/media.go index 82eed16..d82a722 100644 --- a/pkg/service/cast/media.go +++ b/pkg/service/cast/media.go @@ -52,16 +52,18 @@ func MediaUserList(ctx *gin.Context) { service.Error(ctx, errors.New("查询艺人数据错误")) return } + if statResp != nil && len(statResp.Items) > 0 { + info := statResp.Items[0] + // "pendingVideoCount": 10, // 待上传视频数 "uploadedVideoCount": 25, // 已上传视频数 "releasedVideoTotal": 35, // 已释放视频总数 + //"pendingPostCount": 14, // 待上传图文数 "uploadedPostCount": 21, // 已上传图文数 "releasedPostTotal": 35, // 已释放图文总数 + v.PendingVideoCount = info.PendingVideoCount + v.UploadedVideoCount = info.UploadedVideoCount + v.ReleasedVideoTotal = info.ReleasedVideoTotal + v.PendingPostCount = info.PendingPostCount + v.UploadedPostCount = info.UploadedPostCount + v.ReleasedPostTotal = info.ReleasedPostTotal + } - info := statResp.Items[0] - // "pendingVideoCount": 10, // 待上传视频数 "uploadedVideoCount": 25, // 已上传视频数 "releasedVideoTotal": 35, // 已释放视频总数 - //"pendingPostCount": 14, // 待上传图文数 "uploadedPostCount": 21, // 已上传图文数 "releasedPostTotal": 35, // 已释放图文总数 - v.PendingVideoCount = info.PendingVideoCount - v.UploadedVideoCount = info.UploadedVideoCount - v.ReleasedVideoTotal = info.ReleasedVideoTotal - v.PendingPostCount = info.PendingPostCount - v.UploadedPostCount = info.UploadedPostCount - v.ReleasedPostTotal = info.ReleasedPostTotal } go func() { for _, v := range resp.Data {