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
2c35a974
Commit
2c35a974
authored
Feb 16, 2022
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remittance API and Withdrawal Export Function Fix
parent
c90fd5ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
MoneyRequest.php
api/MoneyRequest.php
+21
-2
model.php
system/logic/withdraw/model.php
+1
-1
No files found.
api/MoneyRequest.php
View file @
2c35a974
...
@@ -219,6 +219,8 @@ class MoneyRequest extends System {
...
@@ -219,6 +219,8 @@ class MoneyRequest extends System {
$this
->
result
[
PARAM_RESULT
]
=
sprintf
(
"%02d"
,
VAL_INT_90
);
$this
->
result
[
PARAM_RESULT
]
=
sprintf
(
"%02d"
,
VAL_INT_90
);
$this
->
result
[
PARAM_STATUS
]
=
"REJECTED"
;
$this
->
result
[
PARAM_STATUS
]
=
"REJECTED"
;
}
else
{
}
else
{
$this
->
randomSecondsDelay
();
$this
->
ctransfer
=
$this
->
checkTransfer
(
$this
->
ctransfer
=
$this
->
checkTransfer
(
$this
->
fromAccount
,
$this
->
fromAccount
,
$this
->
toAccount
,
$this
->
toAccount
,
...
@@ -244,6 +246,20 @@ class MoneyRequest extends System {
...
@@ -244,6 +246,20 @@ class MoneyRequest extends System {
$this
->
logPost
(
$this
->
pnum
);
$this
->
logPost
(
$this
->
pnum
);
}
}
private
function
randomSecondsDelay
(){
$processDelaySettings
=
$this
->
getSettingConfiguration
(
"remittance_api_random_process_sleeper"
);
if
(
$processDelaySettings
){
$delayTime
=
mt_rand
(
$processDelaySettings
->
min
,
$processDelaySettings
->
max
);
$this
->
result
[
"delayTime"
]
=
"
{
$delayTime
}
second(s)."
;
sleep
(
$delayTime
);
}
}
private
function
getTransactionalParams
(){
private
function
getTransactionalParams
(){
$this
->
debitAmount
=
$this
->
getColumnData
(
$this
->
ctransfer
,
PARAM_AMOUNT
);
$this
->
debitAmount
=
$this
->
getColumnData
(
$this
->
ctransfer
,
PARAM_AMOUNT
);
...
@@ -322,8 +338,11 @@ class MoneyRequest extends System {
...
@@ -322,8 +338,11 @@ class MoneyRequest extends System {
'[REMITTANCE_CALLBACK_RESULT]'
.
json_encode
(
$this
->
result
)
'[REMITTANCE_CALLBACK_RESULT]'
.
json_encode
(
$this
->
result
)
]);
]);
if
(
isset
(
$this
->
result
[
"combination"
])){
$toUnset
=
[
"combination"
,
"delayTime"
];
unset
(
$this
->
result
[
"combination"
]);
foreach
(
$toUnset
as
$uns
){
if
(
isset
(
$this
->
result
[
$uns
]))
unset
(
$this
->
result
[
$uns
]);
}
}
echo
json_encode
(
$this
->
result
);
echo
json_encode
(
$this
->
result
);
...
...
system/logic/withdraw/model.php
View file @
2c35a974
...
@@ -1799,7 +1799,7 @@ class WithdrawModelClass extends ModelClassEx {
...
@@ -1799,7 +1799,7 @@ class WithdrawModelClass extends ModelClassEx {
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_ORDER_NUMBER
);
// 送金注文番号
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_ORDER_NUMBER
);
// 送金注文番号
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_PROCESS_TIME
);
// 処理時間
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_PROCESS_TIME
);
// 処理時間
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_PROCESS_USER_NAME
);
// 処理担当
$arr
[]
=
$this
->
getColumnData
(
$row
,
COLUMN_PROCESS_USER_NAME
);
// 処理担当
$arr
[]
=
str_replace
(
"
\n
"
,
NO_STRING
,
$this
->
getColumnData
(
$row
,
COLUMN_NOTE
));
// 備考
$arr
[]
=
preg_replace
(
"/\s+/"
,
" "
,
$this
->
getColumnData
(
$row
,
COLUMN_NOTE
));
// 備考
$data
.=
'"'
.
implode
(
'"'
.
DELIMIT_COMMA
.
'"'
,
$arr
)
.
'"'
.
"
\n
"
;
$data
.=
'"'
.
implode
(
'"'
.
DELIMIT_COMMA
.
'"'
,
$arr
)
.
'"'
.
"
\n
"
;
}
}
...
...
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