Skip to content

Commit

Permalink
change uc query retry host order (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn authored Jul 25, 2023
1 parent 5b635b6 commit 6690c4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ public boolean shouldWait() {
}
}, 60);

assertTrue("status code:" + info.statusCode, info.statusCode == 418 || info.statusCode % 100 == 5);
assertEquals(418, info.statusCode);
assertTrue("status code:" + info.statusCode, info.statusCode == 418 || (info.statusCode / 100 == 5));
assertNotNull(info.error);
}

Expand Down
8 changes: 4 additions & 4 deletions library/src/main/java/com/qiniu/android/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ public final class Config {
/**
* preQuery host
*/
public static String preQueryHost00 = "uc.qbox.me";
public static String preQueryHost01 = "api.qiniu.com";
public static String preQueryHost02 = "kodo-config.qiniuapi.com";
public static String preQueryHost00 = "kodo-config.qiniuapi.com";
public static String preQueryHost01 = "uc.qbox.me";
public static String preQueryHost02 = "api.qiniu.com";

public static String[] preQueryHosts() {
return new String[]{preQueryHost00, preQueryHost02, preQueryHost01};
return new String[]{preQueryHost00, preQueryHost01, preQueryHost02};
}

/**
Expand Down

0 comments on commit 6690c4b

Please sign in to comment.