|
@@ -67,9 +67,9 @@ class NoticeService extends CrudService {
|
|
|
const openid = _.get(user, 'openid');
|
|
|
const remark = '感谢您的使用';
|
|
|
const date = await this.ctx.service.util.updatedate();
|
|
|
- const detail = '尊敬的' + user.name + ',您有一个新的通知,请及时查收';
|
|
|
+ const detail = content;
|
|
|
const tourl = this.ctx.app.config.baseUrl + '/mobiledirtea/messageInfo/index?uid=' + user.uid + '¬iceid=' + res.id;
|
|
|
- this.ctx.service.weixin.sendTemplateDesign(this.ctx.app.config.REVIEW_TEMPLATE_ID, openid, '您有一个新的通知', detail, date, remark, tourl);
|
|
|
+ this.ctx.service.weixin.sendTemplateDesign(this.ctx.app.config.REVIEW_TEMPLATE_ID, openid, '您有一个新的通知,请点击确认您已收到信息!', detail, date, remark, tourl);
|
|
|
const notified = _.get(res, 'notified', []);
|
|
|
notified.push({ notifiedid: user._id, username: user.name });
|
|
|
res.notified = notified;
|