From 7cb1fd288e2cbab66d153351160f7ba27cd76d4b Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Wed, 6 Nov 2024 14:21:03 +0800 Subject: [PATCH] Merge branch 'master' of http://gitea.dctpay.com/hurui/youtao --- cweb/src/main/java/com/hfkj/controller/GoodsController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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());