diff --git a/api.py b/api.py index 651a4d9..5df4d6d 100644 --- a/api.py +++ b/api.py @@ -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():