diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 90e93f1..f3ca775 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,6 +1,6 @@ services: app: - image: sub2apipay:latest + image: touwaeriol/sub2apipay:${IMAGE_TAG:-latest} container_name: sub2apipay ports: - '8087:3000' diff --git a/src/app/pay/page.tsx b/src/app/pay/page.tsx index 2e5ce9d..763c156 100644 --- a/src/app/pay/page.tsx +++ b/src/app/pay/page.tsx @@ -59,6 +59,7 @@ function PayContent() { maxAmount: 1000, maxDailyAmount: 0, }); + const [userNotFound, setUserNotFound] = useState(false); const effectiveUserId = resolvedUserId || userId; const isEmbedded = uiMode === 'embedded' && isIframeContext; @@ -100,6 +101,9 @@ function PayContent() { methodLimits: cfgData.config.methodLimits, }); } + } else if (cfgRes.status === 404) { + setUserNotFound(true); + return; } // 有 token 时才尝试获取用户详情和订单 @@ -183,6 +187,17 @@ function PayContent() { ); } + if (userNotFound) { + return ( +
用户不存在
+请检查链接是否正确,或联系管理员
+