Commit 2ac958a6 by 高鹏

Merge branch 'mymaster' into 'master'

加点日志

See merge request rays/pcloud-book!33
parents a7d86553 dc7cc3fb
......@@ -60,6 +60,7 @@ public class WechatGroupConsr {
/**
* 根据群号获取机器人微信号
*/
@ParamLog("根据群号获取机器人微信号")
public String getRobotIdByGroupId(String groupId) throws BizException {
log.info("【根据群号获取机器人微信号,<START>.[groupId]=" + groupId + "]");
if (groupId == null) {
......
......@@ -53,11 +53,13 @@ public class UpdateWXGroupNameListener {
changeNameVO.setWxGroupId(wechatGroupId);
String altId = wechatGroupConsr.getRobotIdByGroupId(wechatGroupId);
changeNameVO.setAltId(altId);
LOGGER.info("修改群名称" + changeNameVO.toString());
WxGroupSDK.changeGroupName(changeNameVO);
SendTextMessageVO sendTextMessageVO = new SendTextMessageVO();
sendTextMessageVO.setContent("@"+groupNameDTO.getNickName()+",为方便群友入群分享好的助学方法,请不要随意修改群名。如再修改,会将您移出群聊。谢谢配合。");
sendTextMessageVO.setAltId(altId);
sendTextMessageVO.setGroupId(wechatGroupId);
LOGGER.info("发送警告文本消息"+sendTextMessageVO.toString());
WxGroupSDK.sendTextMessage(sendTextMessageVO);
}
} catch (Exception e) {
......
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