From c818e826f868dbbfd5e356b27a00a410b6a2a2d3 Mon Sep 17 00:00:00 2001 From: eagleychen Date: Wed, 23 Oct 2024 16:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=AD=A3=E5=BC=8F=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];