locky 2 سال پیش
والد
کامیت
bb02d715ff
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Controller/UserController.py

+ 2 - 1
Controller/UserController.py

@@ -710,7 +710,8 @@ class refreshTokenViewV3(TemplateView):
             # 国外正式服,判断是否需要重新登陆
             user_qs = Device_User.objects.filter(userID=userID).values('password', 'region_country')
             if CONFIG_INFO == CONFIG_US or CONFIG_INFO == CONFIG_EUR:
-                country_id = user_qs['region_country']
+                country_id = user_qs[0]['region_country']
+                LOGGER.info('刷新token, country_id:{}'.format(country_id))
                 country_qs = CountryModel.objects.filter(id=country_id).values('region_id')
                 if country_qs.exists():
                     region_id = country_qs[0]['region_id']