123
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user