ソースを参照

去掉session判断

abiao 4 年 前
コミット
bc7ef39dd3
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  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
 	}