This commit is contained in:
张成
2025-12-19 17:23:59 +08:00
parent 46ba6e12c3
commit a549d39f61
5 changed files with 421 additions and 422 deletions

View File

@@ -378,8 +378,8 @@
<script>
// 配置 API 地址(根据环境自动判断)
const API_BASE_URL = window.location.hostname === 'localhost'
? 'http://localhost:9097/admin_api'
: 'https://work.light120.com/admin_api';
? 'http://localhost:9097/api'
: 'https://work.light120.com/api';
// 获取 URL 参数中的邀请码
function getInviteCodeFromUrl() {
@@ -423,7 +423,7 @@
// 发送邮箱验证码
async function sendEmailCode(email) {
try {
const response = await fetch(`${API_BASE_URL}/invite/send-email-code`, {
const response = await fetch(`${API_BASE_URL}/invite/send_email_code`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',