#1419修改作业打包下载后压缩文件名为学号+名字

This commit is contained in:
sw 2014-10-29 10:53:56 +08:00
parent 2e253d00c3
commit e52fbd0f19
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class ZipdownController < ApplicationController
#length = attach.storage_path.length #length = attach.storage_path.length
homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1) homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1)
end end
zipping("#{homeattach.user.name.to_s}_#{Time.now.to_i}.zip", homeworks_attach_path, OUTPUT_FOLDER, true) zipping("#{user.user_extensions.student_id}_#{homeattach.user.name.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true)
#user_attaches_paths #user_attaches_paths
#end #end
end end