Commit 679e5ce9 authored by 黄奎's avatar 黄奎

页面修改

parent 94170e63
...@@ -156,5 +156,10 @@ namespace Mall.Common ...@@ -156,5 +156,10 @@ namespace Mall.Common
/// 小程序管理员编号 /// 小程序管理员编号
/// </summary> /// </summary>
public int AdminId { get; set; } public int AdminId { get; set; }
/// <summary>
/// 后台Token
/// </summary>
public string AdminToken { get; set; }
} }
} }
\ No newline at end of file
...@@ -355,6 +355,14 @@ namespace Mall.WebApi.Controllers.User ...@@ -355,6 +355,14 @@ namespace Mall.WebApi.Controllers.User
IsAdmin = umodel.IsAdmin, IsAdmin = umodel.IsAdmin,
AdminId=umodel.AdminId, AdminId=umodel.AdminId,
}; };
if (umodel.AdminId > 0)
{
appletUserInfo.AdminToken = ApiTokenHelper.CreateToken(new TokenUserInfo()
{
requestFrom= ApiRequestFromEnum.Web,
uid= umodel.TenantId.ToString(),
});
}
if (mmodel.IsOpenMiAi == 1) if (mmodel.IsOpenMiAi == 1)
{ {
var oldBaseInfo = miaiModule.GetBaseInfoList(new Model.Extend.Miai.RB_MiAi_BaseInfo_Extend { UserId = umodel.Id, TenantId = mmodel.TenantId, MallBaseId = mmodel.MallBaseId }).FirstOrDefault(); var oldBaseInfo = miaiModule.GetBaseInfoList(new Model.Extend.Miai.RB_MiAi_BaseInfo_Extend { UserId = umodel.Id, TenantId = mmodel.TenantId, MallBaseId = mmodel.MallBaseId }).FirstOrDefault();
......
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