1. update check-update api
This commit is contained in:
2026-04-03 19:50:17 +08:00
parent 31fe71dd17
commit 47da3a6f86
2 changed files with 16 additions and 16 deletions

View File

@@ -57,7 +57,7 @@ public class CommonReleaseVersionServiceImpl extends BaseServiceImpl<CommonRelea
List<CommonReleaseVersionEntity> list = list(Wrappers.lambdaQuery(CommonReleaseVersionEntity.class)
.eq(CommonReleaseVersionEntity::getAppType, type)
.gt(CommonReleaseVersionEntity::getVersionCode, convertVersionNameToVersionCode(version))
.in(CommonReleaseVersionEntity::getChannelCode, List.of(PhoneBrand.fromString(brand).getCode(), AppMarketChannelEnum.PGYER.getCode(), AppMarketChannelEnum.QIHOO.getCode(), AppMarketChannelEnum.OFFICIAL.getCode()))
.in(CommonReleaseVersionEntity::getChannelCode, List.of(PhoneBrand.fromString(brand).getCode(), AppMarketChannelEnum.PGYER.getCode(), AppMarketChannelEnum.QIHOO.getCode(), AppMarketChannelEnum.YINGYONGBAO.getCode(), AppMarketChannelEnum.OFFICIAL.getCode()))
.eq(CommonReleaseVersionEntity::getStatus, VersionStatus.PUBLISHED.getCode())
.eq(CommonReleaseVersionEntity::getIsDeleted, 0)
.orderByDesc(CommonReleaseVersionEntity::getVersionCode)
@@ -156,7 +156,7 @@ public class CommonReleaseVersionServiceImpl extends BaseServiceImpl<CommonRelea
private static Integer convertVersionNameToVersionCode(String versionName) {
Semver semver = new Semver(versionName);
return semver.getMajor() * 1000000 + semver.getMinor() * 1000 + semver.getPatch();
return semver.getMajor() * 100000000 + semver.getMinor() * 100000 + semver.getPatch();
}
}

View File

@@ -242,20 +242,20 @@ blade:
strict-header: true
#接口放行
skip-url:
- /app-mall/categories
- /app-mall/list
- /app-mall/detail
- /app-common/send-forget-pwd-sms
- /app-common/retrieve-password
- /app-eco/list
- /app-eco/detail
- /app-tourism-spot/list
- /app-tourism-spot/top-list
- /app-news/category-list
- /app-news/list
- /app-store/list
- /app-tour/product-list
- /app-tour/product-top-list
- /app/mall/categories
- /app/mall/list
- /app/mall/detail
- /app/common/send-forget-pwd-sms
- /app/common/retrieve-password
- /app/eco/list
- /app/eco/detail
- /app/tourism-spot/list
- /app/tourism-spot/top-list
- /app/news/category-list
- /app/news/list
- /app/store/list
- /app/tour/product-list
- /app/tour/product-top-list
- /blade-pay/callback/**
- /app/common/version
- /market/common/version