|
|
@@ -1558,33 +1558,34 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
[self.navigationController pushViewController:nextVC animated:YES];
|
|
|
self.isNeedRecyclResource = NO;
|
|
|
|
|
|
+ KWeakSelf
|
|
|
#pragma mark 重启盒子
|
|
|
//{"type":"reboot"}
|
|
|
nextVC.needToReboot = ^{
|
|
|
|
|
|
NSString *commondStr = @"{\"type\":\"reboot\"}";
|
|
|
- [self send_data:commondStr];
|
|
|
+ [weakSelf send_data:commondStr];
|
|
|
|
|
|
//最后一帧 没显示正在重启问题
|
|
|
self->_canShowImgAndVoiceType = YES;
|
|
|
|
|
|
self->_isRebootIngType = YES;
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(30 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
- [self reconnectDevice];
|
|
|
+ [weakSelf reconnectDevice];
|
|
|
});
|
|
|
};
|
|
|
|
|
|
#pragma mark TV投屏
|
|
|
nextVC.needToTVP2P = ^{
|
|
|
NSString *commondStr = @"{\"type\":\"wakeupTV\"}";
|
|
|
- [self send_data:commondStr];
|
|
|
+ [weakSelf send_data:commondStr];
|
|
|
};
|
|
|
|
|
|
#pragma mark 恢复出厂盒子
|
|
|
nextVC.needToReset = ^{
|
|
|
|
|
|
NSString *commondStr = @"{\"type\":\"reset\"}";
|
|
|
- [self send_data:commondStr];
|
|
|
+ [weakSelf send_data:commondStr];
|
|
|
|
|
|
//最后一帧 没显示正在重启问题
|
|
|
//self->_canShowImgAndVoiceType = YES;
|
|
|
@@ -1594,14 +1595,14 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
|
|
|
#pragma mark 恢复出厂盒子 ok
|
|
|
nextVC.needToResetAndOk = ^{
|
|
|
- [self startCheckThridRuiYunTimerFun];
|
|
|
+ [weakSelf startCheckThridRuiYunTimerFun];
|
|
|
};
|
|
|
|
|
|
#pragma mark 获取云机剩余空间
|
|
|
nextVC.getBaseInfo = ^{
|
|
|
|
|
|
NSString *commondStr = @"{\"type\":\"getBaseInfo\"}";
|
|
|
- [self send_data:commondStr];
|
|
|
+ [weakSelf send_data:commondStr];
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -1609,7 +1610,7 @@ NSDate *lastVideoTome;/*上一帧数据时间*/
|
|
|
nextVC.getSysInfo = ^{
|
|
|
|
|
|
NSString *commondStr = @"{\"type\":\"getSysInfo\"}";
|
|
|
- [self send_data:commondStr];
|
|
|
+ [weakSelf send_data:commondStr];
|
|
|
};
|
|
|
|
|
|
|