[更新]修正代码异常

This commit is contained in:
Anyon 2018-02-01 09:52:59 +08:00
parent c6a20ad2d6
commit e0a09e3004

View File

@ -14,7 +14,7 @@
// 动态注册SDK自动加载 // 动态注册SDK自动加载
spl_autoload_register(function ($classname) { 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)) { if (stripos($classname, 'WeChat') === 0 && file_exists($filename)) {
include $filename; include $filename;
} }