批量处理的云函数调用失败,提示是什么意思?
//index.js
const cloud = require('wx-server-sdk');
cloud.init({
env: cloud.DYNAMIC_CURRENT_ENV
});
const db = cloud.database();
exports.main = async (event, context) => {
return await db.collection('comment').update({
data: {
good:1
},
});
};
云函数如上。上传并部署后,调用时出现如下提示,哪里有问题呢?