mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-12-12 01:11:39 +08:00
Revert "//update---author:wangshuai---date:2025-06-05---for:open api功能优化:ak接口返回未明确提示错误---"
This reverts commit 7a031e6135.
This commit is contained in:
@@ -41,17 +41,7 @@ public class SampleOpenApiTest {
|
|||||||
|
|
||||||
// 解析JSON响应
|
// 解析JSON响应
|
||||||
JSONObject res = JSON.parseObject(responseBody);
|
JSONObject res = JSON.parseObject(responseBody);
|
||||||
//错误日志判断
|
|
||||||
if(res.containsKey("success")){
|
|
||||||
Boolean success = res.getBoolean("success");
|
|
||||||
if(success){
|
|
||||||
System.out.println("[info] 调用成功: " + res.toJSONString());
|
System.out.println("[info] 调用成功: " + res.toJSONString());
|
||||||
}else{
|
|
||||||
System.out.println("[error] 调用失败: " + res.getString("message"));
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
System.out.println("[error] 调用失败: " + res.getString("message"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user