admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/controller/h5/H5SearchController.java
@@ -58,43 +58,7 @@
   @Resource
   private CustomerContentService customerContentService;
   // 优惠券
   /*
    * public final static int quanType = 1;
    *
    * public final static int baoyou = 2;
    *
    * public final static int TMALL = 3;
    */
   /**
    *
    * 方法说明: 关键字提示建议搜索
    *
    * @author mawurui createTime 2018年4月25日 下午3:04:52
    * @param acceptData
    * @param kw
    * @param out
    */
   @RequestMapping(value = "suggestsearch", method = RequestMethod.GET)
   public void getSugguestSearch(String callback, AcceptData acceptData, String kw, PrintWriter out) {
      List<String> list = TaoBaoUtil.getSuguestSearch(kw);
      if (list != null && list.size() > 0) {
         JSONArray array = new JSONArray();
         int num = 0;
         for (String st : list) {
            array.add(st);
            num = num + 1;
            if (num >= 5) {
               break;
            }
         }
         out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(array)));
      } else {
         out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult("")));
      }
      return;
   }
   /**
    * 
@@ -114,12 +78,7 @@
   @RequestMapping(value = "search", method = RequestMethod.GET)
   public void search(String callback, AcceptData acceptData, String kw, int page, String filter, String order,
         String startprice, String endprice, String fastFilter, PrintWriter out) {
      /*
       * System system = webControllerUtil.getSystem(acceptData); if(system ==
       * null){
       * out.print(JsonUtil.loadFalseResult(WebControllerUtil.NOSYSTEM));
       * return; }
       */
      if (!StringUtil.isNullOrEmpty(fastFilter)) {
         if (!StringUtil.isNullOrEmpty(filter)) {
            JSONArray filterArray = JSONArray.fromObject(filter);
@@ -270,20 +229,6 @@
      return data;
   }
   /**
    *
    * 方法说明: 联系客服接口
    *
    * @author mawurui createTime 2018年4月10日 上午9:02:41
    */
   @RequestMapping(value = "contactCustomer", method = RequestMethod.GET)
   public void contactCustomerService(PrintWriter out) {
      String title = "联系客服";
      List<CustomerContent> contentList = customerContentService.contactCustomerService(title);
      JSONObject data = new JSONObject();
      data.put("contentList", JsonUtil.getSimpleGsonWithDate().toJson(contentList));
      out.print(JsonUtil.loadTrueResult(data));
   }
   /**
    *