diff --git a/Store.SyncLogistics/Services/VirtualLogisticsService.cs b/Store.SyncLogistics/Services/VirtualLogisticsService.cs index 732837b..3255f99 100644 --- a/Store.SyncLogistics/Services/VirtualLogisticsService.cs +++ b/Store.SyncLogistics/Services/VirtualLogisticsService.cs @@ -1,3 +1,4 @@ +using KJD_Web.Utils; using MAX.Core.Commons; using MAX.Core.DependencyInjection; using MAX.Core.Logger; @@ -247,8 +248,8 @@ public class VirtualLogisticsService : ITransientDependency { if (ret.Msg.Contains("order_sn重复") && isTestingRepeat) //检测重复 替换orderSN { - orderSN = orderSN + "_1";//只重复一次 - ret = _buyTrackingNumber(orderSN, agentOrderId, shopAppkey, sourceTrackingNumber, w_order, productItem, false); + string temporderSN = $"{orderSN}_{RandomUtils.GetNumber(5)}"; + ret = _buyTrackingNumber(temporderSN, agentOrderId, shopAppkey, sourceTrackingNumber, w_order, productItem, false); } } if (ret.Success == false)