OnlineTicket Fix

This commit is contained in:
Crystal.Sea
2020-11-04 07:44:04 +08:00
parent 83872c2ebc
commit 3467255d07
4 changed files with 21 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ public class OnlineTicket implements Serializable{
public Authentication authentication;
private HashMap<String , Apps> authorizedApps;
private HashMap<String , Apps> authorizedApps = new HashMap<String , Apps>();
public OnlineTicket(String ticketId) {
@@ -65,6 +65,10 @@ public class OnlineTicket implements Serializable{
public void setAuthorizedApps(HashMap<String, Apps> authorizedApps) {
this.authorizedApps = authorizedApps;
}
public void setAuthorizedApp(Apps authorizedApp) {
this.authorizedApps.put(authorizedApp.getId(), authorizedApp);
}