fix: get_area_from_point 获取cache bug

This commit is contained in:
caoqianming 2024-08-19 16:17:33 +08:00
parent 28958b405c
commit e2d652f9ef
1 changed files with 2 additions and 1 deletions

View File

@ -663,7 +663,8 @@ def get_area_from_point(x: int, y: int, floorNo: str, area_fix_id):
area_temp = None
area_list = cache.get('area_list', None)
if not area_list:
area_list = cache_areas_info()
cache_areas_info()
area_list = cache.get('area_list', None)
point = Point(x, y)
for i in area_list:
if floorNo == i['floor_no']: