Jelajahi Sumber

欧洲服务器不删除其他地区相同用户

peng 2 tahun lalu
induk
melakukan
9d8453b626
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      Controller/UserController.py

+ 4 - 4
Controller/UserController.py

@@ -38,8 +38,7 @@ from jwt.algorithms import RSAAlgorithm
 from ratelimit.decorators import ratelimit
 
 from Ansjer.config import AuthCode_Expire, SERVER_DOMAIN, APNS_CONFIG, JPUSH_CONFIG, FCM_CONFIG, TUTK_PUSH_DOMAIN
-from Ansjer.config import BASE_DIR, CONFIG_US, CONFIG_EUR, CONFIG_INFO, SERVER_DOMAIN_US, SERVER_DOMAIN_EUR, CONFIG_CN, \
-    CONFIG_TEST, SERVER_DOMAIN_CN, SERVER_DOMAIN_TEST
+from Ansjer.config import BASE_DIR, CONFIG_US, CONFIG_EUR, CONFIG_INFO, SERVER_DOMAIN_EUR, CONFIG_CN
 from Controller.CheckUserData import DataValid, date_handler, RandomStr
 from Model.models import Device_User, Role, UidPushModel, UserOauth2Model, UserExModel, Device_Info, UidSetModel, \
     UserAppFrequencyModel, CountryIPModel, CountryModel, UidChannelSetModel, Order_Model, UID_Bucket, Unused_Uid_Meal, \
@@ -694,8 +693,9 @@ class refreshTokenViewV3(TemplateView):
         url_list = CommonService.get_orders_domain_name_list()
         if SERVER_DOMAIN_EUR in url_list:
             url_list.remove(SERVER_DOMAIN_EUR)
-        for url in url_list:
-            requests.post(url=url+'v3/account/deleteUser', data=data, timeout=3)
+        if CONFIG_INFO != CONFIG_EUR:
+            for url in url_list:
+                requests.post(url=url+'v3/account/deleteUser', data=data, timeout=3)
 
     def validation(self, request_dict):
         token = request_dict.get('token', None)