小白想问问这个是云函数的错误怎么修改?
//下面是云函数的代码
exports.main = async (event, context) => {
console.log("event.floorIndex=",event.floorIndex)
console.log("event.datePosition=",event.datePosition)
return await cloud.database().collection("position_info").where({
floor :event.floorIndex,
week :event.datePosition
}).get();
}