mm_os 2.6.8 → 2.7.0
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/core/com/plugin/drive.js +3 -0
- package/package.json +2 -2
package/core/com/plugin/drive.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "这是超级美眉服务端框架,用于快速构建应用程序。",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"mm_machine": "^1.8.1",
|
|
45
45
|
"mm_mongodb": "^1.4.2",
|
|
46
46
|
"mm_mqtt": "^1.0.6",
|
|
47
|
-
"mm_mysql": "^1.8.
|
|
47
|
+
"mm_mysql": "^1.8.8",
|
|
48
48
|
"mm_os": "^2.6.4",
|
|
49
49
|
"mm_redis": "^1.4.2",
|
|
50
50
|
"mm_ret": "^1.3.9",
|