SDwebimage和af的修改

This commit is contained in:
祝发冬
2023-08-28 19:34:55 +08:00
parent 033e23e13d
commit f38f9effaa
39 changed files with 99 additions and 47 deletions
@@ -36,7 +36,7 @@
NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png",JIEKOUPORTHTTP,model.room_id];
self.faceImg.userInteractionEnabled = YES;
[self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"]];
[self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"] options:SDWebImageAllowInvalidSSLCertificates];
if (!model.userType) {
model.userType = @"0";
@@ -25,7 +25,7 @@
self.timeLabel.text = model.time;
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str]];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
if ([model.asUserId isKindOfClass:[NSNull class]]) {
@@ -15,7 +15,7 @@
UserModel *model = [dataContorl getUserInfo];
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"]];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"] options:SDWebImageAllowInvalidSSLCertificates];
self.inpuTextView.layer.masksToBounds = YES;
self.inpuTextView.layer.cornerRadius = CGRectGetHeight(self.inpuTextView.frame)/2;
self.userImg.layer.masksToBounds = YES;
@@ -48,7 +48,7 @@
-(void)loaDataWith:(IfishKankanListModel*)model
{
[self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]];
[self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]options:SDWebImageAllowInvalidSSLCertificates];
self.roomUserName.text = model.nickname;