获取重量api接口测试1.5

This commit is contained in:
ptt 2025-11-05 10:38:12 +08:00
parent 858bcfec46
commit 786a1d8c73
1 changed files with 7 additions and 7 deletions

View File

@ -51,13 +51,13 @@ public class getPoundWeightData extends BaseController {
String api = sysConfig.getConfigValue()+pound_api; String api = sysConfig.getConfigValue()+pound_api;
JSONObject jsonObject = doGetRequest(api); JSONObject jsonObject = doGetRequest(api);
HashMap<String, Object> hashMap = new HashMap<>(); HashMap<String, Object> hashMap = new HashMap<>();
if(1==1){ // if(1==1){
hashMap.put("code", jsonObject.get("code")); // hashMap.put("code", jsonObject.get("code"));
hashMap.put("message", jsonObject.getString("message")); // hashMap.put("message", jsonObject.getString("message"));
hashMap.put("data", jsonObject.get("data")); // hashMap.put("data", jsonObject.get("data"));
hashMap.put("return", jsonObject.get("return")); // hashMap.put("return", jsonObject.get("return"));
return success(hashMap); // return success(hashMap);
} // }
if (jsonObject.getIntValue("code") == 0) { if (jsonObject.getIntValue("code") == 0) {
hashMap.put("code", jsonObject.get("code")); hashMap.put("code", jsonObject.get("code"));
hashMap.put("message", jsonObject.getString("message")); hashMap.put("message", jsonObject.getString("message"));