|
|
|
|
@ -24,7 +24,7 @@ export async function headFileUploadUsingGet(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -65,7 +65,7 @@ export async function headFileUploadUsingPut(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -106,7 +106,7 @@ export async function headFileUploadUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -147,7 +147,7 @@ export async function headFileUploadUsingDelete(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -188,7 +188,7 @@ export async function headFileUploadUsingPatch(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -256,7 +256,7 @@ export async function headImgUploadUsingGet(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -297,7 +297,7 @@ export async function headImgUploadUsingPut(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -338,7 +338,7 @@ export async function headImgUploadUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -379,7 +379,7 @@ export async function headImgUploadUsingDelete(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -420,7 +420,7 @@ export async function headImgUploadUsingPatch(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -485,7 +485,7 @@ export async function uploadCommentImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -526,7 +526,7 @@ export async function uploadHeadImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -567,7 +567,7 @@ export async function uploadInfoImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -608,7 +608,7 @@ export async function uploadProductImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -649,7 +649,7 @@ export async function upLoadSearchImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
@ -690,7 +690,7 @@ export async function uploadUserInfoImageUsingPost(
|
|
|
|
|
if (item instanceof Array) {
|
|
|
|
|
item.forEach((f) => formData.append(ele, f || ''));
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, JSON.stringify(item));
|
|
|
|
|
formData.append(ele, new Blob([JSON.stringify(item)], { type: 'application/json' }));
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
formData.append(ele, item);
|
|
|
|
|
|