...
|
...
|
@@ -329,6 +329,7 @@ class Wechat extends Api |
|
|
public function notify(){
|
|
|
$app = WehcatModule::getInstance()->initWechatPay();
|
|
|
$xml = file_get_contents("php://input");
|
|
|
file_put_contents('2_notify.log',($xml),FILE_APPEND);
|
|
|
$xmljson= json_encode(simplexml_load_string($xml, 'SimplexmlElement', LIBXML_NOCDATA ));//将对象转换个JSON
|
|
|
file_put_contents('1_notify.log',($xmljson),FILE_APPEND);
|
|
|
$response = $app->handlePaidNotify(function($message, $fail){
|
...
|
...
|
|