|
@@ -136,6 +136,9 @@ public class AppService {
|
|
|
String redisValue = "";
|
|
|
if(userId!= null){
|
|
|
User user = userService.getById(userId);
|
|
|
+ if(user == null){
|
|
|
+ throw new BusinessException(LoginConstant.FAILURE_CODE_3015, LoginConstant.FAILURE_MSG_3015);
|
|
|
+ }
|
|
|
redisValue = JSONObject.toJSONString(user);
|
|
|
if(!stripeService.checkUserStripePay(user.getId(),user.getUserName())){
|
|
|
throw new BusinessException(LoginConstant.FAILURE_CODE_3016, LoginConstant.FAILURE_MSG_3016);
|