Files
KJD/Store.Product/Publish/Steps/Wx/UploadVideoStep.cs
T
2026-09-14 09:16:59 +08:00

22 lines
760 B
C#

using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Store.Product.Publish.Steps.Wx;
/// <summary>
/// 商品视频上传步骤。原实现依赖 TEMUKJD 视频上传服务,迁移到独立 DLL 前明确终止。
/// </summary>
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;
}
}