forked from Gitlink/microservices
feat(制品库功能开发): 重构制品库原代码
1. 新增判断请求响应是否成功方法(2XX) 2. 当请求响应成功时,若返回内容为空则返回请求响应状态码
This commit is contained in:
parent
2ccbcb5007
commit
7913375521
|
|
@ -267,7 +267,9 @@ public class HttpAPIService {
|
|||
}
|
||||
return JSONObject.parseObject(result);
|
||||
} else {
|
||||
return new JSONObject();
|
||||
JSONObject resObject = new JSONObject();
|
||||
resObject.put("status", httpStatusCode);
|
||||
return resObject;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue