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

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

使用会员码API+实名逻辑;

parent e5223f67
......@@ -88,6 +88,15 @@ public class AdamMemberOrderController {
param.setIp("127.0.0.1");
param.setSource("Android");
param.setVersion("5.5.5");
AdamRealInfoVo realInfoVo = adamRealNameService.queryByUid(CurrentUtil.getCurrentUid());
if (null == realInfoVo) {
if (StringUtils.isBlank(param.getName()) || StringUtils.isBlank(param.getIdCard())) {
return ResponseDto.failure(ErrorMapping.get("10101"));
}
adamUserService.identity(CurrentUtil.getCurrentUid(), param.getName(), param.getIdCard());
}
boolean result = adamMemberOrderService.useMemberCode(param);
if (!result) {
return ResponseDto.failure("兑换失败");
......
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