Update work.go
This commit is contained in:
parent
64e52b5ec4
commit
73b183a1e4
@ -979,12 +979,21 @@ func PostAS(ctx context.Context, workUuid string, publishSource cast.PublishSour
|
||||
Remark: string(postData),
|
||||
PublishSource: publishSource,
|
||||
})
|
||||
_, _ = service.CastProvider.UpdateWorkPublishLog(context.Background(), &cast.UpdateWorkPublishLogReq{
|
||||
PlatformID: cast.PlatformIDENUM(platformID),
|
||||
WorkUuid: workUuid,
|
||||
Action: "getPost",
|
||||
Detail: string(postBytes),
|
||||
PublishSource: publishSource,
|
||||
PublishMediaStatus: publishStatus,
|
||||
})
|
||||
}
|
||||
zap.L().Info("post 10", zap.Any("workUuid", workUuid), zap.Any("platformID", platformID))
|
||||
_, err = service.CastProvider.UpdateWorkPlatformInfo(context.Background(), infoReq)
|
||||
if err != nil {
|
||||
zap.L().Error("Publish UpdateWorkPlatformInfo failed", zap.String("workUuid", workUuid), zap.Error(err))
|
||||
}
|
||||
|
||||
zap.L().Info("Publish Ayrshare PostResp", zap.Any("postResp", postResp))
|
||||
}
|
||||
zap.L().Info("post 5.1", zap.Any("workUuid", workUuid))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user