|
|
@@ -956,6 +956,9 @@ class PurchaseController extends BaseController
|
|
|
util::fail('商家支付功能未开通');
|
|
|
}
|
|
|
|
|
|
+ //避免重复提交
|
|
|
+ util::checkRepeatCommit($orderSn, 8);
|
|
|
+
|
|
|
//已经唤起过支付了,根据拉卡拉的规则,需要生成新的订单号
|
|
|
if ($order->changePrice == 2) {
|
|
|
$oldOrderSn = $orderSn;
|
|
|
@@ -1068,6 +1071,9 @@ class PurchaseController extends BaseController
|
|
|
util::fail('订单已失效,请重新下单');
|
|
|
}
|
|
|
|
|
|
+ //避免重复提交
|
|
|
+ util::checkRepeatCommit($orderSn, 8);
|
|
|
+
|
|
|
$ghsId = $order->ghsId ?? 0;
|
|
|
$ghs = GhsClass::getById($ghsId, true);
|
|
|
if (empty($ghs)) {
|