feat(制品库功能开发): 重构制品库原代码

1. 新增判断请求响应是否成功方法(2XX)
2. 当请求响应成功时,若返回内容为空则返回请求响应状态码
This commit is contained in:
OTTO 2024-06-19 16:37:15 +08:00
parent 2ccbcb5007
commit 7913375521
1 changed files with 3 additions and 1 deletions

View File

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