lizhen_gitee 10 miesięcy temu
rodzic
commit
ddc2dbea81
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      application/api/controller/Wenzhen.php

+ 1 - 1
application/api/controller/Wenzhen.php

@@ -129,7 +129,7 @@ class Wenzhen extends Api
 
             //用户扣钱
             $logtype = $wenzhen_order['ordertype'] == 1 ? 11 : 12;
-            $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',$wenzhen_order['total_fee'],$logtype,'图文问诊'.$wenzhen_order['order_no'],'wenzhen_order',$order_id);
+            $rs_wallet = model('wallet')->lockChangeAccountRemain($this->auth->id,'money',-$wenzhen_order['total_fee'],$logtype,'图文问诊'.$wenzhen_order['order_no'],'wenzhen_order',$order_id);
             if($rs_wallet['status'] == false){
                 Db::rollback();
                 $this->error($rs_wallet['msg']);