Browse Source

view_password when '' fix

chenjunkai 6 years ago
parent
commit
845cf612cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -296,7 +296,7 @@ def addInterface(request):
     UID = request_dict.get('UID', None)
     NickName = request_dict.get('NickName', None)
     View_Account = request_dict.get('View_Account', None)
-    View_Password = request_dict.get('View_Password', None)
+    View_Password = request_dict.get('View_Password', '')
     Type = request_dict.get('Type', None)
     ChannelIndex = request_dict.get('ChannelIndex', None)
     if all([UID, NickName, View_Account, Type, ChannelIndex]):