From 026c7e625e1b3a90a565ab236a90d84e9e38f666 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Wed, 28 Feb 2024 03:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20json=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/run.py b/app/run.py index 8b4ed9f..9391da8 100644 --- a/app/run.py +++ b/app/run.py @@ -20,9 +20,8 @@ config_path = os.environ.get("CONFIG_PATH", "./config/quark_config.json") app = Flask(__name__) app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d" -app.config["JSON_AS_ASCII"] = False -app.config["JSON_SORT_KEYS"] = False -app.config['JSONIFY_PRETTYPRINT_REGULAR'] = False +app.json.ensure_ascii = False +app.json.sort_keys = False def gen_md5(string):