浏览代码

:art: 代码格式化

Mizore 2 年之前
父节点
当前提交
97863a4770
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)