@ -2929,7 +2929,7 @@ end
attachment.save
path = attachment.disk_directory
name = attachment.disk_filename
if name.split(".").last == "xls" || name.split(".").last == "xlsx"
if name.split(".").last == "xlsx"
# lists = readXlsData("files/baolong.xlsx")
lists = readXlsData("files/#{path}/#{name}")
school_id = nil
@ -1,3 +1,5 @@
<% if @status == 1 %>
notice_box("导入成功");
<% else %>
notice_box("导入失败,只支持xlsx文件");
<% end %>