This commit is contained in:
suyl
2021-08-30 16:06:01 +08:00
parent 83b157d1fb
commit e895a25b98
12 changed files with 203 additions and 16 deletions

View File

@@ -44,6 +44,7 @@ func (a *API) CommentQuery(poiCode string, startDateStr, endDateStr string, offs
"end_time": endDateStr,
"pageoffset": offset,
"pagesize": limit,
"replyStatus": replyStatus,
}
if limit <= 0 {
limit = math.MaxInt32

View File

@@ -7,7 +7,7 @@ import (
)
func TestCommentQuery(t *testing.T) {
result, err := api.CommentQuery("6783778", "20190501", "20190515", 0, 0, CommentReplyStatusAll)
result, err := api.CommentQuery("7809572", "20210817", "20210818", 0, 0, CommentReplyStatusAll)
if err != nil {
t.Fatal(err)
}

View File

@@ -22,7 +22,7 @@ func TestPoiGetIDs(t *testing.T) {
}
func TestPoiMGet(t *testing.T) {
result, err := api.PoiMGet([]string{"11011885"})
result, err := api.PoiMGet([]string{"12524795"})
t.Log(utils.Format4Output(result, false))
if err != nil {
t.Fatal(err)