Repository navigation
feat(mp-gateway,miniprogram,sdk): 小程序地图显示领地与区块网格 - #163
Merged
Merged
Conversation
- 网关新增 GET …/map/lands,只读转发地图服务 /api/lands,去掉领主玩家 id 与非法条目 - 小程序地图按区块画 land 模块领地(外轮廓、子区域虚线框、点击信息卡),新增「区块」网格开关 - SDK service.get 的 HTTP 回退不再使用 SAPI 中不存在的 URLSearchParams
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
小程序地图只读
…/map/regions(area 模块的矩形区域),land 模块的领地在地图服务的/api/lands里,网关从未转发,所以小程序看不到领地;小程序也没有网页版的「区块网格」图层。改动
GET …/map/lands(需要玩家会话),只读转发/api/lands;只透出名称、领主名、状态、等级、按维度分组的区块和子区域水平范围,不转发领主玩家 id,丢弃非法条目。core/map-lands.ts:领地几何(只描外轮廓、按 id 取色、标签点、点击查询),规则与 bluemap 网页web/src/lib/lands.ts一致。chunkGridStyle一致)。/map/lands时按没有领地处理。service.get的 HTTP 回退不再使用URLSearchParams(SAPI 引擎没有该对象,此前 bluemap 在 land 重载期间读取land.map会抛ReferenceError)。验证
/map/lands会话与字段过滤用例)