|
|
@@ -195,7 +195,7 @@ class Order extends Api
|
|
|
if(empty($user)) throw new Exception(__("赠送用户不存在"));
|
|
|
if($user['id'] == $order_info['user_id']) throw new Exception(__("赠送用户不能是自己"));
|
|
|
//手续费
|
|
|
- $price = $order_info->gift_fee> 0? $order_info['price']: $productTransfer::getTransferMinPrice($order_info->product_id);
|
|
|
+ $price = $order_info['price'] > 0? $order_info['price']: $productTransfer::getTransferMinPrice($order_info->product_id);
|
|
|
$fees = bcmul($price, bcdiv($order_info->gift_fee, 100, 2), 2);
|
|
|
//余额记录
|
|
|
$chabao = $ledgerWalletModel::getWalletChaBao($this->auth->id);
|