| | |
| | | if (sysUserDO.getBindingCheckUnitId() != null) { |
| | | loginUserInfoVO.setBackstageType(4); |
| | | } |
| | | //判断是否是商家账号 |
| | | Long storeId = userDao.selectStoreIdIdByUserId(sysUserDO.getUserId()); |
| | | if (null != storeId){ |
| | | loginUserInfoVO.setBackstageUserId(sysUserDO.getUserId()); |
| | | loginUserInfoVO.setBackstageType(5); |
| | | loginUserInfoVO.setStoreIdId(storeId); |
| | | } |
| | | |
| | | return R.ok(loginUserInfoVO); |
| | | } |
| | | |
| | |
| | | } |
| | | Map<String, String> headerMap = new HashMap<>(); |
| | | headerMap.put("appid", appId); |
| | | String resultJson = HttpClientUtil.get("https://api.uucsh.cn/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); |
| | | 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")); |