From e8293c0a745bcde25754edc533902f8940961061 Mon Sep 17 00:00:00 2001 From: Ching L Date: Thu, 14 Nov 2024 16:28:18 +0800 Subject: [PATCH] =?UTF-8?q?chore(api):=20=E4=BF=AE=E6=94=B9=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=B6=88=E6=81=AF=E5=86=85=E5=AE=B9=20TUN-133?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 839d29a..792f9c6 100644 --- a/app.py +++ b/app.py @@ -467,7 +467,7 @@ def consume_stream(): bark_push('%s 添加成功' % good_name, '条形码 %s' % msg['data']) else: logger.error(f"Failed to process message: {msg['data']} {resp}") - bark_push('商品添加失败', '条形码 %s' % msg['data']) + bark_push('商品添加失败', '条形码 %s \n %s' % (msg['data'], resp.get('message'))) else: resp, status_code, good_name = consume_product_by_barcode(msg['data']) if status_code == 200: @@ -475,7 +475,7 @@ def consume_stream(): bark_push('%s 消耗成功' % good_name, '条形码 %s' % msg['data']) else: logger.error(f"Failed to process message: {msg['data']} {resp}") - bark_push('商品消耗失败', '条形码 %s' % msg['data']) + bark_push('商品消耗失败', '条形码 %s \n' % (msg['data'], resp.get('message'))) if consume_product_flag_key: r.delete(consume_product_flag_key)