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)