update pay function
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user