// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
const db = cloud.database()
exports.main = async (event, context) => {
return await db.collection(event.tablename).where({
Value01: event.valueQ //此处的字段名称 Value01 能否用参数来表示
// 填入当前用户 openid
}).count()
}
[event.Value01]: event.valueQ