feat:云流水

This commit is contained in:
苏竹红
2025-04-17 16:48:29 +08:00
parent 887fd9b1a9
commit 7bd4f2503d
5 changed files with 6 additions and 11 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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