feat: 支持关卡配置分享
This commit is contained in:
@@ -14,8 +14,14 @@ export const API_ENDPOINTS = {
|
||||
USER_ASSETS_EARN: `${API_BASE}/user/assets/earn`,
|
||||
USER_GAME_DATA: `${API_BASE}/user/game-data`,
|
||||
LEVELS: `${API_BASE}/wechat-game/levels`,
|
||||
SHARE_CREATE: `${API_BASE}/share`,
|
||||
} as const;
|
||||
|
||||
/** 构建加入分享的 URL */
|
||||
export function getShareJoinUrl(code: string): string {
|
||||
return `${API_BASE}/share/${code}/join`;
|
||||
}
|
||||
|
||||
/** 积分操作原因 */
|
||||
export const POINT_REASONS = {
|
||||
HINT_UNLOCK: 'hint_unlock',
|
||||
|
||||
Reference in New Issue
Block a user