Commit f668f2f5 LN

api00失败显示详细信息

1 个父辈 55a40d22
...@@ -35,7 +35,7 @@ public class MicronApi { ...@@ -35,7 +35,7 @@ public class MicronApi {
public static boolean Debug=false; public static boolean Debug=true;
private static MicronConfig config; private static MicronConfig config;
@Autowired @Autowired
...@@ -205,7 +205,7 @@ public class MicronApi { ...@@ -205,7 +205,7 @@ public class MicronApi {
if (ObjectUtil.isNotEmpty(errmsg)) { if (ObjectUtil.isNotEmpty(errmsg)) {
log.info("API001 ,验证失败,错误信息:" + error + ";" + errmsg); log.info("API001 ,验证失败,错误信息:" + error + ";" + errmsg);
throw new ApiException("smfcore.api.001." + errmsg, error + ";" + errmsg, new String[]{}); throw new ApiException("smfcore.api.001.error", error + ";" + errmsg );
} else { } else {
log.info("API001 ,验证失败,获取数据失败:" + errmsg); log.info("API001 ,验证失败,获取数据失败:" + errmsg);
throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API001 : "+result.getResponseData()}); throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API001 : "+result.getResponseData()});
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!