add clear

This commit is contained in:
as2252258@163.com
2019-07-17 17:27:54 +08:00
parent 2c711e5480
commit 2acaf4af2f
2 changed files with 0 additions and 27 deletions
-21
View File
@@ -1,21 +0,0 @@
<?php
/**
* Created by PhpStorm.
* User: whwyy
* Date: 2018/3/26 0026
* Time: 10:23
*/
defined('YII_ENV') or define('YII_ENV', 'dev');
spl_autoload_register(function ($className) {
foreach (glob(__DIR__ . '/*') as $val) {
if (!is_file($val)) {
continue;
}
if (!in_array($val, get_included_files())) {
require_once $val;
}
}
return;
}, TRUE);
-6
View File
@@ -6,12 +6,6 @@
* Time: 18:38
*/
spl_autoload_register(function ($className) {
include __DIR__ . '/wx/' . str_replace('wchat\\', '', $className) . '.php';
});
$config = new \wchat\Config();
$config->setAppid('');
$config->setAppsecret('');