const cloud = require('wx-server-sdk')
cloud.init()
exports.main = async (event, context) => {
try {
const result = await cloud.openapi.wxacode.getUnlimited({
//scene: event.userInfo.openId,
path:'pages/act_bm_list/act_bm_list',
scene:"a=1"
})
console.log(result)
return await cloud.uploadFile({
cloudPath: 'qrcode/' + event.userInfo.openId +'.png',
fileContent: result.buffer, //二进制数据
success: res => {
// 返回文件 ID
console.log(res.fileID)
},
fail: console.error
})
} catch (err) {
console.log(err)
return err
}
}
你好,自查下小程序页面路径