Explorar el Código

禁止往缓存里添加数据

xyxie hace 11 meses
padre
commit
31d7aa1855
Se han modificado 1 ficheros con 2 adiciones y 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)
 }