From 6b5b5e99117ecadac9d85c3888b1ca00263b31f1 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 31 Dec 2021 16:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E5=AE=A1=E7=90=86?= =?UTF-8?q?=E8=BF=94=E5=9B=9Edecision=5F2=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/.env.development | 4 ++-- hb_server/apps/wpm/signals.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hb_client/.env.development b/hb_client/.env.development index 003a43c..ef83e12 100644 --- a/hb_client/.env.development +++ b/hb_client/.env.development @@ -2,8 +2,8 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' -VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' +VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' +#VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/hb_server/apps/wpm/signals.py b/hb_server/apps/wpm/signals.py index 670f9c7..9b37b54 100644 --- a/hb_server/apps/wpm/signals.py +++ b/hb_server/apps/wpm/signals.py @@ -46,10 +46,10 @@ def handleTicket(sender, instance, created, **kwargs): wp = wt.wproduct decision = WProduct.NG_BACK_WORK - if 'decision_1' in ticket_data and ticket_data['decision_1']: - decision = ticket_data['decision_1'] - elif 'decision_2' in ticket_data and ticket_data['decision_2']: + if 'decision_2' in ticket_data and ticket_data['decision_2']: decision = ticket_data['decision_2'] + elif 'decision_1' in ticket_data and ticket_data['decision_1']: + decision = ticket_data['decision_1'] wp.ng_sign = decision