From f037ab79698fe3b1c0a2bc8a3db0663febfa7f80 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 19 四月 2021 15:57:43 +0800 Subject: [PATCH] 2021-04-19 1.1.HDL云萤石摄像头对接接口,增加platform参数, 代表平台 1.on+(默认) 2.evoyo --- EZSDK/EZSDK/EZSDK.m | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/EZSDK/EZSDK/EZSDK.m b/EZSDK/EZSDK/EZSDK.m index 700013e..d283890 100644 --- a/EZSDK/EZSDK/EZSDK.m +++ b/EZSDK/EZSDK/EZSDK.m @@ -6,8 +6,7 @@ // #import "EZSDK.h" -#import "DeviceInfo.h" -#import "EZDeviceInfo.h" +//#import "DeviceInfo.h" #import "EZDeviceInfo.h" #import "EZOpenSDK.h" #import "GlobalKit.h" @@ -19,6 +18,10 @@ #import "EZPlaybackViewController.h" #import "EZDeviceTableViewController.h" #import "EZHCNetDeviceSDK.h" + + + + @implementation EZSDK @@ -58,7 +61,21 @@ [EZOPENSDK setAccessToken:accessToken]; } - +/** + 璁剧疆HDLSDK鐨刟ccessToken + */ ++(void)setHDlAccessToken:(NSString *) accessToken refreshToken:(NSString *) refreshToken +{ + [[GlobalKit shareKit] setHdlAccessToken:accessToken]; + [[GlobalKit shareKit] setHdlRefreshToken:refreshToken]; +} +/** + 璁剧疆SDK鐨勬渤涓滄帴鍙g殑requestHttpsHost鍜屽钩鍙� 鏍囪瘑锛�1.on+(榛樿) 2.evoyo + */ ++(void)setRequestHttpsHostAndPlatform:(NSString *) requestHttpsHost platform:(int) platform{ + [[GlobalKit shareKit] setGlobalRequestHttpsHost:requestHttpsHost]; + [[GlobalKit shareKit] setHdlPlatform:platform]; +} //鑾峰彇褰撳墠灞忓箷鏄剧ず鐨剉iewcontroller (杩欓噷闈㈣幏鍙栫殑鐩稿綋浜巖ootViewController) +(UINavigationController *)getCurrentVC @@ -278,4 +295,6 @@ // } //} + + @end -- Gitblit v1.8.0