Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
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
zhangjun
User
Commits
1133ec10
Commit
1133ec10
authored
Aug 08, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
eb925c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
esf_center_api.php
center/controllers/esf_center_api.php
+14
-2
No files found.
center/controllers/esf_center_api.php
View file @
1133ec10
...
@@ -3007,6 +3007,17 @@ class Esf_center_api extends MY_Controller {
...
@@ -3007,6 +3007,17 @@ class Esf_center_api extends MY_Controller {
echo
json_encode
(
$result
);
exit
;
echo
json_encode
(
$result
);
exit
;
}
}
//判断订单状态
if
(
$orderInfo
[
'order_status'
]
!=
1
){
$result
[
'msg'
]
=
'订单已关闭'
;
echo
json_encode
(
$result
);
exit
;
}
if
(
$orderInfo
[
'pay_status'
]
!=
0
){
$result
[
'msg'
]
=
'订单已失效'
;
echo
json_encode
(
$result
);
exit
;
}
$payTransactionId
=
isset
(
$data
[
'pay_transaction_id'
]
)
?
$data
[
'pay_transaction_id'
]
:
''
;
$payTransactionId
=
isset
(
$data
[
'pay_transaction_id'
]
)
?
$data
[
'pay_transaction_id'
]
:
''
;
if
(
empty
(
$payTransactionId
)
)
{
if
(
empty
(
$payTransactionId
)
)
{
$result
[
'msg'
]
=
'支付凭证不能为空'
;
$result
[
'msg'
]
=
'支付凭证不能为空'
;
...
@@ -3014,8 +3025,8 @@ class Esf_center_api extends MY_Controller {
...
@@ -3014,8 +3025,8 @@ class Esf_center_api extends MY_Controller {
}
}
//支付成功后的操作
//支付成功后的操作
$res
ult
=
$this
->
package_model
->
payFinish
(
$orderInfo
,
array
(
'transaction_id'
=>
$payTransactionId
)
);
$res
=
$this
->
package_model
->
payFinish
(
$orderInfo
,
array
(
'transaction_id'
=>
$payTransactionId
)
);
if
(
!
$res
ult
)
{
if
(
!
$res
)
{
$result
[
'msg'
]
=
'生成推广相关数据失败'
;
$result
[
'msg'
]
=
'生成推广相关数据失败'
;
echo
json_encode
(
$result
);
exit
;
echo
json_encode
(
$result
);
exit
;
}
}
...
@@ -3026,6 +3037,7 @@ class Esf_center_api extends MY_Controller {
...
@@ -3026,6 +3037,7 @@ class Esf_center_api extends MY_Controller {
}
}
$result
[
'status'
]
=
1
;
$result
[
'status'
]
=
1
;
$result
[
'msg'
]
=
'成功'
;
echo
json_encode
(
$result
);
exit
;
echo
json_encode
(
$result
);
exit
;
}
}
...
...
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