Commit 19ce63ce authored by hujiebin's avatar hujiebin

more log

parent 04e3ed4f
......@@ -366,6 +366,7 @@ func TakeSupportAward(c *gin.Context) (*mycontext.MyContext, error) {
msg = fmt.Sprintf(resMul.Content, codeMap[uid])
}
if times, err := group_c.GetGroupSupportAwardIpTimes(model, ip); err != nil || times >= 6 {
myContext.Log.Infof("ip more 6:%v-%v-%v", times, ip, uid)
return myContext, myerr.NewBusinessCodeNoCheck(bizerr.GroupSupportIpLimit.GetCode(), msg, myerr.BusinessData{})
}
}
......@@ -376,6 +377,7 @@ func TakeSupportAward(c *gin.Context) (*mycontext.MyContext, error) {
if resMul, _ := res_m.GetResMultiTextBy(model.Db, msg_e.MSG_ID_REPEAT_ACCOUNT, lang); resMul != nil {
msg = fmt.Sprintf(resMul.Content, codeMap[ipUser[ip]])
}
myContext.Log.Infof("ip more 6 two:%v-%v-%v", cnt, ip, ipUser[ip])
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