收藏
回答

错误码 -501001

框架类型 问题类型 终端类型 AppID 基础库版本
小程序 需求 客户端 wxff265897cc7846e2 v1.02.1902010

用云函数调用小程序码,不管用哪种方式,都是返回errCode-501001errMsg"openapi.wxacode.get:fail 1"

没有任何解释,怎么解决?

代码如下:

exports.main = async (event, context) => {

try{

const result = await cloud.openapi.wxacode.get({

path: 'pages/index/index',

width: 430

})

console.log(result)

return result

} catch(err){

console.log(err)

return err

}

}



回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容