|
@@ -52,7 +52,7 @@ class Unishop extends Api
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
|
|
|
|
//扣钱
|
|
//扣钱
|
|
- $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',$orderinfo['total_price'],31,'商城购物','unishop_order',$orderid);
|
|
|
|
|
|
+ $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',-$orderinfo['total_price'],31,'商城购物','unishop_order',$orderid);
|
|
if($rs_wallet['status'] == false){
|
|
if($rs_wallet['status'] == false){
|
|
Db::rollback();
|
|
Db::rollback();
|
|
$this->error($rs_wallet['msg']);
|
|
$this->error($rs_wallet['msg']);
|