获取重量api接口测试1.5
This commit is contained in:
parent
858bcfec46
commit
786a1d8c73
|
|
@ -51,13 +51,13 @@ public class getPoundWeightData extends BaseController {
|
|||
String api = sysConfig.getConfigValue()+pound_api;
|
||||
JSONObject jsonObject = doGetRequest(api);
|
||||
HashMap<String, Object> hashMap = new HashMap<>();
|
||||
if(1==1){
|
||||
hashMap.put("code", jsonObject.get("code"));
|
||||
hashMap.put("message", jsonObject.getString("message"));
|
||||
hashMap.put("data", jsonObject.get("data"));
|
||||
hashMap.put("return", jsonObject.get("return"));
|
||||
return success(hashMap);
|
||||
}
|
||||
// if(1==1){
|
||||
// hashMap.put("code", jsonObject.get("code"));
|
||||
// hashMap.put("message", jsonObject.getString("message"));
|
||||
// hashMap.put("data", jsonObject.get("data"));
|
||||
// hashMap.put("return", jsonObject.get("return"));
|
||||
// return success(hashMap);
|
||||
// }
|
||||
if (jsonObject.getIntValue("code") == 0) {
|
||||
hashMap.put("code", jsonObject.get("code"));
|
||||
hashMap.put("message", jsonObject.getString("message"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue