- 易联去GetPrinterToken成功后,不应该调用SetToken
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user