|
|
@@ -92,7 +92,7 @@ class MarketLogic
|
|
|
$lockList = $productTransfer->whereIn('id', $transferId)->select();
|
|
|
foreach ($lockList 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(__("茶权已被他人锁定,无法操作"));
|
|
|
$item->lock_uid = $uid;
|
|
|
$item->lock_time = $time;
|
|
|
$item->save();
|