dev_forum
jingquan huang 5 years ago
parent f10400ceda
commit d957d57b4b

@ -406,8 +406,10 @@ class User < ApplicationRecord
return '游客' unless logged?
name = lastname + firstname
name.blank? ? (nickname.blank? ? login : nickname) : name
name.gsub(/\s+/, '').gsub(/\n/, '').strip #6.11 -hs
username = name.blank? ? (nickname.blank? ? login : nickname) : name
Rail.logger.info("3333333332222222#{username}")
username.gsub(/\s+/, '').gsub(/\n/, '').strip #6.11 -hs
end
# 用户是否选题毕设课题

Loading…
Cancel
Save