Fix: ignore requiring SharePoint site ID after edit / nil pointer in user setting routers

This commit is contained in:
HFO4
2021-03-14 10:26:45 +08:00
parent c9acf7e64e
commit d1377262e3
2 changed files with 4 additions and 1 deletions

View File

@@ -349,6 +349,8 @@ func UpdateOption(c *gin.Context) {
subService = &user.DeleteWebAuthn{}
case "theme":
subService = &user.ThemeChose{}
default:
subService = &user.ChangerNick{}
}
subErr = c.ShouldBindJSON(subService)