This commit is contained in:
suyl
2021-07-16 10:19:09 +08:00
parent 6420b5c01e
commit ddea5f5228
2 changed files with 25 additions and 18 deletions

View File

@@ -40,12 +40,6 @@ var (
}
)
var (
exceedLimitCodes = map[int]int{}
canRetryCodes = map[int]int{}
)
type API struct {
platformapi.APICookie
@@ -55,18 +49,6 @@ type API struct {
config *platformapi.APIConfig
}
type PrinterInfo struct {
SN string
Key string
Name string
PhoneNum string
}
type PrinterResultInfo struct {
SN string
ErrMsg string
}
func New(appID, appKey string, config ...*platformapi.APIConfig) *API {
curConfig := platformapi.DefAPIConfig
if len(config) > 0 {