更新
This commit is contained in:
parent
64bb636a9c
commit
fcb09b2157
@ -580,13 +580,13 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
||||
}
|
||||
}
|
||||
if($this->store_consumption_user['type']==1){
|
||||
if($pay_price>$this->store_consumption_user['balance']){
|
||||
if($pay_price > $this->store_consumption_user['balance']){
|
||||
$pay_price = bcsub($pay_price, $this->store_consumption_user['balance'], 2);
|
||||
$this->consumption_money=$this->store_consumption_user['balance'];
|
||||
$a=$this->store_consumption_user['balance'];
|
||||
}else{
|
||||
$pay_price=0;
|
||||
$this->consumption_money=bcsub($this->store_consumption_user['balance'],$pay_price, 2);
|
||||
$this->consumption_money=$pay_price;
|
||||
$a=$this->consumption_money;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user