Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
8022fde4
Commit
8022fde4
authored
Nov 30, 2021
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Admin Account Whitelisting [No Fee Setting]
parent
3bad412f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
model.php
logic/withdraw/model.php
+19
-7
No files found.
logic/withdraw/model.php
View file @
8022fde4
...
...
@@ -433,12 +433,19 @@ class WithdrawModelClass extends ModelClassEx {
,
$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
)){
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
]);
...
...
@@ -495,7 +502,12 @@ class WithdrawModelClass extends ModelClassEx {
if
(
$_SESSION
[
'moneyoutSolution'
]
==
'Flat3'
){
$flat3Fee
=
round
(
$this
->
debitAmount
*
VAL_FLOAT_FLAT3_WITHDRAW_FEE
,
2
);
if
(
$this
->
getFeeEx
()
<
$flat3Fee
){
$accounts
=
array_map
(
function
(
$element
){
return
$element
->
user_account
;
},
$this
->
administrativeExceptions
);
if
(
!
in_array
(
$this
->
getUserData
(
PARAM_USER_ACCOUNT
),
$accounts
)){
if
(
$this
->
getFeeEx
()
<
$flat3Fee
)
$this
->
setFeeEx
(
$flat3Fee
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment