...
|
...
|
@@ -110,17 +110,19 @@ public class TencentMktServiceImpl implements ITencentMktService { |
|
|
return new ApiResponse(503, "手机号码格式不对");
|
|
|
}
|
|
|
|
|
|
//新的活动链接,必须要带校验code
|
|
|
if(Long.valueOf(activityCode)>100000000008331L){
|
|
|
if(StringUtils.isEmpty(code)){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. code is null");
|
|
|
return new ApiResponse(504, "验证码不能为空");
|
|
|
return new ApiResponse(506, "校验失败");
|
|
|
}
|
|
|
|
|
|
//验证union_type和code能不能对应
|
|
|
MktUnionCode mktUnionCode =mktUnionCodeMapper.selectByCode(code);
|
|
|
if (null==mktUnionCode||!activityCode.equals(String.valueOf(mktUnionCode.getUnionType()))){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. check error");
|
|
|
return new ApiResponse(506, "校验失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 验证新老用户
|
|
|
ProfileRequestBO bo = new ProfileRequestBO();
|
...
|
...
|
@@ -209,12 +211,19 @@ public class TencentMktServiceImpl implements ITencentMktService { |
|
|
return response;
|
|
|
}
|
|
|
|
|
|
if(Long.valueOf(activityCode)>100000000008331L){
|
|
|
if(StringUtils.isEmpty(code)){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. code is null");
|
|
|
return new ApiResponse(506, "校验失败");
|
|
|
}
|
|
|
//验证union_type和code能不能对应
|
|
|
MktUnionCode mktUnionCode =mktUnionCodeMapper.selectByCode(checkCode);
|
|
|
if (null==mktUnionCode||!activityCode.equals(String.valueOf(mktUnionCode.getUnionType()))){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. check error");
|
|
|
return new ApiResponse(505, "校验失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// 判断用户是否已经注册过,如果未注册,则调用注册接口
|
|
|
// 老用户则直接返回
|
...
|
...
|
|