Explorar o código

禁止往缓存里添加数据

xyxie hai 1 ano
pai
achega
31d7aa1855
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      controllers/base_auth.go

+ 2 - 2
controllers/base_auth.go

@@ -281,7 +281,7 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
 	}
 
 	//新增uuid记录
-	{
+	/*{
 		if _, ok := AdminOperateRecordMap[urlPath]; !ok && !strings.Contains(urlPath, "cygx") {
 			var adminId int
 			var realName, params, ip, uriStr string
@@ -308,7 +308,7 @@ func (c *BaseAuthController) ServeJSON(encoding ...bool) {
 			headerStr := string(headerJson)
 			go cache.AdminOperateRecord(adminId, realName, uuid, uri, params, ip, userAgent, headerStr)
 		}
-	}
+	}*/
 
 	c.JSON(c.Data["json"], hasIndent, hasEncoding)
 }