|
@@ -157,14 +157,8 @@ public class HomeHandler {
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/prodects", method = RequestMethod.GET)
|
|
|
public ResultMsg getProdects(HttpServletRequest request) {
|
|
|
- ResultMsg msg = new ResultMsg();
|
|
|
-
|
|
|
Member member = WechatUtils.getUserBySession(request);
|
|
|
- // 准备数据
|
|
|
- Map<String, Object> returnMap = new HashMap<String, Object>();
|
|
|
-
|
|
|
List<Product> productList = productInfoService.selectIndexPageProduct();
|
|
|
-
|
|
|
/*
|
|
|
// 判断是否为金牌会员下线,如果是,则以优惠价显示,如果不是则按原价显示
|
|
|
// 查询金牌会员模板id
|
|
@@ -214,6 +208,8 @@ public class HomeHandler {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 准备数据
|
|
|
+ Map<String, Object> returnMap = new HashMap<String, Object>();
|
|
|
returnMap.put("products", productList);
|
|
|
return ResultMsg.SUCCESS().setData(returnMap);
|
|
|
}
|