From fae3de8e0439802f5d9d8446e46d4d23d2f349fa Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 13 Nov 2014 09:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E5=B8=88=E6=89=93=E5=8C=85=E5=90=8E?= =?UTF-8?q?=E5=A7=93=E5=92=8C=E5=90=8D=E5=8F=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/zipdown_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/zipdown_controller.rb b/app/controllers/zipdown_controller.rb index bfd7812df..d7f9fa0ac 100644 --- a/app/controllers/zipdown_controller.rb +++ b/app/controllers/zipdown_controller.rb @@ -72,7 +72,7 @@ class ZipdownController < ApplicationController homeattach.attachments.each do |attach| homeworks_attach_path << attach.diskfile#.to_s.slice((length+1)..-1) end - zipping("#{homeattach.user.firstname}#{homeattach.user.lastname}_#{homeattach.user.user_extensions.student_id}_#{Time.now.to_i.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true) + zipping("#{homeattach.user.lastname}#{homeattach.user.firstname}_#{homeattach.user.user_extensions.student_id}_#{Time.now.to_i.to_s}.zip", homeworks_attach_path, OUTPUT_FOLDER, true) end