Skip to content

Commit

Permalink
Merge pull request #9 from Xuexiang825/patch-1
Browse files Browse the repository at this point in the history
bc引用对象未定义,应为self
  • Loading branch information
george518 authored Mar 15, 2018
2 parents 1a7548a + 94e5b90 commit 9ca85de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (self *BaseController) isPost() bool {

//获取用户IP地址
func (self *BaseController) getClientIp() string {
s := bc.Ctx.Request.RemoteAddr
s := self.Ctx.Request.RemoteAddr
l := strings.LastIndex(s, ":")
return s[0:l]
}
Expand Down

0 comments on commit 9ca85de

Please sign in to comment.