- 易联去GetPrinterToken成功后,不应该调用SetToken

This commit is contained in:
gazebo
2019-08-31 11:25:45 +08:00
parent 645da04038
commit afad69e0ab
2 changed files with 10 additions and 5 deletions

View File

@@ -238,7 +238,6 @@ func (a *API) GetPrinterToken(machineCode, qrKey string) (tokenInfo *TokenInfo,
}, "")
if err == nil {
err = utils.Map2StructByJson(result, &tokenInfo, false)
a.SetToken(tokenInfo.AccessToken)
}
return tokenInfo, err
}