Update api.py

This commit is contained in:
zhao-zg 2024-07-28 14:32:51 +08:00 committed by GitHub
parent b99c4a7b5c
commit d2a425251b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
api.py
View File

@ -95,7 +95,10 @@ async def loginPhone():
workList[u.uid].status = "pending"
r = mr("pass", uid=u.uid, msg=f"{u.account}处理中, 到/check查询处理进度")
return r
# -----router-----
# 传入账号密码,启动登录线程
@app.route("/loginPassword", methods=["POST"])
async def login():
await loginPassword()
# 传入账号密码,启动登录线程
@app.route("/loginPassword", methods=["POST"])
async def loginPassword():