From 78f3f67d4629583b5ed5bf7ac8552344f0403ced Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 23 八月 2019 17:29:36 +0800 Subject: [PATCH] 金币获取拦截修改 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java | 35 ++++++++++++++++++----------------- 1 files changed, 18 insertions(+), 17 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java index 7f4c94e..d8470a5 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/IntegralControllerV2.java @@ -11,6 +11,7 @@ import java.util.Set; import javax.annotation.Resource; +import javax.servlet.http.HttpSession; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @@ -55,7 +56,6 @@ import com.yeshi.fanli.util.Constant; import com.yeshi.fanli.util.StringUtil; import com.yeshi.fanli.util.TimeUtil; -import com.yeshi.fanli.util.annotation.RequestSerializableByKey; import com.yeshi.fanli.vo.integral.DailySignVO; import com.yeshi.fanli.vo.integral.ExchangeTipVO; import com.yeshi.fanli.vo.integral.IntegralDetailVO; @@ -138,7 +138,6 @@ // 鐢ㄦ埛绛惧埌 Integer signState = 0; - int signDays = 1; if (page == 1) { // 绛惧埌 @@ -168,9 +167,6 @@ // 绛惧埌鏃ユ湡淇℃伅 DailySignVO dailySignVO = integralTaskClassService.getDailySignList(uid, userRank.getId()); - if (dailySignVO != null) { - signDays = dailySignVO.getDays(); - } boolean ejectSign = false; if (signState == 1) @@ -490,20 +486,25 @@ out.print(JsonUtil.loadFalseResult(1, "椤电爜涓嶆纭�")); return; } + + try { + List<CodePublishRecord> list = codePublishRecordService.listValid((page - 1) * Constant.PAGE_SIZE, + Constant.PAGE_SIZE); + if (list == null) { + list = new ArrayList<CodePublishRecord>(); + } - List<CodePublishRecord> list = codePublishRecordService.listValid((page - 1) * Constant.PAGE_SIZE, - Constant.PAGE_SIZE); - if (list == null) { - list = new ArrayList<CodePublishRecord>(); + long count = codePublishRecordService.countValid(); + + JSONObject data = new JSONObject(); + data.put("count", count); + data.put("list", getGson().toJson(list)); + data.put("helpLink", configService.get("publish_list_help_link")); + out.print(JsonUtil.loadTrueResult(data)); + } catch (Exception e) { + out.print(JsonUtil.loadFalseResult(1, "鑾峰彇澶辫触")); + return; } - - long count = codePublishRecordService.countValid(); - - JSONObject data = new JSONObject(); - data.put("count", count); - data.put("list", getGson().toJson(list)); - data.put("helpLink", configService.get("publish_list_help_link")); - out.print(JsonUtil.loadTrueResult(data)); } /** -- Gitblit v1.8.0