mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-11-29 02:42:51 +00:00
fix nil pointer
This commit is contained in:
parent
5c25855635
commit
97729cb3dc
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ func (a *InboundController) initRouter(g *gin.RouterGroup) {
|
||||||
func (a *InboundController) getInbounds(c *gin.Context) {
|
func (a *InboundController) getInbounds(c *gin.Context) {
|
||||||
user := session.GetLoginUser(c)
|
user := session.GetLoginUser(c)
|
||||||
if user == nil {
|
if user == nil {
|
||||||
|
user = &model.User{}
|
||||||
user.Id = 1
|
user.Id = 1
|
||||||
}
|
}
|
||||||
inbounds, err := a.inboundService.GetInbounds(user.Id)
|
inbounds, err := a.inboundService.GetInbounds(user.Id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue