2 Incheckningar fdcc39cfd4 ... 8f56bacf81

Upphovsman SHA1 Meddelande Datum
  mrabit 8f56bacf81 feat: 青龙面板支持 2 år sedan
  mrabit fdcc39cfd4 feat: 青龙面板支持 2 år sedan
3 ändrade filer med 16 tillägg och 14 borttagningar
  1. 9 10
      README.md
  2. 0 4
      indexAction.js
  3. 7 0
      qlAction.js

+ 9 - 10
README.md

@@ -7,20 +7,13 @@
 - [x] 自动旅行
 - [x] 每日首次旅行分享
 - [x] 领取申购耐力值
+- [x] github action 支持
+- [x] 青龙面板支持
 
-### 安装
+### 本地启动
 
 ```shell
 npm i -g pm2
-git clone git@github.com:mrabit/xmtravel.git
-cd xmtravel
-npm install
-```
-
-### 启动
-
-```shell
-cp config.example.js config.js
 # 脚本启动
 pm2 start script.json
 # 日志查看
@@ -29,6 +22,12 @@ pm2 logs xmtravel --out --lines=100
 
 ![xmtravel_log.png](./assets/xmtravel_log.png)
 
+### 青龙面板
+
+```shell
+ql repo https://github.com/mrabit/xmtravel.git "" "index|api|console|config" "api|console|config"
+```
+
 ### 申明
 
 - 本项目仅做学习交流, 禁止用于各种非法途径

+ 0 - 4
indexAction.js

@@ -1,7 +1,3 @@
-/*
-cron "0-59/20 9-20 * * *" indexAction.js, tag=小茅运旅行
-*/
-const $ = new Env('小茅运旅行');
 const api = require('./api')
 
 api.init()

+ 7 - 0
qlAction.js

@@ -0,0 +1,7 @@
+/*
+cron "0-59/20 9-20 * * *" indexAction.js, tag=小茅运旅行
+*/
+const $ = new Env('小茅运旅行');
+const api = require('./api')
+
+api.init()