Commit dc8e8103 by 高鹏

Merge branch 'mymaster' into 'master'

修改获取群主的方式

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