2 Commits f9babd7c25 ... 8b759c1227

Author SHA1 Message Date
  lifa 8b759c1227 新增 用户邀请码 1 year ago
  lifa 761e739f04 类属性不可为null bug修复 1 year ago

+ 5 - 0
src/platform/ZhonTai.Admin/Domain/Platform/PlatformUserEntity.cs

@@ -53,6 +53,11 @@ namespace ZhonTai.Admin.Domain.Platform
         /// </summary>
         public string Role { get; set; }
 
+        /// <summary>
+        /// 邀请码
+        /// </summary>
+        public string InviteCode { get; set; }
+
 
         /// 通过手机号和上级ID 来判断唯一(一个手机号可注册多个不同上级的账号)
     }

+ 2 - 1
src/platform/ZhonTai.Admin/Services/DiTuiAPI/DiTuiAPIService.cs

@@ -133,7 +133,8 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
                     }
                     authLoginOutput.Tenant = tenant;
                 }
-                
+                authLoginOutput.UserName = authLoginOutput.Name;
+
                 string token = GetToken(authLoginOutput);
                 #endregion
 

+ 5 - 0
src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

@@ -2944,6 +2944,11 @@
             通过后台开通的是平台管理员1  注册是下级2
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Domain.Platform.PlatformUserEntity.InviteCode">
+            <summary>
+            邀请码
+            </summary>
+        </member>
         <member name="T:ZhonTai.Admin.Domain.Project.ProjectEntity">
             <summary>
             拉新项目