|
@@ -729,7 +729,14 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
|
|
|
if activityInfo.PublishStatus == 1 && activityInfo.ActivityTimeText != item.ActivityTimeText {
|
|
|
go services.SendWxMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ActivityTimeText, "timeType")
|
|
|
if activityInfo.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
- go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ActivityTimeText, "timeType")
|
|
|
+ activityTime, err := time.Parse(utils.FormatDateTime, item.ActivityTime)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "转换失败"
|
|
|
+ br.ErrMsg = "转换失败,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ activityTimeStr := activityTime.Format(utils.FormatDateTimeMinute2)
|
|
|
+ go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, activityTimeStr, "timeType")
|
|
|
}
|
|
|
}
|
|
|
oldExpert, _ := cygx.GetReportContentTextSub(activityInfo.Expert)
|
|
@@ -743,20 +750,20 @@ func (this *ActivityCoAntroller) PreserveAndPublish() {
|
|
|
if activityInfo.PublishStatus == 1 && activityInfo.Address != item.Address {
|
|
|
go services.SendWxMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.Address, item.Address, "addressType")
|
|
|
if activityInfo.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
- go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ActivityTimeText, "addressType")
|
|
|
+ go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.Address[:20]+"...", "addressType")
|
|
|
}
|
|
|
}
|
|
|
if activityInfo.PublishStatus == 1 && activityInfo.ParticipationCode != item.ParticipationCode {
|
|
|
go services.SendWxMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ParticipationCode, item.ParticipationCode, "participationCode")
|
|
|
if activityInfo.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
- go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ActivityTimeText, "participationCode")
|
|
|
+ go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ParticipationCode, "participationCode")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if activityInfo.PublishStatus == 1 && activityInfo.Theme != item.Theme {
|
|
|
go services.SendWxMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.Theme, item.Theme, "Theme")
|
|
|
if activityInfo.ChartPermissionId == utils.CHART_PERMISSION_ID_YANXUAN {
|
|
|
- go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.ActivityTimeText, "Theme")
|
|
|
+ go services.SendWxCategoryMsgWithCygxActivityUpdateTime(req.ActivityId, activityInfo.ActivityTimeText, item.Theme[:20]+"...", "Theme")
|
|
|
}
|
|
|
}
|
|
|
|