...
|
...
|
@@ -132,13 +132,16 @@ function cutdown() |
|
|
|
|
|
local method = http_request.get_method()
|
|
|
local app_version = http_request.get_req_param("app_version")
|
|
|
if method and method == "app.cutdownprice.cut" and app_version < "2.9.5" then
|
|
|
ngx.log(ngx.ERR, "[NOT ALLOWED]")
|
|
|
|
|
|
local rsp ='{"code": 10000, "message": "请升级小程序"}'
|
|
|
ngx.say(rsp)
|
|
|
ngx.exit(ngx.HTTP_OK)
|
|
|
return
|
|
|
|
|
|
if method and method == "app.cutdownprice.cut" then
|
|
|
if (not app_version) or ( app_version < "2.9.5") then
|
|
|
ngx.log(ngx.ERR, "[NOT ALLOWED]")
|
|
|
|
|
|
local rsp ='{"code": 10000, "message": "请升级小程序"}'
|
|
|
ngx.say(rsp)
|
|
|
ngx.exit(ngx.HTTP_OK)
|
|
|
return
|
|
|
end
|
|
|
end
|
|
|
end
|
|
|
|
...
|
...
|
|