|
@@ -290,8 +290,12 @@ func (this *UserController) ApplyTryOut() {
|
|
|
uid := user.UserId
|
|
|
|
|
|
var title string
|
|
|
+ var sourceId int
|
|
|
+ var source string
|
|
|
tryType := req.TryType
|
|
|
detailId := req.DetailId
|
|
|
+ sourceId = detailId
|
|
|
+ source = tryType
|
|
|
var isResearch bool // 是否属于研选
|
|
|
if tryType == "Article" {
|
|
|
detail, err := models.GetArticleDetailById(detailId)
|
|
@@ -325,6 +329,8 @@ func (this *UserController) ApplyTryOut() {
|
|
|
return
|
|
|
}
|
|
|
title = microAudio.VoiceName
|
|
|
+ sourceId = microAudio.ActivityId
|
|
|
+ source = "activityvoice"
|
|
|
} else if tryType == "MicroVideo" {
|
|
|
// 微路演视频
|
|
|
microVideo, e := models.GetMicroRoadshowVideoById(detailId)
|
|
@@ -579,6 +585,8 @@ func (this *UserController) ApplyTryOut() {
|
|
|
//如果是潜在客户就标记来源
|
|
|
item.InviteCompanySource = 2
|
|
|
}
|
|
|
+ item.SourceId = sourceId
|
|
|
+ item.Source = strings.ToLower(source)
|
|
|
item.RegisterPlatform = utils.REGISTER_PLATFORM
|
|
|
err = models.AddApplyRecord(item)
|
|
|
|