diff --git a/mobile/source/helpers/dalianpay/demo/dalianpay.php b/mobile/source/helpers/dalianpay/demo/dalianpay.php index 1b14319..3540f31 100644 --- a/mobile/source/helpers/dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/dalianpay/demo/dalianpay.php @@ -141,7 +141,8 @@ class dalianpay{ var_dump(BASE_PATH); echo "\n\r"; - + $_SESSION['Base_path'] = BASE_PATH; + // 加载基础类 require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php'); $Base = new Base(); diff --git a/mobile/source/helpers/wxnorify_helper.php b/mobile/source/helpers/wxnorify_helper.php index 0ccb37b..47d0065 100644 --- a/mobile/source/helpers/wxnorify_helper.php +++ b/mobile/source/helpers/wxnorify_helper.php @@ -39,10 +39,10 @@ $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); +$BASE_PATH = $_SESSION['Base_path']; +file_put_contents($logFilePath, $BASE_PATH, FILE_APPEND | LOCK_EX); -file_put_contents($logFilePath, BASE_PATH, FILE_APPEND | LOCK_EX); - -require_once(BASE_PATH . 'helpers/dalianpay/library/Base.php'); +require_once($BASE_PATH . 'helpers/dalianpay/library/Base.php'); file_put_contents($logFilePath, "here3\n\r", FILE_APPEND | LOCK_EX); $Base = new Base(); file_put_contents($logFilePath, "here4\n\r", FILE_APPEND | LOCK_EX);