|
@@ -308,6 +308,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
detailId := req.DetailId
|
|
|
sourceId = detailId
|
|
|
source = tryType
|
|
|
+ redirectUrl := ""
|
|
|
var isResearch bool
|
|
|
if tryType == "Article" {
|
|
|
detail, err := models.GetArticleDetailById(detailId)
|
|
@@ -320,6 +321,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
if detail.ArticleTypeId > 0 {
|
|
|
isResearch = true
|
|
|
}
|
|
|
+ redirectUrl = utils.WX_MSG_PATH_YX_ARTICLE_DETAIL + strconv.Itoa(detailId)
|
|
|
} else if tryType == "Activity" {
|
|
|
detail, err := models.GetAddActivityInfoById(detailId)
|
|
|
if err != nil {
|
|
@@ -331,6 +333,7 @@ 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)
|
|
|
} else if tryType == "MicroAudio" {
|
|
|
|
|
|
microAudio, e := models.GetCygxActivityVoiceById(detailId)
|
|
@@ -596,17 +599,6 @@ func (this *UserController) ApplyTryOut() {
|
|
|
applyMethod = applyMethod + "," + title
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
item := new(models.CygxApplyRecord)
|
|
|
item.UserId = user.UserId
|
|
@@ -635,18 +627,10 @@ func (this *UserController) ApplyTryOut() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, user)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, redirectUrl, user)
|
|
|
if isResearch {
|
|
|
|
|
|
- go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile)
|
|
|
+ go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, redirectUrl)
|
|
|
}
|
|
|
|
|
|
|