Commit 04e3ed4f authored by iamhujiebin's avatar iamhujiebin

fix:codeMap,明早上线

parent 88f0aca9
...@@ -372,9 +372,9 @@ func TakeSupportAward(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -372,9 +372,9 @@ func TakeSupportAward(c *gin.Context) (*mycontext.MyContext, error) {
} }
for ip, cnt := range sameIp { for ip, cnt := range sameIp {
if cnt >= 6 { if cnt >= 6 {
var msg = fmt.Sprintf(bizerr.GroupSupportIpLimit.GetMsg(), ipUser[ip]) var msg = fmt.Sprintf(bizerr.GroupSupportIpLimit.GetMsg(), codeMap[ipUser[ip]])
if resMul, _ := res_m.GetResMultiTextBy(model.Db, msg_e.MSG_ID_REPEAT_ACCOUNT, lang); resMul != nil { if resMul, _ := res_m.GetResMultiTextBy(model.Db, msg_e.MSG_ID_REPEAT_ACCOUNT, lang); resMul != nil {
msg = fmt.Sprintf(resMul.Content, ipUser[ip]) msg = fmt.Sprintf(resMul.Content, codeMap[ipUser[ip]])
} }
return myContext, myerr.NewBusinessCodeNoCheck(bizerr.GroupSupportIpLimit.GetCode(), msg, myerr.BusinessData{}) return myContext, myerr.NewBusinessCodeNoCheck(bizerr.GroupSupportIpLimit.GetCode(), msg, myerr.BusinessData{})
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment