| @@ -2,6 +2,7 @@ package com.iformall.controller; | |||||
| import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; | import cn.binarywang.wx.miniapp.bean.WxMaJscode2SessionResult; | ||||
| import com.alibaba.fastjson.JSON; | |||||
| import com.alibaba.fastjson.JSONObject; | import com.alibaba.fastjson.JSONObject; | ||||
| import com.iformall.annotation.AuthIgnore; | import com.iformall.annotation.AuthIgnore; | ||||
| import com.iformall.annotation.TenantIgnore; | import com.iformall.annotation.TenantIgnore; | ||||
| @@ -87,6 +88,7 @@ public class WxInfoController extends BaseController { | |||||
| if (buUser == null) { | if (buUser == null) { | ||||
| return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "登录用户未找到"); | return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "登录用户未找到"); | ||||
| } | } | ||||
| logger.info(JSON.toJSONString(buUser)); | |||||
| //其他参数 | //其他参数 | ||||
| String systemInfo = param.get("systemInfo"); | String systemInfo = param.get("systemInfo"); | ||||
| WxAppinfo wxAppinfo = getAppInfo(appId); | WxAppinfo wxAppinfo = getAppInfo(appId); | ||||
| @@ -100,11 +102,14 @@ public class WxInfoController extends BaseController { | |||||
| if(appPlat == null){ | if(appPlat == null){ | ||||
| return new ResultData(ErrorCode.APP_PLAT_ERROR); | return new ResultData(ErrorCode.APP_PLAT_ERROR); | ||||
| } | } | ||||
| logger.info(JSON.toJSONString(wxAppinfo)); | |||||
| WxMall wxMall = mallService.getByTenantId(wxAppinfo.getTenantId()); | WxMall wxMall = mallService.getByTenantId(wxAppinfo.getTenantId()); | ||||
| if(wxMall == null){ | if(wxMall == null){ | ||||
| return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); | return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); | ||||
| } | } | ||||
| logger.info(JSON.toJSONString(wxMall)); | |||||
| String session_key = null; | String session_key = null; | ||||
| String openId = null; | String openId = null; | ||||
| String unionId = null; | String unionId = null; | ||||