测试修改
This commit is contained in:
+10
-2
@@ -473,10 +473,17 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
|
||||
[[GWP2PClient sharedClient] setDeviceInitialPassword:self.lastSetPassword withDeviceID:deviceIP completionBlock:^(GWP2PClient *client, BOOL success, NSDictionary<NSString *,id> *dataDictionary) {
|
||||
NSLog(@"success:%i %@",success,dataDictionary);
|
||||
[self resetPassWord];//初始化密码
|
||||
[self bindCameraDevice];
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self bindCameraDevice];
|
||||
|
||||
});
|
||||
}];
|
||||
}else{//如果已经设置过初始密码,则直接使用
|
||||
[self bindCameraDevice];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self bindCameraDevice];
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -574,6 +581,7 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
|
||||
contact.contactType = CONTACT_TYPE_UNKNOWN;
|
||||
[[FListManager sharedFList] insert:contact];
|
||||
//设置密码成功后爱鱼奇用户绑定摄像头
|
||||
|
||||
[self ifishUserBindcameraIdBy:self.deviceID];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user