From e2db5842d349c1a889b46ce9c756bb236bfb2e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9B=E8=BF=9B=E5=95=8A?= <1830275783@qq.com> Date: Mon, 11 Apr 2022 22:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniCloud-aliyun/cloudfunctions/provideQuestion/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/uniCloud-aliyun/cloudfunctions/provideQuestion/index.js b/uniCloud-aliyun/cloudfunctions/provideQuestion/index.js index 377755d..674ae57 100644 --- a/uniCloud-aliyun/cloudfunctions/provideQuestion/index.js +++ b/uniCloud-aliyun/cloudfunctions/provideQuestion/index.js @@ -4,11 +4,9 @@ exports.main = async (event, context) => { //event为客户端上传的参数 // const count = await db.collection('questionList').count() // 根据level字段返回不同的数据 - let res = await db.collection('questionList').where({ - wordData:{ - level:event.level - } - }).limit(1).get() + let res = await db.collection('allWordList').where({ + difficulty:event.level + }).limit(10).get() let data = res.data console.log('入参:页码+难度', event,res)