licailing 3 سال پیش
والد
کامیت
80217af12c
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/main/java/com/izouma/nineth/service/UserService.java

+ 4 - 0
src/main/java/com/izouma/nineth/service/UserService.java

@@ -1185,6 +1185,8 @@ public class UserService {
             //有效新用户1个限购
             user.setVipPoint(100);
             userRepo.save(user);
+            cacheService.clearUserMy(user.getId());
+            cacheService.clearUser(user.getId());
         }
 
         //指标数量
@@ -1207,6 +1209,8 @@ public class UserService {
             //老用户可有一个限购
             parent.setVipPoint(100);
             userRepo.save(parent);
+            cacheService.clearUserMy(user.getId());
+            cacheService.clearUser(user.getId());
         }
         UserProperty userProperty = userPropertyRepo.findById(invitor).orElse(new UserProperty(invitor, point));
         if (userProperty.getMaxCount() < 10 && userProperty.getMaxCount() != point) {