|
|
@ -4,6 +4,7 @@ using BBWYB.Client.Views.SelectShop; |
|
|
|
using BBWYB.Common.Extensions; |
|
|
|
using BBWYB.Common.Models; |
|
|
|
using CommunityToolkit.Mvvm.Input; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.ObjectModel; |
|
|
@ -139,6 +140,7 @@ namespace BBWYB.Client.ViewModels |
|
|
|
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)); |
|
|
|