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
bf96ee5b
Commit
bf96ee5b
authored
Sep 29, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4c69f602
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AmercementService.php
application/index/service/AmercementService.php
+4
-4
No files found.
application/index/service/AmercementService.php
View file @
bf96ee5b
...
...
@@ -402,15 +402,15 @@ class AmercementService
public
function
cancelAmercement
(
$id
)
{
//判断是否有支付过
$payInfo
=
$this
->
isPay
(
$id
);
if
(
$payInfo
)
{
//已支付 不允许取消
return
[
'code'
=>
101
,
'msg'
=>
'失败!该罚款已支付'
];
}
else
{
//无支付订单号 允许取消
$verify_pay
=
$this
->
verifyPayAmercement
(
$id
);
if
(
$verify_pay
)
{
//无支付成功订单,可以取消
$data
=
[];
$data
[
'id'
]
=
$id
;
$data
[
'status'
]
=
2
;
$this
->
m_amercement
->
updateAmercementData
(
$data
);
return
[
'code'
=>
200
,
'msg'
=>
'已取消'
];
}
else
{
//已支付
return
[
'code'
=>
101
,
'msg'
=>
'失败!该罚款已支付'
];
}
}
...
...
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