x
This commit is contained in:
parent
7ea9cac05d
commit
aa450620d3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user