From da3f4401a6f9cd2a72a6cfe0b708901d0960343e Mon Sep 17 00:00:00 2001 From: dutsc <1020018707@qq.com> Date: Sat, 2 Sep 2023 22:50:07 +0800 Subject: [PATCH] modify notify address --- mobile/source/helpers/dalianpay/config/config.php | 2 +- mobile/source/helpers/dalianpay/demo/wxnotify.php | 54 +++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 mobile/source/helpers/dalianpay/demo/wxnotify.php diff --git a/mobile/source/helpers/dalianpay/config/config.php b/mobile/source/helpers/dalianpay/config/config.php index aa1f878..77107c0 100644 --- a/mobile/source/helpers/dalianpay/config/config.php +++ b/mobile/source/helpers/dalianpay/config/config.php @@ -22,7 +22,7 @@ // 门店号 'branchno' => '401', // 交易结果通知地址 - 'notify_url' => 'https://shop.heavenk.com/mobile/plugins/payment/wxnotify.php', + 'notify_url' => 'https://shop.heavenk.com/mobile/source/helpers/dalianpay/demo/wxnotify.php', // 支付限制 'limit_pay' => 'no_credit', // 微信子appid 商户微信号 diff --git a/mobile/source/helpers/dalianpay/demo/wxnotify.php b/mobile/source/helpers/dalianpay/demo/wxnotify.php new file mode 100644 index 0000000..60163bc --- /dev/null +++ b/mobile/source/helpers/dalianpay/demo/wxnotify.php @@ -0,0 +1,54 @@ +query($postData); + +// 添加时间戳和换行符 +$logMessage = date('Y-m-d H:i:s') . " - " . $response_data . "\n"; + +// 将日志写入文件 +file_put_contents($logFilePath, $logMessage, FILE_APPEND | LOCK_EX); + +?> \ No newline at end of file