提交 1a8b78bbab4496b813332aac8fc7a2fce899b30a

作者 nheweijun
1 个父辈 20268430

2022.02.17 修复切片服务修改问题

... ... @@ -45,6 +45,10 @@ class Api(ApiTemplate):
45 45 tilesche = TileScheme.query.filter_by(guid=self.para.get("scheme_guid")).one_or_none()
46 46 tile_update["scheme"] = json.dumps(ModelVisitor.object_to_json(tilesche))
47 47
  48 + if self.para.get("scheme"):
  49 + tile_update["scheme"] = json.dumps(json.loads(self.para.get("scheme")))
  50 +
  51 +
48 52 #通知tileserver,更新缓存
49 53 ts:TileService = TileService.query.filter_by(service_guid=guid).one_or_none()
50 54 se = service.one_or_none()
... ... @@ -130,6 +134,11 @@ class Api(ApiTemplate):
130 134 "type": "string",
131 135 "description": "[电子地图,影像地图]切片方案"},
132 136
  137 + {"name": "scheme",
  138 + "in": "formData",
  139 + "type": "string",
  140 + "description": "[电子地图,影像地图]切片方案"},
  141 +
133 142 # 电子地图参数
134 143 {"name": "overview",
135 144 "in": "formData",
... ...
注册登录 后发表评论