Score
0
Watch 113 Star 478 Fork 159

GVPAnyon / WeChatDeveloperPHPMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
【新】微信开发工具包(微信服务号+微信小程序+微信支付+支付宝支付) spread retract

https://www.kancloud.cn/zoujingli/wechat-developer/content

Clone or download
include.php 1.17 KB
Copy Edit Web IDE Raw Blame History
Anyon authored 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;
});

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/zoujingli/WeChatDeveloper.git
git@gitee.com:zoujingli/WeChatDeveloper.git
zoujingli
WeChatDeveloper
WeChatDeveloper
master

Help Search