微信api接口调用-触发推送微信好友列表
微信api接口调用-触发推送微信好友列表
/*** 触发推送微信好友列表任务* @author wechatno:tangjinjinwx* @blog http://www.wlkankan.cn*/@Asyncpublic void handleMsg(ChannelHandlerContext ctx,TransportMessage vo, String contentJsonStr) {try {log.debug(contentJsonStr);TriggerFriendPushTaskMessage.Builder bd = TriggerFriendPushTaskMessage.newBuilder();JsonFormat.parser().merge(contentJsonStr, bd);TriggerFriendPushTaskMessage req = bd.build();//TriggerFriendPushTaskMessage req = vo.getContent().unpack(TriggerFriendPushTaskMessage.class);//将消息转发送给手机客户端asyncTaskService.msgSend2Phone(ctx, req.getWeChatId(), EnumMsgType.TriggerFriendPushTask, vo, req);} catch (Exception e) {e.printStackTrace();MessageUtil.sendJsonErrMsg(ctx, EnumErrorCode.InvalidParam, Constant.ERROR_MSG_DECODFAIL);}}/*** 推送微信联系人信息* @author wechatno:tangjinjinwx* @blog http://www.wlkankan.cn*/@Asyncpublic void handleMsg(ChannelHandlerContext ctx, TransportMessage vo) {try {ContactsInfoNoticeMessage req = vo.getContent().unpack(ContactsInfoNoticeMessage.class);log.debug(JsonFormat.printer().print(req));asyncTaskService.msgSend2pc(req.getWeChatId(), EnumMsgType.ContactsInfoNotice, req);// 告诉客户端消息已收到MessageUtil.sendMsg(ctx, EnumMsgType.MsgReceivedAck, vo.getAccessToken(), vo.getId(), null);} catch (Exception e) {e.printStackTrace();MessageUtil.sendErrMsg(ctx, EnumErrorCode.InvalidParam,vo.getId(), Constant.ERROR_MSG_DECODFAIL);}}
微信api接口调用-触发推送微信好友列表相关推荐
- 个人微信api接口调用,推送微信好友群聊列表及返回
个人微信api接口调用,推送微信好友群聊列表及返回 触发手机推送微信好友列表及返回/*** 触发手机推送微信好友列表* @author wechatno:tangjinjinwx* @blog htt ...
- 企业微信api接口调用-触发推送企业微信微信好友
企业微信SDK接口API调用-触发推送企业微信微信好友 /*** 触发企业微信推送微信好友列表* @author wechat:happybabby110* @blog http://www.wlka ...
- 企业微信api接口调用-触发推送企业微信联系人列表
企业微信SDK接口API调用-触发推送企业微信联系人列表 /** * 触发推送企业微信联系人列表任务 * @author wechat:happybabby110 * @blog http://www ...
- 企业微信SDK接口API调用-触发推送企业微信微信好友
企业微信SDK接口API调用-触发推送企业微信微信好友 /** * 触发企业微信推送微信好友列表 * @author wechat:happybabby110 * @bl ...
- 微信api接口调用-发朋友圈
微信api接口调用-发朋友圈 /*** 发微信朋友圈* @author wechatno:tangjinjinwx* @blog http://www.wlkankan.cn*/@Asyncpubli ...
- 个人微信api接口调用-微信群管理
个人微信api接口调用-微信群管理 /*** 微信群聊管理* @author wechatno:tangjinjinwx* @blog http://www.wlkankan.cn*/@Asyncpu ...
- 个人微信api接口调用-给微信好友或群聊发消息
个人微信api接口调用-给微信好友或群聊发消息 /*** 给微信好友发消息* @author wechatno:tangjinjinwx* @blog http://www.wlkankan.cn*/ ...
- 企业微信SDK接口API调用-触发推送企业微信联系人列表
/** * 触发推送企业微信联系人列表任务 * @author wechat:happybabby110 * @blog http://www.wlkankan.cn ...
- 企业微信api接口调用-企业微信好友收发消息
企业微信api消息接口调用-企业微信好友收发消息 /** * 给企业微信好友发消息 * @author wechat:happybabby110 * @blog http://www.wlkankan ...
最新文章
- C#资源释放及Dispose、Close和析构方法
- Oracle Enterprise Linux
- 将Python源码编译成pyc和pyo文件
- java 气泡 提示插件_Java气泡提示功能实现
- C++利用双哈希表实现存储机制hash table的算法(附完整源码)
- 使用预编译头提高编译速度
- [译]GLUT教程 - 每秒帧数
- HashMap的put方法(Java7)和putVal方法(Java8)
- 阿里云的RDS 查看binlog日志的方法
- SpringBoot +spring security 与CSRF有关的几个 问题
- 开源的SNMP网管系统LibreNMS
- 体外诊断(IVD)行业系列四:快速崛起的独立医学实验室
- 围棋人机大战属于计算机在什么方面的应用,人民日报评围棋人机大战:胜出的是我们自己...
- Python问题:UnsortedIndexError: ‘MultiIndex slicing requires the index to be lexsorted: slicing on lev
- 假设检验中两类错误及最小样本量计算
- Rom制作工具让你一键root畅想未来
- 牛客网暑期ACM多校训练营(第六场) C.Generation I (思维+逆元+组合数学)
- HTML在手机端禁止放大缩小
- 【蓝桥杯单片机组实战】2、高级计算器
- 《从0开始学微服务》模块一:入门微服务的学习笔记