123333
This commit is contained in:
@@ -77,7 +77,7 @@ public class Yunxin {
|
||||
req.setFrom(fromUid+"");
|
||||
req.setTo(toUid+"");
|
||||
req.setBody(JSON.toJSONString(data));
|
||||
req.setOption(JSON.toJSONString(new Option()));
|
||||
// req.setOption(JSON.toJSONString(new Option()));
|
||||
return messageClient.sendMsg(req);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class Yunxin {
|
||||
public YxDataR<YxCommonR> sendBatchAttachMsgNotice(List<Long> toUid, Object data){
|
||||
SendBatchAttachMsgReq req = new SendBatchAttachMsgReq();
|
||||
req.setFromAccid(SYS_NOTICE_ID);
|
||||
req.setToAccids(toUid.stream().map(i -> String.valueOf(toUid)).collect(Collectors.toList()));
|
||||
req.setToAccids(JSON.toJSONString(toUid.stream().map(String::valueOf).collect(Collectors.toList())));
|
||||
req.setAttach(JSON.toJSONString(data));
|
||||
return messageClient.sendBatchAttachMsg(req);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,8 @@ import java.util.List;
|
||||
@Data
|
||||
public class SendBatchAttachMsgReq {
|
||||
private String fromAccid;
|
||||
private List<String> toAccids;
|
||||
// List 数组字符串
|
||||
private String toAccids;
|
||||
private String attach;
|
||||
private int save = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user