feat:云流水
This commit is contained in:
@@ -199,8 +199,7 @@ public class PushServiceImpl implements PushService {
|
|||||||
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
||||||
|
|
||||||
if (apiResponse.getCode() != 200) {
|
if (apiResponse.getCode() != 200) {
|
||||||
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
|
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,apiResponse.getMsg());
|
||||||
"业务逻辑错误: " + apiResponse.getMsg());
|
|
||||||
}
|
}
|
||||||
return apiResponse.getData();
|
return apiResponse.getData();
|
||||||
}
|
}
|
||||||
@@ -320,8 +319,7 @@ public class PushServiceImpl implements PushService {
|
|||||||
XgjBaseResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
XgjBaseResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
||||||
|
|
||||||
if (apiResponse.getRetCode() != 200) {
|
if (apiResponse.getRetCode() != 200) {
|
||||||
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
|
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,apiResponse.getRetMsg());
|
||||||
"业务逻辑错误: " + apiResponse.getRetMsg());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiResponse.getRetData();
|
return apiResponse.getRetData();
|
||||||
|
|||||||
@@ -123,8 +123,7 @@ public class ThirdBigDataServiceImpl implements ThirdBigDataService {
|
|||||||
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
||||||
|
|
||||||
if (apiResponse.getCode() != 0) {
|
if (apiResponse.getCode() != 0) {
|
||||||
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
|
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR, apiResponse.getMsg());
|
||||||
"业务逻辑错误: " + apiResponse.getMsg());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiResponse.getData();
|
return apiResponse.getData();
|
||||||
|
|||||||
@@ -112,8 +112,7 @@ public class ThirdHuoMaServiceImpl implements HuoMaService {
|
|||||||
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
||||||
|
|
||||||
if (apiResponse.getCode() != 200) {
|
if (apiResponse.getCode() != 200) {
|
||||||
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
|
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,apiResponse.getMsg());
|
||||||
"业务逻辑错误: " + apiResponse.getMsg());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiResponse.getData();
|
return apiResponse.getData();
|
||||||
|
|||||||
@@ -123,8 +123,7 @@ public class ThirdOpportunityServiceImpl implements ThirdOpportunityService {
|
|||||||
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
OpportunityApiResponse<T> apiResponse = objectMapper.readValue(responseBody, javaType);
|
||||||
|
|
||||||
if (apiResponse.getCode() != 200) {
|
if (apiResponse.getCode() != 200) {
|
||||||
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,
|
throw new ServiceException(ErrorCodeEnum.THIRD_API_ERROR,apiResponse.getMsg());
|
||||||
"业务逻辑错误: " + apiResponse.getMsg());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiResponse.getData();
|
return apiResponse.getData();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
spring.application.name=zxjp-web
|
spring.application.name=zxjp-web
|
||||||
spring.profiles.active=@profileActive@
|
spring.profiles.active=test
|
||||||
|
|
||||||
server.port=40300
|
server.port=40300
|
||||||
server.servlet.context-path=/zxjp
|
server.servlet.context-path=/zxjp
|
||||||
|
|||||||
Reference in New Issue
Block a user