@ -269,6 +269,7 @@ class MyshixunsController < ApplicationController
author_name = current_user.full_name
author_email = current_user.mail
message = params[:evaluate] == 0 ? "System automatically submitted" : "User submitted"
uid_logger("")
@content = GitService.update_file(repo_path: @repo_path,
file_path: path,
message: message,
@ -406,7 +406,7 @@ class User < ApplicationRecord
return '游客' unless logged?
name = lastname + firstname
name.blank? ? (nickname.blank? ? login : nickname) : name
gsub(/\s+/, '').strip #6.11 -hs
name.gsub(/\s+/, '').strip #6.11 -hs
end
# 用户是否选题毕设课题