记得上下班打卡 | git大法好,push需谨慎

Commit c3ad94b7 authored by 张国柄's avatar 张国柄

fix:error code

parent 28008d48
......@@ -29,6 +29,11 @@ public class ErrorMapping {
}
}
public static ErrorMessage get(long code) {
String value = errorsProperties != null ? errorsProperties.getProperty(code + "") : "-";
return ErrorMessage.getInstance().setCode(code + "").setMessage(value);
}
public static ErrorMessage get(String code) {
String value = errorsProperties != null ? errorsProperties.getProperty(code) : "-";
return ErrorMessage.getInstance().setCode(code).setMessage(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment