fix: correct OtherChannels URLs — Google Maps, Naver Blog, Naver Place
Google Maps: was using gm.website (clinic's own site) → now always generates maps.google.com/search URL Naver Blog: was linking to first search result post (random personal blog) → now links to Naver blog search results page Naver Place: np.link was the clinic's own website, not Naver Place → now generates map.naver.com search URL. Also fixed collect-channel-data to search with "성형외과" suffix and match by category (성형/피부) to avoid same-name dental clinics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a02c83155e
commit
29c1faf49e
2 files changed
+35
-14
No files matched your search
@@ -994,7 +994,8 @@ export function mergeEnrichment(
|
||||
name: '구글 지도',
|
||||
status: 'active' as const,
|
||||
details: `평점: ${gm.rating ?? '-'} / 리뷰: ${gm.reviewCount ?? '-'}`,
|
||||
url: gm.website || (gm.name ? `https://www.google.com/maps/search/${encodeURIComponent(String(gm.name))}` : ''),
|
||||
// Always use Google Maps search URL — gm.website is the clinic's own site, not Maps
|
||||
url: gm.name ? `https://www.google.com/maps/search/${encodeURIComponent(String(gm.name))}` : '',
|
||||
};
|
||||
if (gmChannelIdx >= 0) {
|
||||
merged.otherChannels[gmChannelIdx] = gmChannel;
|
||||
@@ -1089,7 +1090,8 @@ export function mergeEnrichment(
|
||||
name: '네이버 블로그',
|
||||
status: 'active' as const,
|
||||
details: `검색 결과: ${nb.totalResults?.toLocaleString() ?? '-'}건 / 최근 포스트 ${nb.posts?.length ?? 0}개`,
|
||||
url: nb.posts?.[0]?.link || (nb.searchQuery ? `https://search.naver.com/search.naver?query=${encodeURIComponent(String(nb.searchQuery))}` : ''),
|
||||
// Always link to Naver blog search — individual post links may be unrelated personal blogs
|
||||
url: nb.searchQuery ? `https://search.naver.com/search.naver?where=blog&query=${encodeURIComponent(String(nb.searchQuery))}` : '',
|
||||
};
|
||||
if (nbChannelIdx >= 0) {
|
||||
merged.otherChannels[nbChannelIdx] = nbChannel;
|
||||
@@ -1106,7 +1108,9 @@ export function mergeEnrichment(
|
||||
name: '네이버 플레이스',
|
||||
status: 'active' as const,
|
||||
details: np.category || '',
|
||||
url: np.link || '',
|
||||
// np.link is the clinic's own website, NOT Naver Place page
|
||||
// Use Naver Place search URL instead
|
||||
url: np.name ? `https://map.naver.com/v5/search/${encodeURIComponent(String(np.name))}` : '',
|
||||
};
|
||||
if (npChannelIdx >= 0) {
|
||||
merged.otherChannels[npChannelIdx] = npChannel;
|
||||
|
||||
Reference in new issue
Block a user