From 80e310693fdb5f95541f3b0094f763227d7bb9dd Mon Sep 17 00:00:00 2001 From: kai60 Date: Sun, 5 Jul 2020 15:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=84=E5=83=8F=E5=A4=B4=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E9=94=81=E5=B1=8F=E6=97=B6=E6=9D=80?= =?UTF-8?q?=E8=8F=8C=E5=80=92=E8=AE=A1=E6=97=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XuTo/Xuanduo2fController.m | 4 +-- .../YooseeNextConnectViewController.mm | 28 +++++++++++++++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/Xuanduo2fController.m b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/Xuanduo2fController.m index a4603c2..059cdd4 100644 --- a/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/Xuanduo2fController.m +++ b/Ifish/controllers/FishTinkController/maincontroller/CenterontrolControllers/XuTo/Xuanduo2fController.m @@ -320,7 +320,7 @@ UIImage*uvsel=[UIImage imageNamed:@"杀菌开"]; uvsel=[uvsel imageWaterMarkWithString:stringTemp rect:CGRectMake(140, 60, 60, 60) attribute:@{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:30]}]; - [self.light1 setImage:uvsel forState:UIControlStateSelected]; + // [self.light1 setImage:uvsel forState:UIControlStateSelected]; } } @@ -339,7 +339,7 @@ Xuanduo3fModel*model=(Xuanduo3fModel*)_dataModel; NSString *stateString1 = [model.uvLamp substringWithRange:NSMakeRange(2, 2)]; //关闭或者首次时杀菌取设置的值,之后才是心跳的 - if ([stateString1 isEqualToString:@"00"]||self.heartCount<2) + if ([stateString1 isEqualToString:@"00"]) { if (_cycleModel.lastTime.length) { diff --git a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/YooseeNextConnectViewController.mm b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/YooseeNextConnectViewController.mm index 3791d01..029a19c 100644 --- a/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/YooseeNextConnectViewController.mm +++ b/Ifish/controllers/IfishYooseeFile/IfishYooseeControlller/YooseeNextConnectViewController.mm @@ -31,6 +31,7 @@ #import "MyMD5.h" #import "IfishUserDataUnity.h" #import "DeviceCameraModel.h" +#import "ConAquarChooseWiFiVC.h" typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) { lodingViewdissMissSuccsess=0,// default is 0 lodingViewdissMissfail, @@ -512,15 +513,36 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像 if (self.deviceID.length&&![self.linkDict[self.deviceID] boolValue]) {//90秒之后还未连接上,连接超时 [[GWP2PDeviceLinker shareInstance] p2pStopSmartLink]; [[GWP2PDeviceLinker shareInstance] p2pStopAPLink]; - [self connectNormalView]; + if ([[[CommonUtils getSSIDInfo] objectForKey:@"SSID"] isEqualToString:self.wifiName]) { - [self bindCameraDevice]; + [self.view makeToast:@"请确保Wifi密码正确,重置设备后再试!"]; } else { - [self.view makeToast:@"WiFi连接失败"]; + [self.view makeToast:[NSString stringWithFormat:@"WiFi连接失败,请确保手机连接到%@",self.wifiName]]; } + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + + UIViewController*choosewifi=nil; + for (UIViewController*controller in self.navigationController.viewControllers) { + + if ([controller isKindOfClass:[ConAquarNowWiFiPwdVC class]]) + { + choosewifi=controller; + break; + } + } + if (choosewifi) + { + [self.navigationController popToViewController:choosewifi animated:YES]; + } + else + { + [self connectNormalView]; + } + + }); } else if(!self.deviceID.length)