作者 chencheng

0531-13

@@ -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){