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
@@ -19,7 +19,7 @@
-(void)loadList:(MemberNanageListData*)data
{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str]];
[self.huiYuanImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
self.huiYuanName.text = [NSString stringWithFormat:@"%@(%@)",data.nickName,data.userName];
self.lastLoginTime.text = [NSString stringWithFormat:@"最后登录时间:%@",data.loginTime];
@@ -22,7 +22,7 @@
-(void)loadataWith:(MemberNanageListData*)data andUserInfo:(ShopUserDatailData *)user{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]];
[_memberuserImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
_memberName.text = data.nickName;
_lastLogTime.text = [NSString stringWithFormat:@"最后登录时间%@",data.loginTime];;
@@ -26,7 +26,7 @@
-(void)loadListData:(KanHuListModel*)model
{
[self.UserImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]]];
[self.UserImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
self.userName.text = model.nickName;
}
@@ -450,7 +450,7 @@ UIGestureRecognizerDelegate>
NSString * imgUrl = [NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.shopInfo.userId,self.shopInfo.picture4,timeString];
[cell.shopImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
[cell.shopImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
}
}
@@ -172,13 +172,13 @@ extern BOOL cerViewFormRootVC;
NSString *timeString = [NSString stringWithFormat:@"%.0f",time];
NSString *iDsurfaceUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture1,timeString];
[cell.iDsurface sd_setImageWithURL:[NSURL URLWithString:iDsurfaceUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[cell.iDsurface sd_setImageWithURL:[NSURL URLWithString:iDsurfaceUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
NSString *iDbackUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture2,timeString];
[cell.iDback sd_setImageWithURL:[NSURL URLWithString:iDbackUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[cell.iDback sd_setImageWithURL:[NSURL URLWithString:iDbackUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
NSString *shopCerUrl =[NSString stringWithFormat:@"%@/shops/%@/%@?time=%@",JIEKOUPORTHTTP,self.statusM.userId,self.statusM.picture3,timeString];
[cell.shopCer sd_setImageWithURL:[NSURL URLWithString:shopCerUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[cell.shopCer sd_setImageWithURL:[NSURL URLWithString:shopCerUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
}
@@ -19,7 +19,7 @@
{
NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg];
[self.goodsImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[self.goodsImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
self.goodsName.text = [NSString stringWithFormat:@"%@",data.commodityName];
NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime];
NSDate *date = [dataContorl formatDateTime:dateStr];
@@ -30,7 +30,7 @@
{
NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg];
[self.videoShotImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[self.videoShotImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
}
@@ -41,7 +41,7 @@
-(void)loadDataWith:(CertificationShopModel*)model{
UserModel *userModel=[dataContorl getUserInfo];
[self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]];
[self.shopUserIcon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
self.shopAdderess.text =[NSString stringWithFormat:@"详细地址:%@%@%@%@",model.shopsProvince,model.shopsCity,model.shopsArea,model.shopsAddress];
self.shopTel.text = [NSString stringWithFormat:@"联系方式:%@",model.shopsPhone];
self.shopUserName.text = userModel.nickName;