🎨 代码格式化

This commit is contained in:
Mizore 2023-04-01 16:42:35 +08:00
parent c8134ce56b
commit 97863a4770

View File

@ -42,6 +42,7 @@ local notify = {
return return
end end
local url = config.GOTIFY_API .. "/message?token=" .. config.GOTIFY_TOKEN
local header = { local header = {
["Content-Type"] = "application/json; charset=utf-8" ["Content-Type"] = "application/json; charset=utf-8"
} }
@ -54,7 +55,7 @@ local notify = {
json_data = string.gsub(json_data, "\\b", "\\n") json_data = string.gsub(json_data, "\\b", "\\n")
log.info("util_notify", "POST", config.GOTIFY_API) log.info("util_notify", "POST", config.GOTIFY_API)
return util_http.fetch(nil, "POST", config.GOTIFY_API.."/message?token="..config.GOTIFY_TOKEN, header, json_data) return util_http.fetch(nil, "POST", url, header, json_data)
end, end,
-- 发送到 pushdeer -- 发送到 pushdeer
["pushdeer"] = function(msg) ["pushdeer"] = function(msg)