|
@@ -921,6 +921,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
detailId := req.DetailId
|
|
|
sourceId = detailId
|
|
|
source = tryType
|
|
|
+ redirectUrl := ""
|
|
|
var isResearch bool // 是否属于研选
|
|
|
if tryType == "Article" {
|
|
|
detail, err := models.GetArticleDetailById(detailId)
|
|
@@ -933,6 +934,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 {
|
|
@@ -944,6 +946,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)
|
|
@@ -1241,7 +1244,7 @@ func (this *UserController) ApplyTryOut() {
|
|
|
openIpItem, _ := models.GetUserRecordByMobile(4, sellerItem.Mobile)
|
|
|
if openIpItem != nil && openIpItem.OpenId != "" {
|
|
|
go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, openIpItem)
|
|
|
- go services.SendPermissionApplyCategoryTemplateMsg(req.RealName, req.CompanyName, mobile, categoryApplyMethod, openIpItem)
|
|
|
+ go services.SendPermissionApplyCategoryTemplateMsg(req.RealName, req.CompanyName, mobile, categoryApplyMethod, openIpItem, redirectUrl)
|
|
|
}
|
|
|
}
|
|
|
//添加成功后,设置5分钟缓存,不允许重复添加
|