diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index ebb7c2fc8..69d8bc3a6 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -122,7 +122,7 @@ class MyController < ApplicationController if @user.save && @se.save # 头像保存 - FileUtils.mv diskfile1, diskfile, force: true + FileUtils.mv diskfile1, diskfile, force: true if File.exist? diskfile1 @user.pref.save @user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : []) set_language_if_valid @user.language