Commit bbeaa89c by suolong

添加付费进入陪伴的api

parent 6b41bcd9
......@@ -1087,6 +1087,19 @@ NS_ASSUME_NONNULL_BEGIN
roundId:(NSString *)roundId
succeed:(void (^)(NSDictionary *dataDict))succeed
failure:(void(^)(NSString *msg,NSInteger code))failure;
/// 功能-付费进入陪伴(用户端)
/// @param uid 用户ID(后端字段类型为 number,这里用 NSString 透传,避免整型精度/空值问题)
/// @param roomId 房间ID
/// @param channelId 直播频道ID
/// @param roundId 付费房回合ID
/// @param succeed 成功回调(原样回传服务端 dataDict)
/// @param failure 失败回调(回传 msg 与 code,是否弹框由调用方决定)
+(void)fus_requestPayRoomPayViewingWithUid:(NSString *)uid
RoomId:(NSString *)roomId
channelId:(NSString *)channelId
roundId:(NSString *)roundId
succeed:(void (^)(NSDictionary *dataDict))succeed
failure:(void(^)(NSString *msg,NSInteger code))failure;
/// 切换付费模式V2
/// @param uid 用户ID
/// @param fid 主播ID
......
......@@ -3032,6 +3032,30 @@
}
}];
}
/// 功能-付费进入陪伴(用户端)
+(void)fus_requestPayRoomPayViewingWithUid:(NSString *)uid
RoomId:(NSString *)roomId
channelId:(NSString *)channelId
roundId:(NSString *)roundId
succeed:(void (^)(NSDictionary *dataDict))succeed
failure:(void(^)(NSString *msg,NSInteger code))failure
{
NSDictionary *parm = @{@"uid": uid ?: @"",
@"roomId": roomId ?: @"",
@"channelId": channelId ?: @"",
@"roundId": roundId ?: @""};
[FUSHttpHelper postRequestBinaryWithUrl:FUSShowRoomURLs.fus_URL_livePayRoomPayViewing params:parm success:^(NSDictionary * _Nullable dataDict, int code) {
if (succeed) {
succeed(dataDict);
}
} failure:^(NSDictionary * _Nullable dataDict, int code) {
if (failure) {
failure(dataDict[@"msg"], code);
}
}];
}
/// 切换付费模式V2
/// @param uid 用户ID
/// @param fid 主播ID
......
......@@ -547,6 +547,8 @@ NS_ASSUME_NONNULL_BEGIN
+ (NSString *)fus_URL_liveGetPayRoomFrostedGlassData;
/// 功能-用户试看
+ (NSString *)fus_URL_livePayRoomPreview;
/// 功能-付费进入陪伴(用户端)
+ (NSString *)fus_URL_livePayRoomPayViewing;
/// 获取首页自动跳转直播间
+ (NSString *)fus_URL_indexGetSuccessRecommendResult;
/// 切换付费模式V2
......
......@@ -897,6 +897,12 @@
return [FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/payRoom/preview"];
}
/// 功能-付费进入陪伴(用户端)
+ (NSString *)fus_URL_livePayRoomPayViewing
{
return [FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/payRoom/payViewing"];
}
/// 切换付费模式V2
+ (NSString *)fus_URL_liveChangePay
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment