增加快递购买 无快递单号提示报错

This commit is contained in:
chfei committed 2026-09-24 18:15:08 +08:00
1 parent efa9955bd2
commit 5a0a8d8c02
2 files changed
+5 -2

No files matched your search

@@ -158,10 +158,13 @@ public class VirtualLogisticsService : ITransientDependency
throw new Exception("购买同步单失败");
}
List<YhSyncLogisticsEntity> yhSyncs = new List<YhSyncLogisticsEntity>();
foreach (var sync in ret.Data)
{
if (string.IsNullOrEmpty(sync.KuaidiSn))
{
throw new Exception($"获取快递单号为空,Status:{sync.Status}");
}
yhSyncs.Add(new YhSyncLogisticsEntity
{
OrderId = sync.OrderSn,