|
|
|
@ -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))
|
|
|
|
|
}
|
|
|
|
|