Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
c27974eb0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/svc/svc_medium_agent.go

+ 1
- 1
app/svc/svc_medium_agent.go View File

@@ -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


Loading…
Cancel
Save