更换检查更新接口和控制下载按钮状态接口
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user