const query = ` db.collection('activity').where({ title : new db.RegExp({ regexp: ${params.keyword}, options: 'i', }) }).skip(${params.pageNum*PageSize}).limit(${PageSize}).orderBy('createTime', 'desc').get()`const access_token = await getAccessToken() const options = { method: 'POST', uri: `https://api.weixin.qq.com/tcb/databasequery?access_token=${access_token}`, body: { query, env: ctx.state.env }, json: true }; return await rp(options).then(res=>{ return res }).catch(err=>{ console.error(err) }) |
外部http调用小程序云函数,本串发送后,返回
-605101 微信后台 HTTP API 错误:查询语句解析失败 |
主要是where里面报错,请问where里面要怎么写?
