shish 2 maanden geleden
bovenliggende
commit
f9a23bbd02
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      app-ghs/controllers/OrderController.php

+ 2 - 2
app-ghs/controllers/OrderController.php

@@ -1064,8 +1064,8 @@ class OrderController extends BaseController
 
         //解决开单提交订单时,别人修改价格,造成提交价格不是真实卖价问题!!
         $dealPrice = $post['dealPrice'] ?? 0;
-        //解决重复提交问题
-        util::checkRepeatCommit($this->adminId . '_' . $dealPrice, 3);
+        //解决重复提交:同店铺 + 同操作人 + 同客户 + 同成交价,短时间内只允许一次(防连点 / 双请求)
+        util::checkRepeatCommit($shopId . '_' . $this->adminId . '_' . $customId . '_' . $dealPrice, 3);
 
         CustomClass::valid($custom, $this->shopId);
         if (!empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {