diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go b/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go index dd3b80cd..9c56e732 100644 --- a/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go +++ b/dsSupport/MyModel/AccessSystem/AccessSystemController/AccessSystemController.go @@ -197,10 +197,17 @@ func GetAccessSystemRangeInfo(c *gin.Context) { }) return } + arr := make([]string, 0) + if len(res) > 0 { + for i := range res { + arr = append(arr, res[i]["range_code"].(string)) + } + + } c.JSON(http.StatusOK, Model.Res{ Success: true, Message: "操作成功!", - List: res, + List: arr, }) } @@ -389,19 +396,19 @@ func SettingAccessSystemIntegratedInfo(c *gin.Context) { //系统ID appId := c.PostForm("appId") //接入系统在集成页面的调用地址 - redirectUri := c.PostForm("redirectUri") + appUrl := c.PostForm("appUrl") //接入系统在集成页面的图标 - header, _ := c.FormFile("icon") + header, _ := c.FormFile("appIcon") rootPath, _ := os.Getwd() iconDir := rootPath + "/Html/Icon/" //生成图标的ID iconFileId := CommonUtil.GetUUID() - iconFileName := strings.Split(header.Filename, ".")[1] - iconPath := iconDir + iconFileId + "." + iconFileName + iconFileName := iconFileId + "." + strings.Split(header.Filename, ".")[1] + iconPath := iconDir + iconFileName //保存图标 c.SaveUploadedFile(header, iconPath) - err := AccessSystemDao.UpdateIntegration(appId, redirectUri, "/dsSupport/Icon/"+iconFileName) + err := AccessSystemDao.UpdateIntegration(appId, appUrl, "/dsSupport/Icon/"+iconFileName) if err != nil { c.JSON(http.StatusOK, Model.Res{ @@ -500,7 +507,7 @@ func GetAccessSystemIdentityPositionInfo(c *gin.Context) { positionArr := make([]string, 0) if len(positionRes) > 0 { - teacherFlag = 2 + teacherFlag = 3 for i := range positionRes { positionArr = append(positionArr, positionRes[i]["position_id"].(string)) } diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go b/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go index 2f6e4864..27f5f5c3 100644 --- a/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go +++ b/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go @@ -121,8 +121,6 @@ func ClearSso(appId string) error { model.RedirectUri = "" model.LogoutUri = "" _, err = db.ID(appId).Cols("redirect_uri", "logout_uri").Update(model) - //插入REDIS缓存 - err = insertRedisCache(model.AccessKey, model.SecretKey, model.RedirectUri) return err }