wesmiler 4 napja
szülő
commit
434a608604
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;