Quellcode durchsuchen

feature:调试ota新接口bug fix

chenjunkai vor 6 Jahren
Ursprung
Commit
f722b2fba3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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')