Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bbeaa89c
authored
Mar 16, 2026
by
suolong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加付费进入陪伴的api
parent
6b41bcd9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.h
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Others/FUSShowRoomURLs.h
Modules/FUSShowRoomModule/FUSShowRoomModule/Others/FUSShowRoomURLs.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.h
View file @
bbeaa89c
...
@@ -1087,6 +1087,19 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -1087,6 +1087,19 @@ NS_ASSUME_NONNULL_BEGIN
roundId
:(
NSString
*
)
roundId
roundId
:(
NSString
*
)
roundId
succeed
:(
void
(
^
)(
NSDictionary
*
dataDict
))
succeed
succeed
:(
void
(
^
)(
NSDictionary
*
dataDict
))
succeed
failure
:(
void
(
^
)(
NSString
*
msg
,
NSInteger
code
))
failure
;
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
/// 切换付费模式V2
/// @param uid 用户ID
/// @param uid 用户ID
/// @param fid 主播ID
/// @param fid 主播ID
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.m
View file @
bbeaa89c
...
@@ -3032,6 +3032,30 @@
...
@@ -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
/// 切换付费模式V2
/// @param uid 用户ID
/// @param uid 用户ID
/// @param fid 主播ID
/// @param fid 主播ID
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Others/FUSShowRoomURLs.h
View file @
bbeaa89c
...
@@ -547,6 +547,8 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -547,6 +547,8 @@ NS_ASSUME_NONNULL_BEGIN
+
(
NSString
*
)
fus_URL_liveGetPayRoomFrostedGlassData
;
+
(
NSString
*
)
fus_URL_liveGetPayRoomFrostedGlassData
;
/// 功能-用户试看
/// 功能-用户试看
+
(
NSString
*
)
fus_URL_livePayRoomPreview
;
+
(
NSString
*
)
fus_URL_livePayRoomPreview
;
/// 功能-付费进入陪伴(用户端)
+
(
NSString
*
)
fus_URL_livePayRoomPayViewing
;
/// 获取首页自动跳转直播间
/// 获取首页自动跳转直播间
+
(
NSString
*
)
fus_URL_indexGetSuccessRecommendResult
;
+
(
NSString
*
)
fus_URL_indexGetSuccessRecommendResult
;
/// 切换付费模式V2
/// 切换付费模式V2
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Others/FUSShowRoomURLs.m
View file @
bbeaa89c
...
@@ -897,6 +897,12 @@
...
@@ -897,6 +897,12 @@
return
[
FUSConfig
.
sharedInstanced
.
pathConfigs
apiUrl
:
@"/payRoom/preview"
];
return
[
FUSConfig
.
sharedInstanced
.
pathConfigs
apiUrl
:
@"/payRoom/preview"
];
}
}
/// 功能-付费进入陪伴(用户端)
+
(
NSString
*
)
fus_URL_livePayRoomPayViewing
{
return
[
FUSConfig
.
sharedInstanced
.
pathConfigs
apiUrl
:
@"/payRoom/payViewing"
];
}
/// 切换付费模式V2
/// 切换付费模式V2
+
(
NSString
*
)
fus_URL_liveChangePay
+
(
NSString
*
)
fus_URL_liveChangePay
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment