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.
@@ -1,7 +1,7 @@
1
1
  // 使用api管理器
2
2
  var api = $.admin.api('${name}_api', '${title}客户端');
3
3
  // 首次启动更新api接口;
4
- api.call('update');
4
+ api.call('update', 'app/');
5
5
 
6
6
 
7
7
  /**
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.manager.plugin.get(name);
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mm_os",
3
3
  "description": "MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。",
4
- "version": "4.0.3",
4
+ "version": "4.0.6",
5
5
  "main": "index.js",
6
6
  "keywords": [
7
7
  "AI",