初步版本修正
This commit is contained in:
@@ -11,6 +11,13 @@ var CompanyCtr = Ctr{
|
||||
|
||||
"search": func(that *Context) {
|
||||
keywords := that.Req.FormValue("keywords")
|
||||
if keywords == "" {
|
||||
keywords = that.Req.FormValue("company_name")
|
||||
}
|
||||
if keywords == "" {
|
||||
keywords = that.Req.FormValue("name")
|
||||
}
|
||||
|
||||
if len(keywords) < 2 {
|
||||
that.Display(0, Slice{})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user