parent
d35458d831
commit
14611a30b9
@ -1,23 +0,0 @@
|
||||
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)
|
||||
}
|
@ -0,0 +1 @@
|
||||
package dingdanxia
|
@ -1,16 +1,14 @@
|
||||
package url
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestLenCode(t *testing.T) {
|
||||
u := "https://www.dtapp.net"
|
||||
fmt.Println(LenCode(u))
|
||||
log.Println(LenCode("https://www.dtapp.net"))
|
||||
}
|
||||
|
||||
func TestDeCode(t *testing.T) {
|
||||
u := "https%3A%2F%2Fwww.dtapp.net"
|
||||
fmt.Println(DeCode(u))
|
||||
log.Println(DeCode(LenCode("https://www.dtapp.net")))
|
||||
}
|
||||
|
Loading…
Reference in new issue