zwxi 10 mēneši atpakaļ
vecāks
revīzija
d8a3f09a80
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1 1
      controllers/user.go
  2. 2 2
      services/user.go

+ 1 - 1
controllers/user.go

@@ -1239,7 +1239,7 @@ func (this *UserController) ApplyTryOut() {
 		return
 	}
 	if sellerItem == nil {
-		go services.SendPermissionApplyTemplateMsgAdmin(req, mobile, applyMethod, isResearch)
+		go services.SendPermissionApplyTemplateMsgAdmin(req, mobile, applyMethod, categoryApplyMethod, redirectUrl, isResearch)
 	} else {
 		openIpItem, _ := models.GetUserRecordByMobile(4, sellerItem.Mobile)
 		if openIpItem != nil && openIpItem.OpenId != "" {

+ 2 - 2
services/user.go

@@ -1155,7 +1155,7 @@ func UpdateCygxSubscribe(uid int, unionId string) (err error) {
 }
 
 // SendPermissionApplyTemplateMsgAdmin 处理试用申请给王芳,汪洋发消息
-func SendPermissionApplyTemplateMsgAdmin(req models.ApplyTryReq, usermobile, applyMethod string, isResearch bool) (err error) {
+func SendPermissionApplyTemplateMsgAdmin(req models.ApplyTryReq, usermobile, applyMethod, categoryApplyMethod ,redirectUrl string, isResearch bool) (err error) {
 	defer func() {
 		if err != nil {
 			go utils.SendAlarmMsg("处理试用申请给王芳,汪洋发消息失败, ErrMsg: "+err.Error(), 3)
@@ -1177,7 +1177,7 @@ func SendPermissionApplyTemplateMsgAdmin(req models.ApplyTryReq, usermobile, app
 
 	for _, v := range openIdList {
 		go SendPermissionApplyTemplateMsg(req.RealName, req.CompanyName, usermobile, applyMethod, v)
-		go SendPermissionApplyCategoryTemplateMsg(req.RealName, req.CompanyName, usermobile, applyMethod, v, "")
+		go SendPermissionApplyCategoryTemplateMsg(req.RealName, req.CompanyName, usermobile, categoryApplyMethod, v, redirectUrl)
 	}
 
 	//openIpItem, e := models.GetUserRecordByMobile(4, cnf.ConfigValue)