正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -329,6 +329,7 @@ class Wechat extends Api | @@ -329,6 +329,7 @@ class Wechat extends Api | ||
329 | public function notify(){ | 329 | public function notify(){ |
330 | $app = WehcatModule::getInstance()->initWechatPay(); | 330 | $app = WehcatModule::getInstance()->initWechatPay(); |
331 | $xml = file_get_contents("php://input"); | 331 | $xml = file_get_contents("php://input"); |
332 | + file_put_contents('2_notify.log',($xml),FILE_APPEND); | ||
332 | $xmljson= json_encode(simplexml_load_string($xml, 'SimplexmlElement', LIBXML_NOCDATA ));//将对象转换个JSON | 333 | $xmljson= json_encode(simplexml_load_string($xml, 'SimplexmlElement', LIBXML_NOCDATA ));//将对象转换个JSON |
333 | file_put_contents('1_notify.log',($xmljson),FILE_APPEND); | 334 | file_put_contents('1_notify.log',($xmljson),FILE_APPEND); |
334 | $response = $app->handlePaidNotify(function($message, $fail){ | 335 | $response = $app->handlePaidNotify(function($message, $fail){ |
-
请 注册 或 登录 后发表评论