...
|
...
|
@@ -336,7 +336,6 @@ class Wechat extends Api |
|
|
$xml = file_get_contents("php://input");
|
|
|
|
|
|
$xmljson= json_encode(simplexml_load_string($xml, 'SimplexmlElement', LIBXML_NOCDATA ));//将对象转换个JSON
|
|
|
file_put_contents('1_notify.log',($xmljson),FILE_APPEND);
|
|
|
$message = json_decode($xmljson,true);
|
|
|
// 使用通知里的 "微信支付订单号" 或者 "商户订单号" 去自己的数据库找到订单
|
|
|
Db::name('wechat_pay_recode')->insert(['json'=>json_encode($message),'time'=>time(),'action'=>'pay_notify']);
|
...
|
...
|
@@ -356,7 +355,7 @@ class Wechat extends Api |
|
|
} else {
|
|
|
|
|
|
}
|
|
|
return true; // 返回处理完成
|
|
|
echo "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml> "; // 返回处理完成
|
|
|
|
|
|
/*
|
|
|
$xml = file_get_contents("php://input");
|
...
|
...
|
|