afa 4 månader sedan
förälder
incheckning
18b7ab5abe
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);