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