mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-12 05:10:42 +08:00
Update api.py
This commit is contained in:
parent
c0917a6cda
commit
77da4a8741
5
api.py
5
api.py
@ -77,11 +77,12 @@ def mr(status, **kwargs):
|
||||
async def login():
|
||||
print("login")
|
||||
data = await request.get_json()
|
||||
data["type"] = "password"
|
||||
if "type" not in data:
|
||||
data["type"] = "password"
|
||||
return loginPublic(data)
|
||||
|
||||
# 启动登录线程
|
||||
@app.route("/loginPassword", methods=["POST"])
|
||||
@app.route("/loginNew", methods=["POST"])
|
||||
async def loginNew():
|
||||
print("loginPassword")
|
||||
data = await request.get_json()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user