소스 검색

扣除茶宝

afa 4 달 전
부모
커밋
18b7ab5abe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Exchange.php

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

@@ -208,7 +208,7 @@ class Exchange extends Api
 
               //扣除茶宝
               if($token > 0){
-                  $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, $token, LedgerTokenChangeModel::RwaExchangeRecord, 0);
+                  $ledgerWalletModel->changeWalletAccount($this->auth->id, Asset::TOKEN, -$token, LedgerTokenChangeModel::RwaExchangeRecord, 0);
               }
               //发放产品奖励
               $rs =WelfareLoginc::setUserWelfareProduct($this->auth->id, $welfare_config['product_id'], ProductOrder::RwaExchange);