Merge pull request #276 from trheyi/main

[add] menu session data support
This commit is contained in:
Max 2022-12-01 03:01:36 +08:00 committed by GitHub
commit 9193a62329
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ func auth(field string, value string, password string, sid string) maps.Map {
}
// 读取菜单
menus := gou.NewProcess("yao.app.menu").Run()
menus := gou.NewProcess("yao.app.menu").WithSID(sid).Run()
return maps.Map{
"expires_at": token.ExpiresAt,
"token": token.Token,