From c50d1b56a7ad886fb3b92b09bcd4552dd6bfb108 Mon Sep 17 00:00:00 2001 From: AKW <2497744746@qq.com> Date: Fri, 15 Dec 2023 09:30:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9D=80=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jqr/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jqr/tasks.py b/apps/jqr/tasks.py index f77144f..3f4fe7f 100644 --- a/apps/jqr/tasks.py +++ b/apps/jqr/tasks.py @@ -14,7 +14,7 @@ logger = logging.getLogger('apps') @shared_task(name='save_add_contact', queue='contact') def save_add_contact(data, corpinfo, *args, **kwargs): state = data.get('state') - if state and state.startswith('mg'): + if state and state.startswith('mg') and '_' in state: [_, _, qrcodeid] = state.split('_') data['qrcodeid'] = qrcodeid # TODO 处理我们自己的活码