上传身份认证图片时不要截取

This commit is contained in:
cxt 2017-06-30 16:08:18 +08:00
parent bfb0ed6473
commit 681bb0df89
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ class AvatarController < ApplicationController
end
end
if @source_type == 'Contest'
if @source_type == 'UserAuthentication'
elsif @source_type == 'Contest'
Trustie::Utils::Image.new(diskfile,true).compress(900)
else
Trustie::Utils::Image.new(diskfile,true).compress(300)