mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 19:41:44 +08:00
Update include.php
This commit is contained in:
parent
aaffc0a149
commit
58d3ef5384
@ -16,7 +16,7 @@ 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) {
|
||||
foreach (['AliPay', 'WeChat', 'WeMini', 'WePay', 'We'] as $prefix) {
|
||||
if (stripos($classname, $prefix) === 0) {
|
||||
include $pathname . $filename;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user