diff --git a/src/app/(home)/@footer/page.tsx b/src/app/(home)/@footer/page.tsx index a5dcc54..c65ae8d 100644 --- a/src/app/(home)/@footer/page.tsx +++ b/src/app/(home)/@footer/page.tsx @@ -35,9 +35,9 @@ export default function Footer(props: FooterProps) { diff --git a/src/app/admin/(dashboard)/_client/charts.tsx b/src/app/admin/(dashboard)/_client/charts.tsx index ff121e9..54e05b5 100644 --- a/src/app/admin/(dashboard)/_client/charts.tsx +++ b/src/app/admin/(dashboard)/_client/charts.tsx @@ -45,14 +45,6 @@ export default function Charts({initialData}: ChartsProps) { resource_no: zod.string().min(11, '请输入正确的套餐编号').max(11, '请输入正确的套餐编号').optional(), create_after: zod.date().optional(), create_before: zod.date().optional(), - }).refine((data) => { - if (data.create_after && data.create_before) { - return data.create_before >= data.create_after - } - return true - }, { - message: '结束时间不得早于开始时间', - path: ['create_before'], }) type FormValues = zod.infer diff --git a/src/components/composites/purchase/short/right.tsx b/src/components/composites/purchase/short/right.tsx index 7d2f256..6832482 100644 --- a/src/components/composites/purchase/short/right.tsx +++ b/src/components/composites/purchase/short/right.tsx @@ -30,24 +30,7 @@ export default function Right() { const quota = form.watch('quota') const price = useMemo(() => { - // var factor int32 - // switch data.Mode { - // case 1: - // factor = data.DailyLimit * data.Expire - // case 2: - // factor = data.Quota - // } - // - // var base = data.Live - // if base == 180 { - // base = 150 - // } - // - // var dec = decimal.Decimal{}. - // Add(decimal.NewFromInt32(base * factor)). - // Div(decimal.NewFromInt(30000)) - // data.price = &dec - const base = live === '180' ? 150 : Number(live) * 60 + const base = live === '180' ? 150 : Number(live) const factor = { 1: Number(expire) * dailyLimit, 2: quota,