he2802 3 tahun lalu
induk
melakukan
16186e186a

+ 2 - 2
zhongzheng-api/src/main/java/com/zhongzheng/controller/base/ProfileTpController.java

@@ -76,10 +76,10 @@ public class ProfileTpController extends BaseController {
         String key = "PROFILE_"+loginUser.getUser().getUserId();
         String key = "PROFILE_"+loginUser.getUser().getUserId();
         Long value = redisCache.getCacheObject(key);
         Long value = redisCache.getCacheObject(key);
         if(value!=null){
         if(value!=null){
-            return toAjax(1);
+            return toAjax(0);
         }
         }
         if(iUserProfileService.insertByAddBo(bo)){
         if(iUserProfileService.insertByAddBo(bo)){
-            redisCache.setCacheObject(key,1L,10, TimeUnit.SECONDS);//10秒
+            redisCache.setCacheObject(key,1L,5, TimeUnit.SECONDS);//10秒
             return toAjax(1);
             return toAjax(1);
         }
         }
         return toAjax(0);
         return toAjax(0);

+ 2 - 2
zhongzheng-api/src/main/java/com/zhongzheng/controller/base/UserProfileStampController.java

@@ -57,10 +57,10 @@ public class UserProfileStampController extends BaseController {
         String key = "PRSTAMP_"+loginUser.getUser().getUserId();
         String key = "PRSTAMP_"+loginUser.getUser().getUserId();
         Long value = redisCache.getCacheObject(key);
         Long value = redisCache.getCacheObject(key);
         if(value!=null){
         if(value!=null){
-            return toAjax(1);
+            return toAjax(0);
         }
         }
         if(iUserProfileService.insertByAddBo(bo)){
         if(iUserProfileService.insertByAddBo(bo)){
-            redisCache.setCacheObject(key,1L,10, TimeUnit.SECONDS);//10秒
+            redisCache.setCacheObject(key,1L,5, TimeUnit.SECONDS);//10秒
             return toAjax(1);
             return toAjax(1);
         }
         }
         return toAjax(0);
         return toAjax(0);