From e0a09e3004a35928e97ef80140d2d6af41c644d1 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 1 Feb 2018 09:52:59 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=AD=A3=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include.php b/include.php index 18329df..c04f45e 100644 --- a/include.php +++ b/include.php @@ -14,7 +14,7 @@ // 动态注册SDK自动加载 spl_autoload_register(function ($classname) { - $filename = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\/', DIRECTORY_SEPARATOR, $classname) . '.php'; + $filename = __DIR__ . DIRECTORY_SEPARATOR . str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $classname) . '.php'; if (stripos($classname, 'WeChat') === 0 && file_exists($filename)) { include $filename; }