|
@@ -441,7 +441,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public String getAiVerifyCode(Long userId, Long relationId) throws Exception {
|
|
|
|
|
|
|
+ public String getAiVerifyCode(Long userId, Long relationId, Integer type) throws Exception {
|
|
|
List<Long> relationUserIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
List<Long> relationUserIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
RenewalView renewalView = beanSearcher.searchFirst(RenewalView.class, MapUtils.builder().field(RenewalView::getUserId, relationUserIdList).op(Operator.InList)
|
|
RenewalView renewalView = beanSearcher.searchFirst(RenewalView.class, MapUtils.builder().field(RenewalView::getUserId, relationUserIdList).op(Operator.InList)
|
|
|
.field(RenewalView::getRelationId, relationId).build());
|
|
.field(RenewalView::getRelationId, relationId).build());
|
|
@@ -465,7 +465,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
throw BusinessRuntimeException.getInstance("获取账号验证码异常,请联系客服...");
|
|
throw BusinessRuntimeException.getInstance("获取账号验证码异常,请联系客服...");
|
|
|
}
|
|
}
|
|
|
String url = "http://yinhelx.com/api/controller.php";
|
|
String url = "http://yinhelx.com/api/controller.php";
|
|
|
- Map<String,Object> params = new HashMap<>();
|
|
|
|
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
|
|
|
|
|
params.put("imap_key", "imap_56568niua@@");
|
|
params.put("imap_key", "imap_56568niua@@");
|
|
|
params.put("fun", "imap_read");
|
|
params.put("fun", "imap_read");
|
|
@@ -482,7 +482,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (execute.getStatus() != HttpStatus.HTTP_OK) {
|
|
if (execute.getStatus() != HttpStatus.HTTP_OK) {
|
|
|
throw BusinessRuntimeException.getInstance("获取验证码异常,请联系客服...");
|
|
throw BusinessRuntimeException.getInstance("获取验证码异常,请联系客服...");
|
|
|
}
|
|
}
|
|
|
- String code = getDifferentGoodsCode(renewalView.getGoodsId(), execute.body());
|
|
|
|
|
|
|
+ String code = getDifferentGoodsCode(renewalView.getGoodsId(), execute.body(), type);
|
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
|
record.setUserId(userId);
|
|
record.setUserId(userId);
|
|
|
record.setRelationId(relationId);
|
|
record.setRelationId(relationId);
|
|
@@ -604,7 +604,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
return num;
|
|
return num;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String getDifferentGoodsCode(Long goodsId, String body) {
|
|
|
|
|
|
|
+ public String getDifferentGoodsCode(Long goodsId, String body, Integer type) {
|
|
|
String code = null;
|
|
String code = null;
|
|
|
//奈飞
|
|
//奈飞
|
|
|
if (goodsId == 1) {
|
|
if (goodsId == 1) {
|
|
@@ -622,7 +622,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
}
|
|
|
return urlPref + code;
|
|
return urlPref + code;
|
|
|
}
|
|
}
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
|
|
|
|
+ if (type!=null && type == 1) {
|
|
|
throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
|
|
throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|