mirror of
https://github.com/Kakune55/PyGetGPT.git
synced 2025-12-14 08:13:55 +08:00
密钥查询功能完成
This commit is contained in:
9
main.py
9
main.py
@@ -96,6 +96,15 @@ def createkey():
|
||||
return flask.render_template("createKey.html",resq=resq)
|
||||
return "未登录 "
|
||||
|
||||
@app.route('/admin/lookupkey', methods=['POST','GET'])
|
||||
def lookupkey():
|
||||
if "admin" in flask.session :
|
||||
if flask.request.method == "GET":
|
||||
return flask.render_template("lookupKey.html",resq="null")
|
||||
resq = db.userSurplus(flask.request.form["key"])
|
||||
return flask.render_template("lookupKey.html",resq=resq)
|
||||
return "未登录 "
|
||||
|
||||
@app.route('/admin/operate', methods=['POST','GET'])
|
||||
def operate():
|
||||
if "admin" in flask.session :
|
||||
|
||||
Reference in New Issue
Block a user