姓名的判断、

This commit is contained in:
cxt 2016-04-12 15:46:56 +08:00
parent 1882cd8f4f
commit 70afbb3323
1 changed files with 1 additions and 1 deletions

View File

@ -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)