修改状态刷新

This commit is contained in:
戴育兵 2026-01-12 14:35:35 +08:00
parent b220a4ea96
commit 84e8a6dfda

View File

@ -1602,6 +1602,14 @@ func RefreshPublish() error {
} }
for _, platformInfo := range workInfo.PlatformInfoData { for _, platformInfo := range workInfo.PlatformInfoData {
if platformInfo.PublishMediaID == "" { if platformInfo.PublishMediaID == "" {
var infoReq = &cast.UpdateWorkPlatformInfoReq{
PlatformInfoData: make([]*cast.PlatformInfo, 0),
}
infoReq.PlatformInfoData = append(infoReq.PlatformInfoData, &cast.PlatformInfo{
WorkUuid: workInfo.WorkUuid,
PublishStatus: cast.PublishStatusENUM_PublishMediaStatus_NO,
})
_, _ = service.CastProvider.UpdateWorkPlatformInfo(context.Background(), infoReq)
continue continue
} }
var infoReq = &cast.UpdateWorkPlatformInfoReq{ var infoReq = &cast.UpdateWorkPlatformInfoReq{