diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx
index a542051..9add6a9 100644
--- a/app/(auth)/layout.tsx
+++ b/app/(auth)/layout.tsx
@@ -1,12 +1,6 @@
import { ArrowLeft, Gamepad2 } from "lucide-react"
import Link from "next/link"
-const stats = [
- { value: "12,000+", label: "认证打手" },
- { value: "98.6%", label: "好评率" },
- { value: "50,000+", label: "完成订单" },
-]
-
export default function AuthLayout({ children }: { children: React.ReactNode }) {
return (
@@ -28,15 +22,6 @@ export default function AuthLayout({ children }: { children: React.ReactNode })
聚玩连接玩家与专业打手,提供安全、透明、高效的游戏陪玩服务。无论你是寻找搭档还是展示技能,这里都是你的舞台。
-
-
- {stats.map((stat) => (
-
-
{stat.value}
-
{stat.label}
-
- ))}
-
© 2025 聚玩. All rights reserved.
diff --git a/app/(dashboard)/dashboard/page.tsx b/app/(dashboard)/dashboard/page.tsx
index 9169907..270c100 100644
--- a/app/(dashboard)/dashboard/page.tsx
+++ b/app/(dashboard)/dashboard/page.tsx
@@ -92,7 +92,9 @@ export default function DashboardPage() {
const rating = isOwner ? (shop?.rating ?? 0) : (player?.rating ?? 0)
const playerCount = shop?.playerCount ?? 0
const completionRate = player?.completionRate ?? 0
- const serviceCount = player ? services.filter((s) => s.playerId === player.id).length : 0
+ const serviceCount = player
+ ? services.filter((service) => String(service.playerId) === String(player.id)).length
+ : 0
return (
@@ -147,7 +149,7 @@ export default function DashboardPage() {
)}
- {isOwner ? "¥12,800" : serviceCount}
+ {isOwner ? "——" : serviceCount}
diff --git a/app/(main)/shop/[id]/page.tsx b/app/(main)/shop/[id]/page.tsx
index 8bd578a..9474162 100644
--- a/app/(main)/shop/[id]/page.tsx
+++ b/app/(main)/shop/[id]/page.tsx
@@ -25,8 +25,8 @@ export default async function ShopPage({ params }: PageProps) {
}
const [shopPlayers, allServices] = await Promise.all([listPlayersByShop(shop.id), listServices()])
- const playerIds = shopPlayers.map((p) => p.id)
- const shopServices = allServices.filter((s) => playerIds.includes(s.playerId))
+ const playerIds = new Set(shopPlayers.map((player) => String(player.id)))
+ const shopServices = allServices.filter((service) => playerIds.has(String(service.playerId)))
const shopReviews = await listReviews()
const sortedSections = getShopSections(shop).filter((s) => s.enabled)
diff --git a/lib/api/players.ts b/lib/api/players.ts
index 5e61d5e..155a5ef 100644
--- a/lib/api/players.ts
+++ b/lib/api/players.ts
@@ -37,5 +37,5 @@ export async function getPlayerById(playerId: string): Promise {
const players = await listPlayers()
- return players.filter((player) => player.shopId === shopId)
+ return players.filter((player) => String(player.shopId) === shopId)
}
diff --git a/lib/id.ts b/lib/id.ts
deleted file mode 100644
index fcf021e..0000000
--- a/lib/id.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-let counter = 0
-
-export function generateId(prefix: string) {
- void prefix
- counter += 1
-
- const now = Date.now().toString()
- const suffix = counter.toString().padStart(3, "0")
- return `${now}${suffix}`
-}