diff --git a/pkg/service/cast/work.go b/pkg/service/cast/work.go index 7fce34d3..c96236c9 100644 --- a/pkg/service/cast/work.go +++ b/pkg/service/cast/work.go @@ -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))