zhoufan лет назад: 7
Родитель
Сommit
5cf95bb6bc

+ 8 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Base/BaseController.cs

14
         {
14
         {
15
             get
15
             get
16
             {
16
             {
17
-                return (FormsPrincipal<Cache.Models.CurrentUserInfo>)base.User;
17
+                try
18
+                {
19
+                    return (FormsPrincipal<Cache.Models.CurrentUserInfo>)base.User;
20
+                }
21
+                catch
22
+                {
23
+                    return null;
24
+                }
18
             }
25
             }
19
         }
26
         }
20
         /// <summary>
27
         /// <summary>