|
|
@@ -645,8 +645,7 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
}
|
|
|
|
|
|
//切换设备
|
|
|
- if([[webSocketManager shareInstance].commandChannelManager rc_socketStatus] == RCSocketCloudPhoneStatusConnected
|
|
|
- ||[[webSocketManager shareInstance].commandChannelManager rc_socketStatus] == RCSocketCloudPhoneStatusReceived){
|
|
|
+ if([webSocketManager shareInstance].commandChannelManager){
|
|
|
|
|
|
[[webSocketManager shareInstance].commandChannelManager rc_close];
|
|
|
[webSocketManager shareInstance].commandChannelManager = nil;
|
|
|
@@ -655,8 +654,11 @@ static connectDeviceManager *connectDeviceManagerInstance = nil;
|
|
|
[[webSocketManager shareInstance] opencommandChannelManagerrc_openURL];
|
|
|
});
|
|
|
}
|
|
|
- else{//非第一次
|
|
|
- [[webSocketManager shareInstance] opencommandChannelManagerrc_openURL];
|
|
|
+ else{//第一次启动
|
|
|
+
|
|
|
+ if([connectDeviceManager shareInstance].isFirstInputPwdDone){
|
|
|
+ [[webSocketManager shareInstance] opencommandChannelManagerrc_openURL];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|