소스 검색

v3/uiduser/add'接口,view_password空的时候,返回错误信息

chanjunkai 5 년 전
부모
커밋
fa95c76d92
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Controller/UidUser.py

+ 2 - 0
Controller/UidUser.py

@@ -399,6 +399,8 @@ def v3addInterface(request):
         print(View_Password)
     except Exception as e:
         return response.json(111)
+    if not View_Password:
+        return response.json(111)   
     if all([UID, NickName, View_Account, Type, ChannelIndex]):
         tko = TokenObject(token)
         response.lang = tko.lang