Skip to content

Commit

Permalink
支持 Bark 及 飞书 推送
Browse files Browse the repository at this point in the history
  • Loading branch information
zzsj0928 authored Apr 26, 2021
2 parents 3d64835 + 8d8e354 commit 23c2644
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-pushbot
PKG_VERSION:=3.00
PKG_RELEASE:=1
PKG_VERSION:=3.10
PKG_RELEASE:=8

include $(INCLUDE_DIR)/package.mk

Expand Down
19 changes: 19 additions & 0 deletions luasrc/model/cbi/pushbot/setting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ a.default=""
a.rmempty = true
a:value("",translate("钉钉"))
a:value("1",translate("企业微信"))
a:value("3",translate("飞书"))
a:value("4",translate("Bark"))
a:value("2",translate("PushPlus"))

a=s:taboption("basic", Value,"dd_webhook",translate('Webhook'), translate("钉钉机器人 Webhook").."<br>调用代码获取<a href='https://ding-doc.dingtalk.com/' target='_blank'>点击这里</a><br><br>")
Expand Down Expand Up @@ -71,6 +73,23 @@ a=s:taboption("basic", Value,"pp_topic",translate('PushPlus Topic'), translate("
a.rmempty = true
a:depends("pp_topic_enable","1")

a=s:taboption("basic", Value,"fs_webhook",translate('WebHook'), translate("飞书 WebHook").."<br>调用代码获取<a href='https://www.feishu.cn/hc/zh-CN/articles/360024984973' target='_blank'>点击这里</a><br><br>")
a.rmempty = true
a:depends("send_we","3")

a=s:taboption("basic", Value,"bark_token",translate('Bark Token'), translate("Bark Token").."<br>调用代码获取<a href='https://github.com/Finb/Bark' target='_blank'>点击这里</a><br><br>")
a.rmempty = true
a:depends("send_we","4")

a=s:taboption("basic", Flag,"bark_srv_enable",translate("自建 Bark 服务器"))
a.default=0
a.rmempty = true
a:depends("send_we","4")

a=s:taboption("basic", Value,"bark_srv",translate('Bark Server'), translate("Bark 自建服务器地址").."<br>如https://your.domain:port<br>具体自建服务器设定参见:<a href='https://github.com/Finb/Bark' target='_blank'>点击这里</a><br><br>")
a.rmempty = true
a:depends("bark_srv_enable","1")

a=s:taboption("basic", Value,"device_name",translate('本设备名称'))
a.rmempty = true
a.description = translate("在推送信息标题中会标识本设备名称,用于区分推送信息的来源设备")
Expand Down
Loading

0 comments on commit 23c2644

Please sign in to comment.