|
@@ -295,9 +295,70 @@ func (this *UserController) ApplyTryOut() {
|
|
|
return
|
|
|
}
|
|
|
title = detail.Title
|
|
|
+ } else if tryType == "Activity" {
|
|
|
+ detail, err := models.GetAddActivityInfoById(detailId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "活动ID错误,不存在activityId:" + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = detail.ActivityName
|
|
|
+ } else if tryType == "MicroAudio" {
|
|
|
+ // 微路演音频
|
|
|
+ microAudio, e := models.GetCygxActivityVoiceById(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "微路演音频信息有误, 不存在的VoiceId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = microAudio.VoiceName
|
|
|
+ } else if tryType == "MicroVideo" {
|
|
|
+ // 微路演视频
|
|
|
+ microVideo, e := models.GetMicroRoadshowVideoById(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "微路演视频信息有误, 不存在的VideoId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = microVideo.VideoName
|
|
|
+ } else if tryType == "Researchsummary" {
|
|
|
+ // 本周研究汇总
|
|
|
+ ResearchSummaryInfo, e := models.GetCygxResearchSummaryInfoById(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "本周研究汇总信息有误, 不存在的detailId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = ResearchSummaryInfo.Title
|
|
|
+ } else if tryType == "Minutessummary" {
|
|
|
+ // 上周纪要汇总
|
|
|
+ MinutesSummaryInfo, e := models.GetCygxMinutesSummaryInfoById(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "上周纪要汇总信息有误, 不存在的detailId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = MinutesSummaryInfo.Title
|
|
|
+ } else if tryType == "ReportSelection" {
|
|
|
+ // 报告精选
|
|
|
+ ReportSelectionInfo, e := models.GetCygxReportSelectionInfoById(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "报告精选信息有误, 不存在的detailId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = ReportSelectionInfo.Title
|
|
|
+ } else if tryType == "ProductInterior" {
|
|
|
+ // 产品内测
|
|
|
+ ProductInteriorDetail, e := models.GetCygxProductInteriorDetail(detailId)
|
|
|
+ if e != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "产品内测信息有误, 不存在的detailId: " + strconv.Itoa(detailId)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ title = ProductInteriorDetail.Title
|
|
|
}
|
|
|
|
|
|
- fmt.Println(title)
|
|
|
//缓存校验
|
|
|
cacheKey := fmt.Sprint("xygx:apply_record:add:", uid)
|
|
|
ttlTime := utils.Rc.GetRedisTTL(cacheKey)
|