feat:完善项目信息

This commit is contained in:
henry
2022-01-11 11:10:59 +08:00
parent 7cab0fb354
commit 8006d57506
3 changed files with 23 additions and 12 deletions

View File

@ -32,12 +32,12 @@ func GetSession() ApiHandle {
func GetTenantID() ApiHandle {
return func(c *gin.Context) interface{} {
value, isExist := c.Get(config.ContentForTenantID)
value := c.GetHeader(config.ContentForTenantID)
if !isExist {
if value == "" {
return 0
}
return utils.StringToUnit64(value.(string))
return utils.StringToUnit64(value)
}
}