From 17d2cc4ebda2ce4a2f6f0b289ca77c64a1aee55e Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 18 Apr 2019 08:02:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebMain.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebMain.py b/WebMain.py index df26d30..3f6ae5e 100644 --- a/WebMain.py +++ b/WebMain.py @@ -78,6 +78,8 @@ def insertEncode(): Common.appendOperation("添加编码文件:{}".format(request.form["filename"])) Common.encodeQueue.put(request.form["filename"]) return jsonify({"message":"ok","code":200,"status":0}) + else: + return jsonify({"message":"no filename specific","code":400,"status":1}) @app.route("/upload/insert", methods=["POST"]) @@ -86,6 +88,8 @@ def insertUpload(): Common.appendOperation("添加上传文件:{}".format(request.form["filename"])) Common.uploadQueue.put(request.form["filename"]) return jsonify({"message":"ok","code":200,"status":0}) + else: + return jsonify({"message":"no filename specific","code":400,"status":1}) @app.route("/upload/finish", methods=["POST"])