Browse Source

debug wxnotify

master
dutsc 3 years ago
parent
commit
9cbf5625f9
  1. 5
      mobile/wxnotify.php

5
mobile/wxnotify.php

@ -30,14 +30,17 @@
$logFilePath = './wxlogde_decrypt.txt'; // 日志文件保存路径
file_put_contents($logFilePath, 'here', FILE_APPEND | LOCK_EX);
file_put_contents($logFilePath, "here\n\r", FILE_APPEND | LOCK_EX);
// 获取异步回调的数据
$postData = file_get_contents('php://input');
file_put_contents($logFilePath, "here1\n\r", FILE_APPEND | LOCK_EX);
session_start();
file_put_contents($logFilePath, "here2\n\r", FILE_APPEND | LOCK_EX);
require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php');
$Base = new Base();
file_put_contents($logFilePath, "here3\n\r", FILE_APPEND | LOCK_EX);
// 解析返回的报文
$response = json_decode($postData, true);

Loading…
Cancel
Save