Sfoglia il codice sorgente

redis的缓存设为十天

clq1010 7 anni fa
parent
commit
fb337b720e

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Login/LoginController.cs

@@ -67,7 +67,7 @@ namespace CallCenterApi.Interface.Controllers
67 67
                             var token = FormsPrincipal<Cache.Models.CurrentUserInfo>.GetCookieValue(currentUserInfo.F_UserCode, currentUserInfo);
68 68
 
69 69
                             //放入缓存
70
-                            CacheHelper.Insert(token, currentUserInfo, 1440);
70
+                            CacheHelper.Insert(token, currentUserInfo, 14400);
71 71
                             return Success("登录成功", new
72 72
                                     {
73 73
                                         token = token