mm_os 4.0.3 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/com/event/script.tpl.js +1 -1
- package/core/app/index.js +2 -2
- package/package.json +1 -1
package/com/event/script.tpl.js
CHANGED
package/core/app/index.js
CHANGED
|
@@ -368,7 +368,7 @@ App.prototype.zipPlugin = async function (name) {
|
|
|
368
368
|
if (!name || typeof name !== 'string') {
|
|
369
369
|
throw new TypeError('无效的插件名称');
|
|
370
370
|
}
|
|
371
|
-
var plugin = this.
|
|
371
|
+
var plugin = this.plugin[name];
|
|
372
372
|
if (!plugin) {
|
|
373
373
|
throw new Error(`插件 ${name} 不存在`);
|
|
374
374
|
}
|
|
@@ -584,7 +584,7 @@ App.prototype._installPlugin = async function (info) {
|
|
|
584
584
|
|
|
585
585
|
var manager = this.manager.plugin;
|
|
586
586
|
if (info.app !== this.config.name) {
|
|
587
|
-
var app = this.getServer()[info.app];
|
|
587
|
+
var app = this.getServer().app[info.app];
|
|
588
588
|
if (!app) {
|
|
589
589
|
throw new Error(`安装失败:应用 ${info.app} 不存在`);
|
|
590
590
|
}
|