test11(KYC页): 测试图片上传方式

This commit is contained in:
hzj 2025-11-12 18:16:21 +08:00
parent 253de05a8e
commit 4b886e2a22

View File

@ -17,16 +17,10 @@ export function uploadImgFile(renderFun) {
window.getIosAccessOriginParam = renderFun
try {
if (window.app && window.app.uploadImgFile) {
console.log('使用window.app.uploadImgFile')
// 使用注入的方法
const result = window.app.uploadImgFile()
console.log('uploadImgFile返回结果:', result)
renderFun(result)
} else if (window.FlutterPageControl) {
if (window.FlutterPageControl) {
console.log('使用window.FlutterPageControl.postMessage(`需要调用uploadImgFile`)')
// 直接使用Flutter通道
window.FlutterPageControl.postMessage(`需要调用uploadImgFile`)
window.FlutterPageControl.postMessage(`uploadImgFile`)
} else {
console.log('window.app.uploadImgFile和window.FlutterPageControl都不存在使用降级处理')
// 降级处理