Commit 8022fde4 authored by Antonio.Suerte's avatar Antonio.Suerte

Admin Account Whitelisting [No Fee Setting]

parent 3bad412f
...@@ -433,12 +433,19 @@ class WithdrawModelClass extends ModelClassEx { ...@@ -433,12 +433,19 @@ class WithdrawModelClass extends ModelClassEx {
, $this -> getUserData(PARAM_USER_ACCOUNT)); , $this -> getUserData(PARAM_USER_ACCOUNT));
} }
// setting exception
$accounts = array_map(function($element){
return $element -> user_account;
}, $this -> administrativeExceptions);
// バランスと(送金額 + 手数料)のチェック // バランスと(送金額 + 手数料)のチェック
if($this -> fromCurrency == USD) { if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
$this -> setFeeEx($fee[USD . VAL_INT_1]); if($this -> fromCurrency == USD)
} else { $this -> setFeeEx($fee[USD . VAL_INT_1]);
$this -> setFeeEx($feeExchange[PARAM_AMOUNT]); else
} $this -> setFeeEx($feeExchange[PARAM_AMOUNT]);
}else
$this -> setFeeEx(0);
$this -> setAgent1Ex($fee[PARAM_AGENT_CODE . VAL_INT_1]); $this -> setAgent1Ex($fee[PARAM_AGENT_CODE . VAL_INT_1]);
...@@ -495,8 +502,13 @@ class WithdrawModelClass extends ModelClassEx { ...@@ -495,8 +502,13 @@ class WithdrawModelClass extends ModelClassEx {
if($_SESSION['moneyoutSolution'] == 'Flat3'){ if($_SESSION['moneyoutSolution'] == 'Flat3'){
$flat3Fee = round($this -> debitAmount * VAL_FLOAT_FLAT3_WITHDRAW_FEE, 2); $flat3Fee = round($this -> debitAmount * VAL_FLOAT_FLAT3_WITHDRAW_FEE, 2);
if($this -> getFeeEx() < $flat3Fee){ $accounts = array_map(function($element){
$this -> setFeeEx($flat3Fee); return $element -> user_account;
}, $this -> administrativeExceptions);
if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
if($this -> getFeeEx() < $flat3Fee)
$this -> setFeeEx($flat3Fee);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment