Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
6 years ago
Commit
351b6bf300810e0e7fce11e39f3e35b0a8f407a4
1 parent
278d7d20
add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_api_flow.lua
roles/openresty/files/java-nginx-config/nginx/conf/lua/limit_api_flow.lua
View file @
351b6bf
...
...
@@ -132,7 +132,7 @@ 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
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": "请升级小程序"}'
...
...
@@ -151,7 +151,7 @@ end
function
main
()
init_read_body
()
cutdown
()
if
is_white
()
then
return
else
...
...
Please
register
or
login
to post a comment