This commit is contained in:
张良(004796)
2024-01-25 19:04:03 +08:00
parent 7874e38d17
commit 13fa059d02
14 changed files with 171 additions and 89 deletions

View File

@@ -28,9 +28,7 @@ public class Yunxin {
private ImMessageClient messageClient;
public void sendToSync(Long toUid,Long fromUid,Object data){
YunxinExecutorConstant.COMMON_EXECUTOR.execute(() -> {
this.sendTo(toUid,fromUid,data);
});
this.sendTo(toUid,fromUid,data);
}
public YxDataR<SendMsgResp> sendTo(Long toUid,Long fromUid,Object data){
@@ -39,6 +37,7 @@ public class Yunxin {
req.setTo(toUid+"");
req.setBody(JSON.toJSONString(data));
req.setOption(JSON.toJSONString(new Option()));
req.setType(100);
return messageClient.sendMsg(req);
}