Commit 16e42b66 LN

同一条码API001NG加了两次

1 个父辈 752f40e5
...@@ -189,15 +189,21 @@ public class MicronApi { ...@@ -189,15 +189,21 @@ public class MicronApi {
// } // }
} else { } else {
String errmsg=result.getResult("description",false); String errmsg = result.getResult("description", false);
if(ObjectUtil.isEmpty(errmsg)){ if (ObjectUtil.isEmpty(errmsg)) {
errmsg=errorMsg; errmsg = errorMsg;
} }
Integer error=result.getErrorValue("error"); Integer error = result.getErrorValue("error");
// String message=result.getErrorValue("message"); // String message=result.getErrorValue("message");
loadingUtil.AddErrorItem(rfid, barcode,error,errmsg); // loadingUtil.AddErrorItem(rfid, barcode,error,errmsg);
log.info("API001 ,验证失败,获取数据失败:"+errmsg); if (ObjectUtil.isNotEmpty(errmsg)) {
throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API001"});
log.info("API001 ,验证失败,错误信息:" + error + ";" + errmsg);
throw new ApiException("smfcore.api.001." + errmsg, error + ";" + errmsg, new String[]{});
} else {
log.info("API001 ,验证失败,获取数据失败:" + errmsg);
throw new ApiException("smfcore.api.fail", "{0} Failed to get data", new String[]{"API001"});
}
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!