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)