From 79479ee7470029e289879ff0bd45bfa7e9e0a023 Mon Sep 17 00:00:00 2001 From: daiyb <570956418@qq.com> Date: Fri, 19 Dec 2025 19:10:32 +0800 Subject: [PATCH] Update work.go --- pkg/service/cast/work.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/service/cast/work.go b/pkg/service/cast/work.go index d17d056..2bab1a2 100644 --- a/pkg/service/cast/work.go +++ b/pkg/service/cast/work.go @@ -489,12 +489,12 @@ func PostAS(workUuids []string) (errs []error) { postIDs := postResp.Posts[0].PostIds postData, _ := json.Marshal(postResp) for _, postInfo := range postIDs { - var platformID uint32 + var pid uint32 switch postInfo.Platform { case "tiktok": - platformID = 1 + pid = 1 case "instagram": - platformID = 3 + pid = 3 } publishStatus := cast.PublishStatusENUM_PublishMediaStatus_NO if postInfo.Status == "success" { @@ -510,7 +510,7 @@ func PostAS(workUuids []string) (errs []error) { infoReq.PlatformInfoData = append(infoReq.PlatformInfoData, &cast.PlatformInfo{ WorkUuid: workDetail.WorkUuid, MediaAccountUuid: "", //FIXME - PlatformID: platformID, + PlatformID: pid, PublishType: 2, PublishResp: string(postBytes), PublishMediaId: postResp.Posts[0].Id,