diff --git a/goserver/main.go b/goserver/main.go index 8798ff7..504112c 100644 --- a/goserver/main.go +++ b/goserver/main.go @@ -47,6 +47,8 @@ func main() { engine.GET("twitcasting/query", TwitcastingQuery) engine.GET("openrec/query", OpenrecQuery) engine.GET("twitch/query", TwitchQuery) + engine.GET("nimo/query", NimoQuery) + engine.GET("tag/count", CountTag) engine.GET("tag/allcount", CountTag) engine.Run(":5500") diff --git a/goserver/nimo.go b/goserver/nimo.go new file mode 100644 index 0000000..a82a2f0 --- /dev/null +++ b/goserver/nimo.go @@ -0,0 +1,7 @@ +package main + +import "github.com/gin-gonic/gin" + +func NimoQuery(cxt *gin.Context) { + Query(cxt, "nimo") +} diff --git a/goserver/query_data.go b/goserver/query_data.go index 1843256..1b8f019 100644 --- a/goserver/query_data.go +++ b/goserver/query_data.go @@ -4,7 +4,6 @@ import ( "database/sql" "encoding/json" "fmt" - "log" "strconv" "github.com/gin-gonic/gin" @@ -32,8 +31,6 @@ func Query(cxt *gin.Context, platform string) { orderfield := cxt.Query("orderfield") ordertype := cxt.Query("ordertype") - log.Println(orderfield, ordertype) - start := (page - 1) * psize // end := start + 200 @@ -116,7 +113,7 @@ func Query(cxt *gin.Context, platform string) { } if err = json.Unmarshal([]byte(tags.String), &ot.Tags); err != nil { - // log.Println(tags) + } ots = append(ots, ot) diff --git a/goserver/var_sql.go b/goserver/var_sql.go index a1b1f50..ce866fd 100644 --- a/goserver/var_sql.go +++ b/goserver/var_sql.go @@ -29,7 +29,7 @@ WHERE platform = "%s" AND operator = 0 AND latest_log_uid is not NULL ) ie -JOIN intimate_extractor.collect_log cl +JOIN intimate_extractor.collect_log cl ON ie.latest_log_uid = cl.log_uid WHERE ie.latest_log_uid = cl.log_uid %s limit %s,%s;` diff --git a/src/App.js b/src/App.js index 7647982..2e17938 100644 --- a/src/App.js +++ b/src/App.js @@ -58,6 +58,9 @@ class App extends React.Component {