feat: fix

This commit is contained in:
kenny
2025-10-17 19:09:24 +08:00
parent bd280864af
commit 5297bd4d70
4 changed files with 107 additions and 145 deletions
+19 -36
View File
@@ -17,11 +17,13 @@ const ReportApi = {
});
},
getStyleApi: (data) => {
return request({
url: '/userinfo/get_user_face_info',
method: 'POST',
data: data,
});
// return request({
// url: '/userinfo/get_user_face_info',
// method: 'POST',
// data: data,
// });
return Promise.resolve({data: {}})
},
praiseTextApi: (data) => {
return request({
@@ -50,6 +52,8 @@ const ReportApi = {
method: 'POST',
data: data,
});
// return Promise.resolve()
},
hairStyleListApi: (data) => {
return request({
@@ -82,40 +86,12 @@ const ReportApi = {
method: 'get',
}),
// sendMail: () =>
// request({
// url: '/sendMail',
// method: 'post',
// }),
sendMail: (data) => {
// const init = () => {
// const http = new Request({
// baseURL: 'http://42.193.102.139:4000/api/pdf',
// timeout: 100 * 1000,
// method: 'POST',
// header: {
// Accept: 'text/json',
// 'Content-Type': 'application/json;charset=UTF-8',
// },
// // #ifdef H5
// // 跨域请求时是否携带凭证(cookies)仅H5支持(HBuilderX 2.6.15+
// withCredentials: false,
// // #endif
// });
// return http;
// };
const http = new Request({
baseURL: 'http://42.193.102.139:4000/api/pdf',
// baseURL: 'https://fitting-room.huimeimeta.com/api/pdf',
baseURL: 'https://nestjs.huimeimeta.com/api/sendMail',
timeout: 100 * 1000,
method: 'GET',
header: {
Accept: 'text/json',
'Content-Type': 'application/json;charset=UTF-8',
Authorization: 'Bearer 14fc0280-fc65-462d-ac2d-50178c0212e3',
},
method: 'POST',
// #ifdef H5
// 跨域请求时是否携带凭证(cookies)仅H5支持(HBuilderX 2.6.15+
withCredentials: false,
@@ -129,6 +105,13 @@ const ReportApi = {
data,
});
},
getImage: () =>
request({
url: '/digital/triple-image/page ',
method: 'get',
}),
// https://puton.huimeimeta.com/app-api/cloth/getFaceList
};
export default ReportApi;