Commit 534c4eac authored by Antonio.Suerte's avatar Antonio.Suerte

Admin Account Whitelisting [No Fee Setting Enhancement]

parent 8022fde4
...@@ -310,12 +310,19 @@ class WithdrawModelClass extends ModelClassEx { ...@@ -310,12 +310,19 @@ class WithdrawModelClass extends ModelClassEx {
, $this -> getUserData(PARAM_USER_ACCOUNT)); , $this -> getUserData(PARAM_USER_ACCOUNT));
} }
// バランスと(送金額 + 手数料)のチェック // 手数料なし
if($this -> fromCurrency == USD) { $accounts = array_map(function($element){
$this -> setFeeEx($fee[USD . VAL_INT_1]); return $element -> user_account;
} else { }, $this -> administrativeExceptions);
$this -> setFeeEx($feeExchange[PARAM_AMOUNT]);
} if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
// バランスと(送金額 + 手数料)のチェック
if($this -> fromCurrency == USD)
$this -> setFeeEx($fee[USD . VAL_INT_1]);
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]);
...@@ -369,10 +376,12 @@ class WithdrawModelClass extends ModelClassEx { ...@@ -369,10 +376,12 @@ class WithdrawModelClass extends ModelClassEx {
//check if flat 3 //check if flat 3
if($_SESSION['moneyoutSolution'] == 'Flat3'){ if($_SESSION['moneyoutSolution'] == 'Flat3'){
$flat3Fee = round($this -> debitAmount * VAL_FLOAT_FLAT3_WITHDRAW_FEE, 2); if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
$flat3Fee = round($this -> debitAmount * VAL_FLOAT_FLAT3_WITHDRAW_FEE, 2);
if($this -> getFeeEx() < $flat3Fee){
$this -> setFeeEx($flat3Fee); 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