修改几个主要的方法名

This commit is contained in:
zhl 2021-06-17 13:04:39 +08:00
parent 34077921e8
commit 102c2db617

View File

@ -16,19 +16,19 @@ class Item(BaseModel):
@app.post("/check_wx")
async def check_wx(item: Item):
async def check_with_wx(item: Item):
res_wechat = await msg_sec_check(item.content)
return res_wechat
@app.post("/check_bd")
async def check_wx(item: Item):
async def check_with_bd(item: Item):
res_baidu = await check_baidu(item.content)
return res_baidu
@app.post("/check_local")
async def check_local_def(item: Item):
async def check_with_local(item: Item):
res_local = check_local(item.content)
return res_local