Quellcode durchsuchen

定制客户模块 修改16进制转化代码

linhaohong vor 1 Jahr
Ursprung
Commit
105b12ac09
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Controller/CustomCustomer/CustomCustomerController.py

+ 1 - 1
Controller/CustomCustomer/CustomCustomerController.py

@@ -168,7 +168,7 @@ class CustomCustomerView(View):
         device_type = 0
         if len(full_code) == 14:
             serial_number = full_code[:9]
-            device_type = full_code[-4:].int(16)
+            device_type = int(full_code[-4:], 16)
         elif len(full_code) == 20:
             uid = full_code
         return uid, serial_number, device_type