Explorar o código

更新token 方法

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

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

@@ -284,10 +284,7 @@ func getCurrentUserIdByToken(ctx *context.Context) int64 {
 	}
 	token_user, err := token_model.ValidateToken(inputToken)
 	if err == nil {
-		wxUser := user_model.GetWxUserById(token_user.Id, true)
-		if wxUser != nil {
-			wxUserId = wxUser.Id
-		}
+		wxUserId = token_user.Id
 	}
 	return wxUserId
 }