微信小程序
exports.main = async (event, context) => {
db.collection('isRunning').get({
success:res=>{
console.log("结果为::::::::"+res.data[0].taskId)
return res.data[0].taskId
}
})
放在本地执行能读取到结果,在云函数执行返回 null,且 console.log("结果为:::)也没有输出。
谢谢!