提交 1fa5f546 authored 作者: Whispa's avatar Whispa

commit

上级 db30f599
...@@ -43,7 +43,7 @@ class Controller { ...@@ -43,7 +43,7 @@ class Controller {
// 'to': token, // 'to': token,
// }, // },
// ).then((f){print(f.data.toString());}); // ).then((f){print(f.data.toString());});
JSONObject request = new JSONObject(); HashMap<String, Object> request = new HashMap<>();
HashMap<String, Object> notification = new HashMap<>(); HashMap<String, Object> notification = new HashMap<>();
HashMap<String, Object> data = new HashMap<>(); HashMap<String, Object> data = new HashMap<>();
...@@ -67,7 +67,7 @@ class Controller { ...@@ -67,7 +67,7 @@ class Controller {
} }
private String sendPOSTRequest(JSONObject data) { private String sendPOSTRequest(HashMap<String, Object> data) {
try { try {
RestTemplate restTemplate = new RestTemplate(); RestTemplate restTemplate = new RestTemplate();
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论