diff --git a/scripts/wx_download.lua b/scripts/wx_download.lua index 86893b7..560dab8 100644 --- a/scripts/wx_download.lua +++ b/scripts/wx_download.lua @@ -6,7 +6,6 @@ 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 @@ -44,7 +43,8 @@ local function get_access_token() return cjson.decode(resp.body).d end else - ngx.log(ngx.ERR, "FAILED TO CONNECT TO *HTYUC* ->", pl.write(resp)) + ngx.log(ngx.ERR, "FAILED TO CONNECT TO *HTYUC* RESP STATUS ->", resp.status) + ngx.exit(resp.status) end end