mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-12 13:42:11 +08:00
Update api.py
This commit is contained in:
parent
a5d76a407d
commit
c0917a6cda
11
api.py
11
api.py
@ -71,12 +71,6 @@ def mr(status, **kwargs):
|
||||
|
||||
|
||||
# -----router-----
|
||||
# 传入手机号,启动登录线程
|
||||
@app.route("/loginPhone", methods=["POST"])
|
||||
async def loginPhone():
|
||||
print("loginPhone")
|
||||
data = await request.get_json()
|
||||
return loginPublic(data)
|
||||
|
||||
# 传入账号密码,启动登录线程
|
||||
@app.route("/login", methods=["POST"])
|
||||
@ -86,12 +80,11 @@ async def login():
|
||||
data["type"] = "password"
|
||||
return loginPublic(data)
|
||||
|
||||
# 传入账号密码,启动登录线程
|
||||
# 启动登录线程
|
||||
@app.route("/loginPassword", methods=["POST"])
|
||||
async def loginPassword():
|
||||
async def loginNew():
|
||||
print("loginPassword")
|
||||
data = await request.get_json()
|
||||
|
||||
return loginPublic(data)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user