记得上下班打卡 | git大法好,push需谨慎

Commit d437b584 authored by 张国柄's avatar 张国柄

fix:购买会员限制逻辑调整;

parent 783757c3
...@@ -89,8 +89,12 @@ public class AdamMemberOrderController { ...@@ -89,8 +89,12 @@ public class AdamMemberOrderController {
return ResponseDto.failure(ErrorMapping.get("10213")); return ResponseDto.failure(ErrorMapping.get("10213"));
} }
if (1 != adamRdmService.getSwitch(AdamRedisConst.SWITCH_BUY_MEMBER)) { AdamUserMemberVo userMemberVo = adamRdmService.getUserMemberVoByUid(currentUid);
return ResponseDto.failure(ErrorMapping.get("10215")); if (null == userMemberVo || !userMemberVo.isActive()) {
// 当前用户非会员或会员已过期时,购买会员时会受系统配置[开放/限制购买会员]限制
if (1 != adamRdmService.getSwitch(AdamRedisConst.SWITCH_BUY_MEMBER)) {
return ResponseDto.failure(ErrorMapping.get("10215"));
}
} }
AdamRealInfoVo realInfoVo = adamRdmService.getRealInfoVoByUid(currentUid); AdamRealInfoVo realInfoVo = adamRdmService.getRealInfoVoByUid(currentUid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment