shanji 2 years ago
parent
commit
0a880cf789
  1. 1
      BBWY.Server.API/Controllers/ProductController.cs
  2. 1
      PJZS/MainWindow.xaml.cs
  3. 2
      PJZS/Models/User/User.cs

1
BBWY.Server.API/Controllers/ProductController.cs

@ -8,7 +8,6 @@ using System.Collections.Generic;
namespace BBWY.Server.API.Controllers
{
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
public class ProductController : BaseApiController
{
private ProductBusiness productBusiness;

1
PJZS/MainWindow.xaml.cs

@ -124,6 +124,7 @@ namespace PJZS
throw new Exception($"获取磨刀石用户信息失败 {mdsUserResponse.Msg}");
globalContext.User = mdsUserResponse.Data.Map<User>();
globalContext.User.Token = globalContext.UserToken;
globalContext.User.SonDepartmentNames = string.Empty;
if (mdsUserResponse.Data.SonDepartmentList != null && mdsUserResponse.Data.SonDepartmentList.Count > 0)
globalContext.User.SonDepartmentNames = string.Join(',', mdsUserResponse.Data.SonDepartmentList.Select(sd => sd.DepartmentName));

2
PJZS/Models/User/User.cs

@ -27,5 +27,7 @@ namespace PJZS
/// </summary>
public IList<Shop> ShopList { get; set; }
public string Token { get; set; }
}
}

Loading…
Cancel
Save