feat: 音乐人注册

feature/artists
fadeaway 6 months ago
parent 51f03e76f6
commit 1511c2f7ea

@ -6,14 +6,14 @@ const nextConfig = {
source: '/queyueapi/:path*',
destination: `${process.env.NEXT_PUBLIC_HOST}/:path*`,
},
{
source: '/luoo-music/:path*',
destination: 'http://39.103.180.196:9012/luoo-music/:path*',
},
{
source: '/user/artist/:path*',
destination: 'http://39.103.180.196:9012/user/artist/:path*',
},
// {
// source: '/luoo-music/:path*',
// destination: 'http://39.103.180.196:9012/luoo-music/:path*',
// },
// {
// source: '/user/artist/:path*',
// destination: 'http://39.103.180.196:9012/user/artist/:path*',
// },
{
source: '/',
destination: '/music/all',

@ -24,7 +24,7 @@ const UploadForm = (props: UploadFormProps) => {
imagePreview
limit={1}
// listType="picture-card"
action="/luoo-music/cms/song/upload/song"
action="/queyueapi/luoo-music/cms/song/upload/song"
className={styles.uploadEle}
>
<div className={styles.uploadTrigger}>

@ -1,10 +1,18 @@
import clientHttp from '@/utils/request/client';
import { getAuthorization } from '@/utils';
/**
* @description -
*/
export const apiArtistsSignUp = async (params: any) => {
const result = await clientHttp.post('/user/artist/register', params);
return result;
export const apiArtistsSignUp = async (data: any) => {
const token = await getAuthorization();
const response = await fetch('/queyueapi/user/artist/register', {
headers: {
Authorization: token || '',
'Content-Type': 'application/json',
Connection: 'keep-alive',
},
method: 'POST',
body: JSON.stringify(data),
});
return await response.json();
};

Loading…
Cancel
Save