|
|
@@ -660,9 +660,6 @@ class OrderController extends BaseController
|
|
|
try {
|
|
|
$post['product'] = $productList;
|
|
|
|
|
|
- //解决重复提交
|
|
|
- util::checkRepeatCommit($this->adminId, 2);
|
|
|
-
|
|
|
$reduceStock = $post['reduceStock'] ?? 0;
|
|
|
if ($reduceStock == 1) {
|
|
|
//如果扣除库,则走另外一条路
|
|
|
@@ -673,6 +670,10 @@ class OrderController extends BaseController
|
|
|
|
|
|
//解决开单提交订单时,别人修改价格,造成提交价格不是真实卖价问题!!
|
|
|
$dealPrice = $post['dealPrice'] ?? 0;
|
|
|
+
|
|
|
+ //解决重复提交
|
|
|
+ util::checkRepeatCommit($this->adminId . '_' . $dealPrice, 2);
|
|
|
+
|
|
|
if ($dealPrice == 0) {
|
|
|
$productIds = [];
|
|
|
$hsIds = [];
|