Commit 070955e2 authored by brent's avatar brent

modify task

parent a821548f
...@@ -1851,7 +1851,7 @@ func (server *TaskController) GetTaskTypes() { ...@@ -1851,7 +1851,7 @@ func (server *TaskController) GetTaskTypes() {
if eer != nil { if eer != nil {
} }
var examples []models.ExampleType var examples interface{}
eer = json.Unmarshal([]byte(data.Examples), &examples) eer = json.Unmarshal([]byte(data.Examples), &examples)
if eer != nil { if eer != nil {
...@@ -2127,7 +2127,7 @@ func (server *TaskController) Examples() { ...@@ -2127,7 +2127,7 @@ func (server *TaskController) Examples() {
where = fmt.Sprintf("and (`name` LIKE '%s' OR `desc` LIKE '%s' OR tags LIKE '%s')", keyword, keyword, keyword) where = fmt.Sprintf("and (`name` LIKE '%s' OR `desc` LIKE '%s' OR tags LIKE '%s')", keyword, keyword, keyword)
} }
if appRequest.Category != 0 { if appRequest.Category != 0 {
where = fmt.Sprintf("and category = %d", appRequest.Category) where = fmt.Sprintf("%s and category = %d", where, appRequest.Category)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment