Browse Source

优化代码

zhangdongming 2 tháng trước cách đây
mục cha
commit
4baad43dff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/SysMsg.py

+ 1 - 1
Controller/SysMsg.py

@@ -205,7 +205,7 @@ class SysMsgView(View):
                     for uid_set_q in uid_set_qs:
                         if uid_set_q['uid'] == sm_q['uid']:
                             sm_q['devNickName'] = uid_set_q['nickname']
-                            sm_q['devType'] = int(uid_set_q['device_type'])
+                            sm_q['devType'] = uid_set_q['device_type']
                     data_res.append(sm_q)
             return response.json(0, {'data': data_res, 'count': count})
         except Exception as e: