添加强制清理功能,添加百度云上传功能,部分逻辑修改

This commit is contained in:
2019-04-29 09:50:26 +08:00
parent 43e161ebb6
commit f1b4a878a5
5 changed files with 56 additions and 28 deletions

View File

@ -23,8 +23,6 @@ def index():
def readConfig():
config = Common.config.copy()
config.pop("b_p")
config.pop("mtd")
config.pop("del")
config.pop("mv")
return jsonify(config)
@ -88,6 +86,14 @@ def toggleForceStartUploadThread():
}})
@app.route("/force/start/clean", methods=["POST"])
def toggleForceStartUploadThread():
Common.doClean(True)
Common.appendOperation("强制执行清理程序")
return jsonify({"message":"ok","code":200,"status":0,"data":{
}})
@app.route("/encode/insert", methods=["POST"])
def insertEncode():
if "filename" in request.form and os.path.exists(request.form["filename"]):