afa 4 mēneši atpakaļ
vecāks
revīzija
18b7ab5abe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);