diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoSettingController.h b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoSettingController.h index 12f4930..a56ae5a 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoSettingController.h +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduoSettingController.h @@ -8,7 +8,7 @@ #import "FatherController.h" #import "IfishDeviceInfo.h" -#include "xuanduo3fModel.h" +//#include "xuanduo3fModel.h" NS_ASSUME_NONNULL_BEGIN diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduofishFeedViewController.m b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduofishFeedViewController.m index 7bfc0d2..bae49f8 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduofishFeedViewController.m +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/XuanduofishFeedViewController.m @@ -539,6 +539,10 @@ static NSString *timerTypeFlag = @"TimerTypeTableViewCell"; } [headerView configWithImageName:_imgArr[section-2] labelName:_titieArr[section-2]]; + if (section==7) + { + headerView.backImageView.image=[UIImage imageNamed:@"bottomRound"]; + } return headerView; } diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m index 1785966..bb0bc1a 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/IfishP2PMonitorController.m @@ -7,6 +7,7 @@ // #import "IfishP2PMonitorController.h" +#import "XuanduoSettingController.h" #import #import #import @@ -4073,11 +4074,25 @@ GWP2PCallErrorNotSupport, -(void)didselectXuanduo2SetttngWithData:(DeviceModel *)dmodel andBackModel:(Xuanduo2Model *)backmodel { - Xuanduo2SettingController *setVC = [[Xuanduo2SettingController alloc] init]; - setVC.currentdevice = dmodel; - setVC.dataModel = backmodel; - usleep(50*1000); - [self.navigationController pushViewController:setVC animated:YES]; + if ([dmodel.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[dmodel.type isEqualToString:DECICE_TYPE_XUANDUO5F]) + { + XuanduoSettingController *setVC = [[XuanduoSettingController alloc] init]; + setVC.currentdevice = dmodel; + setVC.dataModel = backmodel; + usleep(50*1000); + [self.navigationController pushViewController:setVC animated:YES]; + + } + else + { + Xuanduo2SettingController *setVC = [[Xuanduo2SettingController alloc] init]; + setVC.currentdevice = dmodel; + setVC.dataModel = backmodel; + usleep(50*1000); + [self.navigationController pushViewController:setVC animated:YES]; + + } + } //炫多 diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/BootomViewSoketBackMasgConreol.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/BootomViewSoketBackMasgConreol.m index 6b0a4ed..b3daf02 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/BootomViewSoketBackMasgConreol.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/BootomViewSoketBackMasgConreol.m @@ -90,7 +90,7 @@ //瑞美 str=[str substringWithRange:NSMakeRange(148,IFISH_TEMPERATURE_BYTE2)]; - }else if ([type isEqualToString:DECICE_TYPE_XUANDUO2F]){ + }else if ([type isEqualToString:DECICE_TYPE_XUANDUO2F]||[type isEqualToString:DECICE_TYPE_XUANDUO4F]||[type isEqualToString:DECICE_TYPE_XUANDUO5F]){ str=[str substringWithRange:NSMakeRange(60,IFISH_TEMPERATURE_BYTE2)]; } else if ([type isEqualToString:DECICE_TYPE_XUANDUO3F]){ diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/MonitorBootmView.m b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/MonitorBootmView.m index c8e2fbc..a7c567a 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/MonitorBootmView.m +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/yooseFishTankView/MonitorBootmView.m @@ -618,7 +618,7 @@ } else if ([self.device.type isEqualToString:DECICE_TYPE_RUIMEI]) { return 3 + 5; - } else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]){ + } else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ return 3 + self.device.controlAmount.integerValue + 1; } else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]){ @@ -704,7 +704,7 @@ withData:self.device addMassglength:self.dataLength]; - }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]){ + }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ if (!_xuanduoBack) { [self makeToast:@"暂未连接"]; return; @@ -956,13 +956,13 @@ } [self makeToastActivity:CSToastPositionCenter]; - }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]){ + }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ // 新绚多 if (!_xuanduoBack) { [self makeToast:@"暂未连接"]; return; } - if (indexPath.row == 10 || (indexPath.row == 3&&[self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F])) { + if (indexPath.row == 10 || (indexPath.row == 3&&([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]))) { //点击加热棒 [self.MonitorBottomDelegate selectXuanduo2Index:indexPath withBackModel:_xuanduoBack]; }else{ @@ -1151,7 +1151,7 @@ } UInt64 mac = 0; NSLog(@"%llu",mac); - if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]) { + if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]) { Xuanduo2Model*model=(Xuanduo2Model*)_xuanduoBack; mac=[dataContorl hexToTen:model.waterTemperature]; } @@ -1281,7 +1281,7 @@ [cell setSongNuoBDControBtnImg:self.btnImgArr addArr:self.btnOnImgArr atIndex:indexPath addBackModel:_songNuoBDBack]; - }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]){ + }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ if (!_xuanduoBack) { cell.controBtnImg.image = self.btnImgArr[indexPath.row - 3]; [self makeToast:@"连接设备中..."]; @@ -1505,7 +1505,7 @@ LXImageWithImageName(@"bootview_co2_on"), LXImageWithImageName(@"bootview_heat_on")]; - }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]){ + }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ self.btnNameArr = @[@"循环泵",@"增氧泵",@"灯光1",@"灯光2",@"造浪泵",@"杀菌灯",@"护理灯",@"加热棒"]; self.btnImgArr = @[[UIImage imageNamed:@"xunhuan_noraml"], @@ -1865,13 +1865,13 @@ addMassglength:string1.length]; - }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]){ + }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO2F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.device.type isEqualToString:DECICE_TYPE_XUANDUO5F]){ // 新绚多 if (!_xuanduoBack) { _xuanduoBack = [[Xuanduo2Model alloc] init]; } - [Xuanduo2DataUtility readSocketDataWithBackMsgModel:_xuanduoBack addWithBackData:data type:DECICE_TYPE_XUANDUO2F]; - self.temperature = [BootomViewSoketBackMasgConreol getTempNewWayWithSoketData:data adddeviceType:DECICE_TYPE_XUANDUO2F]; + [Xuanduo2DataUtility readSocketDataWithBackMsgModel:_xuanduoBack addWithBackData:data type:self.device.type]; + self.temperature = [BootomViewSoketBackMasgConreol getTempNewWayWithSoketData:data adddeviceType:self.device.type]; [self.collectionView reloadData]; }else if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F]){ // 新绚多 diff --git a/Ifish/ifishImgSouce/XuToImg/bottomRound.png b/Ifish/ifishImgSouce/XuToImg/bottomRound.png index 45d0e0a..8f459a1 100644 Binary files a/Ifish/ifishImgSouce/XuToImg/bottomRound.png and b/Ifish/ifishImgSouce/XuToImg/bottomRound.png differ diff --git a/Ifish/ifishImgSouce/XuToImg/centerrect.png b/Ifish/ifishImgSouce/XuToImg/centerrect.png index 245d1ad..0c74ed4 100644 Binary files a/Ifish/ifishImgSouce/XuToImg/centerrect.png and b/Ifish/ifishImgSouce/XuToImg/centerrect.png differ diff --git a/Ifish/ifishImgSouce/XuToImg/topround.png b/Ifish/ifishImgSouce/XuToImg/topround.png index f0cbc9b..a987393 100644 Binary files a/Ifish/ifishImgSouce/XuToImg/topround.png and b/Ifish/ifishImgSouce/XuToImg/topround.png differ