Commit 0e97354a authored by 胡's avatar

fix: ios身份证拍照后读取不到的bug

parent 5097b2d8
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"3.5.0"'
currentVersion: '"3.5.2"'
}
......@@ -313,10 +313,24 @@ export default {
if(vum.Platform.isAndroid()){
return url
}else if (vum.Platform.isIOS()){
return window.Ionic.WebView.convertFileSrc(url)
return this.convertFileSrc(url)
}
},
convertFileSrc: function(url) {
if (!url) {
return url;
}
if (url.startsWith('/')) {
return 'http://localhost:8080' + '' + url;
}
if (url.startsWith('file://')) {
return 'http://localhost:8080' + url.replace('file://', '');
}
return url;
},
/**
* 录制视频
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment