This commit is contained in:
eric
2026-03-23 02:20:48 -05:00
parent 89f7bce75e
commit 0b69539bc3
4 changed files with 9 additions and 9 deletions

View File

@@ -43,8 +43,8 @@ MEMOS_TOKEN = os.getenv(
"eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoiaGFja3JvYm90IiwiaXNzIjoibWVtb3MiLCJzdWIiOiIxIiwiYXVkIjpbInVzZXIuYWNjZXNzLXRva2VuIl0sImlhdCI6MTc1NzQwNTE0OX0.Idn7kBlxE-CoSOXwWuZ1tHGIRKHAIeDyXSafGS5OHsg",
)
# 回调地址(用于生成 notify_urlsalon 线上部署 api.nomadyt.com
BASE_URL = os.getenv("BASE_URL", "https://api.nomadyt.com")
# 回调地址(用于生成 notify_url线上 https://salonapi.hackrobot.cn
BASE_URL = os.getenv("BASE_URL", "https://salonapi.hackrobot.cn")
# MinIO 对象存储
MINIO_ENDPOINT = os.getenv("MINIO_ENDPOINT", "minioweb.hackrobot.cn")

View File

@@ -7,7 +7,7 @@ salon API 主入口
- /api/salon/* 报名、check-user、ensure-user、complete-order、join、volunteers、xiaohongshu/profile
本地调试BASE_URL 需为 ZPAY 可访问地址(如 ngrok
线上部署BASE_URL=https://api.nomadyt.com(必须为 ZPAY 可公网访问的地址)
线上部署BASE_URL=https://salonapi.hackrobot.cn(必须为 ZPAY 可公网访问的地址)
"""
import logging
import sys
@@ -92,7 +92,7 @@ def _check_base_url():
return
if "localhost" in url or "127.0.0.1" in url or url.startswith("http://192.168.") or url.startswith("http://10."):
logging.warning(
"BASE_URL=%s 疑似内网地址ZPAY 无法回调!线上部署请设置 BASE_URL 为公网地址,如 https://api.nomadyt.com",
"BASE_URL=%s 疑似内网地址ZPAY 无法回调!线上部署请设置 BASE_URL 为公网地址,如 https://salonapi.hackrobot.cn",
BASE_URL,
)