|
@@ -86,24 +86,24 @@ public class ThirdPartyServiceImpl implements ThirdPartyService {
|
|
|
example.createCriteria().andTypeEqualTo(GhTypeEnum.THIRD_PARTY_GH.type).andGhIdEqualTo(param.getGhId());
|
|
|
List<GhDetail> ghDetails = ghDetailMapper.selectByExample(example);
|
|
|
if (CollectionUtils.isEmpty(ghDetails)) {
|
|
|
- return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "ghId不存在,请联系管理员配置");
|
|
|
+ return CommonResponse.create(404, "ghId不存在,请联系管理员配置");
|
|
|
}
|
|
|
String channel = ghDetails.get(0).getChannel();
|
|
|
if (channel == null) {
|
|
|
LarkRobotUtil.sendMessage("channel不存在,请查看详情 ghId=", param.getGhId());
|
|
|
- return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "ghId异常,请联系管理员检查");
|
|
|
+ return CommonResponse.create(404, "ghId异常,请联系管理员检查");
|
|
|
}
|
|
|
if (!Objects.equals(secretEnum.channel, channel)) {
|
|
|
LarkRobotUtil.sendMessage(String.format("channel异常 secretEnum.channel=%s ghDetail.channel=%s ghId=%s",
|
|
|
secretEnum.channel, channel, param.getGhId()));
|
|
|
- return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "ghId异常,请联系管理员检查");
|
|
|
+ return CommonResponse.create(404, "ghId异常,请联系管理员检查");
|
|
|
}
|
|
|
List<PushMessageVo> pushMessageVoList = new ArrayList<>();
|
|
|
ReplyBucketData replyBucketData = getPushMessageData(param, channel);
|
|
|
log.info("replyBucketData={}", JSON.toJSONString(replyBucketData));
|
|
|
if (replyBucketData == null) {
|
|
|
log.error("获取推送策略数据失败");
|
|
|
- return CommonResponse.create(ExceptionCodeEnum.PARAM_ERROR, "系统异常,获取失败");
|
|
|
+ return CommonResponse.create(500, "系统异常,获取失败");
|
|
|
}
|
|
|
List<GroupData> groupList = replyBucketData.getGroupList();
|
|
|
for (GroupData groupData : groupList) {
|