Browse Source

非空判断

zhangdongming 3 years ago
parent
commit
afc2f30ffd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/OTAEquipment.py

+ 2 - 2
Controller/OTAEquipment.py

@@ -545,9 +545,9 @@ def getNewVerInterface(request):
             expire = 3600 * 24 * 2 + 600 + now_stamp
 
             str_uuid = str(tko.userID)
-            if serial_number:
+            if serial_number and serial_number != 'null':
                 str_uuid += serial_number
-            elif uid:
+            elif uid and uid != 'null':
                 str_uuid += uid
             str_uuid += now_ver
             device_info_key = 'ASJ:SERVER:VERSION:{}'.format(str_uuid)