From 5eba2f1d61d10796a944b5e444df4bc8ecbb52c3 Mon Sep 17 00:00:00 2001 From: CaIon Date: Sat, 5 Jul 2025 16:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor(model):=20update=20cont?= =?UTF-8?q?ext=20key=20retrieval=20to=20use=20token=20group=20instead=20of?= =?UTF-8?q?=20user=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/model.go b/controller/model.go index 360fffa6..ff716e5d 100644 --- a/controller/model.go +++ b/controller/model.go @@ -139,7 +139,7 @@ func ListModels(c *gin.Context) { return } group := userGroup - tokenGroup := common.GetContextKeyString(c, constant.ContextKeyUserGroup) + tokenGroup := common.GetContextKeyString(c, constant.ContextKeyTokenGroup) if tokenGroup != "" { group = tokenGroup }