上传身份认证图片时不要截取
This commit is contained in:
parent
bfb0ed6473
commit
681bb0df89
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue