|
@@ -309,6 +309,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
sourceId = detailId
|
|
|
source = tryType
|
|
|
redirectUrl := ""
|
|
|
+ redirectUrlYx := ""
|
|
|
var isResearch bool // 是否属于研选
|
|
|
if tryType == "Article" {
|
|
|
detail, err := models.GetArticleDetailById(detailId)
|
|
@@ -321,7 +322,8 @@ func (this *UserController) ApplyTryOut() {
|
|
|
if detail.ArticleTypeId > 0 {
|
|
|
isResearch = true
|
|
|
}
|
|
|
- redirectUrl = utils.WX_MSG_PATH_YX_ARTICLE_DETAIL + strconv.Itoa(detailId)
|
|
|
+ redirectUrl = utils.WX_MSG_PATH_ARTICLE_DETAIL + strconv.Itoa(detailId)
|
|
|
+ redirectUrlYx = utils.WX_MSG_PATH_YX_ARTICLE_DETAIL + strconv.Itoa(detailId)
|
|
|
} else if tryType == "Activity" {
|
|
|
detail, err := models.GetAddActivityInfoById(detailId)
|
|
|
if err != nil {
|
|
@@ -333,7 +335,8 @@ func (this *UserController) ApplyTryOut() {
|
|
|
if strings.Contains(detail.ChartPermissionName, utils.CHART_PERMISSION_NAME_YANXUAN) {
|
|
|
isResearch = true
|
|
|
}
|
|
|
- redirectUrl = utils.WX_MSG_PATH_YX_ACTIVITY_DETAIL + strconv.Itoa(detailId)
|
|
|
+ redirectUrl = utils.WX_MSG_PATH_ACTIVITY_DETAIL + strconv.Itoa(detailId)
|
|
|
+ redirectUrlYx = utils.WX_MSG_PATH_YX_ACTIVITY_DETAIL + strconv.Itoa(detailId)
|
|
|
} else if tryType == "MicroAudio" {
|
|
|
// 微路演音频
|
|
|
microAudio, e := models.GetCygxActivityVoiceById(detailId)
|
|
@@ -630,7 +633,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
|
|
|
if isResearch {
|
|
|
//如果是研选的报告走研选的类目模版消息
|
|
|
- go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, applyMethod, redirectUrl)
|
|
|
+ go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, applyMethod, redirectUrlYx)
|
|
|
}
|
|
|
if detailId > 0 {
|
|
|
applyMethod = applyMethod + "," + title
|