...
|
...
|
@@ -93,7 +93,6 @@ function get_redirect_url() |
|
|
local redirectPath = "/apigateway"
|
|
|
local awsPath = "/apiaws"
|
|
|
|
|
|
init_read_body()
|
|
|
|
|
|
-- get params
|
|
|
local force_uid = switch_controller.get_force_uid()
|
...
|
...
|
@@ -122,6 +121,9 @@ end |
|
|
---- main
|
|
|
function main()
|
|
|
|
|
|
|
|
|
init_read_body()
|
|
|
|
|
|
local _status, _msg = pcall(do_degrade)
|
|
|
if not _status then
|
|
|
ngx.log(ngx.ERR, "call method [do_degrade] failed.", _msg)
|
...
|
...
|
|