Browse Source

Merge branch 'need/cygx_1054' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

zhangchuanxing 4 days ago
parent
commit
3162210d32
1 changed files with 4 additions and 1 deletions
  1. 4 1
      services/cygx_template_record_source.go

+ 4 - 1
services/cygx_template_record_source.go

@@ -76,6 +76,9 @@ func SendCygxTemplateRecordSource(log models.WxUserRaiLabelRedis) (err error) {
 			err = errors.New("GetAddActivityDetailByActivityId" + e.Error())
 			return
 		}
+		if activityDetail.ActivityType != 1 {
+			return
+		}
 		keyword2 = "参与线上活动:" + activityDetail.ActivityName
 		redirectUrl = utils.WX_MSG_PATH_ACTIVITY_DETAIL + strconv.Itoa(sourceId)
 		source = utils.CYGX_OBJ_ACTIVITY
@@ -85,7 +88,7 @@ func SendCygxTemplateRecordSource(log models.WxUserRaiLabelRedis) (err error) {
 			err = errors.New("GetAddActivityDetailByActivityId" + e.Error())
 			return
 		}
-		keyword2 = "参与线上活动:" + activityDetail.ActivityName
+		keyword2 = "查看音视频:" + activityDetail.ActivityName
 		redirectUrl = utils.WX_MSG_PATH_ACTIVITY_DETAIL + strconv.Itoa(sourceId)
 		source = utils.CYGX_OBJ_ACTIVITYVIDEO
 	case 10: