diff --git a/app/svc/svc_medium_agent.go b/app/svc/svc_medium_agent.go index dee38a7..6923d8a 100644 --- a/app/svc/svc_medium_agent.go +++ b/app/svc/svc_medium_agent.go @@ -121,6 +121,7 @@ func MediumBindAgentSave(c *gin.Context) { return } agentDb := implement2.NewAgentDb(MasterDb(c)) + req.Username = strings.ReplaceAll(req.Username, " ", "") username, _ := agentDb.GetSuperAgentByUsername(req.Username) if username == nil { e.OutErr(c, 400, e.NewErr(400, "渠道代理不存在"))