|
|
@@ -72,7 +72,7 @@ class OrderLogic
|
|
|
if (count($result) != count(explode(",", $orderId))) {
|
|
|
if(empty($order_info)) throw new Exception(__("订单不存在"));
|
|
|
}
|
|
|
- $totalAmount = 0; //总金额
|
|
|
+ //$totalAmount = 0; //总金额
|
|
|
$time = time();
|
|
|
$endTime = config('market_transfer.lock_time');
|
|
|
foreach ($result as $item) {
|
|
|
@@ -80,7 +80,7 @@ class OrderLogic
|
|
|
if($item->user_id == $uid) throw new Exception(__("不能购买自己寄售的商品"));
|
|
|
if($item->lock_uid != $uid && $item->lock_time + $endTime > $time) throw new Exception(__("茶权已被他人锁定,无法操作"));
|
|
|
|
|
|
- $totalAmount = bcadd($totalAmount, $item->price, 2);
|
|
|
+ //$totalAmount = bcadd($totalAmount, $item->price, 2);
|
|
|
//抢购订单
|
|
|
$popular_order = $productOrder->where('id', $item->order_id)->find();
|
|
|
|
|
|
@@ -110,8 +110,8 @@ class OrderLogic
|
|
|
$item->status = $productTransfer::Stop;
|
|
|
$item->save();
|
|
|
}
|
|
|
- $chabao = $ledgerWalletModel::getWalletChaBao($uid);
|
|
|
- if(bccomp($totalAmount, $chabao, 2) > 0) throw new Exception(__("余额不足请前往充值"), 15001);
|
|
|
+ //$chabao = $ledgerWalletModel::getWalletChaBao($uid);
|
|
|
+ //if(bccomp($totalAmount, $chabao, 2) > 0) throw new Exception(__("余额不足请前往充值"), 15001);
|
|
|
return true;
|
|
|
}
|
|
|
|