- "errno":600005,"errMsg":"uploadFile:fail file path
"errno":600005,"errMsg":"uploadFile:fail file path invalid" 因为我们在后台打了实时日志,发现请求没有成功,catch捕获了异常,异常信息如上,同样的代码,其余人都可以上传成功,请问下是什么原因,请问报错的原因是什么呢 代码和log如下 // 这是上传图片的方法 BFXJCTEMPuploadImage: function () { let mustCheckVisitData = this.data.visitProcess.getModuleSaveData(visitConfig.visitProcessStep.BFXJC); let _processData = this.data.visitProcess.getVisitProcessState(visitConfig.visitProcessStep.BFXJC); let imgListPath = _processData['imgList'] || [] logger.info('imgListPath', imgListPath); //已经走到了这里 这里显示的是日志是 // [10:02:39] imgListPath [{"key":"wxfile://tmp_65d9ea6f75871aab42a70fc4eb211ea8.jpg","materielCheckCd":"634123100000064128748720220705091657","imageName":"634123100000064128748720220705091657_00.jpg","upLoadFinish":"4"},{"key":"wxfile://tmp_4217c15f8a01eb1615df81f78d220589.jpg","materielCheckCd":"634123100000065128748720220705091657","imageName":"634123100000065128748720220705091657_00.jpg","upLoadFinish":"4"},{"key":"wxfile://tmp_bb1bf37c3cc89f51af5b930837c512a8.jpg","materielCheckCd":"634123100000065128748720220705091657","imageName":"634123100000065128748720220705091657_01.jpg","upLoadFinish":"4"}] if (imgListPath && imgListPath.length > 0) { for (let k = 0; k < imgListPath.length; k++) { let txnKey = imgListPath[k].txnKey let uploadStatus = imgListPath[k].upLoadFinish let picRow = imgListPath[k].picRow let picCol = imgListPath[k].picCol if (visitConfig.visitProcessUploadStatus.uploaded != uploadStatus) { let _keyId = imgListPath[k].key const postImage = request.uploadNew(_keyId, config.api.uploadMslCompImage, { fileTypeCd: "VISIT_MSLCOMP_IMAGE", txnKey: txnKey, mslCompCd: "", picRow: picRow, picCol: picCol }); //请求中出现报错 postImage.then(result => { logger.info('必分销图片上传成功。。', result); this.updateVisitProcessStepImgState(visitConfig.visitProcessStep.BFXJC, _keyId, visitConfig.visitProcessUploadStatus.uploaded); }).catch((mslI) => { logger.error('必分销上传图片失败回调', mslI); //这里的log是[10:02:39] 必分销上传图片失败回调 {"errno":600005,"errMsg":"uploadFile:fail file path invalid"} this.updateVisitProcessStepImgState(visitConfig.visitProcessStep.BFXJC, _keyId, visitConfig.visitProcessUploadStatus.error); }); } } } }, 小程序试试日志可以看到 图片路径是wxfile://tmp_bd13c5f0c9d3605bd7c2e419a644b642.jpg
2022-07-12 - 微信 jssdk 调用chooseImage ,某些手机拍照选择确认后会刷新webview?
webview中调用wx.chooseImage 拍照上传图片,某些ios手机拍照选择确认后会刷新webview[图片]
2020-05-11 - 微信公众号网页调用JSSDK的chooseImage接口,手机拍照后返回时自动刷新页面,怎么解决?
最近在做微信的 js sdk 开发时遇到一个奇怪的问题,在苹果IOS中!!就是当我调用 chooseImage 接口并选择拍照,连续进行几次之后,就很容易遇到,在某次从相机返回后,微信h5 页面自己刷新了一次。只是拍照的时候会碰到,从相册选图没事,这个问题很不友好, 试想用户填了半天的表单, 去拍几张照片后回来,表单被刷新了,就很烦。期待来给解答一下 我猜测可能是因为内存暂用太多了之后,藏在后面不显示的 view 会被清理掉,导致从拍照回来之后,原来的 web view 已经不在了,只能重新 load。期待有人来解惑。[图片]
2021-04-08 - 真机调试在任何地方 `getApp()` 返回值都是 `undefined`
https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html 当前的开发版本 Nightly 1.05.2108202
2021-08-23