优化方法名称

This commit is contained in:
白茶清欢 2025-06-03 21:33:24 +08:00
parent 8d81df1ad6
commit ff96f647e6

View File

@ -72,8 +72,9 @@ public class HashMapCache implements ServletContextListener {
public static HashMapCache getInstance() {
return hashMapCache;
}
// 读取
public String getCodeMessage(String category, String code) {
// 读取描述
public String getMessage(String category, String code) {
String key = category + "_" + code;
if (!cache.containsKey(key)) {
// 不包含指定code