diff --git a/platformapi/yilianyunapi/yilianyunapi_test.go b/platformapi/yilianyunapi/yilianyunapi_test.go index ea5ce4e9..294d601e 100644 --- a/platformapi/yilianyunapi/yilianyunapi_test.go +++ b/platformapi/yilianyunapi/yilianyunapi_test.go @@ -20,11 +20,11 @@ func init() { baseapi.Init(sugarLogger) // 自有应用 - // api = New("1039586024", "4885d07c2997b661102e4b6099c0bf3b") - // api.SetToken("07e5895c70114395a285ae20119d83b1") + api = New("1039586024", "4885d07c2997b661102e4b6099c0bf3b") + api.SetToken("07e5895c70114395a285ae20119d83b1") // 开放应用 - api = New("1098307169", "d5eedb40c99e6691b1ca2ba82a363d6a") + //api = New("1098307169", "d5eedb40c99e6691b1ca2ba82a363d6a") } func handleError(t *testing.T, err error) { @@ -77,7 +77,7 @@ func TestGetPrintStatusWithToken(t *testing.T) { } func TestGetPrinterToken(t *testing.T) { - TokenInfo, err := api.GetPrinterToken("4004600675", "cb3UTvMq") + TokenInfo, err := api.GetPrinterToken("1039586024", "4885d07c2997b661102e4b6099c0bf3b") handleError(t, err) baseapi.SugarLogger.Debug(TokenInfo) } @@ -93,7 +93,7 @@ func TestPlayText(t *testing.T) { } func TestRefreshToken(t *testing.T) { - tokenInfo, err := api.RefreshToken("c565a8983887488eb2a708ca118ce43c") + tokenInfo, err := api.RefreshToken("b87e713b8aa0408e92d3877a3fb94299") handleError(t, err) t.Log(utils.Format4Output(tokenInfo, true)) }