fix(phase2): 사주 무료화 잔재 정리 — 결제완료 배지→AI해석완료, 잉여 표현·stale 주석
- SajuAISection.tsx 415행: "결제 완료" 배지 → "AI 해석 완료"로 변경 (로그인 회원 무료 정책에 맞춤) - page.tsx 86행: hasPaid = !!user → hasPaid = true 단순화 (if (user) 블록 내 중복) - page.tsx 540행: 주석 "(사주 결제 시 표시)" → "(로그인 시 표시)" 갱신 (현행 정책 반영) Tests: 30 PASS ✓ Build: success ✓ Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AAtcmKKtqDUe4NyVgy1aLQ
This commit is contained in:
@@ -412,7 +412,7 @@ export default function SajuAISection({
|
|||||||
재생성
|
재생성
|
||||||
</button>
|
</button>
|
||||||
<span className="text-xs bg-emerald-400/20 border border-emerald-400/30 text-emerald-300 font-bold px-2.5 py-1 rounded-full">
|
<span className="text-xs bg-emerald-400/20 border border-emerald-400/30 text-emerald-300 font-bold px-2.5 py-1 rounded-full">
|
||||||
결제 완료
|
AI 해석 완료
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export default async function SajuResultPage({ searchParams }: PageProps) {
|
|||||||
const supabase = await createClient();
|
const supabase = await createClient();
|
||||||
const { data: { user } } = await supabase.auth.getUser();
|
const { data: { user } } = await supabase.auth.getUser();
|
||||||
if (user) {
|
if (user) {
|
||||||
hasPaid = !!user;
|
hasPaid = true;
|
||||||
|
|
||||||
if (hasPaid) {
|
if (hasPaid) {
|
||||||
// 1차: birth_hour 포함 정확한 키로 조회
|
// 1차: birth_hour 포함 정확한 키로 조회
|
||||||
@@ -537,7 +537,7 @@ export default async function SajuResultPage({ searchParams }: PageProps) {
|
|||||||
);
|
);
|
||||||
})()}
|
})()}
|
||||||
|
|
||||||
{/* 오늘의 운세 (사주 결제 시 표시) */}
|
{/* 오늘의 운세 (로그인 시 표시) */}
|
||||||
{hasPaid && (
|
{hasPaid && (
|
||||||
<SajuFortuneSection
|
<SajuFortuneSection
|
||||||
yongShin={analysis.yongShin.yongShin}
|
yongShin={analysis.yongShin.yongShin}
|
||||||
|
|||||||
Reference in New Issue
Block a user