Browse Source

修改响应数据

locky 1 year ago
parent
commit
16992fdda0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/DeviceConfirmRegion.py

+ 1 - 1
Controller/DeviceConfirmRegion.py

@@ -280,7 +280,7 @@ def confirm_region_with_ip(request):
             area = 'overseas'
         elif region in ['香港', '澳门', '台湾']:
             area = 'overseas'
-        res = {region: area}
+        res = {'region': area}
         return response.json(0, res)
     except Exception as e:
         return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))