| | |
| | | } |
| | | |
| | | String openId = responseObj.getString("openid"); |
| | | String sessionKey = responseObj.getString("session_key"); |
| | | //String sessionKey = responseObj.getString("session_key"); |
| | | |
| | | //responseEntity = super.getUserInfoByOpenId(pd, restTemplate, openId); |
| | | OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto(); |
| | |
| | | if (ownerAppUserDtos == null || ownerAppUserDtos.size() < 1) { |
| | | //将openId放到redis 缓存,给前段下发临时票据 |
| | | paramOut.put("openId", openId); |
| | | paramOut.put("sessionKey", sessionKey); |
| | | // paramOut.put("sessionKey", sessionKey); |
| | | paramOut.put("msg", "还没有注册请先注册"); |
| | | responseEntity = new ResponseEntity<String>(paramOut.toJSONString(), HttpStatus.UNAUTHORIZED); |
| | | |
| | |
| | | paramOut.put("result", 0); |
| | | paramOut.put("userInfo", userInfo); |
| | | paramOut.put("token", token); |
| | | paramOut.put("sessionKey", sessionKey); |
| | | //paramOut.put("sessionKey", sessionKey); |
| | | pd.setToken(token); |
| | | responseEntity = new ResponseEntity<String>(paramOut.toJSONString(), HttpStatus.OK); |
| | | } catch (Exception e) { |