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
efbfe7a2
Commit
efbfe7a2
authored
Sep 19, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3d192f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Amercement.php
application/api_broker/controller/Amercement.php
+9
-9
No files found.
application/api_broker/controller/Amercement.php
View file @
efbfe7a2
...
...
@@ -159,21 +159,21 @@ class Amercement extends Basic
$response
=
$curl
->
post
(
$url
,
$data
);
$result
=
json_decode
(
$response
,
true
);
if
(
$result
&&
$result
[
"code"
]
==
0
)
{
$status
=
0
;
$status
=
0
;
$is_success
=
$result
[
"data"
][
"oritranstatus"
];
if
(
$is_success
==
"01"
)
{
$status
=
1
;
}
elseif
(
$is_success
==
"02"
)
{
}
elseif
(
$is_success
==
"02"
)
{
$status
=
3
;
}
else
{
}
else
{
$status
=
2
;
}
$remark
=
$result
[
"data"
][
"orirespmsg"
];
$is_ok
=
$this
->
s_amercement
->
updatePayAmercement
(
$params
[
"trade_no"
],
$status
,
$remark
);
if
(
$is_ok
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,[
"status"
=>
$status
,
",remark"
=>
$remark
]);
}
else
{
return
$this
->
response
(
"101"
,
"查询异常请稍后再试"
);
$remark
=
$result
[
"data"
][
"orirespmsg"
];
$is_ok
=
$this
->
s_amercement
->
updatePayAmercement
(
$params
[
"trade_no"
],
$status
,
$remark
);
if
(
$is_ok
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"status"
=>
$status
,
"remark"
=>
$remark
]);
}
else
{
return
$this
->
response
(
"101"
,
"查询异常请稍后再试"
);
}
}
else
{
return
$this
->
response
(
"101"
,
$result
[
"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