From e50dcb884ade89a52af494f8f539860815b0d9cb Mon Sep 17 00:00:00 2001 From: 喻健 <喻健@Admin> Date: 星期三, 05 十二月 2018 15:11:52 +0800 Subject: [PATCH] 商品下架抛出的异常 处理 --- fanli/src/main/java/com/yeshi/fanli/controller/client/PushController.java | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/PushController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/PushController.java index e24ab05..33ed1b2 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/PushController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/PushController.java @@ -210,8 +210,8 @@ * @param acceptData * @param out */ - @RequestMapping(value = "/gethistory"/*, method = RequestMethod.POST*/) - public void getHistory(AcceptData acceptData, String deviceToken, int page, PrintWriter out) { + @RequestMapping(value = "/gethistory", method = RequestMethod.POST) + public void getHistory(AcceptData acceptData, Long uid, String deviceToken, int page, PrintWriter out) { long count = 0; List<PushGoods> list = null; @@ -224,11 +224,11 @@ // 璁惧娉ㄥ唽鏃堕棿 Date createTime = deviceActive.getCreateTime(); - count = PushGoodsService.countHistoryByPushTime(createTime); + count = PushGoodsService.countHistoryByPushTime(uid, createTime); int pageSize = Constant.PAGE_SIZE; - list = PushGoodsService.listHistoryByPushTime((page - 1) * pageSize, pageSize, createTime); + list = PushGoodsService.listHistoryByPushTime((page - 1) * pageSize, pageSize, uid, createTime); if (list != null && list.size() > 0) { for (PushGoods pushGoods : list) { JSONObject result = new JSONObject(); @@ -269,15 +269,14 @@ result.put("picture", picture); - String fontColor1 = "#888888"; - String fontColor2 = "#F14242"; + String fontColor1 = "#666666"; + String fontColor2 = "#E5005C"; JSONArray array = new JSONArray(); - JSONObject contentJson1 = new JSONObject(); contentJson1.put("color", fontColor1); - contentJson1.put("content", "鏈鎺ㄩ�佸叡"); + contentJson1.put("content", "鏈鎺ㄨ崘鍏�"); JSONObject contentJson2 = new JSONObject(); contentJson2.put("color", fontColor2); -- Gitblit v1.8.0