|
@@ -20,9 +20,13 @@ public class OutsideBaseApi {
|
|
|
|
|
|
|
|
|
public <T> T checkData(ResponseHelper<T> result){
|
|
|
- if(result.getCode() != ResponseHelper.ResponseCode_Success){
|
|
|
- String errMsg = result.getMessage().replace("温馨提示:", "");
|
|
|
- throw new RemoteServiceException(result.getCode(),errMsg);
|
|
|
+ if(result.getCode() != ResponseHelper.ResponseCode_Success ){
|
|
|
+ if ( result.getCode() != 415) {
|
|
|
+ String errMsg = result.getMessage().replace("温馨提示:", "");
|
|
|
+ throw new RemoteServiceException(result.getCode(), errMsg);
|
|
|
+ }else {
|
|
|
+ throw new RemoteServiceException(result.getCode(), result.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
return result.getData();
|
|
|
}
|