diff --git a/cweb/src/main/java/com/hfkj/controller/GoodsController.java b/cweb/src/main/java/com/hfkj/controller/GoodsController.java index 72ceb53..d1a4e03 100644 --- a/cweb/src/main/java/com/hfkj/controller/GoodsController.java +++ b/cweb/src/main/java/com/hfkj/controller/GoodsController.java @@ -55,8 +55,7 @@ public class GoodsController { try { List goodsList; - // 用户session - UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class); + // 1:淘宝 2:拼多多 if (type == 1) { @@ -69,6 +68,8 @@ public class GoodsController { goodsList = goodsDataService.goodsModelTaoBaoList(jsonObject); } else if (type == 2) { + // 用户session + UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class); Map mapUser = new JSONObject(); mapUser.put("uid", userSession.getUser().getId()); JSONObject object = PddService.authority(mapUser.toString());