图片上传延迟

This commit is contained in:
cxt 2017-03-17 17:29:37 +08:00
parent b87ac32bd5
commit 8e52e900d7
1 changed files with 4 additions and 4 deletions

View File

@ -81,10 +81,10 @@ class AvatarController < ApplicationController
sleep(3)
# while !File.readable?(diskfile)
# logger.info("###############################################################sleep")
# sleep(0.5)
# end
unless File.size(diskfile) > 0
logger.info("###############################################################sleep")
sleep(0.5)
end
#@src_file = diskfile