Commit 2a3cccde by zhouhb

[+]代码提供

1 parent 035551e3
...@@ -274,4 +274,16 @@ public class OpenController { ...@@ -274,4 +274,16 @@ public class OpenController {
return RopResponse.error(e.getErrId(), e.getMessage()); return RopResponse.error(e.getErrId(), e.getMessage());
} }
} }
@ServiceMethod(method = "cn.com.glsx.merchants.open.checkPhone", needInSession = NeedInSessionType.NO)
@ApiOperation("手机号校验")
public RopResponse<OpenUserResponse> checkPhone(OpenCheckPhoneRequest openCheckPhoneRequest) {
try {
OpenUserResponse openUserResponse = openService.checkPhone(openCheckPhoneRequest);
return RopResponse.success(openUserResponse);
} catch (RpcServiceException e) {
log.info("=======OpenController__invoke__checkPhone__exception:{}", e.getMessage());
return RopResponse.error(e.getErrId(), e.getMessage());
}
}
} }
...@@ -176,4 +176,12 @@ public class OpenService { ...@@ -176,4 +176,12 @@ public class OpenService {
} }
throw new RpcServiceException(merchantTreeByMerchantNoRemote.getException().getErrId(), merchantTreeByMerchantNoRemote.getMessage()); throw new RpcServiceException(merchantTreeByMerchantNoRemote.getException().getErrId(), merchantTreeByMerchantNoRemote.getMessage());
} }
public OpenUserResponse checkPhone(OpenCheckPhoneRequest openCheckPhoneRequest) {
RpcResponse<MerchantUserResponse> merchantUserResponseRpcResponse = merchantUserRemote.checkBussinessAccount(ConvertRequest.convertRequest(openCheckPhoneRequest, new MerchantUserRequest()));
if (merchantUserResponseRpcResponse.isSuccess()) {
return ConvertResponse.convertObject(merchantUserResponseRpcResponse.getResult(), OpenUserResponse.class);
}
throw new RpcServiceException(merchantUserResponseRpcResponse.getException().getErrId(), merchantUserResponseRpcResponse.getMessage());
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!