zac3533 1 рік тому
батько
коміт
2c901d528e
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      application/admin/controller/trade/MoneyOut.php

+ 1 - 1
application/admin/controller/trade/MoneyOut.php

@@ -94,7 +94,7 @@ class MoneyOut extends Backend
                 $amount = $row->real_amount;
                 $action = MoneyLog::Withdraw;
             }
-            $action = $status == $this->model::Success? MoneyLog::Withdraw :MoneyLog::Reject;
+      
             (new MoneyLog())->change($row->user_id, $amount, $action, $row->user_id, '提现');
             $result = $row->allowField(true)->save(['status'=>$status]);
             Db::commit();