diff --git a/app/svc/svc_medium_agent.go b/app/svc/svc_medium_agent.go index 67adfe4..b38424b 100644 --- a/app/svc/svc_medium_agent.go +++ b/app/svc/svc_medium_agent.go @@ -196,7 +196,7 @@ func GetMediumByAccountId(c *gin.Context, name, account string) string { } } if account != "" { - sess.And(" username like ?", "%"+name+"%", "%"+name+"%") + sess.And(" username like ?", "%"+name+"%") } sess.Find(&tmp) for _, v := range tmp {