| | |
| | | // [self handleTheError:error]; |
| | | // }]; |
| | | |
| | | [EZHttpUtil addDeviceByHDL:[GlobalKit shareKit].deviceSerialNo |
| | | [EZHttpUtil.sharedManager addDeviceByHDL:[GlobalKit shareKit].deviceSerialNo |
| | | verifyCode:[GlobalKit shareKit].deviceVerifyCode |
| | | completion:^(ResponseData *responseData) { |
| | | [hud hide:YES]; |
| | |
| | | // [hud hide:YES]; |
| | | // [self handleTheError:error]; |
| | | // }]; |
| | | [EZHttpUtil addDeviceByHDL:[GlobalKit shareKit].deviceSerialNo |
| | | [EZHttpUtil.sharedManager addDeviceByHDL:[GlobalKit shareKit].deviceSerialNo |
| | | verifyCode:[GlobalKit shareKit].deviceVerifyCode |
| | | completion:^(ResponseData *responseData) { |
| | | [hud hide:YES]; |
| | |
| | | if (error.code == EZ_HTTPS_DEVICE_ADDED_MYSELF || error.code == EZ_HTTPS_DEVICE_ONLINE_ADDED) |
| | | { |
| | | self.statusLabel.textColor = [UIColor blackColor]; |
| | | self.statusLabel.text = NSLocalizedString(@"ad_already_added",@"您已添加过此设备"); |
| | | self.statusLabel.text = NSLocalizedString(@"ad_already_added",@"此设备已被添加"); |
| | | self.statusLabel.hidden = NO; |
| | | } |
| | | else if (error.code == EZ_HTTPS_DEVICE_ONLINE_IS_ADDED || error.code == EZ_HTTPS_DEVICE_OFFLINE_IS_ADDED) |