Explorar o código

去掉session判断

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
bc7ef39dd3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      go/gopath/src/fohow.com/apps/init.go

+ 2 - 1
go/gopath/src/fohow.com/apps/init.go

@@ -239,7 +239,8 @@ func (self *BaseController) GetCurrentUserId() int64 {
 }
 
 func (self *BaseController) GetCurrentUser(useCache bool) *user_model.User {
-	id := self.GetCurrentUserId()
+
+	id := self.GetCurrentWxUser(useCache).UserId
 	if id <= 0 {
 		return nil
 	}