Commit 662cb1b527b08b7ccac550d30ec46da15c953bcc

Authored by zhangxiaowen
1 parent 1814d723

no message

CNLiveQrCodeModule/Classes/View/CNLiveGroupQrCodeView.m
@@ -110,8 +110,8 @@ static const NSInteger margin = 15; @@ -110,8 +110,8 @@ static const NSInteger margin = 15;
110 if (!_groupHead) { 110 if (!_groupHead) {
111 _groupHead = [[UIImageView alloc] init]; 111 _groupHead = [[UIImageView alloc] init];
112 _groupHead.backgroundColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0]; 112 _groupHead.backgroundColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0];
113 - UIImage *xw_image = [self getImageWithImageName:@"default_avatar_f" bundleName:@"CNLiveQrCodeModule" targetClass:[self class]];  
114 - _groupHead.image = xw_image; 113 + UIImage *image = [self getImageWithImageName:@"default_avatar_f" bundleName:@"CNLiveQrCodeModule" targetClass:[self class]];
  114 + _groupHead.image = image;
115 } 115 }
116 return _groupHead; 116 return _groupHead;
117 } 117 }
CNLiveQrCodeModule/Classes/View/CNLiveMyQrCodeView.m
@@ -184,7 +184,8 @@ static const CGFloat timeValue = 1.5; @@ -184,7 +184,8 @@ static const CGFloat timeValue = 1.5;
184 _header = [[UIImageView alloc] init]; 184 _header = [[UIImageView alloc] init];
185 _header.layer.masksToBounds = YES; 185 _header.layer.masksToBounds = YES;
186 _header.layer.cornerRadius = 5; 186 _header.layer.cornerRadius = 5;
187 - _header.image = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:CNUserShareModel.uid]; 187 + UIImage *image = [self getImageWithImageName:@"default_avatar_f" bundleName:@"CNLiveQrCodeModule" targetClass:[self class]];
  188 + [_header sd_setImageWithURL:[NSURL URLWithString:CNUserShareModel.faceUrl] placeholderImage:image];
188 } 189 }
189 return _header; 190 return _header;
190 } 191 }
@@ -224,6 +225,8 @@ static const CGFloat timeValue = 1.5; @@ -224,6 +225,8 @@ static const CGFloat timeValue = 1.5;
224 _qrCode = [[UIImageView alloc] init]; 225 _qrCode = [[UIImageView alloc] init];
225 UIImage *image = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:CNUserShareModel.uid]; 226 UIImage *image = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:CNUserShareModel.uid];
226 [_qrCode sd_setImageWithURL:nil placeholderImage:image]; 227 [_qrCode sd_setImageWithURL:nil placeholderImage:image];
  228 + _qrCode.image = [[SDImageCache sharedImageCache] imageFromDiskCacheForKey:CNUserShareModel.uid];
  229 +
227 } 230 }
228 return _qrCode; 231 return _qrCode;
229 } 232 }