diff --git a/WeChat/Contracts/Tools.php b/WeChat/Contracts/Tools.php index 0bc5949..4cfe9b8 100644 --- a/WeChat/Contracts/Tools.php +++ b/WeChat/Contracts/Tools.php @@ -306,7 +306,7 @@ class Tools private static function getCacheName($name) { if (empty(self::$cache_path)) { - self::$cache_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR; + self::$cache_path = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR; } self::$cache_path = rtrim(self::$cache_path, '/\\') . DIRECTORY_SEPARATOR; file_exists(self::$cache_path) || mkdir(self::$cache_path, 0755, true);