This commit is contained in:
eric
2026-03-13 06:16:36 -05:00
parent a42e9628ad
commit e673bc9b62
7 changed files with 11 additions and 14 deletions

View File

@@ -133,8 +133,6 @@ export async function POST(request: NextRequest) {
// 优先用请求 Host(等同 window.location.host)推断同机 payjsapi,访问 192.168.41.222:3002 即用 192.168.41.222:8007
const apiUrl = (
(hostHeader ? getApiUrlFromRequest(hostHeader) : null) ||
process.env.PAYMENT_API_URL ||
process.env.NEXT_PUBLIC_API_URL ||
payConfig.apiUrl
)
.replace(/\/$/, "");