fix token plugin param error

This commit is contained in:
tickstep 2024-04-01 23:25:34 +08:00
parent 4769d17281
commit 4727b9696d

View File

@ -246,7 +246,7 @@ func RefreshOpenTokenInNeed(activeUser *config.PanUser) bool {
}
if wt != nil {
params.Result = "success"
params.OldToken = activeUser.WebapiToken.AccessToken
params.OldToken = activeUser.OpenapiToken.AccessToken
params.NewToken = wt.AccessToken
// update for user