pzb 6 жил өмнө
parent
commit
6ee40f0f11

+ 7 - 4
Controller/UserBrandController.py

@@ -24,8 +24,11 @@ from Object.TokenObject import TokenObject
 from Service.CommonService import CommonService
 from collections import Counter
 '''
-http://192.168.136.45:8077/userbrandinfo/query?token=test&page=1&line=10
-http://192.168.136.39:8000/userbrandinfo/query?token=test&page=1&line=5
+http://192.168.136.39:8000/userbrandinfo/queryByAdmin?token=test&page=1&line=10  全部记录
+http://192.168.136.39:8000/userbrandinfo/queryArea?token=test   市的区域统计
+http://192.168.136.39:8000/userbrandinfo/queryDeviceSupplier?token=test 品牌统计
+http://192.168.136.39:8000/userbrandinfo/queryAllByAdmin?token=test&page=1&line=10  全部记录中过滤查询每个用户的最新一条数据
+
 http://192.168.136.39:8000/userbrandinfo/queryAll?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySUQiOiIxNTQzOTA5MDUwNDEzMTM4MDAxMzgwMDAiLCJsYW5nIjoiY24iLCJ1c2VyIjoiMTM4MDAxMzgwMDEiLCJtX2NvZGUiOiIxMjM0MTMyNDMyMTQiLCJleHAiOjE1NTk4OTY4NTd9.nhK3VSghSGjyXKjel4woz7R_3bhjgqQDlX-ypYsklNU&page=1&line=5
 '''
 
@@ -112,8 +115,8 @@ class UserBrandInfo(View):
             latitude = latitude
         else:
             status = 0
-            jsonData = CommonService.getIpIpInfo(ip=self.clientIP,lang='EN')
-            print(jsonData['city_name'])
+            print (self.clientIP)
+            jsonData = CommonService.getIpIpInfo(ip=self.clientIP,lang='CN')
             country = jsonData['country_name']
             province = jsonData['region_name']
             city = jsonData['city_name']