From 3fc2d12c108b13b9288dc17f071a9254443b0851 Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Fri, 16 Apr 2021 14:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/controllers/index.js b/controllers/index.js index 1fad19c..f23c315 100644 --- a/controllers/index.js +++ b/controllers/index.js @@ -73,9 +73,15 @@ let addshop = async (ctx,next)=>{ } let findshop = async (ctx, next) => { - ctx.body = await dbs.find("shop") + let q = {} + if(ctx.query.name){ + q.mingcheng = ctx.query.name + } + ctx.body = await dbs.find("shop",q) } + + let logins = async(ctx,next)=>{ let {user , pwd} = ctx.request.body console.log(123)