feat: update of partner

This commit is contained in:
eleanor.mao
2025-05-15 01:02:00 +08:00
parent 7aafc3a789
commit d2ac64f20c
52 changed files with 1435 additions and 265 deletions

View File

@ -139,7 +139,11 @@ export const requestAnchorList = async (data: GetAnchorListRequest) => {
return http.post<GetAnchorListResponse>(API.GET_ANCHOR_LIST, { data });
};
export const getMaterialShareMessage = async (profile?: MaterialProfile | null, needShareCode: boolean = true) => {
export const getMaterialShareMessage = async (
profile?: MaterialProfile | null,
needShareCode: boolean = true,
inviteCode?: string
) => {
if (!profile) {
return null;
}
@ -149,7 +153,12 @@ export const getMaterialShareMessage = async (profile?: MaterialProfile | null,
const title = `${name} ${workedSecCategoryStr ? `播过 ${workedSecCategoryStr}` : ''}`.trim();
return {
title,
path: getJumpUrl(PageUrl.MaterialView, { shareCode, resumeId: id, source: MaterialViewSource.Share }),
path: getJumpUrl(PageUrl.MaterialView, {
shareCode,
resumeId: id,
source: MaterialViewSource.Share,
c: inviteCode,
}),
};
} catch (error: unknown) {
const e = error as HttpError;