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 {
, $this -> getUserData(PARAM_USER_ACCOUNT));
}
// 手数料なし
$accounts = array_map(function($element){
return $element -> user_account;
}, $this -> administrativeExceptions);
if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
// バランスと(送金額 + 手数料)のチェック
if($this -> fromCurrency == USD) {
if($this -> fromCurrency == USD)
$this -> setFeeEx($fee[USD . VAL_INT_1]);
} else {
else
$this -> setFeeEx($feeExchange[PARAM_AMOUNT]);
}
}else
$this -> setFeeEx(0);
$this -> setAgent1Ex($fee[PARAM_AGENT_CODE . VAL_INT_1]);
......@@ -369,6 +376,7 @@ class WithdrawModelClass extends ModelClassEx {
//check if flat 3
if($_SESSION['moneyoutSolution'] == 'Flat3'){
if(!in_array($this -> getUserData(PARAM_USER_ACCOUNT), $accounts)){
$flat3Fee = round($this -> debitAmount * VAL_FLOAT_FLAT3_WITHDRAW_FEE, 2);
if($this -> getFeeEx() < $flat3Fee){
......@@ -376,6 +384,7 @@ class WithdrawModelClass extends ModelClassEx {
}
}
}
}
} else if($this -> getType() == $typeArray["Confirm"]) { // 確認タイプの場合
......
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