袁野 3 weeks ago
parent bc331d7c39
commit 7cb1fd288e
  1. 5
      cweb/src/main/java/com/hfkj/controller/GoodsController.java

@ -55,8 +55,7 @@ public class GoodsController {
try { try {
List<GoodsModel> goodsList; List<GoodsModel> goodsList;
// 用户session
UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class);
// 1:淘宝 2:拼多多 // 1:淘宝 2:拼多多
if (type == 1) { if (type == 1) {
@ -69,6 +68,8 @@ public class GoodsController {
goodsList = goodsDataService.goodsModelTaoBaoList(jsonObject); goodsList = goodsDataService.goodsModelTaoBaoList(jsonObject);
} else if (type == 2) { } else if (type == 2) {
// 用户session
UserSessionObject userSession = userCenter.getSessionModel(UserSessionObject.class);
Map<String , Object> mapUser = new JSONObject(); Map<String , Object> mapUser = new JSONObject();
mapUser.put("uid", userSession.getUser().getId()); mapUser.put("uid", userSession.getUser().getId());
JSONObject object = PddService.authority(mapUser.toString()); JSONObject object = PddService.authority(mapUser.toString());

Loading…
Cancel
Save