Commit 9411bd0e authored by 黄奎's avatar 黄奎

页面修改

parent 43818f83
......@@ -164,6 +164,7 @@ namespace Edu.Cache.User
Email = model.Email,
IsTenCccUser = model.IsTenCccUser,
IsCourseConsultant = (model != null && model.UserRole == UserRoleEnum.CourseConsultant) ? 1 : 0,
IsMarket = (model != null && model.UserRole == UserRoleEnum.MarketPersion) ? 1 : 0,
};
UserInfoSet(Cache.CacheKey.User_Login_Key + Id.ToString(), userInfo, Common.Config.JwtExpirTime);
}
......
......@@ -172,6 +172,11 @@ namespace Edu.Model.CacheModel
/// 是否是课程顾问(1-是)
/// </summary>
public int IsCourseConsultant { get; set; }
/// <summary>
/// 是否是市场(1-是)
/// </summary>
public int IsMarket { get; set; }
}
/// <summary>
......
......@@ -227,6 +227,7 @@ namespace Edu.WebApi.Controllers.User
Email = model.Email,
IsTenCccUser = model.IsTenCccUser,
IsCourseConsultant = (model != null && model.UserRole == UserRoleEnum.CourseConsultant) ? 1 : 0,
IsMarket= (model != null && model.UserRole == UserRoleEnum.MarketPersion) ? 1 : 0,
ActionMenuList = actionList?.Select(qitem => new { qitem.FunctionCode, qitem.FunctionName, qitem.MenuName, qitem.MenuUrl }),
UploadConfig = new
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment