yujian
2019-12-10 c8041ec0544bf122e6819e6bf698997ccbf30aaf
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserOrderController.java
@@ -186,13 +186,8 @@
         endTime += " 23:59:59";
      }
      // 判断是否需要显示订单找回提示
      if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion()))
         if (state == 0 && page == 1) {
            if (redisManager.frequencyLimit("orderlist-" + acceptData.getDevice(), 15, 3)) {// 15秒内请求3次触发
               // TODO 显示订单找回提醒
            }
         }
      String orderFindUrl = null;
      try {
         long count = 0;
@@ -237,6 +232,14 @@
         if (todayMoney == null) {
            todayMoney = new BigDecimal(0.00);
         }
         // 判断是否需要显示订单找回提示
         if (VersionUtil.greaterThan_2_0_2(acceptData.getPlatform(), acceptData.getVersion()))
            if (state ==null && page == 1) {
               if (redisManager.frequencyLimit("orderlist-" + acceptData.getDevice(), 8, 4)||count==0L) {// 8秒内请求3次触发
                  orderFindUrl = configService.get("order_find_notify_url");
               }
            }
         JSONObject data = new JSONObject();
         data.put("count", count);
@@ -255,6 +258,8 @@
         data.put("totalValid", totalValid); // 有效数量
         data.put("totalProces", totalProces); // 维权数量
         data.put("totalInvite", totalInvite); // 失效数量
         if (orderFindUrl != null)
            data.put("findOrderHelpUrl", orderFindUrl);
         out.print(JsonUtil.loadTrueResult(data));
      } catch (CommonOrderException e) {
         out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg()));