diff --git a/app/my/setting/feedback/page.js b/app/my/setting/feedback/page.js
index b1301ae..b746a96 100644
--- a/app/my/setting/feedback/page.js
+++ b/app/my/setting/feedback/page.js
@@ -82,7 +82,7 @@ export default function Feedback() {
onChange={(value) => setValue(value)}
value={value}
className="h-32 bg-[#FFFFFF1A] text-white rounded-2xl mt-2 p-2"
- style={{ "--placeholder-color": "#FFFFFF80", "--font-size": "14px" }}
+ style={{ "--placeholder-color": "#FFFFFF80", "--font-size": "16px" }}
/>
截图(最多9张)
diff --git a/app/space/setting/spaceRefund/page.jsx b/app/space/setting/spaceRefund/page.jsx
index 63f434d..c688947 100644
--- a/app/space/setting/spaceRefund/page.jsx
+++ b/app/space/setting/spaceRefund/page.jsx
@@ -183,7 +183,7 @@ export default function SpaceRefund() {
className="h-32 bg-[#FFFFFF1A] text-white rounded-2xl mt-2 p-2"
style={{
"--placeholder-color": "#FFFFFF80",
- "--font-size": "14px",
+ "--font-size": "16px",
}}
/>
diff --git a/utils/upload.js b/utils/upload.js
index a16cc6f..2992ace 100644
--- a/utils/upload.js
+++ b/utils/upload.js
@@ -126,9 +126,8 @@ async function getFailId() {
//上传单张图片
export async function uploadImage(asset) {
-
const auth = await getAuth(1);
- console.log("auth",auth)
+ console.log("auth", auth);
try {
const formData = new FormData();
formData.append("name", auth.filename);
@@ -138,12 +137,12 @@ export async function uploadImage(asset) {
formData.append("signature", auth.signature);
formData.append("key", auth.directory + "/" + auth.filename);
formData.append("file", asset);
- console.log("formData",...formData)
+ console.log("formData", ...formData);
const uploadResponse = await fetch(auth.host, {
method: "POST",
body: formData,
});
- console.log("uploadResponse",uploadResponse)
+ console.log("uploadResponse", uploadResponse);
if (uploadResponse.status === 200) {
// console.log(asset);
// debugger
@@ -155,23 +154,19 @@ export async function uploadImage(asset) {
w: info.width,
fmt: asset.type,
};
-
const base = baseRequest();
- const response = await fetch(
- `/api/media/c_upload`,
- {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify({
- mtype: 1,
- item: item,
- ...base,
- }),
- }
- );
+ const response = await fetch(`/api/media/c_upload`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ mtype: 1,
+ item: item,
+ ...base,
+ }),
+ });
const data = await response.json();
if (data.ret === -1) {
Toast.show({
@@ -220,7 +215,7 @@ export async function uploadVideo(asset) {
method: "POST",
body: formData,
});
- console.log("uploadResponse",uploadResponse)
+ console.log("uploadResponse", uploadResponse);
if (uploadResponse.status === 200) {
const md5 = uploadResponse.headers.map.etag.substring(
1,
@@ -235,21 +230,18 @@ export async function uploadVideo(asset) {
dur: asset?.duration,
fmt: fileType,
};
- const base = baseRequest();
- const response = await fetch(
- `/api/media/c_upload`,
- {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify({
- mtype: 2,
- item: item,
- ...base,
- }),
- }
- );
+ const base = baseRequest();
+ const response = await fetch(`/api/media/c_upload`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ mtype: 2,
+ item: item,
+ ...base,
+ }),
+ });
const data = await response.json();
if (data.ret === -1) {
Toast.show({
@@ -281,14 +273,13 @@ export async function uploadVideo(asset) {
}
}
-
//上传多个图片
export async function multiUploadImage(assets) {
- console.log("assets",assets)
+ console.log("assets", assets);
let ids = { image_ids: [], video_ids: [] };
await Promise.all(
assets.map(async (asset) => {
- const id = await uploadImage(asset.src);
+ const id = await uploadImage(asset);
// debugger;
ids.image_ids.push(id);
})