feat: update of partner
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user