1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/zoujingli-WeChatDeveloper

Клонировать/Скачать
include.php 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
邹景立 Отправлено 04.08.2024 18:09 28de3a6
<?php
// +----------------------------------------------------------------------
// | WeChatDeveloper
// +----------------------------------------------------------------------
// | 版权所有 2014~2024 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库:https://gitee.com/zoujingli/WeChatDeveloper
// | github 代码仓库:https://github.com/zoujingli/WeChatDeveloper
// +----------------------------------------------------------------------
include_once __DIR__ . '/helper.php';
spl_autoload_register(function ($classname) {
$pathname = __DIR__ . DIRECTORY_SEPARATOR;
$filename = str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.php';
if (file_exists($pathname . $filename)) {
foreach (['AliPay', 'WeChat', 'WeMini', 'WePay', 'We'] as $prefix) {
if (stripos($classname, $prefix) === 0) {
include $pathname . $filename;
return true;
}
}
}
return false;
});

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/zoujingli-WeChatDeveloper.git
git@api.gitlife.ru:oschina-mirror/zoujingli-WeChatDeveloper.git
oschina-mirror
zoujingli-WeChatDeveloper
zoujingli-WeChatDeveloper
master