zwxi 10 月之前
父節點
當前提交
8d8d40c5b9
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      services/wx_category_template_msg.go

+ 5 - 2
services/wx_category_template_msg.go

@@ -126,9 +126,12 @@ func SendPermissionApplyCategoryTemplateMsg(realName, companyName, mobile, apply
 		return
 	}
 	//如果是潜在客户就推送可查看详情的模版消息
-	if detail.ApplyMethod == 2 {
-		redirectUrl = utils.WX_MSG_PATH_APPLY_DETAIL + strconv.Itoa(detail.ApplyRecordId)
+	if utils.RunMode == "release" {
+		if detail.ApplyMethod == 2 {
+			redirectUrl = utils.WX_MSG_PATH_APPLY_DETAIL + strconv.Itoa(detail.ApplyRecordId)
+		}
 	}
+
 	openIdArr := make([]string, 0)
 	openIdArr = append(openIdArr, itemOpenid.OpenId)
 	sendInfo := new(SendWxCategoryTemplate)