OCR插件调用出错,在开发工具中可以正常调用,真机调试及发布上线都失败。基础库2.7.7或2.8.0都一样结果。昨天还能用,刚刚偶尔试了下发现出错了。
WAService.js:1 thirdScriptError
onPageNotFound Error: Can not find page "undefined".; at onPageNotFound
Error: onPageNotFound Error: Can not find page "undefined".
at WAService.js:1:793866
at WAService.js:1:422173
at Object.m (WAService.js:1:1826)
at Object.value [as subscribeHandler] (C:\Users\post\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:68:2165)
at [VM 29]:1:58
at Script.runInContext (vm.js:135:20)
at Object.runInContext (vm.js:298:6)
at handleEvaluateJavascript (C:\Users\post\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:1:9985)
at handleProcessMessage (C:\Users\post\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:68:2607)
at WebSocket.ws.on (C:\Users\post\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:68:6328)
以下代码在真机调试和实际上线全部出错,报上面我发的同样的错误。
<ocr-navigator bind:onSuccess="driverSuccess" certificateType="drivingLicense" selectedOptions="{{['plateNum','vehicleType','owner']}}">
<button type="primary">行驶证识别</button>
</ocr-navigator>
<ocr-navigator bind:onSuccess="driverSuccess" certificateType="drivingLicense" selectedOptions="{{['plateNum','vehicleType','owner']}}">
<image class="scanimage" style="opacity:1" src='/assets/img/scan.png'></image>
</ocr-navigator>
<ocr-navigator bind:onSuccess="driverSuccess" certificateType="vehicleLicense" selectedOptions="{{['id_num','name','sex', 'issue_date', 'car_class']}}">
<image class="drivingimage" style="opacity:1" src='/assets/img/scan.png'></image>
</ocr-navigator>
<ocr-navigator bind:onSuccess="idCardsuccess" certificateType="idCard" selectedOptions="{{['id','name','sex','birthday','homePlace']}}">
<image class="idCardimage" style="opacity:1" src='/assets/img/scan.png'></image>
</ocr-navigator>
<ocr-navigator bind:onSuccess="bankSuccess" certificateType="bankCard" selectedOptions="{{['number']}}">
<image class="bankCardimage" style="opacity:1" src='/assets/img/scan.png'></image>
</ocr-navigator>
麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)