From 1e76275f04e63eae50792043867ebe2d7a697b1d Mon Sep 17 00:00:00 2001 From: Eamon-meng <17516219072@163.com> Date: Thu, 23 Apr 2026 13:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A5=97=E9=A4=90=E6=B7=BB=E5=8A=A0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=88=97=20&=20=E7=99=BB=E5=BD=95=E5=90=8E=E5=B7=B2?= =?UTF-8?q?=E5=AE=9E=E5=90=8D=E7=9A=84=E6=9B=B4=E6=96=B0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20&=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E8=BF=9C=E7=A8=8B=E4=BB=93=E5=BA=93=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish.ps1 | 8 +-- src/actions/resource.ts | 7 +++ src/app/(auth)/login/login-card.tsx | 2 +- src/app/admin/clients.tsx | 27 +++++++--- src/app/admin/resources/_components/list.tsx | 52 ++++++++++++++------ 5 files changed, 68 insertions(+), 28 deletions(-) diff --git a/publish.ps1 b/publish.ps1 index 14ee313..01b81ed 100644 --- a/publish.ps1 +++ b/publish.ps1 @@ -9,8 +9,8 @@ if ($confrim -ne "y") { exit 0 } -docker build -t repo.lanhuip.com:8554/lanhu/web:latest . -docker build -t repo.lanhuip.com:8554/lanhu/web:$($args[0]) . +docker build -t repo.lanhuip.com/lanhu/web:latest . +docker build -t repo.lanhuip.com/lanhu/web:$($args[0]) . -docker push repo.lanhuip.com:8554/lanhu/web:latest -docker push repo.lanhuip.com:8554/lanhu/web:$($args[0]) +docker push repo.lanhuip.com/lanhu/web:latest +docker push repo.lanhuip.com/lanhu/web:$($args[0]) diff --git a/src/actions/resource.ts b/src/actions/resource.ts index 47e74e9..b85873a 100644 --- a/src/actions/resource.ts +++ b/src/actions/resource.ts @@ -103,3 +103,10 @@ export async function getPriceHome(props: CreateResourceReq) { discounted?: string }>('/api/resource/price', props) } + +export async function updateCheckip(props: { + id: number + checkip: boolean +}) { + return callByUser('/api/resource/update/checkip', props) +} diff --git a/src/app/(auth)/login/login-card.tsx b/src/app/(auth)/login/login-card.tsx index 77ad0f3..6077b18 100644 --- a/src/app/(auth)/login/login-card.tsx +++ b/src/app/(auth)/login/login-card.tsx @@ -93,7 +93,7 @@ export default function LoginCard() {