diff --git a/QiniuSDK/Common/QNAutoZone.m b/QiniuSDK/Common/QNAutoZone.m index 5537d155..8aca7f1a 100644 --- a/QiniuSDK/Common/QNAutoZone.m +++ b/QiniuSDK/Common/QNAutoZone.m @@ -92,7 +92,7 @@ - (void)setDefaultZones:(NSArray *)zones { - (QNZonesInfo *)getZonesInfoWithToken:(QNUpToken *_Nullable)token { if (token == nil) return nil; - NSString *cacheKey = [self makeCacheKey:nil akAndBucket:token.index]; + NSString *cacheKey = [self makeCacheKey:[QNConfiguration defaultConfiguration] akAndBucket:token.index]; QNZonesInfo *zonesInfo = nil; @synchronized (self) { zonesInfo = self.zonesDic[cacheKey]; @@ -247,7 +247,7 @@ - (NSString *)makeCacheKey:(QNConfiguration *)config akAndBucket:(NSString *)akA } hosts = [NSString stringWithFormat:@"%@:%@", hosts, host]; } - NSString *cacheKey = [NSString stringWithFormat:@"%@:%@", hosts, akAndBucket]; + NSString *cacheKey = [NSString stringWithFormat:@"%@:%@", hosts, key]; return [QNUrlSafeBase64 encodeString:cacheKey]; }