Browse Source

Merge branch 'master' into gva_gormv2_dev

main
奇淼(piexlmax 4 years ago
committed by GitHub
parent
commit
a2b77c4ed3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md
  2. 5
      server/service/sys_casbin.go

4
README.md

@ -223,12 +223,12 @@ zap:
#### 2.3.1 安装 swagger #### 2.3.1 安装 swagger
##### (1)可以科学上网
##### (1)可以访问外国网站
```` ````
go get -u github.com/swaggo/swag/cmd/swag go get -u github.com/swaggo/swag/cmd/swag
```` ````
##### (2)无法科学上网
##### (2)无法访问外国网站
由于国内没法安装 go.org/x 包下面的东西,推荐使用 [goproxy.io](https://goproxy.io/zh/) 由于国内没法安装 go.org/x 包下面的东西,推荐使用 [goproxy.io](https://goproxy.io/zh/)

5
server/service/sys_casbin.go

@ -91,9 +91,8 @@ func ClearCasbin(v int, p ...string) bool {
//@return: *casbin.Enforcer //@return: *casbin.Enforcer
var ( var (
e *casbin.Enforcer
once sync.Once
eLock sync.Mutex
e *casbin.Enforcer
once sync.Once
) )
func Casbin() *casbin.Enforcer { func Casbin() *casbin.Enforcer {

Loading…
Cancel
Save