using System; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Store.Product.Publish.Steps.Wx; /// /// 商品视频上传步骤。原实现依赖 TEMUKJD 视频上传服务,迁移到独立 DLL 前明确终止。 /// public sealed class UploadVideoStep : WxProductPublishStepBase { public override string Description => "上传商品视频"; protected override Task ExecuteProvider(WXPublishContext context, CancellationToken cancellationToken) { if (context.Parameters.ProdInfo?.detail?.galleries?.Any(a => a.type == 6) == true) throw new NotSupportedException("商品视频上传服务尚未迁移到 Store.Product。"); return Task.CompletedTask; } }