This commit is contained in:
hayu 2025-10-21 18:49:49 +08:00
parent 028929f85e
commit 06f71f26b6
1 changed files with 10 additions and 0 deletions

View File

@ -273,6 +273,16 @@ const onCameraSuccessFjBF = (file) => {
uploadSignUrlFjBF(file)
}
const generateRandomString = (length) => {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
const uploadSignUrlFjBF = (file) => {
const base64Data = file