File tree Expand file tree Collapse file tree 7 files changed +16
-9
lines changed
library/src/main/java/com/qiniu/android Expand file tree Collapse file tree 7 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 11#Changelog
22
3+ # 7.6.1
4+ * 修复上传区域错误
5+ * 更正打点日志字段
6+
37# 7.6.0
48* 新增打点日志
59* 解决CI问题
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ https://github.com/qiniudemo/qiniu-lab-android
1414
1515| Qiniu SDK 版本 | 最低 Android版本 | 依赖库版本 |
1616| ------------ | -----------------| ------------------------|
17- | 7.6.0 | Android 5.0+ | okhttp 4+ |
17+ | 7.6.x | Android 5.0+ | okhttp 4+ |
1818| 7.5.x | Android 5.0+ | okhttp 4+ |
1919| 7.4.3 | Android 2.3+ | okhttp 3.12.6 |
2020| 7.3.x | Android 2.3+ | okhttp 3.11.0 |
@@ -24,7 +24,7 @@ https://github.com/qiniudemo/qiniu-lab-android
2424| 7.0.7 | Android 2.2+ | android-async-http 1.4.8 |
2525
2626### 注意
27- * 推荐使用最新版:7.6.0 ,7.6.0使用okhttp4 .2.2
27+ * 推荐使用最新版:7.6.1 ,7.6.1使用okhttp4 .2.2
2828* 7.4.3是在7.5.2版本上降低okhttp版本,其他功能不变
2929* 从 7.3.13 开始,不在强制依赖 ` happy-dns-android ` ,默认不再提供 ` httpDns ` ,可以调用 ` Configuration.Builder#dns(com.qiniu.android.http.Dns) ` 方法设置外部 ` Dns ` ,自定义 ` Dns ` 要求实现 ` com.qiniu.android.http.Dns ` 接口。
3030* 从7.5.0开始增加了DNS预取和缓存策略,减少dns解析错误
Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ public static String resultCode(int statuscode) {
556556
557557 public static String errorType (int statuscode ) {
558558 String result = "" ;
559- if (200 < statuscode && statuscode < 400 ) {
559+ if (200 < statuscode && statuscode < 600 ) {
560560 return "response_error" ;
561561 }
562562 switch (statuscode ) {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ private void setTarget_region_id(ZoneInfo info) {
128128 DnsPrefetcher .target_region_id = "z0" ;
129129 } else if (info .upDomainsList .contains (FixedZone .arrayzone1 [0 ])) {
130130 DnsPrefetcher .target_region_id = "z1" ;
131- } else if (info .upDomainsList .contains (FixedZone .arrayzone1 [0 ])) {
131+ } else if (info .upDomainsList .contains (FixedZone .arrayzone2 [0 ])) {
132132 DnsPrefetcher .target_region_id = "z2" ;
133133 } else if (info .upDomainsList .contains (FixedZone .arrayZoneAs0 [0 ])) {
134134 DnsPrefetcher .target_region_id = "as0" ;
Original file line number Diff line number Diff line change 22
33
44public final class Constants {
5- public static final String VERSION = "7.6.0 " ;
5+ public static final String VERSION = "7.6.1 " ;
66
77 public static final String UTF_8 = "utf-8" ;
88}
Original file line number Diff line number Diff line change @@ -65,16 +65,18 @@ public final class FixedZone extends Zone {
6565 };
6666 public static final Zone zoneAs0 = new FixedZone (arrayZoneAs0 );
6767
68- private static ZoneInfo zoneInfo ;
69- private static List < ZoneInfo > listZoneInfo = new ArrayList < ZoneInfo >() ;
68+ private ZoneInfo zoneInfo ;
69+ private static ZoneInfo preCustomZone ;
7070
7171 public static List <ZoneInfo > getZoneInfos () {
72+ List <ZoneInfo > listZoneInfo = new ArrayList <ZoneInfo >();
7273 listZoneInfo .add (createZoneInfo (arrayzone0 ));
7374 listZoneInfo .add (createZoneInfo (arrayzone1 ));
7475 listZoneInfo .add (createZoneInfo (arrayzone2 ));
7576 listZoneInfo .add (createZoneInfo (arrayzoneNa0 ));
7677 listZoneInfo .add (createZoneInfo (arrayZoneAs0 ));
77- listZoneInfo .add (zoneInfo );
78+ if (preCustomZone != null )
79+ listZoneInfo .add (preCustomZone );
7880 return listZoneInfo ;
7981 }
8082
@@ -84,6 +86,7 @@ public FixedZone(ZoneInfo zoneInfo) {
8486
8587 public FixedZone (String [] upDomains ) {
8688 this .zoneInfo = createZoneInfo (upDomains );
89+ this .preCustomZone = this .zoneInfo ;
8790 }
8891
8992 public static ZoneInfo createZoneInfo (String [] upDomains ) {
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ ZoneInfo preQueryIndex(DnsPrefetcher.ZoneIndex index) {
239239 target_region_id = "z0" ;
240240 } else if (info .upDomainsList .contains (FixedZone .arrayzone1 [0 ])) {
241241 target_region_id = "z1" ;
242- } else if (info .upDomainsList .contains (FixedZone .arrayzone1 [0 ])) {
242+ } else if (info .upDomainsList .contains (FixedZone .arrayzone2 [0 ])) {
243243 target_region_id = "z2" ;
244244 } else if (info .upDomainsList .contains (FixedZone .arrayZoneAs0 [0 ])) {
245245 target_region_id = "as0" ;
You can’t perform that action at this time.
0 commit comments