up
This commit is contained in:
@ -3,7 +3,6 @@ package api
|
||||
import (
|
||||
"SciencesServer/app/api/website/controller"
|
||||
"SciencesServer/app/basic/api"
|
||||
"strings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@ -19,6 +18,6 @@ func (*Config) Index(c *gin.Context) {
|
||||
api.APIFailure(err.(error))(c)
|
||||
return
|
||||
}
|
||||
data, err := controller.NewConfig()(nil).Instance(form.Kind, strings.Split(form.Key, ","))
|
||||
data, err := controller.NewConfig()(nil).Instance(form.Kind, form.Key)
|
||||
api.APIResponse(err, data)(c)
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ func GetTenantID() ApiHandle {
|
||||
value := c.GetHeader(config.ContentForTenantID)
|
||||
|
||||
if value == "" {
|
||||
// 登录身份
|
||||
return uint64(1)
|
||||
}
|
||||
return utils.StringToUnit64(value)
|
||||
|
Reference in New Issue
Block a user