代码调整
This commit is contained in:
@@ -246,8 +246,8 @@ public class SendEventUtils {
|
|||||||
connection.setDoOutput(true);
|
connection.setDoOutput(true);
|
||||||
// 将JSON数据写入输出流
|
// 将JSON数据写入输出流
|
||||||
OutputStream outputStream = connection.getOutputStream();
|
OutputStream outputStream = connection.getOutputStream();
|
||||||
log.info(new Gson().toJson(noticeUserDto));
|
log.info(new Gson().toJson(noticeUserDto).replace("pushClientId", "push_clientid"));
|
||||||
outputStream.write(new Gson().toJson(noticeUserDto).getBytes(StandardCharsets.UTF_8));
|
outputStream.write(new Gson().toJson(noticeUserDto).replace("pushClientId", "push_clientid").getBytes(StandardCharsets.UTF_8));
|
||||||
outputStream.flush();
|
outputStream.flush();
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
// 获取响应代码
|
// 获取响应代码
|
||||||
|
|||||||
Reference in New Issue
Block a user