This commit is contained in:
BoHung Chiu 2021-11-18 19:10:31 +08:00
parent b597bbaa1c
commit a119e61ced
1 changed files with 0 additions and 1 deletions

View File

@ -19,7 +19,6 @@ all_template.each do |folder|
info_json_file = "#{folder}modules/seminar/info.json" info_json_file = "#{folder}modules/seminar/info.json"
if File.exist?(info_json_file) if File.exist?(info_json_file)
Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/seminar/show.html.erb ' + "#{folder}modules/seminar/.")} Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/seminar/show.html.erb ' + "#{folder}modules/seminar/.")}
update_seminar_template(folder)
begin begin
file_text = File.read(info_json_file) rescue "" file_text = File.read(info_json_file) rescue ""
encode_file_text = file_text.encode("UTF-8", "UTF-8", invalid: :replace, replace: "???") encode_file_text = file_text.encode("UTF-8", "UTF-8", invalid: :replace, replace: "???")