mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
Modify first result_code to return_code
This commit is contained in:
parent
f204629dc5
commit
83506ac24c
@ -25,7 +25,7 @@ try {
|
|||||||
|
|
||||||
// 4. 获取通知参数
|
// 4. 获取通知参数
|
||||||
$data = $wechat->getNotify();
|
$data = $wechat->getNotify();
|
||||||
if ($data['result_code'] === 'SUCCESS' && $data['result_code'] === 'SUCCESS') {
|
if ($data['return_code'] === 'SUCCESS' && $data['result_code'] === 'SUCCESS') {
|
||||||
// @todo 去更新下原订单的支付状态
|
// @todo 去更新下原订单的支付状态
|
||||||
$order_no = $data['out_trade_no'];
|
$order_no = $data['out_trade_no'];
|
||||||
|
|
||||||
@ -39,4 +39,4 @@ try {
|
|||||||
// 出错啦,处理下吧
|
// 出错啦,处理下吧
|
||||||
echo $e->getMessage() . PHP_EOL;
|
echo $e->getMessage() . PHP_EOL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user