微信登陆,bug修改

This commit is contained in:
kai60
2020-01-09 09:25:43 +08:00
parent 82590f8fba
commit bfb68dd81c
62 changed files with 5105 additions and 275 deletions
@@ -105,7 +105,7 @@
-(void)onSocket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err{
NSLog(@"soket错误断开");
NSLog(@"存留数据%@",[sock unreadData]);
if (self.communiteDelegate) {
if (self.communiteDelegate&&[self.communiteDelegate respondsToSelector:@selector(ifishSocket:willDisconnectWithError:)]) {
[self.communiteDelegate ifishSocket:sock willDisconnectWithError:err];
}
@@ -116,7 +116,7 @@
- (BOOL)onSocketWillConnect:(AsyncSocket *)sock{
if (self.communiteDelegate) {
if (self.communiteDelegate&&[self.communiteDelegate respondsToSelector:@selector(ifishSocketWillConnect:)]) {
[self.communiteDelegate ifishSocketWillConnect:sock];
};
return YES;