Explorar o código

feature:调试ota新接口bug fix

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
f722b2fba3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/EquipmentOTA.py

+ 1 - 1
Controller/EquipmentOTA.py

@@ -178,7 +178,7 @@ class EquipmentVersionView(View):
     def do_check_ver(self, request_dict, response):
         code = request_dict.get('code', None)
         ov = request_dict.get('ov', None)
-        uid = request_dict.get('uid', None)
+        uid = request_dict.get('uid', '')
         if not code:
             return response.json(444, 'code')
         eqs = Equipment_Version.objects.filter(code=uid, status=1, lang='en').order_by('-data_joined')