2 Commity 894fffa25b ... 1811dbe431

Autor SHA1 Wiadomość Data
  mrabit 1811dbe431 feat: 青龙面板支持 2 lat temu
  mrabit 894fffa25b feat: 青龙面板支持 2 lat temu
3 zmienionych plików z 6 dodań i 17 usunięć
  1. 0 0
      config.js
  2. 6 0
      indexAction.js
  3. 0 17
      qlAction.js

+ 0 - 0
config.example.js → config.js


+ 6 - 0
indexAction.js

@@ -1,3 +1,9 @@
+/*
+[task_local]
+#小茅运旅行
+0-59/20 9-20 * * *, tag=小茅运旅行, enabled=true
+*/
+
 const api = require('./api')
 
 api.init()

+ 0 - 17
qlAction.js

@@ -1,17 +0,0 @@
-/*
-[task_local]
-#小茅运旅行
-0-59/20 9-20 * * *, tag=小茅运旅行, enabled=true
-*/
-const path = require('path')
-const fs = require('fs')
-const api = require('./api')
-
-let example = path.resolve(__dirname, './config.example.js')
-let config = path.resolve(__dirname, './config.js')
-
-if (!fs.existsSync(config)) {
-  fs.writeFileSync(config, fs.readFileSync(example))
-}
-
-api.init()