更新
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($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);
|
$pay_price = bcsub($pay_price, $this->store_consumption_user['balance'], 2);
|
||||||
$this->consumption_money=$this->store_consumption_user['balance'];
|
$this->consumption_money=$this->store_consumption_user['balance'];
|
||||||
$a=$this->store_consumption_user['balance'];
|
$a=$this->store_consumption_user['balance'];
|
||||||
}else{
|
}else{
|
||||||
$pay_price=0;
|
$pay_price=0;
|
||||||
$this->consumption_money=bcsub($this->store_consumption_user['balance'],$pay_price, 2);
|
$this->consumption_money=$pay_price;
|
||||||
$a=$this->consumption_money;
|
$a=$this->consumption_money;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user