...
|
...
|
@@ -160,11 +160,12 @@ function cutdown() |
|
|
|
|
|
|
|
|
local udid = http_request.get_req_param("udid")
|
|
|
local business_line = http_request.get_req_param("business_line")
|
|
|
|
|
|
|
|
|
|
|
|
if method and method == "app.cutdownprice.cut" then
|
|
|
if (not app_version) or ( app_version < "2.9.5") then
|
|
|
if (not app_version) or ( app_version < "2.9.5") or (not business_line ) or (business_line ~= 'miniappGroup') then
|
|
|
ngx.log(ngx.ERR, "[NOT ALLOWED]")
|
|
|
|
|
|
local rsp ='{"code": 10000, "message": "请升级小程序"}'
|
...
|
...
|
@@ -176,7 +177,7 @@ function cutdown() |
|
|
|
|
|
--- temp not allowed the attacker's udid
|
|
|
if udid and udid == "f85b7ca6933c57c0d345d99643cede7" then
|
|
|
ngx.log(ngx.ERR, "[UDID ALLOWED]")
|
|
|
ngx.log(ngx.ERR, "[UDID NOT ALLOWED]")
|
|
|
local rsp2 ='{"code": 10000, "message": "OK"}'
|
|
|
ngx.say(rsp2)
|
|
|
ngx.exit(ngx.HTTP_OK)
|
...
|
...
|
|