From c27974eb0bafeeb525815d79de8bd9ca01808def Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 27 Sep 2024 11:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_medium_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/svc/svc_medium_agent.go b/app/svc/svc_medium_agent.go index 6923d8a..b02d586 100644 --- a/app/svc/svc_medium_agent.go +++ b/app/svc/svc_medium_agent.go @@ -122,7 +122,7 @@ func MediumBindAgentSave(c *gin.Context) { } agentDb := implement2.NewAgentDb(MasterDb(c)) req.Username = strings.ReplaceAll(req.Username, " ", "") - username, _ := agentDb.GetSuperAgentByUsername(req.Username) + username, _ := agentDb.GetAgent(utils.StrToInt(req.Username)) if username == nil { e.OutErr(c, 400, e.NewErr(400, "渠道代理不存在")) return