chanjs 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/core/chan.js +0 -5
- package/package.json +1 -1
package/core/chan.js
CHANGED
@@ -41,12 +41,8 @@ class Chan {
|
|
41
41
|
const configPath = path.join(config.APP_PATH, "config/index.js");
|
42
42
|
if (fs.existsSync(configPath)) {
|
43
43
|
const config = require(configPath);
|
44
|
-
console.log('111----',Chan.config)
|
45
44
|
Chan.config = Object.assign(Chan.config, config);
|
46
|
-
console.log('222----',Chan.config)
|
47
45
|
}
|
48
|
-
|
49
|
-
|
50
46
|
}
|
51
47
|
|
52
48
|
// 加载扩展
|
@@ -59,7 +55,6 @@ class Chan {
|
|
59
55
|
for (let i = 0, file; i < controllers.length; i++) {
|
60
56
|
file = controllers[i];
|
61
57
|
const helper = require(path.join(extendPath, file));
|
62
|
-
|
63
58
|
const fileName = file.replace(".js", "");
|
64
59
|
Chan.helper[fileName] = helper;
|
65
60
|
}
|