Commit f1107994 by 阮思源

修改获取群主的方式

parent f96ddbd7
...@@ -181,14 +181,13 @@ public class GroupAnnouncementBizImpl implements GroupAnnouncementBiz { ...@@ -181,14 +181,13 @@ public class GroupAnnouncementBizImpl implements GroupAnnouncementBiz {
modifyNoticeVO.setContent(content); modifyNoticeVO.setContent(content);
modifyNoticeVO.setWxGroupId(wechatGroupId); modifyNoticeVO.setWxGroupId(wechatGroupId);
// 调内部接口获取群主微信号 // 调内部接口获取群主微信号
WeixinQrcode weixinQrcode = weixinQrcodeDao.getByGroupId(wechatGroupId); LOGGER.info("开始拿群主信息" + wechatGroupId);
LOGGER.info("开始拿群信息wechatGroupId"+wechatGroupId+"robotId="+weixinQrcode.getRobotWxId()); String masterId = wechatGroupConsr.getMasterIdByGroupId(wechatGroupId);
GroupInfoVO groupInfoVO = WxGroupSDK.getGroupInfo(wechatGroupId, weixinQrcode.getRobotWxId()); LOGGER.info("结束拿群主信息" + masterId);
LOGGER.info("结束拿群信息"+groupInfoVO.toString()); if (StringUtil.isEmpty(masterId)){
if (groupInfoVO == null) {
continue; continue;
} }
modifyNoticeVO.setMasterId(groupInfoVO.getGroupOwner()); modifyNoticeVO.setMasterId(masterId);
//设置群公告 //设置群公告
LOGGER.info("设置群公告开始"+modifyNoticeVO.toString()); LOGGER.info("设置群公告开始"+modifyNoticeVO.toString());
WxGroupSDK.modifyNotice(modifyNoticeVO); WxGroupSDK.modifyNotice(modifyNoticeVO);
......
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