增加客户端标识 & 套餐管理重置今日限额字段 &提取IP/IP管理模块新增字段

This commit is contained in:
Eamon-meng
2025-12-12 14:25:27 +08:00
parent ee7433e320
commit 26ea796b4d
9 changed files with 120 additions and 51 deletions

View File

@@ -1,3 +1,4 @@
'use client'
import {useEffect, useState} from 'react'
import {Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger} from '@/components/ui/dialog'
import {Button} from '@/components/ui/button'

View File

@@ -16,7 +16,6 @@ import {useRouter} from 'next/navigation'
import {login} from '@/actions/auth'
import {useProfileStore} from '@/components/stores-provider'
import Captcha from './captcha'
import {merge} from '@/lib/utils'
const smsSchema = zod.object({
username: zod.string().length(11, '请输入正确的手机号码'),
@@ -99,7 +98,7 @@ export default function LoginCard(props: {
{...field}
id={id}
type="tel"
placeholder={mode === 'phone_code' ? '请输入手机号' : '请输入用户名'}
placeholder={mode === 'phone_code' ? '请输入手机号' : '请输入用户名/手机号/邮箱'}
autoComplete="tel-national"
/>
)}
@@ -170,9 +169,9 @@ export default function LoginCard(props: {
</Button>
<p className="text-xs text-center text-gray-500">
<a href="#" className="text-blue-600 hover:text-blue-500"></a>
<a href="/userAgreement" className="text-blue-600 hover:text-blue-500"></a>
<a href="#" className="text-blue-600 hover:text-blue-500"></a>
<a href="/privacyPolicy" className="text-blue-600 hover:text-blue-500"></a>
</p>
</div>
</Form>