This commit is contained in:
cdle 2021-08-16 17:35:27 +08:00
parent 7ea9cac05d
commit aa450620d3
4 changed files with 47 additions and 19 deletions

View File

@ -21,3 +21,17 @@ qqgid:
default_priority:
no_ghproxy: true
daily_asset_push_cron:
task:
- 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
env:
- name: angryBeanPins
- value: jd_xxxxx&jd_ooooo

View File

@ -1,7 +1,6 @@
package models
import (
"bufio"
"io"
"io/ioutil"
"os"
@ -11,26 +10,9 @@ import (
"gopkg.in/yaml.v2"
)
type Container struct {
Type string
Name string
Default bool
Address string
Username string
Password string
Path string
Version string
Token string
Available bool
Delete []string
Weigth int
Mode string
Reader *bufio.Reader
Config string
Limit int
}
type Yaml struct {
Containers []Container
Tasks []Task
Qrcode string
Master string
Mode string

View File

@ -22,6 +22,25 @@ const (
LI = "li"
)
type Container struct {
Type string
Name string
Default bool
Address string
Username string
Password string
Path string
Version string
Token string
Available bool
Delete []string
Weigth int
Mode string
Reader *bufio.Reader
Config string
Limit int
}
func initContainer() {
for i := range Config.Containers {
if Config.Containers[i].Weigth == 0 {

View File

@ -1 +1,14 @@
package models
type Task struct {
Cron string
Path string
Enable bool
Mode string //obo alo
Word string
}
type Env struct {
Name string
Value string
}