afa 7 months ago
parent
commit
9aacdf0566
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/logic/OrderLogic.php

+ 1 - 1
application/api/logic/OrderLogic.php

@@ -79,7 +79,7 @@ class OrderLogic
             foreach ($result as $item) {
 
                   if($item->user_id == $uid) throw new Exception(__("不能购买自己寄售的商品"));
-                  if($item->lock_time + $endTime > $time) throw new Exception(__("茶权已被他人锁定,无法操作"));
+                  if($item->lock_uid != $uid && $item->lock_time + $endTime > $time) throw new Exception(__("茶权已被他人锁定,无法操作"));
 
                   $totalAmount = bcadd($totalAmount, $item->price, 2);
                   //抢购订单