From e5c8c2c4cba23f1eb7a633cb94461b6a3cf48773 Mon Sep 17 00:00:00 2001 From: "apan_youxiang@163.com" Date: Sat, 27 Aug 2022 16:38:38 +0800 Subject: [PATCH] 1 --- apps/home/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/home/views.py b/apps/home/views.py index 0b571ad..613882e 100644 --- a/apps/home/views.py +++ b/apps/home/views.py @@ -57,7 +57,12 @@ def get_home_info(): } return jsonify(Utils.true_return(data=resp_data)) except Exception as error: - return jsonify(Utils.except_return(msg=f"error:{error}", data=resp_data)) + return jsonify( + Utils.except_return( + msg=f"error:{error}", + data=resp_data + ) + ) # 试剂余量