Pārlūkot izejas kodu

根据设备的ip返回域名和地区id 2

locky 3 gadi atpakaļ
vecāks
revīzija
aeeb17a217
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      Controller/DeviceConfirmRegion.py

+ 2 - 1
Controller/DeviceConfirmRegion.py

@@ -86,7 +86,8 @@ class ConfirmRegionV2(TemplateView):
                 device_domain_qs.update(**data_dict)
             else:
                 device_domain_qs.create(**data_dict)
-            return response.json(0, {'request_api_url': api})
+            res = {'request_api_url': api, 'region_id': region_id}
+            return response.json(0, res)
         except Exception as e:
             print(e)
             return response.json(500, repr(e))