554325746@qq.com
2020-02-19 970f48f48d1080c568c1d976e40e2570353ee232
fix router
2个文件已修改
4 ■■■■ 已修改文件
controllers/gb28181.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
router/router.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/gb28181.go
@@ -45,7 +45,7 @@
// @Router /data/api-v/gb28181/newGbId [get]
func (gbc Gb28181Controller) NewGbId(c *gin.Context) {
  areaCode := c.Query("code")
  if areaCode == "" || len(areaCode) != 6{
  if areaCode == "" {
      util.ResponseFormat(c, code.RequestParamError, "参数有误")
      return
  }
router/router.go
@@ -96,7 +96,7 @@
    gbApi := r.Group(urlPrefix + "/gb28181")
    {
        gbApi.GET("/findAreaByParentId", gb28181C.FindAreaByParentId)
        gbApi.GET("/newGbID",gb28181C.NewGbId)
        gbApi.GET("/newGbId",gb28181C.NewGbId)
    }
    //摄像机管理