1 Star 0 Fork 458

yanghuangsheng / project_4676970

forked from Anyon / WeChatDeveloper 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
include.php 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
Anyon 提交于 2018-11-03 09:20 . [更新]修正文件引入文件
<?php
// +----------------------------------------------------------------------
// | WeChatDeveloper
// +----------------------------------------------------------------------
// | 版权所有 2014~2018 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://think.ctolog.com
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | github开源项目:https://github.com/zoujingli/WeChatDeveloper
// +----------------------------------------------------------------------
spl_autoload_register(function ($classname) {
$pathname = __DIR__ . DIRECTORY_SEPARATOR;
$filename = str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.php';
if (file_exists($pathname . $filename)) {
foreach (['WeChat', 'WeMini', 'AliPay', 'WePay', 'We'] as $prefix) {
if (stripos($classname, $prefix) === 0) {
include $pathname . $filename;
return true;
}
}
}
return false;
});
PHP
1
https://gitee.com/yanghuangsheng_admin/WeChatDeveloper.git
git@gitee.com:yanghuangsheng_admin/WeChatDeveloper.git
yanghuangsheng_admin
WeChatDeveloper
project_4676970
master

搜索帮助