You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
464 B
24 lines
464 B
package dingdanxia
|
|
|
|
import (
|
|
"log"
|
|
"testing"
|
|
|
|
"github.com/dtapps/go-library/utils/gotime"
|
|
)
|
|
|
|
var app = App{
|
|
ApiKey: "ZTe5tqKhIc6nm8HkJkqj5hmpmAjs1WTy",
|
|
}
|
|
|
|
func TestApp(t *testing.T) {
|
|
param := NewParams()
|
|
param.Set("start_time", gotime.Current().BeforeDay(28).Timestamp())
|
|
param.Set("end_time", gotime.Current().Timestamp())
|
|
res, err := app.WaimaiMeituanOrders(param)
|
|
log.Println(res)
|
|
log.Printf("%s\n", res)
|
|
log.Printf("%v\n", res)
|
|
log.Println(err)
|
|
}
|