Explorar o código

完善上传uid文件数据判断逻辑2

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
036dff1632
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/VPGController.py

+ 1 - 1
Controller/VPGController.py

@@ -249,7 +249,7 @@ def do_upload_uid(request):
                     else:
                         return response.json(376)
                 # tutk uid长度为14或20
-                elif len(uid) != 14 or len(uid) != 20:
+                elif len(uid) != 14 and len(uid) != 20:
                     return response.json(376)
                 UID.uid = uid
                 bulk.append(UID)