代充优化

This commit is contained in:
liyuhua
2023-09-12 17:48:18 +08:00
parent a92a144836
commit e6dcd90bc3
74 changed files with 895 additions and 195 deletions

View File

@@ -112,6 +112,7 @@
[[self getView] onGetPersonalBannerListFailWithGroup:group];
} errorToast:NO] uid:uid type:@"10"];
}
///
- (void)getLittleGameListWithGroup:(dispatch_group_t) group {
NSString * uid = [[AccountInfoStorage instance] getUid];
@@ -137,4 +138,5 @@
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventusercenter_quick_entry_click eventAttributes:@{@"mgId" : mgId}];
}] uid:uid mgId:mgId];
}
@end

View File

@@ -30,6 +30,8 @@ NS_ASSUME_NONNULL_BEGIN
/// 批量验证内购掉单
/// @param transcations 凭据的数组
- (void)checkTranscationIds:(NSArray *)transcations;
//充值banner位
-(void)getBannerList;
@end
NS_ASSUME_NONNULL_END

View File

@@ -52,7 +52,7 @@
NSString *orderId = (NSString *)data.data[@"recordId"];
[[self getView] requestIAPRechargeOrderSuccess:orderId chargeProdId:chargeProdId];
} fail:^(NSInteger code, NSString * _Nullable msg) {
[[self getView] requestIAPRechargeOrderFail];
[[self getView] requestIAPRechargeOrderFailWithCode:code];
}] chargeProdId:chargeProdId uid:uid ticket:ticket deviceInfo:deviceInfo clientIp:clientIp];
}
@@ -80,5 +80,14 @@
[[self getView] checkTranscationIdsSuccess];
}] transcationIdStr:transcationIdStr];
}
//banner
-(void)getBannerList{
[Api requestBannerListCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
NSArray * array = [RechargeListModel modelsWithArray:data.data[@"banners"]];
[[self getView]getBannerListSuccessWithList:array];
} fail:^(NSInteger code, NSString * _Nullable msg) {
} showLoading:NO errorToast:NO]];
}
@end