From 011d821dc29627c46b18ae69b6a6a78367b42844 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Tue, 17 Aug 2021 11:01:10 +0800 Subject: [PATCH] x --- .gitignore | 2 +- conf/app.conf | 2 -- conf/config.yaml | 37 ------------------------------------- conf/reply.php | 8 -------- models/task.go | 3 +-- 5 files changed, 2 insertions(+), 50 deletions(-) delete mode 100755 conf/app.conf delete mode 100755 conf/config.yaml delete mode 100644 conf/reply.php diff --git a/.gitignore b/.gitignore index 10a6887..3475ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,5 @@ session.token device.json data/ logs/ -conf/* +conf jdCookie.js \ No newline at end of file diff --git a/conf/app.conf b/conf/app.conf deleted file mode 100755 index edf7544..0000000 --- a/conf/app.conf +++ /dev/null @@ -1,2 +0,0 @@ -#扫码端口 -httpport = 8080 \ No newline at end of file diff --git a/conf/config.yaml b/conf/config.yaml deleted file mode 100755 index a089cce..0000000 --- a/conf/config.yaml +++ /dev/null @@ -1,37 +0,0 @@ -mode: parallel -containers: - # - address: http://192.168.31.233:5700 - # username: admin - # password: admin - # weigth: - # mode: parallel - # limit: 9999 -theme: -static: ./static -master: -database: -qywx_key: -daily_push: -resident: -user_agent: -telegram_bot_token: -telegram_user_id: -qquid: -qqgid: -default_priority: -no_ghproxy: true -daily_asset_push_cron: -tasks: - - cron: 0 6 * * * - path: https://raw.githubusercontent.com/cdle/xdd/main/scripts/jd_goodMorning.js - enable: true - word: 早起福利 - mode: obo - - cron: 0 0 * * * - path: https://raw.githubusercontent.com/cdle/xdd/main/scripts/jd_angryBean.js - enable: true - word: 抢京豆 - mode: alo - envs: - - name: angryBeanPins - - value: jd_xxxxx&jd_ooooo diff --git a/conf/reply.php b/conf/reply.php deleted file mode 100644 index af0baaa..0000000 --- a/conf/reply.php +++ /dev/null @@ -1,8 +0,0 @@ -return reply( - [ - `你好` => `我不好`, - `早上好`=>`good morning` - `壁纸` => `https://acg.toubiec.cn/random.php` - `涩图` => `https://acg.toubiec.cn/random.php` - ] -) \ No newline at end of file diff --git a/models/task.go b/models/task.go index fa33629..6536805 100644 --- a/models/task.go +++ b/models/task.go @@ -46,7 +46,6 @@ func createTask(task *Task) { task.ID = int(id) logs.Info(task.Word, "任务创建成功") } - } func runTask(task *Task, msgs ...interface{}) { @@ -96,7 +95,7 @@ func runTask(task *Task, msgs ...interface{}) { return } cmd.Dir = ExecPath + "/scripts/" - cmd.Stderr = os.Stderr + // cmd.Stderr = os.Stderr err = cmd.Start() if err != nil { logs.Warn("%v", err)