接口联调
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user