const cloud = require('wx-server-sdk')
cloud.init({
env: cloud.DYNAMIC_CURRENT_ENV
})
exports.main = async (event, context) => {
console.log(event)
switch (event.action) {
case 'getWXACodeUnlimit': {
return getWXACodeUnlimit(event)
}
default: {
return
}
}
}
async function getWXACodeUnlimit(event) {
var scene = event.scene;
var page = event.page;
var width = event.width;
var line_color = event.line_color;
try {
const result = await cloud.openapi.wxacode.getUnlimited({
scene: scene,
page: page,
width: width,
line_color:line_color,
})
return result
} catch (err) {
console.log(err)
return err
}
}
代码,之前 都没问题,不知道怎么的就不行了,报错{"errCode":-404011,"errMsg":"cloud.callFunction:fail requestID 3efdcc8f-aaec-11ea-8462-5254001dad8e, cloud function service error code -501004, error message Get container fail:110432; at cloud.callFunction api; ","requestID":"3efdcc8f-aaec-11ea-8462-5254001dad8e"}