diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 775b1947..b4e5b0b4 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -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 diff --git a/app/views/managements/import_student_accounts.js.erb b/app/views/managements/import_student_accounts.js.erb index 7008649f..dde4caa6 100644 --- a/app/views/managements/import_student_accounts.js.erb +++ b/app/views/managements/import_student_accounts.js.erb @@ -1,3 +1,5 @@ <% if @status == 1 %> notice_box("导入成功"); +<% else %> +notice_box("导入失败,只支持xlsx文件"); <% end %> \ No newline at end of file