|
@@ -331,7 +331,7 @@ bool isDownType22 = YES;
|
|
|
|
|
|
[self removeNewIndicatorHaveStr];
|
|
|
|
|
|
- if(didSuc){
|
|
|
+ if(didSuc == 1){
|
|
|
|
|
|
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithDictionary:deviceDict];
|
|
|
[dict setObject:resStr forKey:Const_Have_Add_Device_SN];
|
|
@@ -340,7 +340,14 @@ bool isDownType22 = YES;
|
|
|
[self.navigationController popToRootViewControllerAnimated:NO];
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:nil];
|
|
|
}else{
|
|
|
- [[iToast makeText:NSLocalizedString(@"guide_qrcoede_tips_get_SdnID_fail",nil)] show];
|
|
|
+
|
|
|
+ if(didSuc == 2){
|
|
|
+ [[iToast makeText:NSLocalizedString(@"scan_sn_data_error_tip",nil)] show];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [[iToast makeText:NSLocalizedString(@"guide_qrcoede_tips_get_SdnID_fail",nil)] show];
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
mainBlock(^{
|