From cfb84b27909cfbd168892d9fbc73f637cb993923 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Tue, 17 Aug 2021 21:08:06 +0800 Subject: [PATCH] x --- conf/demo_config.yaml | 9 +++------ models/db.go | 1 + models/task.go | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/conf/demo_config.yaml b/conf/demo_config.yaml index 20561b4..f3b62d2 100644 --- a/conf/demo_config.yaml +++ b/conf/demo_config.yaml @@ -23,16 +23,13 @@ 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 + hack: true envs: - name: angryBeanPins - value: jd_xxxxx&jd_ooooo + - path: https://raw.githubusercontent.com/shufflewzc/faker2/main/jd_all_bean_change.js + word: 查询 \ No newline at end of file diff --git a/models/db.go b/models/db.go index f2b1278..d0095db 100644 --- a/models/db.go +++ b/models/db.go @@ -91,6 +91,7 @@ type JdCookie struct { Cash string `gorm:"column:Cash"` Help string `gorm:"column:Help;default:false" validate:"oneof=true false"` Pool string `gorm:"-"` + Hack string `gorm:"column:Hack" validate:"oneof=true false"` } type JdCookiePool struct { diff --git a/models/task.go b/models/task.go index 81ed9e2..7e033b6 100644 --- a/models/task.go +++ b/models/task.go @@ -25,6 +25,7 @@ type Task struct { Envs []Env Args string Ykq bool + Hack bool } type Env struct {