update:
1. update check-update api
This commit is contained in:
@@ -120,7 +120,7 @@ public class CommonReleaseVersionServiceImpl extends BaseServiceImpl<CommonRelea
|
|||||||
|
|
||||||
if (current != null) {
|
if (current != null) {
|
||||||
Semver currentSemver = new Semver(current.getVersionName());
|
Semver currentSemver = new Semver(current.getVersionName());
|
||||||
if (currentSemver.isGreaterThan(semver)) {
|
if (!semver.isGreaterThan(currentSemver)) {
|
||||||
throw new ServiceException("当前版本号过小");
|
throw new ServiceException("当前版本号过小");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user