Skip to content

Commit c818e82

Browse files
author
eagleychen
committed
更换正式域名
1 parent 5191e88 commit c818e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ - (void)appGetUserConfig:(TIoTP2PAPPConfig *)appconfig {
364364
[accessParam setValue:signature forKey:@"Signature"];
365365

366366

367-
NSURL *url = [NSURL URLWithString:@"http://localhost:80/appapiv1"];
367+
NSURL *url = [NSURL URLWithString:@"https://iot.cloud.tencent.com/api/exploreropen/appapi"];
368368
NSMutableURLRequest *reqlog = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:5];
369369
[reqlog setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
370370
reqlog.HTTPMethod = @"POST";
@@ -376,7 +376,7 @@ - (void)appGetUserConfig:(TIoTP2PAPPConfig *)appconfig {
376376
NSError *jsonerror = nil;
377377
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:&jsonerror];
378378
// NSLog(@"log serverapi:content===>%@, param==>%@, data===>%@",content,accessParam,dic);
379-
[self setAppConfig:[[dic objectForKey:@"Response"] objectForKey:@"Data"]];
379+
[self setAppConfig:[[dic objectForKey:@"data"] objectForKey:@"Data"]];
380380
}
381381
}];
382382
[tasklog resume];

0 commit comments

Comments
 (0)