Browse Source

出售求购

afa 7 months ago
parent
commit
0e5ba57b05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Market.php

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

@@ -163,7 +163,7 @@ class Market extends Api
             $ledgerWalletModel->changeWalletAccount($this->auth->id,  Asset::TOKEN, $chabao, LedgerTokenChangeModel::BuySellg, $buying->user_id);
 
             // 扣除冻结金额
-            $ledgerWalletModel->changeWalletOnly($buying->user_id, Asset::BUYING, -$chabao); //解冻金额
+            $ledgerWalletModel->changeWalletOnly($buying->user_id, Asset::BUYING, -$buying->min_price); //解冻金额
 
             //关闭订单
             $productOrder::where('id', $params['order_id'])->where('user_id', $this->auth->id)->setField(['status' => ProductOrder::Closure]);