|
|
@ -83,12 +83,13 @@ class SpendController extends Controller {
|
|
|
|
$this->assign ( 'bind_balance', $bind_balance );
|
|
|
|
$this->assign ( 'bind_balance', $bind_balance );
|
|
|
|
$this->assign ( 'data', $data );
|
|
|
|
$this->assign ( 'data', $data );
|
|
|
|
$this->assign ( 'btncolor', $request ['btncolor'] );
|
|
|
|
$this->assign ( 'btncolor', $request ['btncolor'] );
|
|
|
|
|
|
|
|
|
|
|
|
if ($balance + $bind_balance > $data['price']) {
|
|
|
|
if ($balance + $bind_balance > $data['price']) {
|
|
|
|
$apply_money = $data['price'];
|
|
|
|
$apply_money = $data['price'];
|
|
|
|
$this->assign ('pay_price', 0); // 是否第三方支付
|
|
|
|
$this->assign ('pay_price', 0); // 是否第三方支付
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$apply_money = $balance + $bind_balance;
|
|
|
|
$apply_money = $balance + $bind_balance;
|
|
|
|
$payPrice = $data['price'] - $balance - $bind_balance;
|
|
|
|
$payPrice = round($data['price'] - $balance - $bind_balance, 2);
|
|
|
|
$this->assign ('pay_price', $payPrice ? $payPrice : 0);
|
|
|
|
$this->assign ('pay_price', $payPrice ? $payPrice : 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|