Przeglądaj źródła

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

linhaohong 1 rok temu
rodzic
commit
105b12ac09

+ 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