From 07cd186e816f66f0185f16acc5777e8a65063e72 Mon Sep 17 00:00:00 2001 From: cjy Date: Thu, 12 Feb 2026 11:55:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=80=82=E9=85=8D=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/cast/work.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkg/service/cast/work.go b/pkg/service/cast/work.go index d8c6e832..3c9e772d 100644 --- a/pkg/service/cast/work.go +++ b/pkg/service/cast/work.go @@ -2161,6 +2161,21 @@ func WorkListPublished(ctx *gin.Context) { service.Error(ctx, err) return } + if req.ArtistUuid != "" && strings.HasPrefix(strings.ToUpper(req.ArtistUuid), "FE") { + subInfoResp, err := service.AccountFieeProvider.SubNumGetInfo(context.Background(), &accountFiee.SubNumGetInfoRequest{ + SubNum: req.ArtistUuid, + Domain: "app", + }) + if err != nil { + service.Error(ctx, errors.New("自媒体用户查询失败")) + return + } + if subInfoResp == nil || subInfoResp.Id == 0 { + service.Error(ctx, errors.New("自媒体用户不存在")) + return + } + req.ArtistUuid = fmt.Sprint(subInfoResp.Id) + } newCtx := NewCtxWithUserInfo(ctx) resp, err = service.CastProvider.WorkListPublished(newCtx, req) if err != nil {