mm_os 2.6.8 → 2.6.9

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.
@@ -448,10 +448,13 @@ Drive.prototype.run_chat = async function(from_user, to_user, content, group, ty
448
448
 
449
449
  /**
450
450
  * 压缩主题模板
451
+ * @param {String} 要压缩的目录
452
+ * @returns {String} 打包成功返回压缩包文件地址
451
453
  */
452
454
  Drive.prototype.zip = async function(zip_dir = "/static/file/zip/") {
453
455
  var dir = this.filename.dirname();
454
456
  var file = ("./" + this.config.name + '.zip').fullname(zip_dir);
457
+ file.addDir();
455
458
  var done = await compressing.zip.compressDir(dir, file);
456
459
  if (file.hasFile()) {
457
460
  return file;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.6.8",
3
+ "version": "2.6.9",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {