小程序
小游戏
企业微信
微信支付
扫描小程序码分享
请问根据示例代码写的报这个错误如何解决
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,报错9301010,请检查下是否还有额度可以使用,参考https://developers.weixin.qq.com/doc/oplatform/service_market/buyer_guideline/usage/usage.html
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
提供一下代码片段看看。
用的他的示例代码:
export const ocrAction = async (filePath) => {
wx.showLoading({
title: '正在处理',
})
try {
// 上传图片到云存储,获得有效的 img_url
const uploadRes = await wx.cloud.uploadFile({
cloudPath: `ocr-temp/${Date.now()}.jpg`, // 设置上传路径
filePath: filePath, // 本地文件路径
const img_url = uploadRes.fileID // 云存储返回的 fileID
// 调用 OCR 服务
const res = await wx.serviceMarket.invokeService({
service: 'wx79ac3de8be320b71',
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,报错9301010,请检查下是否还有额度可以使用,参考https://developers.weixin.qq.com/doc/oplatform/service_market/buyer_guideline/usage/usage.html
提供一下代码片段看看。
用的他的示例代码:
export const ocrAction = async (filePath) => {
wx.showLoading({
title: '正在处理',
})
try {
// 上传图片到云存储,获得有效的 img_url
const uploadRes = await wx.cloud.uploadFile({
cloudPath: `ocr-temp/${Date.now()}.jpg`, // 设置上传路径
filePath: filePath, // 本地文件路径
})
const img_url = uploadRes.fileID // 云存储返回的 fileID
// 调用 OCR 服务
const res = await wx.serviceMarket.invokeService({
service: 'wx79ac3de8be320b71',