diff --git a/Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm b/Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm index b7ccccc8..ff6a844b 100644 --- a/Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm +++ b/Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm @@ -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"; @@ -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];