Ver código fonte

暂时注释代码

locky 2 anos atrás
pai
commit
4c609509cd
1 arquivos alterados com 8 adições e 8 exclusões
  1. 8 8
      Controller/UserController.py

+ 8 - 8
Controller/UserController.py

@@ -712,14 +712,14 @@ class refreshTokenViewV3(TemplateView):
                     return response.json(104)
 
                 # 国外正式服,判断是否需要重新登陆
-                if CONFIG_INFO == CONFIG_US or CONFIG_INFO == CONFIG_EUR:
-                    country_id = user_qs['region_country']
-                    country_qs = CountryModel.objects.filter(id=country_id).values('region_id')
-                    if country_qs.exists():
-                        region_id = country_qs[0]['region_id']
-                        if (CONFIG_INFO == CONFIG_US and region_id == 4) or \
-                                (CONFIG_INFO == CONFIG_EUR and region_id != 4):
-                            return response.json(309)
+                # if CONFIG_INFO == CONFIG_US or CONFIG_INFO == CONFIG_EUR:
+                #     country_id = user_qs['region_country']
+                #     country_qs = CountryModel.objects.filter(id=country_id).values('region_id')
+                #     if country_qs.exists():
+                #         region_id = country_qs[0]['region_id']
+                #         if (CONFIG_INFO == CONFIG_US and region_id == 4) or \
+                #                 (CONFIG_INFO == CONFIG_EUR and region_id != 4):
+                #             return response.json(309)
 
                 password = password.strip()
                 # 解密