feat:完善项目信息
This commit is contained in:
@ -32,8 +32,12 @@ func GetSession() ApiHandle {
|
||||
|
||||
func GetTenantID() ApiHandle {
|
||||
return func(c *gin.Context) interface{} {
|
||||
value, _ := c.Get(config.ContentForTenantID)
|
||||
return value
|
||||
_, isExist := c.Get(config.ContentForTenantID)
|
||||
//value
|
||||
if !isExist {
|
||||
return 0
|
||||
}
|
||||
return uint64(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user