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

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

+1 -1
View File
@@ -295,7 +295,7 @@ public class BuyResultItem
public string KuaidiSn { get; set; }
/// <summary>
/// 快递状态:2待揽件 3已揽件
/// 快递状态:2待揽件 3已揽件,4出单失败
/// </summary>
public string Status { get; set; }
@@ -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,