From 789d38603d73dabe8ae5f79c1a35a8d84c130b00 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 04 三月 2020 18:20:47 +0800
Subject: [PATCH] update protomsg
---
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