diff --git a/mobile/plugins/payment/wxnotify.php b/mobile/plugins/payment/wxnotify.php index 700a50b..c7d1d38 100644 --- a/mobile/plugins/payment/wxnotify.php +++ b/mobile/plugins/payment/wxnotify.php @@ -29,6 +29,7 @@ // } session_start(); $logFilePath = './wxlogde_decrypt.txt'; // 日志文件保存路径 +file_put_contents($logFilePath, "message:\n\r", LOCK_EX); $openid = $_SESSION['openid']; $template_id = '5JCt5gNGM7sfwWnRqwWsjH138DixCFJ7sPEbToYQAmQ'; $access_token = $_SESSION['access_token']; @@ -73,8 +74,6 @@ if ($response === false) { } -file_put_contents($logFilePath, "message:\n\r", FILE_APPEND | LOCK_EX); - // 获取异步回调的数据 $postData = file_get_contents('php://input');