同步物流 订单号二次提交 修改为随机数

This commit is contained in:
chfei committed 2026-10-16 16:44:21 +08:00
1 parent 669b2d85aa
commit 86d30fec47
1 file changed
+3 -2
@@ -1,3 +1,4 @@
using KJD_Web.Utils;
using MAX.Core.Commons; using MAX.Core.Commons;
using MAX.Core.DependencyInjection; using MAX.Core.DependencyInjection;
using MAX.Core.Logger; using MAX.Core.Logger;
@@ -247,8 +248,8 @@ public class VirtualLogisticsService : ITransientDependency
{ {
if (ret.Msg.Contains("order_sn重复") && isTestingRepeat) //检测重复 替换orderSN if (ret.Msg.Contains("order_sn重复") && isTestingRepeat) //检测重复 替换orderSN
{ {
orderSN = orderSN + "_1";//只重复一次 string temporderSN = $"{orderSN}_{RandomUtils.GetNumber(5)}";
ret = _buyTrackingNumber(orderSN, agentOrderId, shopAppkey, sourceTrackingNumber, w_order, productItem, false); ret = _buyTrackingNumber(temporderSN, agentOrderId, shopAppkey, sourceTrackingNumber, w_order, productItem, false);
} }
} }
if (ret.Success == false) if (ret.Success == false)