diff --git a/web/modules/api.js b/web/modules/api.js index 3970792..e787c24 100644 --- a/web/modules/api.js +++ b/web/modules/api.js @@ -20,12 +20,12 @@ const getApiBase = () => { const API_BASE = getApiBase(); /** - * 从 URL 参数中获取用户 ID + * 从URL 参数中获取用户 ID * @returns {string} 用户 ID,不存在返回空字符串 */ const getUserId = () => { const params = new URLSearchParams(window.location.search || ''); - const value = params.get('userId') || params.get('userid') || params.get('user_id'); + const value = params.get('current_user_id') || params.get('userId') || params.get('userid') || params.get('user_id'); return value && String(value).trim() ? String(value).trim() : ''; };