123333
This commit is contained in:
@@ -478,7 +478,7 @@ public class YunxinHttpService {
|
||||
data.setTime(System.currentTimeMillis());
|
||||
YxDataR<YxCommonR> r = yunxin.sendBatchAttachMsgNotice(toUid, notice);
|
||||
if(r == null || !r.isSuccess()){
|
||||
log.error("云信发送失败【sendCallAsync】r={}", JSON.toJSONString(r));
|
||||
log.error("云信发送失败-发送礼物飘窗提醒-【sendGiftWindowsAmount】r={}", JSON.toJSONString(r));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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