浏览代码

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

linhaohong 1 年之前
父节点
当前提交
105b12ac09
共有 1 个文件被更改,包括 1 次插入1 次删除
  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