aa
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user