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
5d607f67
Commit
5d607f67
authored
Aug 08, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
66fe2db4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
esf_center_api.php
center/controllers/esf_center_api.php
+38
-0
No files found.
center/controllers/esf_center_api.php
View file @
5d607f67
...
@@ -2992,6 +2992,44 @@ class Esf_center_api extends MY_Controller {
...
@@ -2992,6 +2992,44 @@ class Esf_center_api extends MY_Controller {
}
}
}
}
/**
* 0元支付回调
*/
public
function
zeroNotify
()
{
$result
[
'status'
]
=
0
;
$data
=
$_POST
;
$transactionId
=
isset
(
$data
[
'transaction_id'
]
)
?
$data
[
'transaction_id'
]
:
''
;
// 订单数据
$orderInfo
=
$this
->
package_model
->
getOrderInfoByTransactionId
(
$transactionId
);
if
(
empty
(
$orderInfo
)
)
{
$result
[
'msg'
]
=
'订单数据不存在'
;
echo
json_encode
(
$result
);
exit
;
}
$payTransactionId
=
isset
(
$data
[
'pay_transaction_id'
]
)
?
$data
[
'pay_transaction_id'
]
:
''
;
if
(
empty
(
$payTransactionId
)
)
{
$result
[
'msg'
]
=
'支付凭证不能为空'
;
echo
json_encode
(
$result
);
exit
;
}
//支付成功后的操作
$result
=
$this
->
package_model
->
payFinish
(
$orderInfo
,
array
(
'transaction_id'
=>
$payTransactionId
)
);
if
(
!
$result
)
{
$result
[
'msg'
]
=
'生成推广相关数据失败'
;
echo
json_encode
(
$result
);
exit
;
}
// 发送短信
if
(
GB_CITY
==
'nj'
)
{
$this
->
sendMsg
(
$orderInfo
);
}
$result
[
'status'
]
=
1
;
echo
json_encode
(
$result
);
exit
;
}
// 支付回调修复数据 20200605
// 支付回调修复数据 20200605
public
function
notify_modify_data
(){
public
function
notify_modify_data
(){
$data
=
$_POST
;
$data
=
$_POST
;
...
...
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