[add] menu session data support

This commit is contained in:
Max 2022-12-01 02:44:57 +08:00
parent 4ce4a0bc27
commit 61570f4a0f

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{ return maps.Map{
"expires_at": token.ExpiresAt, "expires_at": token.ExpiresAt,
"token": token.Token, "token": token.Token,