Fix map overload in Chusan

This commit is contained in:
EmmyHeart 2024-09-14 01:28:35 +00:00
parent 7ebd9bfb8a
commit 8f4c08f825

View File

@ -104,7 +104,8 @@ class ChuniNew(ChuniBase):
return {"returnCode": "1"} return {"returnCode": "1"}
async def handle_get_user_map_area_api_request(self, data: Dict) -> Dict: async def handle_get_user_map_area_api_request(self, data: Dict) -> Dict:
user_map_areas = await self.data.item.get_map_areas(data["userId"]) map_area_ids = [int(area["mapAreaId"]) for area in data["mapAreaIdList"]]
user_map_areas = await self.data.item.get_map_areas(data["userId"], map_area_ids)
map_areas = [] map_areas = []
for map_area in user_map_areas: for map_area in user_map_areas: