Browse Source

fix 0012909: 【杏聆荟学院】【我的课程】创建小班化课程时,助教和参会者存在GUID用户名显示,应显示对应的手机号或者邮箱

warr.qian 1 year ago
parent
commit
b77913eca1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/DTO/User/UserDTO.cs

+ 4 - 4
src/DTO/User/UserDTO.cs

@@ -247,14 +247,14 @@ namespace WingInterfaceLibrary.DTO.User
             get
             {
                 var name = string.IsNullOrWhiteSpace(FullName) ? UserName : FullName;
-                if(Regex.IsMatch(name,"[0-9A-Z]{32}") && !string.IsNullOrWhiteSpace(Email))
-                {
-                    name = Email;
-                }
                 if(Regex.IsMatch(name,"[0-9A-Z]{32}") && !string.IsNullOrWhiteSpace(Phone))
                 {
                     name = Phone;
                 }
+                if(Regex.IsMatch(name,"[0-9A-Z]{32}") && !string.IsNullOrWhiteSpace(Email))
+                {
+                    name = Email;
+                }
                 return name;
             }
         }