This commit is contained in:
henry
2022-03-08 14:33:32 +08:00
parent 8eeab34c34
commit cf757ce734
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
- 编译项目
```bash
go bulid [-x|-o]
go build [-x|-o]
```
- 运行项目

View File

@ -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)
}

View File

@ -36,6 +36,7 @@ func GetTenantID() ApiHandle {
value := c.GetHeader(config.ContentForTenantID)
if value == "" {
// 登录身份
return uint64(1)
}
return utils.StringToUnit64(value)