Skip to content

Commit f5ed7ac

Browse files
committed
跑通SDKDemo环境与被呼逻辑
Change-Id: Ic0b6d348904526331f54b410c594889f72cc6736
1 parent fd4ebf8 commit f5ed7ac

File tree

11 files changed

+232
-39
lines changed

11 files changed

+232
-39
lines changed

LinkApp.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
EDF126FE23BDBE8D00FB1638 /* TIoTWaterFlowLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = EDF126FD23BDBE8D00FB1638 /* TIoTWaterFlowLayout.m */; };
274274
EDF1270223BDC51A00FB1638 /* TIoTPanelVC.m in Sources */ = {isa = PBXBuildFile; fileRef = EDF1270023BDC51A00FB1638 /* TIoTPanelVC.m */; };
275275
EDF93D9923B367A000D477C7 /* TIoTRequestObject.m in Sources */ = {isa = PBXBuildFile; fileRef = EDF93D9823B367A000D477C7 /* TIoTRequestObject.m */; };
276+
F4027793257775D70004E20F /* TIoTNetConfigViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F4027792257775D70004E20F /* TIoTNetConfigViewController.m */; };
276277
F4103F90249B971100CB678F /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4103F8F249B971100CB678F /* CoreData.framework */; };
277278
F47D60E7254FF4EF009BC66E /* TIoTWebVC+BLE.swift in Sources */ = {isa = PBXBuildFile; fileRef = F47D60E6254FF4EF009BC66E /* TIoTWebVC+BLE.swift */; };
278279
F4833EBC24DD2E100033FAB2 /* TIoTDebugtools.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4833EBB24DD2E100033FAB2 /* TIoTDebugtools.swift */; };
@@ -897,6 +898,8 @@
897898
EDF1270023BDC51A00FB1638 /* TIoTPanelVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TIoTPanelVC.m; sourceTree = "<group>"; };
898899
EDF93D9723B367A000D477C7 /* TIoTRequestObject.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TIoTRequestObject.h; sourceTree = "<group>"; };
899900
EDF93D9823B367A000D477C7 /* TIoTRequestObject.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TIoTRequestObject.m; sourceTree = "<group>"; };
901+
F4027791257775D70004E20F /* TIoTNetConfigViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TIoTNetConfigViewController.h; sourceTree = "<group>"; };
902+
F4027792257775D70004E20F /* TIoTNetConfigViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TIoTNetConfigViewController.m; sourceTree = "<group>"; };
900903
F4103F8F249B971100CB678F /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
901904
F47D60E6254FF4EF009BC66E /* TIoTWebVC+BLE.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TIoTWebVC+BLE.swift"; sourceTree = "<group>"; };
902905
F4833EBB24DD2E100033FAB2 /* TIoTDebugtools.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TIoTDebugtools.swift; sourceTree = "<group>"; };
@@ -2263,6 +2266,8 @@
22632266
F4F3D77924938EBD005D3396 /* TIoTCoreRepeatVC.m */,
22642267
F4F3D78624938EBD005D3396 /* WifiInfoVC.h */,
22652268
F4F3D77B24938EBD005D3396 /* WifiInfoVC.m */,
2269+
F4027791257775D70004E20F /* TIoTNetConfigViewController.h */,
2270+
F4027792257775D70004E20F /* TIoTNetConfigViewController.m */,
22662271
F4F3D78524938EBD005D3396 /* HomeVC.h */,
22672272
F4F3D77C24938EBD005D3396 /* HomeVC.m */,
22682273
F4F3D77D24938EBD005D3396 /* TIoTCoreTimerListVC.h */,
@@ -2887,6 +2892,7 @@
28872892
F4F3D53E24935BD3005D3396 /* main.m in Sources */,
28882893
F4F3D7CB24938EBE005D3396 /* HomeVC.m in Sources */,
28892894
F4DB306925676DF7006C45CD /* TRTCAudioCallViewController.swift in Sources */,
2895+
F4027793257775D70004E20F /* TIoTNetConfigViewController.m in Sources */,
28902896
F4DB306725676DF7006C45CD /* TRTCVideoCallViewController.swift in Sources */,
28912897
F4F3D7B324938EBE005D3396 /* InviteVC.m in Sources */,
28922898
F4F3D7B024938EBE005D3396 /* TIoTCoreAddFamilyVC.m in Sources */,

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ end
1515
def common_all_pods
1616
pod 'Masonry', '1.1.0'
1717
pod 'SDWebImage', '4.4.2'
18+
pod 'YYModel', '1.0.4'
1819
pod 'QCloudCOSXML/Transfer', '5.5.2'
1920
pod 'Firebase/Analytics', '6.31.1'
2021
pod 'Firebase/Crashlytics', '6.31.1'
@@ -31,7 +32,6 @@ target 'LinkApp' do
3132
pod 'IQKeyboardManager', '6.1.1'
3233
pod 'FDFullscreenPopGesture', '1.1'
3334
pod 'SocketRocket', '0.5.1'
34-
pod 'YYModel', '1.0.4'
3535
pod 'TZImagePickerController', '3.2.1'
3636
pod 'MGJRouter', '0.10.0'
3737
pod 'TrueTime','5.0.3'

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,6 @@ SPEC CHECKSUMS:
282282
TZImagePickerController: bf4c57b98d8707fce41ea6be872414a71c7a8c9d
283283
YYModel: 2a7fdd96aaa4b86a824e26d0c517de8928c04b30
284284

285-
PODFILE CHECKSUM: 8d22b7e788bc0fab4190e59d62d3e5c418734979
285+
PODFILE CHECKSUM: 8a0500bd4eba3874e6a4d3c396cf6b7de0a30ef9
286286

287287
COCOAPODS: 1.9.3

Source/LinkSDK/QCFoundation/TIoTCoreRequestObject.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010

11+
#define SDKGlobalDebugUin @"1234567890"
1112
/**
1213
请求失败响应
1314
*/

Source/LinkSDK/QCFoundation/TIoTCoreRequestObject.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ + (TIoTCoreRequestObject *)shared {
3333
- (void)post:(NSString *)urlStr Param:(NSDictionary *)param success:(SuccessResponseBlock)success
3434
failure:(FailureResponseBlock)failure
3535
{
36+
// NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@?uin=%@",[TIoTCoreAppEnvironment shareEnvironment].oemTokenApi,urlStr, SDKGlobalDebugUin]];
3637
NSURL *url = [NSURL URLWithString:[TIoTCoreAppEnvironment shareEnvironment].oemTokenApi];
3738

3839
[self postRequestWithAction:urlStr url:url isWithoutToken:NO param:param urlAndBodySetting:nil isShowHelpCenter:nil success:success failure:failure];
@@ -45,8 +46,8 @@ - (void)post:(NSString *)urlStr Param:(NSDictionary *)param success:(SuccessResp
4546
- (void)postWithoutToken:(NSString *)urlStr Param:(NSDictionary *)param success:(SuccessResponseBlock)success
4647
failure:(FailureResponseBlock)failure
4748
{
48-
49-
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@",[TIoTCoreAppEnvironment shareEnvironment].oemAppApi,urlStr]];
49+
// NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@?uin=%@",[TIoTCoreAppEnvironment shareEnvironment].oemAppApi,urlStr, SDKGlobalDebugUin]];
50+
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@",[TIoTCoreAppEnvironment shareEnvironment].oemAppApi,urlStr]];
5051
[self postRequestWithAction:urlStr url:url isWithoutToken:YES param:param urlAndBodySetting:^NSURL *(NSMutableDictionary *accessParam, NSURL *requestUrl) {
5152
TIoTCoreAppEnvironment *environment = [TIoTCoreAppEnvironment shareEnvironment];
5253
if(environment.appSecret.length > 0 && ![NSString matchSinogram:environment.appSecret]) {

Source/LinkSDK/TRTC/TIoTTRTCSessionManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ - (void)preEnterRoom:(TIOTtrtcPayloadParamModel *)deviceParam failure:(FRHandler
7777
NSDictionary *tempDic = responseObject[@"TRTCParams"];
7878
TIOTTRTCModel *model = [TIOTTRTCModel yy_modelWithJSON:tempDic];
7979
[self configRoom:model];
80+
[self enterRoom];
8081

8182
self->_state = TIoTTRTCSessionType_calling;
8283
} failure:^(NSString * _Nonnull reason, NSError * _Nonnull error,NSDictionary *dic) {

0 commit comments

Comments
 (0)