|
@@ -1,7 +1,6 @@
|
|
|
package com.platform.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.platform.entity.Result;
|
|
|
import com.platform.enums.ResultCodeEnum;
|
|
|
import com.platform.exception.CommonBaseException;
|
|
|
import com.platform.vos.RequestScene;
|
|
@@ -59,7 +58,7 @@ public class ZhiHouseService {
|
|
|
if(responseEntity.getStatusCode()!= HttpStatus.OK){
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100,"连接失败");
|
|
|
}
|
|
|
- if (responseEntity.getBody().getCode() != Result.CODE_SUCCESS) {
|
|
|
+ if (responseEntity.getBody().getCode() != 200) {
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100,responseEntity.getBody().getError());
|
|
|
}
|
|
|
|
|
@@ -79,7 +78,7 @@ public class ZhiHouseService {
|
|
|
if(responseEntity.getStatusCode()!= HttpStatus.OK){
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100);
|
|
|
}
|
|
|
- if (responseEntity.getBody().getCode() != Result.CODE_SUCCESS) {
|
|
|
+ if (responseEntity.getBody().getCode() != 200) {
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100,responseEntity.getBody().getError());
|
|
|
}
|
|
|
return responseEntity.getBody();
|
|
@@ -97,7 +96,7 @@ public class ZhiHouseService {
|
|
|
if(responseEntity.getStatusCode()!= HttpStatus.OK){
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100);
|
|
|
}
|
|
|
- if (responseEntity.getBody().getCode() != Result.CODE_SUCCESS) {
|
|
|
+ if (responseEntity.getBody().getCode() != 200) {
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100,responseEntity.getBody().getError());
|
|
|
}
|
|
|
//把信息封装为json
|
|
@@ -121,7 +120,7 @@ public class ZhiHouseService {
|
|
|
if(responseEntity.getStatusCode()!= HttpStatus.OK){
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100);
|
|
|
}
|
|
|
- if (responseEntity.getBody().getCode() != Result.CODE_SUCCESS) {
|
|
|
+ if (responseEntity.getBody().getCode() != 200) {
|
|
|
throw new CommonBaseException(ResultCodeEnum.D100,responseEntity.getBody().getError());
|
|
|
}
|
|
|
}
|