REQ-3045: 减少响应大小
This commit is contained in:
parent
ac63ee6025
commit
2773abef15
@ -25,7 +25,7 @@ public class ModelVersion {
|
||||
private final Integer versionNumber;
|
||||
|
||||
public static ModelVersion of(Integer version) {
|
||||
// attach?
|
||||
// attack?
|
||||
if (version != null && version > 500)
|
||||
throw new ServiceException("model version is too large");
|
||||
if (version == null) version = Integer.MIN_VALUE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user