把响应code 为0 的改为200

This commit is contained in:
majintao
2024-09-03 14:54:28 +08:00
parent d19b33ca44
commit d399786e7f
2 changed files with 2 additions and 2 deletions
@@ -177,7 +177,7 @@ public class AddrSvcController {
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/structureAndComplete", params, "UTF-8");
if (json != null) {
int code = json.getInt("status");
int code = json.getInt("status") == 0 ? 200 : 0;
String msg = json.getString("msg");
BasicModel basicModel = new BasicModel(code, msg);
if (json.containsKey("result")) {
@@ -2277,7 +2277,7 @@ public class AddressController {
}
if (json != null) {
int code = json.getInt("status");
int code = json.getInt("status") == 0 ? 200 : 0;
String msg = json.getString("msg");
BasicModel basicModel = new BasicModel(code, msg);
if (json.containsKey("result")) {