瀏覽代碼

禁止往缓存里添加数据

xyxie 11 月之前
父節點
當前提交
31d7aa1855
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)
 }