不匹配设备提示修改
This commit is contained in:
@@ -162,6 +162,19 @@ Copy NSString *deviceId;
|
||||
[self appendTrakContent:@"绑定返回状态码错误。设备信息为:%@"];
|
||||
self.HUD.labelText = @"绑定失败";
|
||||
self.bakbutton.userInteractionEnabled=YES;
|
||||
NSString*msg= resultDic[@"data"];
|
||||
|
||||
if ([msg isKindOfClass:[NSString class]]&&msg.length&&![msg isEqualToString:@"null"])
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
msg=@"绑定失败";
|
||||
}
|
||||
|
||||
[self.view makeToast:msg];
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
|
||||
}else if ([resultDic[@"result"] isEqualToString:@"301"]){
|
||||
[self appendTrakContent:@"绑定返回状态码错误。设备信息为:%@"];
|
||||
@@ -444,6 +457,7 @@ Copy NSString *deviceId;
|
||||
}
|
||||
|
||||
[self.view makeToast:msg];
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
|
||||
}else if ([resultDic[@"result"] isEqualToString:@"301"]){
|
||||
[self appendTrakContent:@"绑定返回状态码错误。设备信息为:%@"];
|
||||
|
||||
@@ -286,6 +286,11 @@ extern BOOL isfromCameraView;
|
||||
|
||||
[self.view addSubview:_maclabel];
|
||||
[self.view bringSubviewToFront:_maclabel];
|
||||
[self mmPogressHUDdismiss];
|
||||
[self connectNormalView];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self.view makeToast:@"设备类型不匹配,请重新选择入口绑定"];
|
||||
});
|
||||
|
||||
}
|
||||
- (void)didReceiveMemoryWarning {
|
||||
|
||||
Reference in New Issue
Block a user