From e371ea3479d0f9c1a89ea04ac25fe49ee7154a50 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期日, 28 六月 2020 11:10:19 +0800
Subject: [PATCH] fix url

---
 controllers/gb28181.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/controllers/gb28181.go b/controllers/gb28181.go
index 1aade15..9ff0955 100644
--- a/controllers/gb28181.go
+++ b/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
   }

--
Gitblit v1.8.0