|
@@ -2,6 +2,7 @@ package book
|
2
|
2
|
|
3
|
3
|
import (
|
4
|
4
|
"errors"
|
|
5
|
+ "fmt"
|
5
|
6
|
"spaceofcheng/services/models"
|
6
|
7
|
"spaceofcheng/services/models/book"
|
7
|
8
|
"spaceofcheng/services/models/customer"
|
|
@@ -419,12 +420,13 @@ func (s *BookServ) SendMessageToCustomer() error {
|
419
|
420
|
To: utils.ClientID{ID: userMap.Openid},
|
420
|
421
|
Data: map[string]interface{}{
|
421
|
422
|
"orgid": weekList[i].OrgId,
|
422
|
|
- "tplid": "",
|
|
423
|
+ "tplid": "6WoxRkdXrRyF0T7Kc4PU5CjkpzAPWKKsA6wBLAGSQQg",
|
423
|
424
|
"data": map[string]string{
|
424
|
|
- "first": "还书提醒",
|
|
425
|
+ "first": "您好,您借阅图书即将逾期,请及时归还。",
|
425
|
426
|
"keyword1": weekList[i].BookName,
|
426
|
|
- "keyword2": weekList[i].EndDate.Format("2006-01-02"),
|
427
|
|
- // "remark": fmt.Sprintf(remarkTpl, recored.ValidateEnd.Format("2006-01-02"), caseName),
|
|
427
|
+ "keyword2": weekList[i].BorrowDate.Format("2006-01-02"),
|
|
428
|
+ "keyword3": weekList[i].EndDate.Format("2006-01-02"),
|
|
429
|
+ "remark": fmt.Sprintf("避免影响您下次借阅,请及时归还至", weekList[i].CaseName),
|
428
|
430
|
},
|
429
|
431
|
},
|
430
|
432
|
}
|
|
@@ -442,12 +444,13 @@ func (s *BookServ) SendMessageToCustomer() error {
|
442
|
444
|
To: utils.ClientID{ID: userMap.Openid},
|
443
|
445
|
Data: map[string]interface{}{
|
444
|
446
|
"orgid": lateList[i].OrgId,
|
445
|
|
- "tplid": "",
|
|
447
|
+ "tplid": "ID:Be0a25NMb3fzLtNaaQn_YOuECQDnlCs1es5aVvfwRhs",
|
446
|
448
|
"data": map[string]string{
|
447
|
|
- "first": "逾期提醒",
|
|
449
|
+ "first": "您好,您借阅图书的时间已经逾期2天",
|
448
|
450
|
"keyword1": lateList[i].BookName,
|
449
|
|
- "keyword2": lateList[i].EndDate.Format("2006-01-02"),
|
450
|
|
- // "remark": fmt.Sprintf(remarkTpl, recored.ValidateEnd.Format("2006-01-02"), caseName),
|
|
451
|
+ "keyword2": weekList[i].BorrowDate.Format("2006-01-02"),
|
|
452
|
+ "keyword3": weekList[i].EndDate.Format("2006-01-02"),
|
|
453
|
+ "remark": fmt.Sprintf("避免影响您下次借阅,请及时归还至", lateList[i].CaseName),
|
451
|
454
|
},
|
452
|
455
|
},
|
453
|
456
|
}
|