|
|
@@ -42,9 +42,10 @@ public class MessageUtils {
|
|
|
params.put("consumerApp", "B2B");
|
|
|
params.put("page", page);
|
|
|
params.put("size", size);
|
|
|
- HttpUtils.Response res = HttpUtils.get(MESSAGE_PUBLIC_SERVICE_URL + "/message", params);
|
|
|
+ HttpUtils.Response res = HttpUtils.get(MESSAGE_PUBLIC_SERVICE_URL + "/messages", params);
|
|
|
if (HttpStatus.OK.value() == res.getStatusCode()) {
|
|
|
if (null != res.getResponseText()) {
|
|
|
+ System.out.println(res.getResponseText());
|
|
|
return (Page) JSONObject.parseObject(res.getResponseText(), new TypeReference<Page<MessageModel>>() {
|
|
|
}, new Feature[0]);
|
|
|
}
|
|
|
@@ -67,7 +68,7 @@ public class MessageUtils {
|
|
|
HashMap<String, String> params = new HashMap<>();
|
|
|
params.put("messageId", String.valueOf(id));
|
|
|
params.put("consumerApp", "B2B");
|
|
|
- HttpUtils.Response res = HttpUtils.post(MESSAGE_PUBLIC_SERVICE_URL + "/message/read", params);
|
|
|
+ HttpUtils.Response res = HttpUtils.post(MESSAGE_PUBLIC_SERVICE_URL + "/messages/read", params);
|
|
|
if (HttpStatus.OK.value() == res.getStatusCode()) {
|
|
|
map.put("success", "成功设为已读");
|
|
|
return map;
|