diff --git a/BBWY.Server.API/Controllers/ProductController.cs b/BBWY.Server.API/Controllers/ProductController.cs index 2d813114..28c67212 100644 --- a/BBWY.Server.API/Controllers/ProductController.cs +++ b/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; diff --git a/PJZS/MainWindow.xaml.cs b/PJZS/MainWindow.xaml.cs index 658b012b..4ca3a437 100644 --- a/PJZS/MainWindow.xaml.cs +++ b/PJZS/MainWindow.xaml.cs @@ -124,6 +124,7 @@ namespace PJZS throw new Exception($"获取磨刀石用户信息失败 {mdsUserResponse.Msg}"); globalContext.User = mdsUserResponse.Data.Map(); + 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)); diff --git a/PJZS/Models/User/User.cs b/PJZS/Models/User/User.cs index 0beb46a9..ffc0683c 100644 --- a/PJZS/Models/User/User.cs +++ b/PJZS/Models/User/User.cs @@ -27,5 +27,7 @@ namespace PJZS /// public IList ShopList { get; set; } + public string Token { get; set; } + } }