Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
xiaozhan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
xiaozhan
Commits
fa44e3d7
Commit
fa44e3d7
authored
Mar 23, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f3afc308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
alipay/alipay_app/notify_url.php
+6
-5
No files found.
alipay/alipay_app/notify_url.php
View file @
fa44e3d7
...
@@ -37,7 +37,10 @@
...
@@ -37,7 +37,10 @@
file_put_contents
(
'./logali.txt'
,
date
(
'y-m-d h:i:s'
)
.
' msg:'
.
' 返回参数:'
.
http_build_query
(
$_POST
)
.
"
\r\n
"
,
FILE_APPEND
);
file_put_contents
(
'./logali.txt'
,
date
(
'y-m-d h:i:s'
)
.
' msg:'
.
' 返回参数:'
.
http_build_query
(
$_POST
)
.
"
\r\n
"
,
FILE_APPEND
);
if
(
$_POST
[
'trade_status'
]
==
'TRADE_FINISHED'
)
{
//交易状态
$trade_status
=
$_GET
[
'trade_status'
];
if
(
$trade_status
==
'TRADE_FINISHED'
)
{
echo
"success"
;
echo
"success"
;
die
;
die
;
}
}
...
@@ -57,7 +60,7 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
...
@@ -57,7 +60,7 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
// }
// }
// else
// else
if
(
$
_GET
[
'trade_status'
]
==
'TRADE_SUCCESS'
)
{
if
(
$
trade_status
==
'TRADE_SUCCESS'
)
{
//判断该笔订单是否在商户网站中已经做过处理
//判断该笔订单是否在商户网站中已经做过处理
//如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序
//如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序
//如果有做过处理,不执行商户的业务程序
//如果有做过处理,不执行商户的业务程序
...
@@ -75,8 +78,6 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
...
@@ -75,8 +78,6 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
$trade_no
=
$_GET
[
'trade_no'
];
$trade_no
=
$_GET
[
'trade_no'
];
//交易状态
$trade_status
=
$_GET
[
'trade_status'
];
//交易金额
//交易金额
$total_fee
=
(
int
)
$_GET
[
'total_fee'
];
$total_fee
=
(
int
)
$_GET
[
'total_fee'
];
...
@@ -87,7 +88,7 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
...
@@ -87,7 +88,7 @@ if($_POST['trade_status'] == 'TRADE_FINISHED') {
mysqli_select_db
(
$link
,
'zhibo'
);
mysqli_select_db
(
$link
,
'zhibo'
);
mysqli_query
(
$link
,
"set names utf8"
);
mysqli_query
(
$link
,
"set names utf8"
);
$result
=
mysqli_query
(
$link
,
"select * from cmf_users_charge where orderno='
$out_trade_no
' and money='
$total_fee
' and status='0' and type='1'"
);
$result
=
mysqli_query
(
$link
,
"select * from cmf_users_charge where orderno='
$out_trade_no
' and money='
$total_fee
' and status='0' and type='1'"
);
var_dump
(
$
result
);
var_dump
(
$
out_trade_no
,
$trade_no
,
$trade_status
,
$total_fee
);
$row
=
mysqli_fetch_row
(
$result
);
$row
=
mysqli_fetch_row
(
$result
);
var_dump
(
$row
);
var_dump
(
$row
);
die
;
die
;
...
...
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