x
This commit is contained in:
parent
011d821dc2
commit
c30184eafd
5
.gitignore
vendored
5
.gitignore
vendored
@ -16,5 +16,8 @@ session.token
|
||||
device.json
|
||||
data/
|
||||
logs/
|
||||
conf
|
||||
conf/app.conf
|
||||
conf/config.yaml
|
||||
conf/config_cdle.yaml
|
||||
conf/reply.php
|
||||
jdCookie.js
|
||||
2
conf/demo_app.conf
Normal file
2
conf/demo_app.conf
Normal file
@ -0,0 +1,2 @@
|
||||
#扫码端口
|
||||
httpport = 8080
|
||||
37
conf/demo_config_.yaml
Normal file
37
conf/demo_config_.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
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
|
||||
0
conf/demo_reply.php
Normal file
0
conf/demo_reply.php
Normal file
@ -52,7 +52,7 @@ func initConfig() {
|
||||
if _, err := os.Stat(confDir); err != nil {
|
||||
os.MkdirAll(confDir, os.ModePerm)
|
||||
}
|
||||
for _, name := range []string{"app.conf", "config.yaml"} {
|
||||
for _, name := range []string{"app.conf", "config.yaml", "reply.php"} {
|
||||
f, err := os.OpenFile(ExecPath+"/conf/"+name, os.O_RDWR|os.O_CREATE, 0777)
|
||||
if err != nil {
|
||||
logs.Warn(err)
|
||||
@ -67,11 +67,7 @@ func initConfig() {
|
||||
}
|
||||
f.Close()
|
||||
}
|
||||
config := ExecPath + "/conf/config.yaml"
|
||||
if Cdle {
|
||||
config = ExecPath + "/conf/config_cdle.yaml"
|
||||
}
|
||||
content, err := ioutil.ReadFile(config)
|
||||
content, err := ioutil.ReadFile(ExecPath + "/conf/config.yaml")
|
||||
if err != nil {
|
||||
logs.Warn("解析config.yaml读取错误: %v", err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user