Xincheng Tech

GEO 查询

输入关键词查询,看看你的品牌在各大 AI 工具中是否被推荐

📊 查询结果

DeepSeek

想要系统化提升 AI 可见度?

我们的 GEO 专家团队为你的品牌量身定制优化方案

查看 GEO 方案 →
// 用户认证相关 async function checkAuth() { const token = localStorage.getItem('token'); const creditInfo = document.getElementById('creditInfo'); const creditText = document.getElementById('creditText'); const creditAction = document.getElementById('creditAction'); const creditBadge = document.getElementById('creditBadge'); if (!token) { creditText.textContent = '登录后每日可领取 2 次查询积分'; creditAction.textContent = '登录 / 注册'; creditAction.href = 'auth.html'; return null; } try { creditText.textContent = '验证登录状态...'; const res = await fetch('/api/user', { headers: { 'Authorization': 'Bearer ' + token } }); if (!res.ok) { localStorage.removeItem('token'); localStorage.removeItem('user'); creditText.textContent = '登录已过期,请重新登录'; creditAction.textContent = '登录'; creditAction.href = 'auth.html'; return null; } const data = await res.json(); const user = data.user; creditBadge.textContent = '👤 ' + user.username; creditText.textContent = '剩余积分: ' + user.credits + ' 次'; creditAction.textContent = '签到领取'; creditAction.href = '#'; creditAction.onclick = function(e) { e.preventDefault(); doCheckin(); }; return user; } catch(e) { creditText.textContent = '网络错误,请稍后重试'; return null; } } async function doCheckin() { const token = localStorage.getItem('token'); if (!token) { window.location.href = 'auth.html'; return; } try { const res = await fetch('/api/checkin', { method: 'POST', headers: { 'Authorization': 'Bearer ' + token } }); const data = await res.json(); if (data.already_checked) { alert('今日已签到,明天再来吧!'); } else { alert('✅ 签到成功!获得 2 次查询积分,当前 ' + data.credits + ' 次'); checkAuth(); } } catch(e) { alert('签到失败,请稍后重试'); } } async function checkAndSearch() { const token = localStorage.getItem('token'); if (!token) { if (confirm('GEO 查询需要登录,是否立即登录/注册?')) { window.location.href = 'auth.html'; } return; } const keyword = document.getElementById('keyword').value.trim(); const brand = document.getElementById('brand').value.trim(); const platform = document.querySelector('.platform-card.active')?.dataset.platform || 'deepseek'; if (!keyword) { document.getElementById('keyword').focus(); document.getElementById('keyword').style.borderColor = '#f87171'; setTimeout(() => document.getElementById('keyword').style.borderColor = '', 2000); return; } const resultSection = document.getElementById('resultSection'); const resultContent = document.getElementById('resultContent'); const platNames = { deepseek: 'DeepSeek', chatgpt: 'ChatGPT', gpt: 'GPT 模型', doubao: '豆包', tongyi: '通义千问', kimi: 'Kimi', yuanbao: '腾讯元宝', wenxin: '百度文心', claude: 'Claude', ernie: '文心一言', xinghuo: '讯飞星火', zhipu: '智谱清言', xiaomi: '小米大模型' }; document.getElementById('resultTag').textContent = platNames[platform] || platform; resultSection.style.display = 'block'; resultContent.innerHTML = '

AI 正在分析品牌可见度...

'; // 调用实际 API try { const res = await fetch('/api/geo-query', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token }, body: JSON.stringify({ keyword, brand, platform }) }); const data = await res.json(); if (!res.ok) { if (res.status === 403) { resultContent.innerHTML = '

❌ 积分不足

当前积分不足,请先签到获取免费积分,或联系客服获取更多查询额度。

签到领积分
'; checkAuth(); return; } resultContent.innerHTML = '

' + (data.error || '查询失败') + '

'; return; } checkAuth(); // 刷新积分 if (data.found) { resultContent.innerHTML = '
' + getPlatformIcon(platform) + '

' + platNames[platform] + '

✅ ' + data.message + '
可见度评分' + data.score + '/100
提升可见度 →
'; } else { resultContent.innerHTML = '
' + getPlatformIcon(platform) + '

' + platNames[platform] + '

❌ ' + data.message + '
可见度评分' + data.score + '/100
查看 GEO 优化方案 →
'; } } catch(e) { resultContent.innerHTML = '

网络错误,请稍后重试

'; } } function getPlatformIcon(platform) { const icons = { deepseek: '🌊', chatgpt: '🤖', gpt: '🧬', doubao: '🔵', tongyi: '🧠', kimi: '🔥', yuanbao: '💬', wenxin: '📚', claude: '💜', ernie: '🦄', xinghuo: '⭐', zhipu: '🔮', xiaomi: '📱' }; return icons[platform] || '🤖'; } // 页面加载时检查登录状态 checkAuth();