更换检查更新接口和控制下载按钮状态接口

This commit is contained in:
huangzhuanghua
2016-09-28 17:55:25 +08:00
parent 794784e253
commit 5f2b84d88c
5 changed files with 37 additions and 55 deletions

View File

@ -106,7 +106,7 @@ public class BasicNetwork implements Network {
responseHeaders = convertHeaders(httpResponse.getAllHeaders());
// Handle cache validation.
if (statusCode == HttpStatus.SC_NOT_MODIFIED) {
if (request.getUrl().startsWith(Config.HOST + "v2/version")) {
if (request.getUrl().startsWith(Config.HOST + "v2d0/support/upgrade")) {
if (request.getCacheEntry() != null) {
return new NetworkResponse(HttpStatus.SC_NOT_MODIFIED,
request.getCacheEntry().data, responseHeaders, true);