调整qrcode参数获取的限制为200
This commit is contained in:
parent
381fbfa67b
commit
f741cb8456
|
@ -1,7 +1,7 @@
|
|||
class QrcodesController < ApplicationController
|
||||
def show
|
||||
str = params[:str].to_s
|
||||
max_length = 50
|
||||
max_length = 200
|
||||
if str.length > max_length
|
||||
render nothing: true, status: 404
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue