|
@@ -110,7 +110,12 @@ func (this *SaleChanceService) Add(ctx context.Context) int64 {
|
|
vb.WriteString(gconv.String(v) + ",")
|
|
vb.WriteString(gconv.String(v) + ",")
|
|
userId := strings.TrimRight(kb.String(), ",")
|
|
userId := strings.TrimRight(kb.String(), ",")
|
|
positionId := strings.TrimRight(vb.String(), ",")
|
|
positionId := strings.TrimRight(vb.String(), ",")
|
|
- StationMailPush(userId, positionId, cm.Push.SaleChance.Create.Title, fmt.Sprintf(cm.Push.SaleChance.Create.Content, this.CreateName, strings.Replace(date.NowFormat(YYYYMMDDHHMM), " ", "%20", -1), strings.Replace(time.Unix(this.NextfollowUpTime, 0).Format(YYYYMMDDHHMM), " ", "%20", -1)), fmt.Sprintf(cm.Push.SaleChance.Create.PcHref, positionId, taskId, chanceId), cm.Push.SaleChance.Create.MobileHref)
|
|
|
|
|
|
+ nexttime := ""
|
|
|
|
+ if this.NextfollowUpTime != 0 {
|
|
|
|
+ nexttime = strings.Replace(time.Unix(this.NextfollowUpTime, 0).Format(YYYYMMDDHHMM), " ", "%20", -1)
|
|
|
|
+ }
|
|
|
|
+ content := fmt.Sprintf(cm.Push.SaleChance.Create.Content, this.CreateName, strings.Replace(date.NowFormat(YYYYMMDDHHMM), " ", "%20", -1), nexttime)
|
|
|
|
+ StationMailPush(userId, positionId, cm.Push.SaleChance.Create.Title, content, fmt.Sprintf(cm.Push.SaleChance.Create.PcHref, positionId, taskId, chanceId), cm.Push.SaleChance.Create.MobileHref)
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|