aa
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -19,6 +20,10 @@ func init() {
|
||||
baseapi.Init(sugarLogger)
|
||||
|
||||
api = New("b6481f92b47918cd6e42e7ea4fae6084", "84d390777ddf691ff092e744ba26bfdd")
|
||||
api.SetCookieWithStr(`
|
||||
uuid=e8034a4d222c4b51b81c.1574126611.1.0.0; _ga=GA1.2.827950563.1574128001; _lxsdk_cuid=16eb02a8a02c8-0a92cb9af9798c-3d375b01-15f900-16eb02a8a02c8; _lxsdk=16eb02a8a02c8-0a92cb9af9798c-3d375b01-15f900-16eb02a8a02c8; t_lxid=1719bfe9d5e30-0cf08957b60ff-3d375b01-15f900-1719bfe9d5fc8-tid; e_u_id_3299326472=e5ae16afe444349d24af7d33b66620a1; mtcdn=K; u=74293087; n=%E6%9A%96%E6%B4%8B%E6%B4%8B780; lt=-MCY1pDT4PeX0lQfwwtk0fopfp4AAAAASg0AAGrpsRgMgRyfrItJI72VozmV508m0TpAAxLhJPZqKBxw3xeClF25NKbWolIKKQIB-g; mt_c_token=-MCY1pDT4PeX0lQfwwtk0fopfp4AAAAASg0AAGrpsRgMgRyfrItJI72VozmV508m0TpAAxLhJPZqKBxw3xeClF25NKbWolIKKQIB-g; token=-MCY1pDT4PeX0lQfwwtk0fopfp4AAAAASg0AAGrpsRgMgRyfrItJI72VozmV508m0TpAAxLhJPZqKBxw3xeClF25NKbWolIKKQIB-g; lsu=
|
||||
|
||||
`)
|
||||
}
|
||||
|
||||
func TestGenerateLink(t *testing.T) {
|
||||
@@ -28,3 +33,11 @@ func TestGenerateLink(t *testing.T) {
|
||||
}
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestActivityList(t *testing.T) {
|
||||
result, err := api.ActivityList(1, 10, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user