Update api.py

This commit is contained in:
zhao-zg 2024-07-30 09:43:18 +08:00 committed by GitHub
parent e34133a3f4
commit 1b963dc0bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
api.py
View File

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