This commit is contained in:
mkm 2024-01-21 14:13:42 +08:00
parent 64bb636a9c
commit fcb09b2157

View File

@ -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;
}
}