解决BUG
This commit is contained in:
parent
524a892480
commit
8992fd6d3a
10
code.go
10
code.go
@ -776,6 +776,12 @@ var TptProject = Proj{
|
|||||||
name = v2.GetString("table")
|
name = v2.GetString("table")
|
||||||
}
|
}
|
||||||
if v2["auth"] != nil {
|
if v2["auth"] != nil {
|
||||||
|
|
||||||
|
if linkAuth[name] == nil {
|
||||||
|
linkAuth[name] = v2["auth"]
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
newAuth := Slice{}
|
newAuth := Slice{}
|
||||||
for k3, _ := range linkAuth.GetSlice(name) {
|
for k3, _ := range linkAuth.GetSlice(name) {
|
||||||
v3 := linkAuth.GetSlice(name).GetString(k3)
|
v3 := linkAuth.GetSlice(name).GetString(k3)
|
||||||
@ -784,10 +790,12 @@ var TptProject = Proj{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
linkAuth[name] = newAuth
|
linkAuth[name] = newAuth
|
||||||
}
|
continue
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for k1, _ := range menus {
|
for k1, _ := range menus {
|
||||||
v1 := menus.GetMap(k1)
|
v1 := menus.GetMap(k1)
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
],
|
],
|
||||||
"db": {
|
"db": {
|
||||||
"mysql": {
|
"mysql": {
|
||||||
"host": "192.168.6.253",
|
"host": "192.168.2.20",
|
||||||
"name": "dgs-cms",
|
"name": "gov_crawler",
|
||||||
"password": "dasda8454456",
|
"password": "fh22y8b882d",
|
||||||
"port": "3306",
|
"port": "3306",
|
||||||
"prefix": "",
|
"prefix": "",
|
||||||
"user": "root"
|
"user": "root"
|
||||||
|
Loading…
Reference in New Issue
Block a user