| | |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | |
| | | registerInfo.put("name", registerInfo.getString("username")); |
| | | registerInfo.put("password", registerInfo.getString("passwd")); |
| | | responseEntity = this.callCenterService(restTemplate, pd, registerInfo.toJSONString(), ServiceConstant.SERVICE_API_URL + "/api/user.service.register", HttpMethod.POST); |
| | | responseEntity = this.callCenterService(restTemplate, pd, registerInfo.toJSONString(), "user.service.register", HttpMethod.POST); |
| | | return responseEntity; |
| | | } |
| | | |
| | |
| | | ResponseEntity<String> responseEntity = null; |
| | | //校验用户名或手机是否存在 |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/check.hasUser.byNameOrTel?name=" + name + "&tel=" + tel, |
| | | "check.hasUser.byNameOrTel?name=" + name + "&tel=" + tel, |
| | | HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | |
| | | ResponseEntity responseEntity = null; |
| | | JSONObject paramObj = JSONObject.parseObject(pd.getReqData()); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/area.listAreas?" + super.mapToUrlParam(paramObj), |
| | | "area.listAreas?" + super.mapToUrlParam(paramObj), |
| | | HttpMethod.GET); |
| | | |
| | | return responseEntity; |