| | |
| | | |
| | | SysUserRoleDO sysUserRoleDO=sysUserRoleDAO.selectOne(new QueryWrapper<SysUserRoleDO>() |
| | | .lambda().eq(SysUserRoleDO::getUserId,sysUserDO.getUserId())); |
| | | loginUserInfoVO.setRoleId(sysUserRoleDO.getRoleId().toString()); |
| | | |
| | | if(sysUserRoleDO!=null && sysUserRoleDO.getRoleId()!=null ) |
| | | { |
| | | loginUserInfoVO.setRoleId(sysUserRoleDO.getRoleId()+""); |
| | | } |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | | |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | Map<String, String> headerMap = new HashMap<>(); |
| | | Map<String, Object> headerMap = new HashMap<>(); |
| | | headerMap.put("appid", appId); |
| | | String resultJson = HttpClientUtil.get("https://uu-api.imashuo.com/member/wx/get-access?province=" + uuLoginVO.getProvince() + "&city=" + uuLoginVO.getCity() + "&area=" + uuLoginVO.getArea() + "&appid=" + appId + "×tamp=" + uuLoginVO.getTimestamp() + "&sign=" + uuLoginVO.getSign() + "&mobile=" + uuLoginVO.getMobile() + "&couponId=" + uuLoginVO.getCouponId(), headerMap, null); |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | if (result.get("status").equals(1)) { |
| | | return R.ok(result.get("data")); |
| | | |
| | | String str="https://uu-api.imashuo.com/member/wx/get-access?"+ "appid=" + appId + |
| | | "×tamp=" + uuLoginVO.getTimestamp() + |
| | | "&sign=" + uuLoginVO.getSign() + |
| | | "&mobile=" + uuLoginVO.getMobile(); |
| | | |
| | | if(!StringUtils.isEmpty(uuLoginVO.getProvince())) |
| | | { |
| | | str=str+"&province=" + uuLoginVO.getProvince(); |
| | | } |
| | | return R.fail("信息错误"); |
| | | |
| | | |
| | | if(!StringUtils.isEmpty(uuLoginVO.getCity())) |
| | | { |
| | | str=str+"&city=" + uuLoginVO.getCity(); |
| | | } |
| | | |
| | | if(!StringUtils.isEmpty(uuLoginVO.getArea())) |
| | | { |
| | | str=str+"&area=" + uuLoginVO.getArea(); |
| | | } |
| | | |
| | | if(!StringUtils.isEmpty(uuLoginVO.getCouponId())) |
| | | { |
| | | str=str+"&couponId=" + uuLoginVO.getCouponId(); |
| | | } |
| | | |
| | | // String resultJson = HttpClientUtil.get("https://uu-api.imashuo.com/member/wx/get-acces.s?province=" + uuLoginVO.getProvince() + "&city=" + uuLoginVO.getCity() + "&area=" + uuLoginVO.getArea() + "&appid=" + appId + "×tamp=" + uuLoginVO.getTimestamp() + "&sign=" + uuLoginVO.getSign() + "&mobile=" + uuLoginVO.getMobile() + "&couponId=" + uuLoginVO.getCouponId(), headerMap, null); |
| | | String resultJson = null; |
| | | try { |
| | | resultJson = HttpClientUtil.httpGet(str ,headerMap,10000 ,null); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | // if (result.get("status").equals(1)) { |
| | | // return R.ok(result.get("data")+" "+resultJson); |
| | | // } |
| | | return R.fail("信息错误"+" "+resultJson); |
| | | } |
| | | |
| | | @Override |