密钥查询功能完成

This commit is contained in:
2023-12-13 08:36:07 +08:00
parent e42a2042a9
commit f16d34e5c3
4 changed files with 64 additions and 7 deletions

View File

@@ -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 :