lyhzzz 2 tahun lalu
induk
melakukan
abf227109a

+ 6 - 0
src/main/java/com/fdkankan/ucenter/service/impl/AppService.java

@@ -137,6 +137,9 @@ public class AppService {
         if(userId!= null){
             User user = userService.getById(userId);
             redisValue = JSONObject.toJSONString(user);
+            if(!stripeService.checkUserStripePay(user.getId(),user.getUserName())){
+                throw new BusinessException(LoginConstant.FAILURE_CODE_3016, LoginConstant.FAILURE_MSG_3016);
+            }
         }
         String token = redisLogin(param.getAppUserName(),redisValue, 604800L);
         JSONObject obj = new JSONObject();
@@ -154,6 +157,9 @@ public class AppService {
         if(user == null){
             throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
         }
+        if(!stripeService.checkUserStripePay(user.getId(),user.getUserName())){
+            throw new BusinessException(LoginConstant.FAILURE_CODE_3016, LoginConstant.FAILURE_MSG_3016);
+        }
         String token = redisLogin(param.getPhoneNum(), JSONObject.toJSONString(user),21600L);
         return commonLogin(user,param,token);
     }