fix wx_domain

This commit is contained in:
2022-06-11 22:59:03 +08:00
parent d69b4918eb
commit ef205b12c8
5 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ local httpc = http.new()
local sudoerToken = ngx.req.get_headers().HtySudoerToken
local htyhostHeader = ngx.req.get_headers().HtyHost
local function get_access_token()
local htyuc = ngx.var.htyuc
local host = ngx.var.host
local wx_domain = ngx.var.wx_domain
ngx.log(ngx.INFO, "Request URL -> ", ngx.var.uri)
ngx.log(ngx.INFO, "HTYUC -> ", htyuc)
@@ -37,7 +37,7 @@ local function get_access_token()
ssl_verify = false, -- 设置参数 ssl_verify 为false 不校验ssl证书
method = "GET",
headers = {
["HtyHost"] = "wx.moicen.com",
["HtyHost"] = wx_domain,
["HtySudoerToken"] = sudoerToken,
}
}