出售本站【域名】【外链】

首页 AI人工智能软件 qqAI人工智能 微信AI人工智能 抖音AI人工智能 快手AI人工智能 云控系统 手机AI人工智能

10、抖音sdk抖音api接口调用,同步抖音聊天会话列表 · 抖音SDK

2023-06-16

抖音sdk抖音api接口挪用,同步抖音聊天会话列表 /** * 同步抖音会话列表 * @author wechat:happybabby110 * @blog */ @Async public void handleMsg(ChannelHandlerContext ctx,TransportMessage vo, String contentJsonStr) { try { log.debug(contentJsonStr); SyncConversationTaskMessage.Builder bd = SyncConversationTaskMessage.newBuilder(); JsonFormat.parser().merge(contentJsonStr, bd); SyncConversationTaskMessage req = bd.build(); //将音讯转发送给手机客户端 asyncTaskService.msgSend2Phone(ctx, req.getImUid(), EnumMsgType.SyncConversationTask, vo, req); } catch (Exception e) { e.printStackTrace(); MessageUtil.sendJsonErrMsg(ctx, EnumErrorCode.InvalidParam, Constant.ERROR_MSG_DECODFAIL); } } /** * 推送抖音会话列表 * @author wechat:happybabby110 * @blog */ @Async public void handleMsg(ChannelHandlerContext ctx, TransportMessage vo) { try { ConversationPushNoticeMessage req = vo.getContent().unpack(ConversationPushNoticeMessage.class); log.debug(JsonFormat.printer().print(req)); log.debug(LocalDateTime.now()+" ConversationPushNoticeMessage 对应的线程名: "+Thread.currentThread().getName()); //音讯转发到pc端 asyncTaskService.msgSend2pc(req.getImUid(), EnumMsgType.ConversationPushNotice, req); // 讲述客户端音讯已支到 MessageUtil.sendMsg(ctx, EnumMsgType.MsgReceivedAck, vo.getAccessToken(), vo.getId(), null); } catch (Exception e) { e.printStackTrace(); MessageUtil.sendErrMsg(ctx, EnumErrorCode.InvalidParam,vo.getId(), e.getMessage()); } } 抖音api接口,抖音sdk方案咨询微信happybabby110

热门文章

随机推荐

推荐文章

友情链接: 永康物流网 本站外链出售 义乌物流网 本网站域名出售 手机靓号-号码网