lrf402788946 4 年之前
父节点
当前提交
e18392734e
共有 3 个文件被更改,包括 7 次插入6 次删除
  1. 0 3
      app/controller/.carousel.js
  2. 0 3
      app/controller/.config.js
  3. 7 0
      app/service/util.js

+ 0 - 3
app/controller/.carousel.js

@@ -23,9 +23,6 @@ module.exports = {
         "create_time@start": "create_time@start",
         "create_time@end": "create_time@end",
       },
-      options: {
-        "meta.status": 0 // 默认条件
-      },
     },
    service: "query",
    options: {

+ 0 - 3
app/controller/.config.js

@@ -22,9 +22,6 @@ module.exports = {
         "create_time@start": "create_time@start",
         "create_time@end": "create_time@end",
       },
-      options: {
-        "meta.status": 0 // 默认条件
-      },
     },
    service: "query",
    options: {

+ 7 - 0
app/service/util.js

@@ -2,6 +2,8 @@
 const { CrudService } = require('naf-framework-mongoose/lib/service');
 const moment = require('moment');
 const _ = require('lodash');
+const fs = require('fs');
+
 
 // 工具
 class UtilService extends CrudService {
@@ -14,6 +16,11 @@ class UtilService extends CrudService {
   }
   async utilMethod(query, body) {
     // this.initSetSeed();
+    // console.log('in function:');
+    // const file = await this.ctx.curl('https://vd3.bdstatic.com/mda-kar9n2ip1u508ewq/hd/mda-kar9n2ip1u508ewq.mp4');
+    // console.log(file.data);
+    // return file.data;
+    // const ms = fs.create
   }
 
   async initSetSeed() {