mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
Update to version 10.5.0 | Read HISTORY.md for more
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
This commit is contained in:
@@ -97,6 +97,6 @@ type basicSubController struct {
|
||||
}
|
||||
|
||||
func (c *basicSubController) Get() string {
|
||||
count, _ := c.Session.GetIntDefault("count", 1)
|
||||
count := c.Session.GetIntDefault("count", 1)
|
||||
return fmt.Sprintf("Hello from basicSubController.\nRead-only visits count: %d", count)
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ type UserController struct {
|
||||
const userIDKey = "UserID"
|
||||
|
||||
func (c *UserController) getCurrentUserID() int64 {
|
||||
userID, _ := c.Session.GetInt64Default(userIDKey, 0)
|
||||
userID := c.Session.GetInt64Default(userIDKey, 0)
|
||||
return userID
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user