Skip to content

Commit

Permalink
uc query add host: uc.qiniuapi.com
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Nov 13, 2023
1 parent 8dac547 commit c047858
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QiniuSDK/Common/QNAutoZone.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ + (QNCache *)zoneShareCache {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
QNCacheOption *option = [[QNCacheOption alloc] init];
option.version = @"v1.0.1";
option.version = @"v2";
queryCache = [QNCache cache:[QNZonesInfo class] option:option];
});
return queryCache;
Expand Down
7 changes: 4 additions & 3 deletions QiniuSDK/Common/QNConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
#import <Foundation/Foundation.h>

//MARK: -- 内部布置 尽量不要修改
#define kQNPreQueryHost00 @"kodo-config.qiniuapi.com"
#define kQNPreQueryHost01 @"uc.qbox.me"
#define kQNPreQueryHost02 @"api.qiniu.com"
#define kQNPreQueryHost00 @"uc.qiniuapi.com"
#define kQNPreQueryHost01 @"kodo-config.qiniuapi.com"
#define kQNPreQueryHost02 @"uc.qbox.me"
#define kQNPreQueryHost03 @"api.qiniu.com"
#define kQNPreQueryHosts @[kQNPreQueryHost00, kQNPreQueryHost01, kQNPreQueryHost02]

#define kQNUpLogHost @"uplog.qbox.me"
2 changes: 1 addition & 1 deletion QiniuSDK/Common/QNZoneInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ + (QNZoneInfo *)zoneInfoFromDictionary:(NSDictionary *)detail {

NSMutableDictionary *detailInfo = [detail mutableCopy];
if (detailInfo[@"timestamp"] == nil) {
detailInfo[@"timestamp"] = @([QNUtils currentTimestamp]*0.001);
detailInfo[@"timestamp"] = @([QNUtils currentTimestamp]/1000);
}
long timestamp = [detailInfo[@"timestamp"] longValue];

Expand Down

0 comments on commit c047858

Please sign in to comment.