test15(KYC页): 测试图片获取和发送接口

This commit is contained in:
hzj 2025-11-12 19:40:33 +08:00
parent ff27fd080c
commit e923216db4
2 changed files with 4 additions and 12 deletions

View File

@ -43,7 +43,7 @@ export function uploadImgFile(renderFun) {
// 等待Flutter注入完成
const waitForFlutterInterface = () => {
let attempts = 0
const maxAttempts = 100 // 最多等待5
const maxAttempts = 6000 // 最多等待60
const checkInterface = () => {
attempts++

View File

@ -246,7 +246,6 @@ const callNativeImagePicker = async () => {
// 3
if (previewUrls.value.length >= 3) {
showWarning(t('max_images_warning'))
throw new Error('Maximum number of images reached')
}
@ -267,16 +266,9 @@ const callNativeImagePicker = async () => {
const file = result.data
console.log('接收到原生图片数据:', file)
// //
// if (typeof file === 'string' && (file.startsWith('http') || file.startsWith('data:'))) {
// // URLbase64
// previewUrls.value.push(file)
// tempFiles.value.push(file) //
// } else {
// //
// previewUrls.value.push(file)
// tempFiles.value.push(file)
// }
//
previewUrls.value.push(file.path)
tempFiles.value.push(file.path)
showSuccess(t('image_selected_success'))
resolve()