|
@@ -154,6 +154,7 @@ func (this *YanxuanSpecialNoLoginController) List() {
|
|
// @Title 专栏详情
|
|
// @Title 专栏详情
|
|
// @Description 专栏详情
|
|
// @Description 专栏详情
|
|
// @Param request body help_doc.AddHelpDocReq true "type json string"
|
|
// @Param request body help_doc.AddHelpDocReq true "type json string"
|
|
|
|
+// @Param InviteShareCode query string false "销售账号邀请码"
|
|
// @Success 200 {object} models.AddEnglishReportResp
|
|
// @Success 200 {object} models.AddEnglishReportResp
|
|
// @router /detail [get]
|
|
// @router /detail [get]
|
|
func (this *YanxuanSpecialNoLoginController) Detail() {
|
|
func (this *YanxuanSpecialNoLoginController) Detail() {
|
|
@@ -171,7 +172,7 @@ func (this *YanxuanSpecialNoLoginController) Detail() {
|
|
}
|
|
}
|
|
|
|
|
|
specialId, _ := this.GetInt("Id", 0)
|
|
specialId, _ := this.GetInt("Id", 0)
|
|
-
|
|
|
|
|
|
+ inviteShareCode := this.GetString("InviteShareCode")
|
|
if specialId <= 0 {
|
|
if specialId <= 0 {
|
|
br.Msg = "参数错误"
|
|
br.Msg = "参数错误"
|
|
br.ErrMsg = "参数错误"
|
|
br.ErrMsg = "参数错误"
|
|
@@ -184,6 +185,11 @@ func (this *YanxuanSpecialNoLoginController) Detail() {
|
|
br.ErrMsg = "获取失败, Err:" + tmpErr.Error()
|
|
br.ErrMsg = "获取失败, Err:" + tmpErr.Error()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //记录分享来源
|
|
|
|
+ if inviteShareCode != "" {
|
|
|
|
+ go services.AddCygxUserAdminShareHistory(sysUser, utils.CYGX_OBJ_YANXUANSPECIAL, item.Title, inviteShareCode, specialId)
|
|
|
|
+ }
|
|
if item.MyCollectNum > 0 {
|
|
if item.MyCollectNum > 0 {
|
|
item.IsCollect = 1
|
|
item.IsCollect = 1
|
|
}
|
|
}
|