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;
@@ -32,7 +32,7 @@
NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png?time=%@",JIEKOUPORTHTTP,roomInfo.roomId,timeString];
//cell.liveFaceView
[self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
[self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
}
@@ -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;
@@ -28,7 +28,7 @@
NSString*strUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[self.userImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
self.levelLabel.text = [NSString stringWithFormat:@"LV%@",data.gradeNum];
self.nameLab.text = data.nickName;
NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime];
@@ -19,7 +19,7 @@
self.shopYear.text = shopInfo.remark;
self.shopName.text = shopInfo.shopsName;
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,shopInfo.userImg];
[self.shopImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]];
[self.shopImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates];
}
@@ -31,7 +31,7 @@
// [self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
[self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"shopdetail_palceholder"]];
[self.shopDetailImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"shopdetail_palceholder"]options:SDWebImageAllowInvalidSSLCertificates];
}
@@ -36,7 +36,7 @@
-(void)loadDataWith:(IfishShopInfo *)info
{
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,info.userImg];
[self.shopImg sd_setImageWithURL:[NSURL URLWithString:str]];
[self.shopImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
self.nYear.text = info.remark;
NSString *str2= @"已认证";
@@ -19,7 +19,7 @@
NSString*strUrl=[NSString stringWithFormat:@"%@%@/%@",kGetShopVideoImg,data.userId,data.commodityImg];
[self.videoImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
[self.videoImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]options:SDWebImageAllowInvalidSSLCertificates];
self.goodsName.text = data.commodityName;
}
@@ -145,7 +145,7 @@
//
NSString *imgUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,self.xinXiModel.userImg];
[cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]];
[cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.sChatBtn.hidden = YES;
@@ -211,7 +211,7 @@
[cell.geiShopDaDianHuaBtn addTarget:self action:@selector(telAction:) forControlEvents:UIControlEventTouchUpInside];
NSString *imgUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,self.xinXiModel.userImg];
[cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]];
[cell.shopZhaoPai sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
[cell.sChatBtn addTarget:self action:@selector(chatBtnAction:) forControlEvents:UIControlEventTouchUpInside];
@@ -24,7 +24,7 @@
UserModel *userModel=[dataContorl getUserInfo];
[self.headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]]];
[self.headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,userModel.userImg]] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
self.nameLabel.text = shopinfo.shopsName;
self.telLbel.text = shopinfo.shopsPhone;
self.loactionLabel.text =[NSString stringWithFormat:@"%@%@%@%@",shopinfo.shopsProvince,shopinfo.shopsCity,shopinfo.shopsArea,shopinfo.shopsAddress];
@@ -99,7 +99,7 @@
NSString *imhUrl = [NSString stringWithFormat:@"%@%@",kGetKanHuUrl,self.baGaoMod.shareImg];
[cell.lastCameraImg sd_setImageWithURL:[NSURL URLWithString:imhUrl] placeholderImage:[UIImage imageNamed:@"ic_header.png"]];
[cell.lastCameraImg sd_setImageWithURL:[NSURL URLWithString:imhUrl] placeholderImage:[UIImage imageNamed:@"ic_header.png"]options:SDWebImageAllowInvalidSSLCertificates];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
[cell cellSetBackViewCorner];
@@ -174,7 +174,7 @@
CertificationShopModel *ShopsInfo= [[DataCenter defaultDtacenter] valueForKey:@"ShopsInfo"];
[cell.shangJiaImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,ShopsInfo.userImg]] placeholderImage:[UIImage imageNamed:@""]];
[cell.shangJiaImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,ShopsInfo.userImg]] placeholderImage:[UIImage imageNamed:@""]options:SDWebImageAllowInvalidSSLCertificates];
cell.shangJiaName.text = ShopsInfo.shopsName;
UserModel*umodel=[[DataCenter defaultDtacenter]valueForKey:@"UserLogIn"];