medal_bug

This commit is contained in:
2025-06-09 14:57:38 +08:00
parent 8a24ecc285
commit 41d8b9a8ea

View File

@@ -51,7 +51,7 @@ public class MedalSeriesAdminService {
if (medal == null) {
throw new AdminServiceException(String.format("勋章ID:%s不存在", medalSeriesRef.getMedalId()));
}
if (medal.getEnable() == Boolean.TRUE) {
if (!medal.getEnable().equals(Boolean.TRUE)) {
throw new AdminServiceException(String.format("勋章ID:%s状态为无效", medalSeriesRef.getMedalId()));
}
}