wesmiler 6 dias atrás
pai
commit
434a608604
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Services/Api/BalanceLogService.php

+ 1 - 1
app/Services/Api/BalanceLogService.php

@@ -172,7 +172,7 @@ class BalanceLogService extends BaseService
             return false;
         }
 
-        $withdrawMin = ConfigService::make()->getConfigByCode("withdraw_min", 0.1);
+        $withdrawMin = ConfigService::make()->getConfigByCode("withdraw_min_{$accountType}", 0.1);
         if ($withdrawMin > 0 && $money < $withdrawMin) {
             $this->error = lang(2305, ['money' => $withdrawMin]);
             return false;