From 8eac02b3f5185b7c6adb47bd56f0fb0a345a3680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=B6=E5=90=8E=E4=B8=83=E5=B9=B4?= <34766756+xylz0928@users.noreply.github.com> Date: Tue, 8 Feb 2022 10:52:04 +0800 Subject: [PATCH] Add PushDeer SelfHost Support --- luasrc/model/cbi/pushbot/setting.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/luasrc/model/cbi/pushbot/setting.lua b/luasrc/model/cbi/pushbot/setting.lua index ca33a46..c3e905a 100644 --- a/luasrc/model/cbi/pushbot/setting.lua +++ b/luasrc/model/cbi/pushbot/setting.lua @@ -89,6 +89,15 @@ a=s:taboption("basic", Value,"pushdeer_key",translate('PushDeer Key'), translate a.rmempty = true a:depends("jsonpath","/usr/bin/pushbot/api/pushbeer.json") +a=s:taboption("basic", Flag,"pushdeer_srv_enable",translate("自建 PushDeer 服务器")) +a.default=0 +a.rmempty = true +a:depends("jsonpath","/usr/bin/pushbot/api/pushbeer.json") + +a=s:taboption("basic", Value,"pushdeer_srv",translate('PushDeer Server'), translate("PushDeer 自建服务器地址").."
如https://your.domain:port
具体自建服务器设定参见:点击这里

") +a.rmempty = true +a:depends("pushdeer_srv_enable","1") + a=s:taboption("basic", Value,"fs_webhook",translate('WebHook'), translate("飞书 WebHook").."
调用代码获取点击这里

") a.rmempty = true a:depends("jsonpath","/usr/bin/pushbot/api/feishu.json") -- GitLab