姓名的判断、
This commit is contained in:
parent
1882cd8f4f
commit
70afbb3323
|
@ -29,7 +29,7 @@ module ApiHelper
|
|||
|
||||
def get_user_realname user
|
||||
name = user.lastname + user.firstname
|
||||
name.empty? || name.nil? ? user.login : name
|
||||
name.empty? || name.nil? || name == " " ? user.login : name
|
||||
end
|
||||
|
||||
def get_assigned_homeworks(homeworks, n, index)
|
||||
|
|
Loading…
Reference in New Issue