浏览代码

修改响应数据

locky 1 年之前
父节点
当前提交
16992fdda0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)))