Browse Source

:art: 代码格式化

Mizore 2 years ago
parent
commit
97863a4770
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/util_notify.lua

+ 2 - 1
script/util_notify.lua

@@ -42,6 +42,7 @@ local notify = {
             return
         end
 
+        local url = config.GOTIFY_API .. "/message?token=" .. config.GOTIFY_TOKEN
         local header = {
             ["Content-Type"] = "application/json; charset=utf-8"
         }
@@ -54,7 +55,7 @@ local notify = {
         json_data = string.gsub(json_data, "\\b", "\\n")
 
         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,
     -- 发送到 pushdeer
     ["pushdeer"] = function(msg)