Compare commits
89
Commits
7294e9050d
...
v1.0.76
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b800069c82 | ||
|
|
82110e36b7 | ||
|
|
5604edc00b | ||
|
|
79059e7818 | ||
|
|
4b943e887d | ||
|
|
359eac8985 | ||
|
|
1531c2498b | ||
|
|
60e80dda87 | ||
|
|
445da5f093 | ||
|
|
b62c7f2495 | ||
|
|
2b7c94e7c3 | ||
|
|
470b586085 | ||
|
|
3d0f9b9d1b | ||
|
|
634de93ffe | ||
|
|
996830bec7 | ||
|
|
cd88f94277 | ||
|
|
47970cd8ff | ||
|
|
ada3fbf9cb | ||
|
|
f6c99bd262 | ||
|
|
1241f19c16 | ||
|
|
d7a7a88232 | ||
|
|
7743b1bab2 | ||
|
|
982b1ee3e4 | ||
|
|
05e28c2c6d | ||
|
|
c18d0e8a9f | ||
|
|
1b221b13d1 | ||
|
|
135996ce19 | ||
|
|
6b85cddede | ||
|
|
e486f850f2 | ||
|
|
76c2f3a5fd | ||
|
|
bb542e7510 | ||
|
|
eba4461381 | ||
|
|
f5ad238015 | ||
|
|
4bdb24e9ac | ||
|
|
425922fd04 | ||
|
|
d65424e5bf | ||
|
|
2a35793baf | ||
|
|
d22df698b6 | ||
|
|
1771bf9909 | ||
|
|
15d69f9361 | ||
|
|
2b4089ef59 | ||
|
|
20c3e1f422 | ||
|
|
3b19d9e930 | ||
|
|
5fd11e9caf | ||
|
|
0b98dcdfe9 | ||
|
|
b373cbbe46 | ||
|
|
acd97c7b9b | ||
|
|
118bdb1666 | ||
|
|
944de228f7 | ||
|
|
25c9cd4dfc | ||
|
|
882cd226ec | ||
|
|
feb4d7af66 | ||
|
|
d75ab1ed5f | ||
|
|
a501eb7443 | ||
|
|
19941d9480 | ||
|
|
cd3d522d4f | ||
|
|
181c5078e9 | ||
|
|
e97f46e6b4 | ||
|
|
c0f89deb83 | ||
|
|
ce695463d3 | ||
|
|
83c683d473 | ||
|
|
9555474b0b | ||
|
|
a150f9e017 | ||
|
|
ecd2fa1c33 | ||
|
|
e3236d262d | ||
|
|
c8e2e16ba5 | ||
|
|
99b44faf09 | ||
|
|
b3e3cbf84b | ||
|
|
0aee11d824 | ||
|
|
fcf358a768 | ||
|
|
619369104c | ||
|
|
4f1408b9d0 | ||
|
|
029eea70cc | ||
|
|
22b1e65385 | ||
|
|
2170c48763 | ||
|
|
c2d1c48aae | ||
|
|
e14958c643 | ||
|
|
da288338cd | ||
|
|
ea430f2468 | ||
|
|
f76f79744a | ||
|
|
19daaff907 | ||
|
|
db94d8f932 | ||
|
|
53618fe362 | ||
|
|
523edffc4e | ||
|
|
c7ddb1a8b0 | ||
|
|
45c9fc814a | ||
|
|
407dc13ac4 | ||
|
|
0c06bf16c2 | ||
|
|
1db39e77d3 |
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<groupId>com.imyeyu.timiserverapi</groupId>
|
<groupId>com.imyeyu.timiserverapi</groupId>
|
||||||
<artifactId>TimiServerAPI</artifactId>
|
<artifactId>TimiServerAPI</artifactId>
|
||||||
<version>1.0.75</version>
|
<version>1.0.76</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>TimiServerAPI</name>
|
<name>TimiServerAPI</name>
|
||||||
<description>imyeyu.com API</description>
|
<description>imyeyu.com API</description>
|
||||||
|
|||||||
@@ -114,8 +114,11 @@ public class AppVersionService {
|
|||||||
return new AppUpdateNotesResponse(null, Collections.emptyList());
|
return new AppUpdateNotesResponse(null, Collections.emptyList());
|
||||||
}
|
}
|
||||||
AppRelease target = resolveChannelRelease(product, req);
|
AppRelease target = resolveChannelRelease(product, req);
|
||||||
// 原生包更新走安装包,与热更日志无关
|
// 安装包不属于更新日志:通道指向原生包时,改用最新发布的热更包做上界
|
||||||
if (target == null || target.getKind() == AppRelease.Kind.NATIVE) {
|
if (target == null || target.getKind() == AppRelease.Kind.NATIVE) {
|
||||||
|
target = latestPublishedBundle(product);
|
||||||
|
}
|
||||||
|
if (target == null) {
|
||||||
return new AppUpdateNotesResponse(null, Collections.emptyList());
|
return new AppUpdateNotesResponse(null, Collections.emptyList());
|
||||||
}
|
}
|
||||||
// 当前版本不低于通道版本:已是最新,或回滚后反而超前
|
// 当前版本不低于通道版本:已是最新,或回滚后反而超前
|
||||||
@@ -269,6 +272,23 @@ public class AppVersionService {
|
|||||||
return latest;
|
return latest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 取最近一次发布的热更包
|
||||||
|
///
|
||||||
|
/// 通道指向原生包时,更新日志没有「通道版本」可用,改用这里兜底。
|
||||||
|
/// 日志是「这个产品最近发了什么」,与设备能不能装无关,所以不套灰度与兼容区间
|
||||||
|
///
|
||||||
|
/// @param product 产品
|
||||||
|
/// @return 版本最高的已发布热更包,没有则返回 null
|
||||||
|
private AppRelease latestPublishedBundle(AppProduct product) {
|
||||||
|
AppRelease latest = null;
|
||||||
|
for (AppRelease item : releaseMapper.selectPublished(product.getId(), AppRelease.Kind.BUNDLE)) {
|
||||||
|
if (latest == null || 0 < compareVersion(item.getVersionName(), latest.getVersionName())) {
|
||||||
|
latest = item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return latest;
|
||||||
|
}
|
||||||
|
|
||||||
/// 判断设备是否命中灰度
|
/// 判断设备是否命中灰度
|
||||||
///
|
///
|
||||||
/// @param grayPermille 灰度比例,万分比
|
/// @param grayPermille 灰度比例,万分比
|
||||||
|
|||||||
Reference in New Issue
Block a user