chenshibin 4 жил өмнө
parent
commit
ad9a13c8e5
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      Controller/UidUser.py

+ 2 - 1
Controller/UidUser.py

@@ -61,7 +61,8 @@ def addInterface(request):
         if tko.code == 0:
             userID = tko.userID
             re_uid = re.compile(r'^[A-Za-z0-9]{20}$')
-            if re_uid.match(UID):
+            sy_uid = re.compile(r'^[A-Za-z0-9]{14}$')
+            if re_uid.match(UID) or sy_uid.match(UID):
                 is_ap = int(is_ap)
                 is_exist = UidUserModel.objects.filter(UID=UID, userID_id=userID, is_ap=is_ap)
                 if is_exist: