Bläddra i källkod

定制客户模块 APP扫码工具接口

linhaohong 1 år sedan
förälder
incheckning
2849c8740e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Controller/CustomCustomer/CustomCustomerController.py

+ 1 - 1
Controller/CustomCustomer/CustomCustomerController.py

@@ -48,7 +48,7 @@ class CustomCustomerView(View):
             return response.json(444)
         try:
             custom_customer = CustomCustomerOrderInfo.objects.filter(order_number=order_number).first()
-            if custom_customer:
+            if not custom_customer:
                 return response.json(173)
             custom_customer_data = {'cId': custom_customer.id}
             return response.json(0, custom_customer_data)