Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
hujun
tl_estate
Commits
d77d8e90
Commit
d77d8e90
authored
May 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款驳回判断
parent
68bc7da3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
PayLog.php
application/api_broker/controller/PayLog.php
+2
-0
PayLogService.php
application/api_broker/service/PayLogService.php
+7
-0
Finance.php
application/index/controller/Finance.php
+2
-0
No files found.
application/api_broker/controller/PayLog.php
View file @
d77d8e90
...
@@ -134,6 +134,8 @@ class PayLog extends Basic
...
@@ -134,6 +134,8 @@ class PayLog extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
[]);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
elseif
(
$is_ok
==
-
2
)
{
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"退款金不能大于剩余的支付金额"
);
return
$this
->
response
(
"101"
,
"退款金不能大于剩余的支付金额"
);
}
elseif
(
$is_ok
==
-
3
)
{
return
$this
->
response
(
"101"
,
"请在原退款上驳回修改"
);
}
}
return
$this
->
response
(
"101"
,
"request faild"
);
return
$this
->
response
(
"101"
,
"request faild"
);
}
}
...
...
application/api_broker/service/PayLogService.php
View file @
d77d8e90
...
@@ -165,6 +165,13 @@ class PayLogService
...
@@ -165,6 +165,13 @@ class PayLogService
$refund_way
,
$remark
,
$remark_img
,
$refund_id
,
$del_img
)
$refund_way
,
$remark
,
$remark_img
,
$refund_id
,
$del_img
)
{
{
$where
[
'pay_log_id'
]
=
$pay_log_id
;
$where
[
'status'
]
=
4
;
$id
=
$this
->
oRefundModel
->
getFind
(
'id'
,
[
'pay_log_id'
=>
$pay_log_id
]);
if
(
$id
[
'id'
]
>
0
)
{
return
-
3
;
//在驳回上修改
}
//验证金额是否合法
//验证金额是否合法
$payLogService
=
new
PayLogService
();
$payLogService
=
new
PayLogService
();
$residue_money
=
$payLogService
->
adjustment
(
$pay_log_id
);
$residue_money
=
$payLogService
->
adjustment
(
$pay_log_id
);
...
...
application/index/controller/Finance.php
View file @
d77d8e90
...
@@ -4523,6 +4523,8 @@ class Finance extends Basic
...
@@ -4523,6 +4523,8 @@ class Finance extends Basic
return
$this
->
response
(
"200"
,
"request success"
,
[]);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
elseif
(
$is_ok
==
-
2
)
{
}
elseif
(
$is_ok
==
-
2
)
{
return
$this
->
response
(
"101"
,
"退款金不能大于剩余的支付金额"
);
return
$this
->
response
(
"101"
,
"退款金不能大于剩余的支付金额"
);
}
elseif
(
$is_ok
==
-
3
)
{
return
$this
->
response
(
"101"
,
"请在原退款上驳回修改"
);
}
}
return
$this
->
response
(
"101"
,
"request faild"
);
return
$this
->
response
(
"101"
,
"request faild"
);
}
}
...
...
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