增加记录IP

This commit is contained in:
hoteas 2022-08-21 03:49:56 +08:00
parent 2276aa12ef
commit f7dfd4ec77
2 changed files with 4 additions and 2 deletions

View File

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

View File

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