Browse Source

修改sso居民端登录接口的一些命名

dev_shibei_match
wxz 5 years ago
parent
commit
c64a35837c
  1. 4
      epmet-auth/src/main/java/com/epmet/controller/SsoController.java
  2. 2
      epmet-auth/src/main/java/com/epmet/service/SsoService.java
  3. 8
      epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java

4
epmet-auth/src/main/java/com/epmet/controller/SsoController.java

@ -37,9 +37,9 @@ public class SsoController {
* @date 2021/1/18 下午4:59 * @date 2021/1/18 下午4:59
*/ */
@PostMapping("resi/login") @PostMapping("resi/login")
public Result<SsoLoginResultDTO> ssoLogin(@RequestBody SsoLoginFormDTO formDTO){ public Result<SsoLoginResultDTO> ssoResiLogin(@RequestBody SsoLoginFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO, SsoLoginFormDTO.SsoLoginForm.class); ValidatorUtils.validateEntity(formDTO, SsoLoginFormDTO.SsoLoginForm.class);
return new Result<SsoLoginResultDTO>().ok(ssoService.ssoLogin(formDTO)); return new Result<SsoLoginResultDTO>().ok(ssoService.ssoResiLogin(formDTO));
} }
@PostMapping("test") @PostMapping("test")

2
epmet-auth/src/main/java/com/epmet/service/SsoService.java

@ -18,7 +18,7 @@ public interface SsoService {
* @author zxc * @author zxc
* @date 2021/1/18 下午4:59 * @date 2021/1/18 下午4:59
*/ */
SsoLoginResultDTO ssoLogin(SsoLoginFormDTO formDTO); SsoLoginResultDTO ssoResiLogin(SsoLoginFormDTO formDTO);
/** /**
* @param formDTO * @param formDTO

8
epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java

@ -73,7 +73,7 @@ public class SsoServiceImpl implements SsoService {
* @date 2021/1/18 下午4:59 * @date 2021/1/18 下午4:59
*/ */
@Override @Override
public SsoLoginResultDTO ssoLogin(SsoLoginFormDTO formDTO) { public SsoLoginResultDTO ssoResiLogin(SsoLoginFormDTO formDTO) {
String customerId = getCustomerId(formDTO.getAppId()); String customerId = getCustomerId(formDTO.getAppId());
//String customerId = "3a4f923665a7a07701bcb311aac9a156"; //String customerId = "3a4f923665a7a07701bcb311aac9a156";
String userId = ""; String userId = "";
@ -425,10 +425,10 @@ public class SsoServiceImpl implements SsoService {
//2.客户Id换取第三方apiService,根据ticket换取华为Id //2.客户Id换取第三方apiService,根据ticket换取华为Id
Result<ThirdplatApiserviceResultDTO> apiServiceResult = operCrmOpenFeignClient.getApiServiceByCustomerId(new ApiServiceFormDTO(formDTO.getCustomerId())); Result<ThirdplatApiserviceResultDTO> apiServiceResult = operCrmOpenFeignClient.getApiServiceByCustomerId(new ApiServiceFormDTO(formDTO.getCustomerId()));
if (!apiServiceResult.success()) { if (!apiServiceResult.success()) {
throw new RenException("【SSO登录】调用OperCrm获取ApiService接口失败:", apiServiceResult.getInternalMsg()); throw new RenException("【SSO enterOrg】调用OperCrm获取ApiService接口失败:", apiServiceResult.getInternalMsg());
} }
if (apiServiceResult.getData() == null || StringUtils.isBlank(apiServiceResult.getData().getApiServiceName())) { if (apiServiceResult.getData() == null || StringUtils.isBlank(apiServiceResult.getData().getApiServiceName())) {
throw new RenException("【SSO登录】调用OperCrm获取ApiService,查询到的结果为空:", apiServiceResult.toString()); throw new RenException("【SSO enterOrg】调用OperCrm获取ApiService,查询到的结果为空:", apiServiceResult.toString());
} }
ThirdPlatUserInfo userInfo; ThirdPlatUserInfo userInfo;
try { try {
@ -439,7 +439,7 @@ public class SsoServiceImpl implements SsoService {
} }
if (null == userInfo){ if (null == userInfo){
throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(), throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(),
"【SSO登录】调用第三方平台查询用户信息失败,用户信息为空"); "【SSO enterOrg】调用第三方平台查询用户信息失败,用户信息为空");
} }
//3、记录staff_wechat,并记录用户激活状态,激活时间 //3、记录staff_wechat,并记录用户激活状态,激活时间

Loading…
Cancel
Save