同步物流 订单号二次提交 修改为随机数
This commit is contained in:
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.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)
|
||||
|
||||
Reference in new issue
Block a user