Pārlūkot izejas kodu

修复删除相同用户bug

peng 2 gadi atpakaļ
vecāks
revīzija
f11115c282
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      Controller/UserController.py

+ 2 - 1
Controller/UserController.py

@@ -687,7 +687,8 @@ class refreshTokenViewV3(TemplateView):
         request_dict = request.GET
         return self.validation(request_dict)
 
-    def delete_user_and_device(self, user_id):
+    @staticmethod
+    def delete_user_and_device(user_id):
         # 删除不同区域相同用户
         data = {'userID': user_id}
         if CONFIG_INFO == CONFIG_US: