调整qrcode参数获取的限制为200

This commit is contained in:
yafeilee 2014-04-02 13:37:02 +08:00
parent 381fbfa67b
commit f741cb8456
1 changed files with 1 additions and 1 deletions

View File

@ -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