优化:bark/gotify通道忽略https证书(提高自建服务端兼容性)

pull/193/head
pppscn 2 years ago
parent 104a7057ed
commit ca7b351c63

@ -74,7 +74,8 @@ class BarkUtils {
}
}
request.keepJson(true)
request.ignoreHttpsCert() //忽略https证书
.keepJson(true)
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
.cacheMode(CacheMode.NO_CACHE)
.retryCount(SettingUtils.requestRetryTimes) //超时重试的次数

@ -52,6 +52,7 @@ class GotifyUtils {
request.params("title", title)
.params("message", content)
.params("priority", setting.priority)
.ignoreHttpsCert() //忽略https证书
.keepJson(true)
.timeOut((SettingUtils.requestTimeout * 1000).toLong()) //超时时间10s
.cacheMode(CacheMode.NO_CACHE)

Loading…
Cancel
Save