add clear
This commit is contained in:
-21
@@ -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,12 +6,6 @@
|
|||||||
* Time: 18:38
|
* Time: 18:38
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
spl_autoload_register(function ($className) {
|
|
||||||
include __DIR__ . '/wx/' . str_replace('wchat\\', '', $className) . '.php';
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
$config = new \wchat\Config();
|
$config = new \wchat\Config();
|
||||||
$config->setAppid('');
|
$config->setAppid('');
|
||||||
$config->setAppsecret('');
|
$config->setAppsecret('');
|
||||||
|
|||||||
Reference in New Issue
Block a user