调试
This commit is contained in:
+6
-1
@@ -574,7 +574,12 @@ func (that *MakeCode) Add(table string, req *http.Request) Map {
|
||||
if v.Get("add") == nil || v.GetBool("add") {
|
||||
|
||||
if len(req.Form[v.GetString("name")]) == 0 {
|
||||
return nil
|
||||
if v.GetBool("must") {
|
||||
return nil
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
|
||||
}
|
||||
reqValue := req.FormValue(v.GetString("name"))
|
||||
if (reqValue == "" || reqValue == "null") && strings.Contains(v.GetString("name"), "id") {
|
||||
|
||||
Reference in New Issue
Block a user