瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
ea61b8df14
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      controllers/user.go

+ 6 - 6
controllers/user.go

@@ -644,7 +644,7 @@ func (this *UserController) ApplyTryOut() {
 						applyMethod = companyItem.Status + "客户"
 					}
 				}
-				applyMethod = applyMethod + "," + title
+				//applyMethod = applyMethod + "," + title
 			}
 			openIpItem, _ := models.GetUserRecordByMobile(4, sellerItem.Mobile)
 			if openIpItem != nil && openIpItem.OpenId != "" {
@@ -652,7 +652,6 @@ func (this *UserController) ApplyTryOut() {
 					req.RealName = user.RealName
 					req.CompanyName = user.CompanyName
 				}
-				//go services.SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, mobile, applyMethod, openIpItem)
 			}
 		}
 	} else {
@@ -672,9 +671,9 @@ func (this *UserController) ApplyTryOut() {
 			applyMethod = "潜在客户"
 			categoryApplyMethod = "潜在客户"
 		}
-		if detailId > 0 {
-			applyMethod = applyMethod + "," + title
-		}
+		//if detailId > 0 {
+		//	applyMethod = applyMethod + "," + title
+		//}
 	}
 	if categoryApplyMethod == "" {
 		categoryApplyMethod = applyMethod
@@ -706,9 +705,10 @@ func (this *UserController) ApplyTryOut() {
 		br.ErrMsg = "申请失败,Err:" + err.Error()
 		return
 	}
+	fmt.Println(isResearch)
 	if isResearch {
 		//如果是研选的报告走研选的类目模版消息
-		go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, applyMethod, redirectUrlYx)
+		go services.SendPermissionApplyTemplateMsgAdminByYxCategory(req, user.CompanyId, mobile, categoryApplyMethod, redirectUrlYx)
 	}
 	if detailId > 0 {
 		applyMethod = applyMethod + "," + title