update pay function

This commit is contained in:
2025-11-22 09:57:30 +08:00
parent 51c07afefb
commit d5b9865c97
4 changed files with 273 additions and 11 deletions

View File

@@ -153,16 +153,28 @@ export default function MCPChat() {
}
if (!canAccessChat) {
const mainAppUrl = process.env.NEXT_PUBLIC_MAIN_APP_URL || 'https://valuefrontier.cn';
return (
<div className="flex flex-col items-center justify-center h-screen">
<h2 className="text-2xl mb-4">使 AI </h2>
<p className="text-gray-600 mb-6"></p>
<a
href={`${process.env.NEXT_PUBLIC_MAIN_APP_URL}/subscription`}
className="bg-green-600 text-white px-6 py-2 rounded hover:bg-green-700"
>
</a>
<p className="text-gray-600 mb-4"></p>
<p className="text-sm text-gray-500 mb-6">
{user?.subscription_tier || '未知'}
</p>
<div className="space-y-2">
<a
href={`${mainAppUrl}/subscription`}
className="block bg-green-600 text-white px-6 py-2 rounded hover:bg-green-700"
>
</a>
<button
onClick={() => window.location.reload()}
className="block bg-blue-600 text-white px-6 py-2 rounded hover:bg-blue-700"
>
</button>
</div>
</div>
);
}