return await db.collection('user').where({
_openid:openid
})
突然不能使用,之前还可以。
日志报错
2020-07-01T10:41:45.801Z Error: 查询参数对象值不能均为undefined
at CollectionReference.where (/var/user/node_modules/@cloudbase/node-sdk/node_modules/@cloudbase/database/dist/commonjs/query.js:122:19)
at CollectionReference.where (/var/user/node_modules/wx-server-sdk/index.js:1414:38)
at EventHandler.exports.main [as realHandler] (/var/user/index.js:50:39)
at EventHandler.handle (/var/runtime/node8/bootstrap.js:402:28)
at invoke (/var/runtime/node8/bootstrap.js:205:22)
at Timeout.setTimeout [as _onTimeout] (/var/runtime/node8/bootstrap.js:137:9)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)