动态接口对接

This commit is contained in:
liyuhua
2023-12-13 18:02:12 +08:00
parent 99c3755d66
commit 99ba2be21f
2 changed files with 5 additions and 5 deletions

View File

@@ -189,7 +189,7 @@
} }
- (void)requestBannerList { - (void)requestBannerList {
NSString *uid = [[AccountInfoStorage instance]getUid];
[Api homeBannerList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api homeBannerList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
if(code == 200){ if(code == 200){
NSArray *dataArr = [YVBannerModel DD_ModelsWithArray:data.data]; NSArray *dataArr = [YVBannerModel DD_ModelsWithArray:data.data];
@@ -197,7 +197,7 @@
self.headerView.bannerArray = dataArr; self.headerView.bannerArray = dataArr;
} }
} uid:@"288498" type:@"1"]; } uid:uid type:@"1"];
// NSMutableDictionary *dic = [NSMutableDictionary dictionary]; // NSMutableDictionary *dic = [NSMutableDictionary dictionary];
// [dic setObject:@"1" forKey:@"position"]; // [dic setObject:@"1" forKey:@"position"];
// WeakSelf(weakSelf) // WeakSelf(weakSelf)
@@ -230,7 +230,7 @@
} }
- (void)requestRecommendList1 { - (void)requestRecommendList1 {
NSString *uid = [[AccountInfoStorage instance]getUid];
[Api dd_getHomeMenuList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) { [Api dd_getHomeMenuList:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
if(code == 200){ if(code == 200){
NSArray *dataArr = [YVBannerModel DD_ModelsWithArray:data.data]; NSArray *dataArr = [YVBannerModel DD_ModelsWithArray:data.data];
@@ -241,7 +241,7 @@
} }
} uid:@"288498"]; } uid:uid];
return; return;
WeakSelf(ws) WeakSelf(ws)
NSMutableDictionary *dic = [NSMutableDictionary dictionary]; NSMutableDictionary *dic = [NSMutableDictionary dictionary];

View File

@@ -591,4 +591,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 4a3e8c3e3691165802b43178346af03c39e4ae9b PODFILE CHECKSUM: 4a3e8c3e3691165802b43178346af03c39e4ae9b
COCOAPODS: 1.14.2 COCOAPODS: 1.12.1