up
This commit is contained in:
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
- 编译项目
|
- 编译项目
|
||||||
```bash
|
```bash
|
||||||
go bulid [-x|-o]
|
go build [-x|-o]
|
||||||
```
|
```
|
||||||
|
|
||||||
- 运行项目
|
- 运行项目
|
||||||
|
@ -3,7 +3,6 @@ package api
|
|||||||
import (
|
import (
|
||||||
"SciencesServer/app/api/website/controller"
|
"SciencesServer/app/api/website/controller"
|
||||||
"SciencesServer/app/basic/api"
|
"SciencesServer/app/basic/api"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@ -19,6 +18,6 @@ func (*Config) Index(c *gin.Context) {
|
|||||||
api.APIFailure(err.(error))(c)
|
api.APIFailure(err.(error))(c)
|
||||||
return
|
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)
|
api.APIResponse(err, data)(c)
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ func GetTenantID() ApiHandle {
|
|||||||
value := c.GetHeader(config.ContentForTenantID)
|
value := c.GetHeader(config.ContentForTenantID)
|
||||||
|
|
||||||
if value == "" {
|
if value == "" {
|
||||||
|
// 登录身份
|
||||||
return uint64(1)
|
return uint64(1)
|
||||||
}
|
}
|
||||||
return utils.StringToUnit64(value)
|
return utils.StringToUnit64(value)
|
||||||
|
Reference in New Issue
Block a user