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
|
package url
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"log"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLenCode(t *testing.T) {
|
func TestLenCode(t *testing.T) {
|
||||||
u := "https://www.dtapp.net"
|
log.Println(LenCode("https://www.dtapp.net"))
|
||||||
fmt.Println(LenCode(u))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDeCode(t *testing.T) {
|
func TestDeCode(t *testing.T) {
|
||||||
u := "https%3A%2F%2Fwww.dtapp.net"
|
log.Println(DeCode(LenCode("https://www.dtapp.net")))
|
||||||
fmt.Println(DeCode(u))
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue