添加了名称

This commit is contained in:
theluyuan 2021-04-16 14:04:01 +08:00
parent d0868e6043
commit 3fc2d12c10

View File

@ -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)