...
|
...
|
@@ -110,16 +110,18 @@ public class TencentMktServiceImpl implements ITencentMktService { |
|
|
return new ApiResponse(503, "手机号码格式不对");
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isEmpty(code)){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. code is null");
|
|
|
return new ApiResponse(504, "验证码不能为空");
|
|
|
}
|
|
|
|
|
|
//验证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, "校验失败");
|
|
|
//新的活动链接,必须要带校验code
|
|
|
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(code);
|
|
|
if (null==mktUnionCode||!activityCode.equals(String.valueOf(mktUnionCode.getUnionType()))){
|
|
|
log.warn("call getUserprofileByEmailOrMobile. check error");
|
|
|
return new ApiResponse(506, "校验失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 验证新老用户
|
...
|
...
|
@@ -209,13 +211,20 @@ public class TencentMktServiceImpl implements ITencentMktService { |
|
|
return response;
|
|
|
}
|
|
|
|
|
|
//验证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, "校验失败");
|
|
|
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, "校验失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// 判断用户是否已经注册过,如果未注册,则调用注册接口
|
|
|
// 老用户则直接返回
|
|
|
//看一下这个活动是否设置了老用户也可以领取
|
...
|
...
|
|