Browse Source

get front_url

master
dutsc 3 years ago
parent
commit
781391ccd9
  1. 10
      mobile/wxnotify.php

10
mobile/wxnotify.php

@ -34,14 +34,14 @@ $logFilePath = './wxlogde.txt'; // 日志文件保存路径
$postData = file_get_contents('php://input');
// 解密postData
// require_once(BASE_PATH . 'helpers/dalianpay/demo/dalianpay.php');
// require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php');
require_once(BASE_PATH . 'helpers/dalianpay/demo/dalianpay.php');
require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php');
// $new_plugin = new dalianpay();
// $response_data = $new_plugin->norify_decrypt($postData);
$new_plugin = new dalianpay();
$response_data = $new_plugin->norify_decrypt($postData);
// 添加时间戳和换行符
$logMessage = date('Y-m-d H:i:s') . " - " . $postData . "\n";
$logMessage = date('Y-m-d H:i:s') . " - " . $response_data . "\n";
// 将日志写入文件
file_put_contents($logFilePath, $logMessage, FILE_APPEND | LOCK_EX);

Loading…
Cancel
Save