From 86d30fec472651c96524f66cefd88a857570b859 Mon Sep 17 00:00:00 2001 From: chfei Date: Fri, 16 Oct 2026 16:44:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=89=A9=E6=B5=81=20=20?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=8F=B7=E4=BA=8C=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E4=B8=BA=E9=9A=8F=E6=9C=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Store.SyncLogistics/Services/VirtualLogisticsService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)