易联云打印机添加GetOrderPagingList

This commit is contained in:
gazebo
2019-09-27 18:37:14 +08:00
parent 34d95a4f46
commit 9e46a9195d
2 changed files with 31 additions and 3 deletions

View File

@@ -20,11 +20,11 @@ func init() {
baseapi.Init(sugarLogger)
// 自有应用
// api = New("1039586024", "4885d07c2997b661102e4b6099c0bf3b")
// api.SetToken("7884617f9eeb4c28933569f94a95b5c3")
api = New("1039586024", "4885d07c2997b661102e4b6099c0bf3b")
api.SetToken("3a38e3cec7974b459a6f0a381c9b0312")
// 开放应用
api = New("1098307169", "d5eedb40c99e6691b1ca2ba82a363d6a")
// api = New("1098307169", "d5eedb40c99e6691b1ca2ba82a363d6a")
}
func handleError(t *testing.T, err error) {
@@ -97,3 +97,9 @@ func TestRefreshToken(t *testing.T) {
handleError(t, err)
t.Log(utils.Format4Output(tokenInfo, true))
}
func TestGetOrderPagingList(t *testing.T) {
result, err := api.GetOrderPagingList("4004613792", "", 1, 50)
handleError(t, err)
t.Log(utils.Format4Output(result, true))
}