瀏覽代碼

no message

xingzai 8 月之前
父節點
當前提交
fc93fb7ca6
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      controllers/user.go

+ 4 - 2
controllers/user.go

@@ -628,12 +628,14 @@ func (this *UserController) ApplyTryOut() {
 		return
 	}
 
-	go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, redirectUrl, user) //权限申请模板消息推送
 	if isResearch {
 		//如果是研选的报告走研选的类目模版消息
 		go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, applyMethod, redirectUrl)
 	}
-
+	if detailId > 0 {
+		applyMethod = applyMethod + "," + title
+	}
+	go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, redirectUrl, user) //权限申请模板消息推送
 	//添加成功后,设置5分钟缓存,不允许重复添加
 	//utils.Rc.SetNX(cacheKey, user.Mobile, time.Second*60)