1
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user