|
@@ -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()
|
|
|
# 解密
|