增加记录IP
This commit is contained in:
parent
2276aa12ef
commit
f7dfd4ec77
@ -376,7 +376,7 @@ func (that *Application) handler(w http.ResponseWriter, req *http.Request) {
|
||||
//访问拦截true继续false暂停
|
||||
connectListenerLen := len(that.connectListener)
|
||||
|
||||
for i := connectListenerLen - 1; i >= 0; i-- {
|
||||
for i := 0; i < connectListenerLen; i++ {
|
||||
|
||||
if that.connectListener[i](&context) {
|
||||
|
||||
|
@ -1081,7 +1081,9 @@ func (that *MakeCode) Search(table string, userData Map, req *http.Request, db *
|
||||
parentID = userData.GetCeilInt(table + "_id")
|
||||
data["OR"] = Map{table + ".id": parentID, table + ".parent_id": nil}
|
||||
} else {
|
||||
data[table+".parent_id"] = reqValue
|
||||
|
||||
data["OR"] = Map{table + ".parent_id": reqValue, table + ".id": reqValue}
|
||||
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user