forked from 77media/video-flow
更改注册接口域名
This commit is contained in:
parent
8a0e0c6d2a
commit
c9f9a0030b
@ -587,7 +587,7 @@ export const registerUser = async ({
|
|||||||
inviteCode?: string;
|
inviteCode?: string;
|
||||||
}): Promise<any> => {
|
}): Promise<any> => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${JAVA_BASE_URL}/api/user/register`, {
|
const response = await fetch(`${BASE_URL}/api/user/register`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
@ -627,7 +627,7 @@ export const registerUserWithInvite = async ({
|
|||||||
invite_code?: string;
|
invite_code?: string;
|
||||||
}): Promise<RegisterUserResponse> => {
|
}): Promise<RegisterUserResponse> => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${JAVA_BASE_URL}/api/user_fission/register_with_invite`, {
|
const response = await fetch(`${BASE_URL}/api/user_fission/register_with_invite`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
@ -659,7 +659,7 @@ export const registerUserWithInvite = async ({
|
|||||||
*/
|
*/
|
||||||
export const sendVerificationLink = async (email: string) => {
|
export const sendVerificationLink = async (email: string) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`${JAVA_BASE_URL}/api/user/sendVerificationLink?email=${email}`);
|
const response = await fetch(`${BASE_URL}/api/user/sendVerificationLink?email=${email}`);
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
if(!data.success){
|
if(!data.success){
|
||||||
throw new Error(data.message||data.msg)
|
throw new Error(data.message||data.msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user