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

@ -15,10 +15,11 @@ const getRandomCount = () => {
return (seed % 300) + 500;
};
export const getCommonShareMessage = (useCapture: boolean = true): ShareAppMessageReturn => {
export const getCommonShareMessage = (useCapture: boolean = true, inviteCode?: string): ShareAppMessageReturn => {
console.log('share share message', getJumpUrl(PageUrl.Job, inviteCode ? { c: inviteCode } : undefined));
return {
title: `昨天新增了${getRandomCount()}条主播通告,宝子快来看看`,
path: getJumpUrl(PageUrl.Job),
path: getJumpUrl(PageUrl.Job, inviteCode ? { c: inviteCode } : undefined),
imageUrl: useCapture ? undefined : imageUrl,
};
};