Skip to content

Commit

Permalink
更换正式域名
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleychen committed Oct 23, 2024
1 parent 5191e88 commit c818e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ - (void)appGetUserConfig:(TIoTP2PAPPConfig *)appconfig {
[accessParam setValue:signature forKey:@"Signature"];


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

0 comments on commit c818e82

Please sign in to comment.