update-01.01

This commit is contained in:
github-actions[bot] 2022-01-01 09:08:08 +08:00
parent ce5b9df23e
commit c659f98d7e
4 changed files with 15 additions and 4 deletions

View File

@ -54,6 +54,12 @@ o = s:option(Value, 'dd_token', translate('Dingding Bot Token'))
o.rmempty = true
o.description = translate('创建一个群机器人并获取API Token设置安全关键字为:京东')
-- pushplus
o = s:option(Value, 'pp_token', translate('pushplus Token'))
o.rmempty = true
o.description = translate('微信推送基于pushplus服务请自行登录 https://www.pushplus.plus/ 绑定并获取 Token。')
-- telegram
o = s:option(Value, 'tg_token', translate('Telegram Bot Token'))

View File

@ -6,8 +6,8 @@
# See /LICENSE for more information.
#
USE_PROCD=1
START=25
STOP=10
NAME=jd-dailybonus
CRON_FILE=/etc/crontabs/root

View File

@ -86,6 +86,13 @@ notify() {
uclient-fetch -q --post-file=/tmp/jd-djson.json "https://oapi.dingtalk.com/robot/send?access_token=${dtoken}"
fi
#pushplus
ptoken=$(uci_get_by_type global pp_token)
POST_URL="http://www.pushplus.plus/send"
if [ ! -z $ptoken ]; then
curl -s -d "{\"token\":\"$ptoken\",\"title\":\"$title\",\"content\":\"$desc\"}" -H 'Content-Type: application/json' $POST_URL
fi
#telegram
TG_BOT_TOKEN=$(uci_get_by_type global tg_token)
TG_USER_ID=$(uci_get_by_type global tg_userid)

View File

@ -5,7 +5,6 @@
036e.cn
09_19.supfree.net
0x5.me
1-1ads.com
1.1010pic.com
1.ad-locus.com
1.aili.com
@ -558,6 +557,7 @@ ad0.bigmir.net
ad01.mediacorpsingapore.com
ad1.bigmir.net
ad1.emule-project.org
ad1.eventmanager.co.kr
ad1.img.static.youmi.net
ad1.kde.cz
ad1.nend.net
@ -6871,7 +6871,6 @@ rd.e.sogou.com
rd.wan.360.cn
rdstat.tanx.com
rdx.autohome.com.cn
re-directme.com
re.m.taobao.com
re.taobao.com
reachjunction.com
@ -8522,7 +8521,6 @@ triptease.io
trk.bad-tool-tell-doubt.xyz
trk.bc.shutterfly.com
trk.bee-data.com
trk.enemy-adult-scared-there.xyz
trk.hot-mob.com
trk.pinterest.com
trk.taboola.com